/* ══════════════════════════════════════════════════════════════════════
   CATTORY · CANONICAL NAV  ·  single source of truth
   ----------------------------------------------------------------------
   The floating nav is defined in exactly THREE places and nowhere else:
     · markup     → website/_src/nav.html   (baked per page/locale by build.mjs)
     · styles     → this file               (css/nav.css)
     · behaviour  → website/js/site-nav.js
   No page may re-style or re-mark a nav inline. See DESIGN.md.

   Self-sufficient: every design token is used with a fallback, so the nav
   renders identically whether the host page defines --lime/--ink/--disp/…
   (the home + /web do) or not (sub-pages inherit from css/shared.css).
   Canonical look = the home / /web nav (Space Grotesk · white/ink/lima),
   which is the site design reference.
   ══════════════════════════════════════════════════════════════════════ */

/* ── floating pill ─────────────────────────────────────────────────── */
.nav{
  position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:200;
  display:flex; align-items:center; justify-content:space-between; gap:30px;
  padding:11px 11px 11px 22px; width:calc(100% - 48px); max-width:1100px;
  background:rgba(14,16,12,0.55);
  backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%);
  border:1px solid rgba(255,255,255,0.1); border-radius:100px;
  transition:max-width .55s var(--ease,cubic-bezier(0.22,1,0.36,1)),
             background .4s var(--ease,cubic-bezier(0.22,1,0.36,1));
}
.nav.scrolled{ background:rgba(14,16,12,0.82); }

/* ── brand ─────────────────────────────────────────────────────────── */
.nav__brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:#fff; }
.nav__logo-img{ height:26px; width:auto; filter:brightness(10); }
.nav__name{
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-size:16px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:#fff; text-decoration:none;
}

