/* =========================================================
   FALE ALFA — theme build (ported from static/fale-alfa)
   Design frame: 1600 × 4500 px.  Base: 16px = 1rem.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;            /* variable: covers Regular / SemiBold / Bold */
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --white:  #ffffff;
  --orange: #ff6200;
  --black:  #000000;

  --gray-desc:        #6b7280;   /* contact sub-heading (Inter) */
  --gray-placeholder: #9ca3af;   /* form placeholders */

  /* Section backgrounds — exact Figma fills, composited over the black page */
  --bg-services: rgba(0, 0, 0, 0.8);
  --bg-light:    rgba(255, 255, 255, 0.9);
  --bg-clients:  rgba(255, 98, 0, 0.8);

  --font:       "Figtree", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-inter: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --design-w: 1600px;
  --btn-radius: 30px;            /* pill — keep in px */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black);
  font-family: var(--font);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: none; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Full-bleed sections + centered stage ----------
   Section backgrounds span the full viewport width. The CONTENT lives in a
   1600px "stage" (the Figma frame), centered, and is scaled to fit between
   1024 and 1600px by falealfa.js so the layout stays pixel-faithful. */
#site { position: relative; width: 100%; overflow-x: clip; }
.stage {
  position: relative;
  width: var(--design-w);          /* 1600 */
  height: 56.25rem;                /* 900 — all Figma sections are 900 tall */
  margin: 0;
  transform-origin: top left;      /* JS centers via translateX so it never clips */
}
.section-fw {                      /* full-width section wrapper */
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* =========================================================
   BUTTON (shared) — Figma: orange pill, 24/12 padding,
   Figtree Bold 14, tracking 1.4px, uppercase, white
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;          /* 12 / 24 */
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;              /* 14 */
  line-height: 1;
  letter-spacing: 0.0875rem;        /* 1.4px */
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  border-radius: var(--btn-radius);
}

/* =========================================================
   HEADER  (1600 × 80, padding 24, justify-between)
   ========================================================= */
