/**
 * Premium UI + process/why/fly signboard (single source).
 * Services page cards: css/services-list.css only.
 */

:root {
  --c1: #ff5c8a;
  --c2: #5dffb1;
  --c3: #ffc857;
  --c4: #5bb8ff;
  --c5: #a78bfa;
  --c6: #ff7a59;
  --tz-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: #000;
  color: #fff;
}

h1, h2, h3, h4 {
  color: #fff;
}

.eyebrow {
  color: #ffc857;
}

.lede,
.hero-desc,
.form-intro,
.about-text p,
.contact-chip p,
.browser-info h4 {
  color: rgba(255, 255, 255, 0.95);
}

.nav__links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  background: #fff;
  color: #000;
}

body:not(.page-home) .section.hero {
  min-height: auto;
  padding: clamp(80px, 14vh, 140px) 0 clamp(36px, 5vh, 56px);
  text-align: center;
}

body:not(.page-home) .section.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body:not(.page-home) .section.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  max-width: 18ch;
  margin: 0.5rem auto 0;
  text-align: center;
}

body:not(.page-home) .section.hero > .wrap > .lede,
body:not(.page-home) .section.hero > .wrap > p.lede {
  display: none;
}

.fly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  isolation: isolate;
}

.fly-card {
  position: relative;
  z-index: 1;
  height: 150px;
  box-sizing: border-box;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.35s var(--tz-ease), z-index 0s linear;
}

.fly-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.fly-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 2;
}

.fly-card__body {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% + 6px);
  margin: 0;
  padding: 14px 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--tz-ease);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  text-align: left;
  z-index: 60;
}

.fly-card:hover {
  z-index: 80;
  transform: scale(1.12) translateY(-10px);
}

.fly-card:hover .fly-card__body {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fly-card:nth-child(1) { border-top: 3px solid var(--c3); }
.fly-card:nth-child(1) .fly-card__label { color: var(--c3); }
.fly-card:nth-child(2) { border-top: 3px solid var(--c4); }
.fly-card:nth-child(2) .fly-card__label { color: var(--c4); }
.fly-card:nth-child(3) { border-top: 3px solid var(--c2); }
.fly-card:nth-child(3) .fly-card__label { color: var(--c2); }

@media (max-width: 800px) {
  .fly-grid { grid-template-columns: 1fr; }
}

/* ========== PROCESS — signboard expand (reference) ========== */
body [data-process-list] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 64px;
  max-width: 920px;
  margin: 2rem auto 0;
  border-left: none;
  padding-left: 0;
}

body [data-process-list] .card,
body [data-process-list] .card:hover,
body [data-process-list] .card:focus-within {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  transform: none;
  padding: 0 0 28px 28px;
  margin: 0;
  overflow: visible;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  min-height: 0;
}

body [data-process-list] .card::before {
  content: '';
  display: block;
  position: absolute;
  right: auto;
  bottom: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c3);
  box-shadow: 0 0 0 4px #000;
  transform: none;
  filter: none;
  pointer-events: none;
  z-index: 2;
  left: -7px;
  top: 0.35em;
}

body [data-process-list] .card:nth-child(2)::before { background: var(--c4); }
body [data-process-list] .card:nth-child(3)::before { background: var(--c2); }
body [data-process-list] .card:nth-child(4)::before { background: var(--c1); }
body [data-process-list] .card:nth-child(5)::before { background: var(--c5); }
body [data-process-list] .card:nth-child(6)::before { background: var(--c6); }

body [data-process-list] .card .eyebrow {
  display: none;
}

body [data-process-list] .card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
}

body [data-process-list] .card > p {
  display: block;
  margin: 0;
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  white-space: normal;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
  transform: translateX(-14px);
  transition:
    max-width 0.45s ease,
    max-height 0.5s ease,
    opacity 0.4s ease,
    transform 0.45s var(--tz-ease),
    margin 0.35s ease;
}

body [data-process-list] .card:hover > p,
body [data-process-list] .card:focus-within > p {
  max-width: 28rem;
  max-height: 12rem;
  opacity: 1;
  margin-top: 12px;
  transform: translateX(0);
}

