/* =============================================================
   A-Z Shades — real site chrome for the Design Studio page.

   The studio page used to ship the OLD site's header/topbar/nav/footer, so its
   shape, spacing, type scale, menu and footer never matched index.html or the
   sector pages — only the colours did. These rules are the SAME chrome the
   sector pages use (lifted from the shell()/STYLE templates in
   _design-src/build-sectors.js), with three deliberate deviations for an app
   page (documented inline below).

   Every rule is SCOPED to a chrome root ([data-nav], [data-nav-menu], .foot)
   so it can never leak into the studio app, which has its own `.btn` /
   `.brand` / `.nav-actions` classes coming from styles.css + design.css.
   Loaded last, after design-theme.css.
   ============================================================= */

:root {
  --accent: #F7941E;
  --accent-ink: #9A4E08;
}

/* ---------------------------------------------------------------
   Top nav
   DEVIATION 1: the site nav is `position:fixed` and starts TRANSPARENT with
   white text because it floats over a dark hero image. The studio has no hero
   — the app starts immediately — so here the nav is `sticky` (it stays in flow
   so the app can be exactly `100svh - header`) and is permanently in the
   frosted/solid state the other pages fade into on scroll.
   DEVIATION 2: z-index 40, not 100. The studio's overlays sit at 60 (AR modal),
   80 (quote drawer), 120 (toast) and 200 (onboarding); a z-100 nav would paint
   on top of all of them. 40 keeps it above the app (max 8) and below every modal.
   --------------------------------------------------------------- */
[data-nav] {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 13px clamp(20px, 6vw, 96px);
  font-family: 'Poppins', system-ui, sans-serif;
  color: #1B2A32;
  background: rgba(246, 244, 240, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(27, 42, 50, .08);
}
[data-nav] .brand { display: inline-flex; align-items: center; text-decoration: none; }
[data-nav] .brand img { height: 44px; width: auto; display: block; }
[data-nav-links] { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
[data-nav] .navlink {
  color: inherit; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 1px;
  /* "Projects ▾" carries an inline caret svg — never let it wrap to a second line */
  display: inline-flex; align-items: center; white-space: nowrap;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s cubic-bezier(.2, .7, .2, 1);
}
[data-nav] .navlink:hover { background-size: 100% 1.5px; }
/* The sector pages bold this link with a bare `.studio` class. We CANNOT reuse
   that here: design.css styles bare `.studio` as the full-viewport app grid, so
   the nav anchor would become a 100svh grid. Hence `.is-studio`. */
[data-nav] .navlink.is-studio { font-weight: 600; }
[data-nav] .navlink[aria-current="page"] { color: var(--accent-ink); background-size: 100% 1.5px; }
[data-nav] .nav-actions { display: flex; align-items: center; gap: 12px; }

/* chrome buttons — scoped, so the studio toolbar's own .btn is untouched */
[data-nav] .btn, [data-nav-menu] .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px;
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 15.5px;
  text-decoration: none; cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s, box-shadow .35s, color .3s;
}
[data-nav] .btn-primary, [data-nav-menu] .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(247, 148, 30, .85); }
[data-nav] .btn-primary:hover, [data-nav-menu] .btn-primary:hover { transform: translateY(-2px); background: #ff9f2e; color: #fff; }
[data-nav] .btn-sm { min-height: 46px; padding: 0 24px; font-size: 14.5px; }

[data-nav-burger] { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0; background: transparent; border: none; cursor: pointer; color: inherit; }
[data-nav-burger] span { display: block; width: 24px; height: 2px; background: currentColor; margin: 0 auto; }

/* Projects dropdown (same as the other pages' .nav-drop) */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop .caret { width: 10px; height: 6px; margin-left: 6px; transition: transform .3s; }
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
.drop-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 14px; opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .25s, translate .25s, visibility 0s .25s; }
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .25s, translate .25s; }
.drop-card { display: flex; flex-direction: column; min-width: 200px; padding: 10px; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border: 1px solid rgba(27,42,50,.1); border-radius: 16px; box-shadow: 0 24px 50px -22px rgba(20,32,42,.4); }
.drop-card a { color: #1B2A32; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 10px 14px; border-radius: 10px; transition: background .2s, color .2s; }
.drop-card a:hover { background: #FFF4E6; color: var(--accent-ink); }
.drop-card a:first-child { border-bottom: 1px solid rgba(27,42,50,.08); border-radius: 10px 10px 0 0; margin-bottom: 4px; }

/* ---------------------------------------------------------------
   Full-screen mobile menu (z above the studio's onboarding/toast overlays)
   --------------------------------------------------------------- */
[data-nav-menu] {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column;
  padding: 22px clamp(22px, 7vw, 44px);
  background: #14202A; color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
[data-nav-menu] .mm-top { display: flex; align-items: center; justify-content: space-between; }
[data-nav-menu] .mm-top button { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 0 6px; }
[data-nav-menu] nav { display: flex; flex-direction: column; margin-top: 20px; }
[data-nav-menu] nav a { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 7vw, 2.4rem); color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
[data-nav-menu] .mm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
[data-nav-menu] .mm-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
[data-nav-menu] .mm-sub a { font-family: 'Poppins', system-ui, sans-serif; font-weight: 500; font-size: 1rem; color: rgba(255,255,255,.72); border-bottom: 0; padding: 4px 0; }
[data-nav-menu] .mm-foot > a:first-child { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .98rem; }

@media (max-width: 900px) {
  [data-nav-links] { display: none; }
  [data-nav-burger] { display: inline-flex; }
}

/* ---------------------------------------------------------------
   Footer (identical to the sector pages)
   --------------------------------------------------------------- */
.foot { background: #0F1920; color: rgba(255, 255, 255, .72); padding: clamp(64px, 8vw, 110px) 0 40px; font-family: 'Poppins', system-ui, sans-serif; }
.foot .wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 96px); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(34px, 5vw, 64px); }
.foot nav, .foot-grid > div:last-child { display: flex; flex-direction: column; gap: 11px; }
.foot p { margin: 0 0 10px; font-size: .95rem; line-height: 1.6; }
.foot a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem; }
.foot a:hover { color: #fff; }
.foot .fh { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin-bottom: 6px; }
.foot .fbig { color: #fff; font-weight: 600; font-size: 1.05rem; }
.foot .faddr { font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.foot .tiny { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.foot-legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .5); }
.foot-legal a { color: var(--accent); }

/* The app's height is owned by design.css: `calc(100svh - var(--header-h))` on
   desktop, and `height:auto` (stacked, 58vh stage) under 880px. Do NOT restate
   it here — a `.design-page .studio` rule would out-specify the mobile
   `height:auto` and break the stacked layout. js/chrome.js just measures the
   real nav height into --header-h so the desktop calc is exact. */

/* DEVIATION 3: no [data-mobilebar]. The rest of the site pins a Call/Free-Quote
   bar to the bottom on mobile; here that would sit on top of the panel's own
   persistent "Get my quote & price" CTA and eat ~72px of an already tight app
   viewport. The studio's toolbar + panel CTA cover the same intent. */