.header {
  position: absolute;
  top: 0; left: 0;
  z-index: 110;                     /* above the nav overlay so the X stays on top */
  width: 100%;
  height: 5rem;                     /* 80 */
}
.header__inner {                    /* content capped to the 1600 frame */
  max-width: var(--design-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;                /* 24 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  position: relative;
  width: 9.284375rem;               /* 148.55 */
  height: 2rem;                     /* 32 */
  flex-shrink: 0;
}
.logo__full { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo__wordmark {                   /* white "fale alfa" overlay (node 67:92) */
  position: absolute;
  left: 3.534375rem;                /* 56.55 (80.55 − 24) */
  top: 0.708125rem;                 /* 11.33 (35.33 − 24) */
  width: 5.749375rem;               /* 91.99 */
  height: 0.53125rem;               /* 8.50 */
}
.menu-toggle {
  position: fixed;                  /* always reachable while scrolling */
  top: 1.5rem;
  right: 1.5rem;
  z-index: 120;                     /* above the nav overlay */
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125rem;                   /* 5 between bars */
}
.menu-toggle span {
  display: block;
  width: 1.5rem;                    /* 24 */
  height: 2px;
  background: #fff;                 /* white by default (over dark) */
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.2s ease;
}
.menu-toggle--dark span { background: #111; }       /* over light sections */
.menu-toggle.is-active span { background: #fff; }   /* over dark menu overlay */
/* hamburger → X morph */
.menu-toggle.is-active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   NAV MENU — scroll to sections (desktop + mobile)
   Not defined in Figma; on-brand overlay panel.
   ========================================================= */
.nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -0.05rem;
  color: var(--white);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--orange); }

/* =========================================================
   HERO  (1600 × 900)
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--black); overflow: hidden; }
/* Static "world" cover, exactly as the Figma frame (video_bg 67:103).
   Background image is set inline by the template (ACF field or fallback). */
.hero__earth {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__alpha {
  position: absolute;
  left: 7.838906rem;                /* 125.42 */
  top: 6.300125rem;                 /* 100.80 */
  width: 56.893251rem;              /* 910.292 */
  height: 43.649752rem;             /* 698.396 */
  z-index: 1;
}
.hero__content {
  position: absolute;
  left: 58.671875rem;               /* 938.75 */
  top: 30.331875rem;                /* 485.31 */
  width: 33.946094rem;              /* 543.137 */
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;                      /* 24 */
}
.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 3rem;                  /* 48 */
  line-height: 1;
  letter-spacing: -0.15rem;         /* -2.4px */
  color: var(--white);
}
.hero__desc {
  font-weight: 400;
  font-size: 1rem;                  /* 16 */
  line-height: 1.5;
  color: var(--white);
}
.hero__desc p + p { margin-top: 0; }

/* =========================================================
   SERVICES  (1600 × 900, black 80%)
   ========================================================= */
.services {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-services);
}
.services__list {
  position: absolute;
  left: 6.708125rem;                /* 107.33 */
  top: 7.125rem;                    /* 114 — same as Figma */
  font-weight: 700;
  font-size: 2.5rem;                /* 40 — Figma is 96, but the real names are ~3x longer; single line preserved */
  line-height: 1;
  letter-spacing: -0.125rem;
  color: var(--white);
  white-space: nowrap;              /* one line per service, exactly like the Figma */
}
.services__list p { margin: 0 0 0.875rem; } /* 14 between rows keeps the Figma's stacked-list feel */
.services__list p:last-child { margin-bottom: 0; }
.service { cursor: pointer; transition: color 0.25s ease; width: max-content; }
.service.is-accent { color: var(--orange); }
.service-detail { display: none; }   /* mobile-only accordion (shown via media query) */

/* Right-side panel (divider + description + button) that follows the
   hovered service line vertically. It spans the whole stage, so it must NOT
   capture the mouse — otherwise it sits on top of the list and the lines
   never receive :hover. Only the button re-enables pointer events. */
.services__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.services__panel .btn { pointer-events: auto; }
.services__list { z-index: 2; }
.services__divider {
  position: absolute;
  left: 46.599375rem;               /* 745.59 — JS adapts this to the list column */
  top: 24.5rem;                     /* JS re-anchors below the description */
  width: 47.239188rem;              /* 755.827 */
  height: 2px;                      /* 1px vanishes when the stage scales below 1600px */
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.services__desc {
  position: absolute;
  right: 6.16125rem;                /* 1600 − 1501.42 = 98.58 */
  top: 13.75rem;                    /* JS re-anchors: text ends just above the divider */
  width: 34rem;                     /* 544 — wider than the Figma 425 so the real copy takes fewer lines */
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  font-size: 1rem;                  /* 16 */
  line-height: 1.5;
  text-align: right;
  color: var(--white);
}
.services__btn {
  position: absolute;
  left: 84.463875rem;               /* 1351.42 */
  top: 26.375rem;                   /* JS re-anchors just below the divider */
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* The services stage doesn't need the full 900px frame anymore: the real
   list (8 rows at the smaller type) ends around 610px — trim the dead space. */
.stage--services { height: 41rem; }

/* =========================================================
   TESTIMONIAL  (1600 × 900, white 90%)
   ========================================================= */
.testimonial {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-light);
  color: var(--black);
}
.testimonial__alpha {
  position: absolute;
  left: 15.09375rem;                /* 241.5 */
  top: 14.224846rem;                /* 227.5975 */
  width: 15.625rem;                 /* 250 */
  height: 12rem;                    /* 192 */
}
.testimonial__quote {
  position: absolute;
  left: 78.03125rem;                /* 1248.5 */
  top: 30.349846rem;                /* 485.5975 */
  width: 6.875rem;                  /* 110 */
  height: 5.75rem;                  /* 92 */
}
.testimonial__text {
  position: absolute;
  left: 31.746094rem;               /* 507.9375 */
  top: 16.599846rem;                /* 265.5975 */
  width: 50.680709rem;              /* 810.891 */
  font-weight: 700;
  font-size: 2.5rem;                /* 40 */
  line-height: 1.2;
  color: var(--black);
}
.testimonial__text,
.testimonial__name,
.testimonial__role { transition: opacity 0.16s ease; }
.testimonial__footer {
  position: absolute;
  left: 31.75rem;                   /* 508 */
  top: 39.775154rem;                /* 636.4025 */
  width: 53.1875rem;                /* 851 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.testimonial__info {
  display: flex;
  align-items: baseline;
  gap: 1rem;                        /* 16 */
  line-height: 1.2;
  white-space: nowrap;
}
.testimonial__name {
  font-weight: 700;
  font-size: 1.5rem;                /* 24 */
  color: var(--orange);
}
.testimonial__role {
  font-weight: 400;
  font-size: 1rem;                  /* 16 */
  color: var(--black);
}
.testimonial__nav { display: flex; align-items: center; gap: 1.125rem; } /* 18 */
.nav-arrow {                        /* CSS circle; image is just the arrow */
  width: 2.25rem;                   /* 36 */
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.nav-arrow img { width: 100%; height: 100%; }
.nav-arrow--prev { transform: rotate(180deg); opacity: 0.42; }
.nav-arrow:hover { background: #f0f0f0; }

/* =========================================================
   CLIENTS  (1600 × 900, orange 80%)
   ========================================================= */
.clients {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-clients);
}
.clients__title {
  position: absolute;
  left: 0; right: 0;
  top: 7.923069rem;                 /* 126.77 */
  margin: 0;
  font-weight: 700;
  font-size: 3rem;                  /* 48 */
  line-height: 1;
  letter-spacing: -0.15rem;         /* -2.4px */
  text-align: center;
  color: var(--white);
}
.clients__grid {
  position: absolute;
  left: 17.5rem;                    /* 280 */
  top: 15.4375rem;                  /* 247 */
  display: grid;
  grid-template-columns: repeat(4, 12.5rem);   /* 200 */
  grid-template-rows: repeat(3, 7.5rem);        /* 120 */
  column-gap: 5rem;                 /* 80 */
  row-gap: 5rem;                    /* 80 */
}
.client {
  position: relative;
  width: 12.5rem;                   /* 200 */
  height: 7.5rem;                   /* 120 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client__piece { position: absolute; }
/* Single flattened logo (WP repeater item): center it, preserving ratio.
   Explicit width/height (not auto) + object-fit is the reliable pattern —
   auto-sizing a replaced element inside a flex container can ignore the
   image's intrinsic aspect ratio in some browsers and stretch it to fill. */
.client__piece--single {
  position: static;
  width: 90%;
  height: 80%;
  object-fit: contain;
}
.flip-y { transform: scaleY(-1); }  /* Figma rotate(180)·scaleX(-1) ≡ scaleY(-1) */

/* =========================================================
   CONTACT  (1600 × 900, white 90%)
   ========================================================= */
.contact {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-light);
  color: var(--black);
}
.stage--contact {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__inner {
  width: 65rem;                     /* 1040 — same container width as the Clients grid (Figma x=280, w=1040) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;                      /* 40 */
}
.contact__head {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1rem;                        /* 16 */
}
.contact__title {
  margin: 0;
  font-weight: 700;
  font-size: 3rem;                  /* 48 */
  line-height: 1;
  letter-spacing: -0.15rem;         /* -2.4px */
  color: var(--orange);
  white-space: nowrap;
}
.contact__sub {
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 0.875rem;              /* 14 */
  line-height: 1.5;
  color: var(--gray-desc);
}

.contact__form {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;                      /* 40 */
}
.form-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.form-card { gap: 1.25rem; }        /* 20 — left card fields gap */
.form-card--right { gap: 1.5rem; }  /* 24 — fields block + button */
.form-card__fields { display: flex; flex-direction: column; gap: 1.25rem; } /* 20 */

.field { display: flex; flex-direction: column; gap: 0.5rem; } /* 8 */
.field label {
  font-weight: 600;                 /* SemiBold */
  font-size: 0.875rem;              /* 14 */
  color: var(--black);
}

.field input,
.field textarea,
.cselect__trigger {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 0.625rem;          /* 10 */
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.875rem;              /* 14 */
  color: var(--black);
}
.field input,
.cselect__trigger { height: 3rem; padding: 0 0.875rem; } /* 48 / 14 */
.field textarea {
  height: 8.75rem;                  /* 140 */
  padding: 0.75rem 0.875rem;        /* 12 / 14 */
  line-height: 1.5;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--gray-placeholder); }
.field input:focus,
.field textarea:focus,
.cselect__trigger:focus-visible { outline: none; border-color: var(--orange); }

/* ---- Custom select (brand-themed dropdown) ---- */
.cselect { position: relative; }
.cselect__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
}
.cselect__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__value.is-placeholder { color: var(--gray-placeholder); }
.cselect__chevron { width: 1.125rem; height: 1.125rem; transition: transform 0.2s ease; }
.cselect.is-open .cselect__trigger { border-color: var(--orange); }
.cselect.is-open .cselect__chevron { transform: rotate(180deg); }

.cselect__menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--white);
  border: 1px solid #e5e5ea;
  border-radius: 0.625rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  max-height: 16rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.cselect.is-open .cselect__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cselect__option {
  padding: 0.625rem 0.75rem;
  border-radius: 0.4375rem;
  font-size: 0.875rem;              /* 14 */
  color: var(--black);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.cselect__option:hover { background: #fff1e8; color: var(--orange); }
.cselect__option.is-selected { background: var(--orange); color: var(--white); }

.form-actions { display: flex; justify-content: flex-end; width: 100%; }

/* ---- Form submit feedback (theme addition, not in the Figma mockup) ---- */
.form-feedback {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.5;
  display: none;
}
.form-feedback.is-visible { display: block; }
.form-feedback--success { color: #1a7f37; }
.form-feedback--error { color: #cc1f1f; }

/* =========================================================
   RESPONSIVE — stack the design below 1024px.
   (Figma only ships a 1600px desktop frame; this is a sensible
   stacked interpretation, kept on-spec for type/colour/spacing.)
   ========================================================= */
@media (max-width: 1024px) {
  /* stages stop scaling and flow naturally */
  .stage {
    position: static;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    margin: 0;
  }

  .header__inner { padding: 0 1.5rem; }

  /* HERO */
  .hero {
    height: auto;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
  }
  .hero__alpha {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 92%; height: auto;
    opacity: 0.22;
  }
  .hero__content {
    position: relative;              /* keep positioned for z-index … */
    left: auto; top: auto;           /* … but drop the desktop offsets */
    z-index: 2;
    display: block;                  /* block flow wraps reliably on mobile */
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero__content > * + * { margin-top: 1.5rem; }
  .hero__title { font-size: 2.5rem; }
  .hero__desc { width: 100%; max-width: 100%; overflow-wrap: break-word; }

  /* SERVICES (mobile) — scroll-LINKED crossfade. The section is tall to give
     scroll room; the stage PINS (sticky) and centers its content vertically.
     falealfa.js drives each detail's height directly from scroll position (a tent
     function), so the text opens to 100% then closes as the next opens. Because
     neighbouring tents sum to 1, the open height is ~constant → the centered
     block stays put: no jitter, and no empty gap. Heights are JS-driven, so the
     details must NOT have a CSS transition (it would fight the scroll). */
  .services { height: 360vh; padding: 0; overflow: visible; }
  .stage--services {
    position: sticky;
    top: 0;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1.5rem;
    overflow: hidden;
  }
  .services__list {
    position: static;
    transform: none !important;
    width: auto;
    font-size: 2rem;                /* 32 — 8 long names must fit the pinned 100vh stage */
    letter-spacing: -0.05rem;
    line-height: 1.05;
    white-space: normal;
  }
  .services__panel { display: none; }   /* single hover-panel is desktop-only */
  .services__list .service { width: max-content; max-width: 100%; margin: 0.5rem 0; }
  .services__list .service:first-child { margin-top: 0; }
  .service-detail { display: block; max-height: 0; opacity: 0; overflow: hidden; }
  .service-detail__inner { padding: 0.5rem 0 0.75rem; border-top: 1px solid var(--orange); margin-top: 0.4rem; }
  .service-detail .services__desc { position: static; width: 100%; text-align: left; font-size: 0.9375rem; line-height: 1.5; }
  .service-detail .services__btn { position: static; display: inline-flex; margin-top: 1rem; }

  /* TESTIMONIAL */
  .testimonial { height: auto; padding: 5rem 1.5rem; }
  .testimonial__alpha { position: static; margin-bottom: 2rem; }
  .testimonial__quote { display: none; }
  .testimonial__text { position: static; width: 100%; font-size: 1.875rem; margin-bottom: 2.5rem; }
  .testimonial__footer { position: static; width: 100%; flex-wrap: wrap; gap: 1.5rem; }
  .testimonial__info { white-space: normal; flex-wrap: wrap; gap: 0.25rem 1rem; }

  /* CLIENTS */
  .clients { height: auto; padding: 5rem 1.5rem; }
  .clients__title { position: static; margin: 0 0 3rem; }
  .clients__grid {
    position: static;
    margin: 0 auto;
    width: 100%;
    max-width: 34rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 2.5rem 1.5rem;
    justify-items: center;
  }
  .client { width: 100%; max-width: 12.5rem; height: auto; aspect-ratio: 5 / 3; }

  /* CONTACT — form fills the full width on mobile */
  .contact { height: auto; padding: 4rem 1.25rem; }
  .stage--contact { display: block; }
  .contact__inner { width: 100%; max-width: 100%; align-items: stretch; }
  .contact__form { flex-direction: column; gap: 1.5rem; }
  .form-card { width: 100%; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 2.25rem; }
  .services__list { font-size: 2.25rem; }      /* 36 */
  .testimonial__text { font-size: 1.5rem; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); max-width: 24rem; }
  .contact__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .contact__title { white-space: normal; }
  .nav__link { font-size: 2rem; }
}

/* =========================================================
   Reduced-motion: stop the hero rotation
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__earth { animation: none; }
}

/* ---- Language switcher (fixed, sits left of the hamburger) ---- */
.lang-switcher {
  position: fixed;                  /* same behavior as .menu-toggle */
  top: 1.5rem;
  right: 4.25rem;                   /* toggle right (1.5) + width (1.75) + 1rem gap */
  z-index: 120;                     /* above the nav overlay, like the toggle */
  display: flex;
  align-items: center;
  height: 1.75rem;                  /* matches .menu-toggle for vertical centering */
  gap: 0.625rem;
}
.lang-switcher__item {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}
.lang-switcher__item.is-current { color: #fff; }
a.lang-switcher__item:hover { color: #fff; }
.lang-switcher--dark .lang-switcher__item { color: rgba(17, 17, 17, 0.45); }
.lang-switcher--dark .lang-switcher__item.is-current,
.lang-switcher--dark a.lang-switcher__item:hover { color: #111; }
@media (max-width: 1023px) {
  .lang-switcher { right: 4rem; }
}

/* ---- Last Form (contact section) ----
   The Last Form template reuses the theme's .form-card/.field markup, so
   most styling comes from the rules above; these map the .lf-* wrapper,
   select control, submit button and feedback onto the section design. */
.contact .lf-form {
  width: 100%;
  flex-direction: row;              /* LF base is a column; the design is two cards side by side */
  flex-wrap: wrap;                  /* feedback message drops to its own row */
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;                      /* 40 — same as .contact__form */
}
.contact .lf-form > .form-card { flex: 1 1 0; min-width: 20rem; }
.contact .lf-form__message { flex-basis: 100%; order: 10; text-align: center; }
.field select {
  width: 100%;
  height: 3rem;
  padding: 0 0.875rem;
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 0.625rem;
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--black);
  appearance: none;
  -webkit-appearance: none;
}
.field select:focus { outline: none; border-color: var(--orange); }
.contact .lf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.0875rem;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
}
.contact .lf-form__message {
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
}
.contact .lf-form__message--success { color: #1a7f37; }
.contact .lf-form__message--error { color: #cc1f1f; }
.field .lf-field__error { font-size: 0.8125rem; color: #cc1f1f; }
/* SVG chevron injected by the select enhancer (falealfa.js) */
svg.cselect__chevron { stroke: var(--black); }
@media (max-width: 1024px) {
  .contact .lf-form { flex-direction: column; gap: 1.5rem; }
}

/* ---- Footer (ported from the static traducoes page, Figma 173:94) ---- */
.tfooter {
  width: 100%;
  padding: 3.75rem 5rem;            /* 60 / 80 */
  display: flex;
  flex-direction: column;
  gap: 3.75rem;                     /* 60 */
  background: #111;
}
.tfooter__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.tfooter__brand { width: 18.75rem; display: flex; flex-direction: column; gap: 1rem; }
.tfooter__logo { display: flex; align-items: center; gap: 0.75rem; }
.tfooter__logo img { width: 2.5rem; height: 2.5rem; }
.tfooter__logo span {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.04rem;
  color: var(--white);
  white-space: nowrap;
}
.tfooter__brand p { font-size: 0.875rem; color: #999; }
.tfooter__col { width: 15rem; display: flex; flex-direction: column; gap: 1.25rem; }
.tfooter__col--contact { width: 17.5rem; }
.tfooter__col h3 { margin: 0; font-weight: 700; font-size: 1.125rem; color: var(--white); }
.tfooter__col ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #999;
}
.tfooter__col a { color: #999; transition: color 0.2s ease; }
.tfooter__col a:hover { color: var(--orange); }
.tfooter__divider { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid #333; }
.tfooter__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.tfooter__bottom .copyright { margin: 0; font-size: 0.875rem; color: #666; }
.tfooter__bottom .copyright a { color: #999; }
.tfooter__bottom .copyright a:hover { color: var(--orange); }
.tfooter__social { display: flex; gap: 1rem; }
.tfooter__social a {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #333;
  border-radius: 1.125rem;
  transition: border-color 0.2s ease;
}
.tfooter__social a:hover { border-color: var(--orange); }
.tfooter__social img { width: 1.25rem; height: 1.25rem; }
@media (max-width: 1024px) {
  .tfooter { padding: 3rem 1.5rem; gap: 2.5rem; }
  .tfooter__top { flex-wrap: wrap; gap: 2rem; }
  .tfooter__brand, .tfooter__col, .tfooter__col--contact { width: 100%; }
  .tfooter__bottom { flex-wrap: wrap; }
}

/* ---- Single service (placeholder layout until a dedicated design exists) ---- */
.service-entry {
  min-height: 70vh;
  padding: 10rem 1.5rem 6rem;       /* clears the fixed header */
  background: var(--black);
}
.service-entry .container { max-width: 50rem; margin: 0 auto; }
.service-entry__thumbnail img { max-width: 100%; height: auto; border-radius: 0.75rem; margin-bottom: 2rem; }
.service-entry__title {
  margin: 0 0 2rem;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.1rem;
  line-height: 1.1;
}
.service-entry__content { font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }
.service-entry__content p { margin: 0 0 1.25rem; }
@media (max-width: 1024px) {
  .service-entry { padding: 8rem 1.5rem 4rem; }
  .service-entry__title { font-size: 2.25rem; }
}