/* ========== WHY — same signboard expand as Process ========== */
body [data-why-choose-list] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}

body [data-why-choose-list] .card,
body [data-why-choose-list] .card:hover,
body [data-why-choose-list] .card:focus-within {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  transform: none;
  padding: 18px 0 20px;
  margin: 0;
  display: block;
  overflow: visible;
  min-height: 0;
}

body [data-why-choose-list] .card::before,
body [data-why-choose-list] .card::after,
body [data-why-choose-list] .card:hover::before,
body [data-why-choose-list] .card:hover::after {
  content: none;
  display: none;
  transform: none;
  background: none;
  filter: none;
}

body [data-why-choose-list] .card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  transform: none;
  transition: color 0.25s ease;
}

body [data-why-choose-list] .card:hover h3,
body [data-why-choose-list] .card:focus-within h3 {
  color: #ffc857;
  transform: none;
}

body [data-why-choose-list] .card > p {
  display: block;
  margin: 0;
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  white-space: normal;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
  transform: translateX(-14px);
  transition:
    max-width 0.45s ease,
    max-height 0.5s ease,
    opacity 0.4s ease,
    transform 0.45s var(--tz-ease),
    margin 0.35s ease;
}

body [data-why-choose-list] .card:hover > p,
body [data-why-choose-list] .card:focus-within > p {
  max-width: 28rem;
  max-height: 12rem;
  opacity: 1;
  margin-top: 12px;
  transform: translateX(0);
}

/* ==========================================================
   PROCESS-STYLE DESC — additive (does not replace base type styles)
   ========================================================== */

body.page-home .hero-copy .hero-desc,
body.page-home .featured-header .featured-desc,
body.page-home .about-text > p,
body.page-home .about-text [data-home-about-desc] {
  display: block;
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  white-space: normal;
  transform: translateX(-14px);
  transition:
    max-width 0.45s ease,
    max-height 0.5s ease,
    opacity 0.4s ease,
    transform 0.45s var(--tz-ease),
    margin 0.35s ease;
}

body.page-home .hero-copy:hover .hero-desc,
body.page-home .hero-copy:focus-within .hero-desc {
  max-width: 40rem;
  max-height: 14rem;
  opacity: 1;
  margin-top: 0;
  transform: translateX(0);
}

body.page-home .featured-header:hover .featured-desc,
body.page-home .featured-header:focus-within .featured-desc {
  max-width: 42rem;
  max-height: 12rem;
  opacity: 1;
  margin-top: 0.75rem;
  transform: translateX(0);
}

body.page-home .about-text:hover > p,
body.page-home .about-text:focus-within > p,
body.page-home .about-text:hover [data-home-about-desc],
body.page-home .about-text:focus-within [data-home-about-desc],
body.page-home .about-layout:hover .about-text > p,
body.page-home .about-layout:focus-within .about-text > p {
  max-width: 36rem;
  max-height: 16rem;
  opacity: 1;
  margin-top: 0;
  transform: translateX(0);
}

body.page-home .about-text .btn {
  margin-top: 1.25rem;
}

@media (hover: none) {
  body.page-home .hero-copy .hero-desc,
  body.page-home .featured-header .featured-desc,
  body.page-home .about-text > p,
  body.page-home .about-text [data-home-about-desc] {
    max-width: 42rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }
}

@keyframes tz-process-heading-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body:not(.page-home) .section.hero h1 {
  animation: tz-process-heading-in 0.55s var(--tz-ease) 0.12s both;
}

body:not(.page-home) .section.hero .wrap > .lede,
body:not(.page-home) .section.hero .wrap > p.lede {
  display: block;
  max-width: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(-14px);
  transition:
    max-width 0.45s ease,
    max-height 0.5s ease,
    opacity 0.4s ease,
    transform 0.45s var(--tz-ease),
    margin 0.35s ease;
}