/* ── links ─────────────────────────────────────────────────────────── */
.nav__links{ display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }
.nav__links a{
  display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 15px;
  font-size:13px; font-weight:500; line-height:1; white-space:nowrap;
  color:#fff; text-decoration:none; border-radius:100px; transition:all .25s ease;
}
.nav__links a:hover,
.nav__links a.active{ background:rgba(255,255,255,0.12); color:#fff; }

/* secondary links (Work / Services) · Space Grotesk, matching the canonical nav */
.nav__links a.nav__link-text{
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-weight:500; letter-spacing:0.1px;
}

/* premium link (Creators) · Space Grotesk + lima + ✦ */
.nav__links a.nav__link--premium{
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-weight:600; font-size:13.5px; letter-spacing:0.1px; color:var(--lime,#d4ff4f);
}
.nav__links a.nav__link--premium::after{ content:'✦'; font-size:9px; opacity:.85; margin-left:5px; }
.nav__links a.nav__link--premium:hover,
.nav__links a.nav__link--premium.active{ color:var(--lime,#d4ff4f); background:rgba(212,255,79,0.1); }

/* language switcher (globe + EN/ES) · <button> on the flat source, <a> in the build */
.lang-switcher{
  display:inline-flex; align-items:center; gap:6px; padding:8px 12px;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  border-radius:100px; color:#fff;
  font-family:var(--sans,'Google Sans Flex',-apple-system,sans-serif);
  font-size:11px; font-weight:600; letter-spacing:.5px; cursor:pointer;
  text-decoration:none; transition:all .25s ease;
}
.lang-switcher:hover{ background:rgba(255,255,255,0.1); }
.lang-switcher svg{ opacity:.7; flex-shrink:0; }

/* CTA (Contact us) */
.nav__cta{
  font-family:var(--sans,'Google Sans Flex',-apple-system,sans-serif);
  font-size:13px; font-weight:600;
  color:var(--ink,#101210) !important; background:#fff !important;
  padding:9px 20px !important; border-radius:100px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.nav__cta:hover{ transform:scale(1.03); box-shadow:0 4px 24px rgba(255,255,255,0.2); }

/* ── contact popover ───────────────────────────────────────────────── */
.contact-wrap{ position:relative; }
.contact-popover{
  position:absolute; top:calc(100% + 14px); right:0; width:322px; padding:12px;
  background:rgba(14,16,12,0.92);
  backdrop-filter:blur(28px) saturate(160%); -webkit-backdrop-filter:blur(28px) saturate(160%);
  border:1px solid rgba(255,255,255,0.08); border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,0.55);
  opacity:0; visibility:hidden; transform:translateY(-6px) scale(0.98); transform-origin:top right;
  transition:opacity .22s ease, transform .22s var(--ease,cubic-bezier(0.22,1,0.36,1)), visibility .22s;
  z-index:200;
}
.contact-wrap.open .contact-popover{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.contact-item{
  display:flex; align-items:center; gap:14px; padding:14px; border-radius:14px;
  text-decoration:none; color:#fff;
  transition:background .2s ease, box-shadow .2s ease;
}
/* hover · the row lights up white and its text brightens (selected item pops) */
.contact-item:hover{
  background:rgba(255,255,255,0.16);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.14);
}
.contact-item__icon{
  width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center; color:var(--lime,#d4ff4f); flex-shrink:0;
  transition:background .2s ease;
}
.contact-item:hover .contact-item__icon{ background:rgba(212,255,79,0.2); }
/* generous line-height + gap so label/value read as two clear lines, any font */
.contact-item__text{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.contact-item__label{
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-size:10px; font-weight:500; letter-spacing:1.5px; text-transform:uppercase;
  line-height:1; color:rgba(255,255,255,0.5); transition:color .2s ease;
}
.contact-item__value{
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-size:15px; font-weight:500; line-height:1; color:rgba(255,255,255,0.82);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color .2s ease;
}
.contact-item:hover .contact-item__label{ color:rgba(255,255,255,0.9); }
.contact-item:hover .contact-item__value{ color:#fff; }

/* ── responsive collapse ───────────────────────────────────────────────
   .hidem   → hidden ≤860px (secondary links: Work / Services)
   .hidem-xs→ hidden ≤600px (Creators too · nav keeps brand + lang + CTA)
   The canonical markup (_src/nav.html) carries these classes on the <li>s. */
@media (max-width:860px){
  .nav__links .hidem{ display:none; }
}
@media (max-width:600px){
  .nav{ width:calc(100% - 20px); gap:10px; padding:7px 8px 7px 16px; }
  .nav__links .hidem-xs{ display:none; }
  .nav__logo-img{ height:22px; }
  .nav__name{ font-size:15px; letter-spacing:1.4px; }
  .nav__cta{ padding:11px 18px !important; }      /* larger touch target (~39px) */
  .lang-switcher{ padding:10px 12px; }            /* larger touch target (~35px) */
}

/* ══════════════════════════════════════════════════════════════════════
   CANONICAL FOOTER  ·  single source of truth  (markup → _src/footer.html,
   injected per locale by build.mjs). Self-sufficient with token fallbacks.
   The "Have an idea" CTA is page-specific and sits ABOVE this footer.
   ══════════════════════════════════════════════════════════════════════ */
.site-footer{
  position:relative; z-index:8; background:var(--dark,#0e100c); color:#fff; overflow:hidden;
  padding:80px 0 40px; border-radius:clamp(28px,4vw,52px) clamp(28px,4vw,52px) 0 0;
  /* overlap the section above by >= the corner radius, so the rounded top corners reveal
     that section (not the page background). Without this the cream body shows as light
     notches at the footer's top-left/right corners on cream-body pages. */
  margin-top:clamp(-52px,-4vw,-28px);
}
.site-footer__wrap{ max-width:var(--max-width,1100px); margin:0 auto; padding:0 clamp(24px,5vw,40px); } /* mobile gutter matches page content (24px) instead of a fixed 40px */
.site-footer__main{ display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:40px; padding-bottom:52px; }
.site-footer__name{
  display:block;
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-weight:700; letter-spacing:-0.5px; font-size:22px; color:#fff;
}
.site-footer__tag{ margin-top:18px; font-size:15px; line-height:1.55; color:rgba(255,255,255,0.8); max-width:300px; }
.site-footer__email{
  display:inline-block; margin-top:18px; text-decoration:none;
  font-family:var(--disp,'Space Grotesk','Google Sans Flex',sans-serif);
  font-size:16px; font-weight:500; color:var(--lime,#d4ff4f);
}
.site-footer__col-h{ font-size:11px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.55); margin-bottom:14px; }
.site-footer__col a{ display:flex; align-items:center; gap:10px; font-size:15px; color:rgba(255,255,255,0.8); padding:11px 0; min-height:44px; box-sizing:border-box; text-decoration:none; transition:color .2s ease; } /* 44px touch target */
.site-footer__col a:hover{ color:#fff; }
.site-footer__col a svg{ width:17px; height:17px; flex-shrink:0; }
.site-footer__bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:26px; border-top:1px solid rgba(255,255,255,0.1); font-size:12.5px; color:rgba(255,255,255,0.55); }
@media (max-width:760px){
  .site-footer__main{ grid-template-columns:1fr; gap:30px; }
  .site-footer__bar{ flex-direction:column; align-items:flex-start; gap:8px; }
}