body:not(.page-home) .section.hero:hover .wrap > .lede,
body:not(.page-home) .section.hero:focus-within .wrap > .lede,
body:not(.page-home) .section.hero:hover .wrap > p.lede,
body:not(.page-home) .section.hero:focus-within .wrap > p.lede {
  max-width: 36rem;
  max-height: 12rem;
  opacity: 1;
  margin-top: 12px;
  transform: translateX(0);
}

/* Browser cards — no gold glow */
.featured-preview .browser,
a.browser,
.case-list a.browser,
.case-list .browser {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  outline: none;
  overflow: hidden;
  filter: none;
  background: #0a0a0a;
  transition:
    transform 0.45s var(--tz-ease),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.featured-preview .browser:hover,
a.browser:hover,
.case-list a.browser:hover,
.case-list .browser:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
  filter: none;
  outline: none;
}

.footer-clay {
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.footer-clay .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-clay .footer-logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-clay .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-clay .footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}

.footer-clay .footer-nav a:hover {
  background: #fff;
  color: #000;
}

.footer-clay .footer-bottom {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 99990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 720px) {
  body [data-why-choose-list] {
    grid-template-columns: 1fr;
  }

  body [data-process-list] {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================
   MOBILE SPACING — ISSUE 2 + ISSUE 3 horizontal gutters
   Single token: --container-padding. Desktop unchanged.
   ========================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --section-padding-tight: 32px;
    --container-padding: 18px;
  }

  /* Shared horizontal inset — all primary containers */
  .wrap,
  .wrap.hero-layout {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .section {
    padding: var(--section-padding) 0;
  }

  .section--tight {
    padding: var(--section-padding-tight) 0;
  }

  .hero {
    padding: 110px 0 56px;
  }

  body:not(.page-home) .section.hero {
    padding: 96px 0 40px;
  }

  .featured {
    padding: 48px 0 56px;
  }

  .featured-header {
    margin-bottom: 24px;
  }

  .featured-preview {
    margin-top: 24px;
  }

  .featured-cta {
    margin-top: 24px;
  }

  /* Lists that sit outside .wrap — same token */
  .services-list,
  body [data-services-page-list],
  [data-services-page-list] {
    margin-top: 40px;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
  }

  body [data-services-page-list] {
    margin-top: 0;
    padding-bottom: 48px;
  }

  /* Service page cards keep internal padding but stay inside gutter */
  body [data-services-page-list] .service-block .wrap {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .service-block {
    min-height: 0;
    padding: 48px 0;
  }

  .work-title {
    margin: 24px 0 40px;
  }

  .case-list {
    gap: 40px;
  }

  .about-title {
    margin: 28px 0 48px;
  }

  .about-layout {
    gap: 40px;
  }

  .about-image {
    height: 280px;
  }

  .cta-clay {
    padding: 72px 0;
  }

  .cta-clay h2 {
    margin: 24px 0 36px;
  }

  .cta-section {
    padding: 64px 0;
  }

  .footer-clay {
    padding: 40px var(--container-padding) 28px;
  }

  .footer-clay .footer-top {
    margin-bottom: 16px;
  }

  .footer-clay .wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom {
    margin-top: 32px;
  }

  .contact-shell {
    gap: 28px;
  }

  .contact-side {
    gap: 16px;
  }

  .contact-chip {
    margin: 0;
  }

  /* Homepage service rows — match gutter */
  .services-list .service-row {
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  body [data-process-list] .card > p,
  body [data-why-choose-list] .card > p,
  .fly-card__body,
  body.page-home .hero-copy .hero-desc,
  body.page-home .featured-header .featured-desc,
  body.page-home .about-text > p {
    transition: none;
  }

  body [data-process-list] .card:hover > p,
  body [data-why-choose-list] .card:hover > p,
  body.page-home .hero-copy .hero-desc,
  body.page-home .featured-header .featured-desc,
  body.page-home .about-text > p {
    max-height: 16rem;
    max-width: 42rem;
    opacity: 1;
    transform: none;
  }

  body:not(.page-home) .section.hero h1 {
    animation: none;
  }

  .fly-card:hover {
    transform: none;
  }
}
