/* ===========================================================================
   Flayr — public site: global nav, footer, marketing sections, shop, and the
   customer account shell. Uses tokens from flayr.css only.
   ======================================================================== */

/* -------------------------------------------------------------- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 252, .78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 52px; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 22px; width: auto; }
/* Text wordmark (jamiesteedman.co.uk uses the name set in Geist instead of an image logo) */
.nav-wordmark { font-size: 17px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); white-space: nowrap; }
.nav-wordmark:hover { text-decoration: none; color: var(--ink); }
.nav-actions .nav-crosslink { width: auto; height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--surface-2); font-size: 12px; font-weight: 500; display: inline-flex; gap: 4px; align-items: center; opacity: 1; white-space: nowrap; }
.nav-actions .nav-crosslink .icon { width: 13px; height: 13px; }
.nav-actions .nav-crosslink:hover { background: var(--surface-3); }
.auth-wordmark { display: block; text-align: center; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 28px; }
.auth-wordmark:hover { text-decoration: none; }
.footer-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .footer-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { color: var(--ink); opacity: .8; font-size: 13px; letter-spacing: -0.005em; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-actions a, .nav-actions button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); opacity: .85; background: none; border: 0; }
.nav-actions a:hover, .nav-actions button:hover { opacity: 1; background: rgba(13, 22, 37, .05); text-decoration: none; }
.nav-actions .icon { width: 17px; height: 17px; }
.nav-count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--teal); color: var(--ink); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.nav-burger { display: none !important; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: grid !important; }
  .nav-inner { justify-content: space-between; }
  /* backdrop-filter would make the nav the containing block of the fixed panel. */
  .nav.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; inset: 52px 0 0 0; background: var(--bg); padding: 16px var(--gutter) 40px; overflow-y: auto; margin: 0;
  }
  .nav.is-open .nav-links li { width: 100%; }
  .nav.is-open .nav-links a { display: block; font-size: 28px; font-weight: 600; opacity: 1; padding: 8px 0; letter-spacing: -0.02em; }
}

/* Local sub-nav — "Services" bar under the global nav, like Apple's product nav */
.subnav { position: sticky; top: 52px; z-index: 90; background: rgba(250, 250, 252, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 -1px 0 var(--hairline); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 52px; }
.subnav-title { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.subnav-links { display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { font-size: 12px; color: var(--ink); opacity: .8; white-space: nowrap; }
.subnav-links a[aria-current="page"] { opacity: .5; pointer-events: none; }

/* ----------------------------------------------------------- sections --- */
main { display: block; min-height: 50vh; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-white { background: var(--surface); }
.section-fill { background: var(--surface-2); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .8); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark .hero-title { color: #fff; }
.section-dark .eyebrow, .section-dark .link-arrow { color: var(--teal); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .lead { color: var(--muted); }
.section-head-left { text-align: left; margin-left: 0; }

/* Hero — big centred headline, lead, two actions, then a rounded media block */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero .eyebrow { font-size: var(--fs-4); font-weight: 600; margin-bottom: 8px; }
.hero .lead { max-width: 760px; margin: 18px auto 0; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-media { margin-top: clamp(40px, 6vw, 64px); }
.hero-media .media { border-radius: var(--r-xl); }

/* Tiles — Apple home-page style: rounded panels, centred copy on top */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-1 { grid-template-columns: minmax(0, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border-radius: var(--r-xl); overflow: hidden;
  --pad-x: clamp(20px, 3vw, 40px);
  padding: clamp(36px, 5vw, 56px) var(--pad-x) 0; min-height: 520px; color: var(--text);
}
.tile-dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.tile-dark h2, .tile-dark h3 { color: #fff; }
.tile-dark .link-arrow { color: var(--teal); }
.tile-mint { background: var(--mint-soft); }
.tile-fill { background: var(--surface-2); }
.tile h2, .tile h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.tile .tile-sub { font-size: var(--fs-lead); line-height: 1.35; margin-bottom: 14px; color: inherit; opacity: .9; }
.tile .links-inline { margin-bottom: 24px; }
/* Tile images run edge to edge along the bottom of the tile; the tile's own
   rounded corners clip them. is-inset is kept as an alias so older markup
   gets the same full-bleed look. */
.tile-media, .tile-media.is-inset { display: block; margin: auto calc(var(--pad-x) * -1) 0; width: calc(100% + var(--pad-x) * 2); padding: 0; }
.tile-media img, .tile-media video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
a.tile { text-decoration: none; transition: transform .4s var(--ease); }
a.tile:hover { transform: scale(1.006); text-decoration: none; }
@media (max-width: 860px) { .tiles, .tiles-3 { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 440px; } }

/* Split feature: copy one side, rounded media the other */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.is-reversed > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.is-reversed > :first-child { order: 0; } }

/* Numbered feature cards */
.features { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { --pad: clamp(24px, 3vw, 36px); --radius: var(--r-xl); background: var(--surface); border-radius: var(--radius); padding: var(--pad); }
.section-white .feature { background: var(--surface-2); }
.section-white .stat, .section-white .card:not(.card-fill) .stat { background: var(--surface-2); }  /* white on white has no edge */
.feature .feature-num { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--teal-ink); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.feature h3 { font-size: var(--fs-4); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 960px) { .features, .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features, .features-2, .features-4 { grid-template-columns: minmax(0, 1fr); } }

/* Horizontal scrolling gallery of cards */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* Client logo strip */
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 56px); }
.logos img { height: 30px; width: auto; max-width: 130px; object-fit: contain; filter: brightness(0) saturate(0); opacity: .45; transition: opacity .2s; }
.logos img:hover { opacity: .8; }

/* Big numbers */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.figure { text-align: center; padding: 32px 16px; background: var(--surface); border-radius: var(--r-xl); }
.figure strong { display: block; font-size: clamp(40px, 5.5vw, 64px); font-weight: 650; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.figure span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 640px) { .figures { grid-template-columns: minmax(0, 1fr); } }

/* Chips list (sectors etc.) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 10px 18px; border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; }
.section-white .chip { background: var(--surface-2); }

/* FAQ accordion — native <details> */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--r-lg); margin-bottom: 10px; overflow: hidden; }
.section-white .faq details { background: var(--surface-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 500; color: var(--ink); font-size: var(--fs-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .25s var(--ease); flex: none; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); font-size: var(--fs-sm); }
.faq details > div p:last-child { margin: 0; }

/* Showreel / video card with a play button */
.reel { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.reel img, .reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; transition: transform .6s var(--ease), opacity .3s; }
.reel:hover img { transform: scale(1.02); opacity: 1; }
.reel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(13, 22, 37, .75)); }
.reel-caption .eyebrow { color: var(--teal); margin-bottom: 4px; font-size: var(--fs-xs); }
.reel-caption h3 { color: #fff; font-size: var(--fs-4); margin: 0; }
.reel-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink); transition: transform .25s var(--ease); }
.reel:hover .reel-play { transform: scale(1.08); }
.reel-play .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Call-to-action band */
.cta { text-align: center; }
.cta .lead { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* ------------------------------------------------------------- footer --- */
.footer { background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 40px 0 28px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--ink); }
.footer-note { padding-bottom: 18px; box-shadow: inset 0 -1px 0 var(--hairline); margin-bottom: 22px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.footer-cols h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 8px; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; box-shadow: inset 0 1px 0 var(--hairline); }
.footer-base nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 6px; }
.footer-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
.footer-social a:hover { color: var(--ink); background: var(--surface-3); }
.footer-social .icon { width: 15px; height: 15px; }
.footer-logo img { height: 36px; width: auto; margin-bottom: 14px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- shop --- */
.product-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.product-card:hover { text-decoration: none; }
.product-card .media { aspect-ratio: 1; border-radius: var(--r-lg); margin-bottom: 14px; background: var(--surface); }
.product-card .media img { transition: transform .6s var(--ease); }
.product-card:hover .media img { transform: scale(1.03); }
.product-card .product-cat { font-size: var(--fs-2xs); color: var(--teal-ink); font-weight: 500; margin-bottom: 2px; }
.product-card h3 { font-size: var(--fs-body); font-weight: 600; margin: 0 0 4px; letter-spacing: -0.015em; }
.product-card .price { font-size: var(--fs-sm); color: var(--text); }
.price del { color: var(--faint); margin-right: 6px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-gallery { display: grid; gap: 12px; }
.product-gallery .media { aspect-ratio: 1; border-radius: var(--r-xl); background: var(--surface); }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-thumbs button { padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); aspect-ratio: 1; opacity: .6; transition: opacity .2s; }
.product-thumbs button.is-active, .product-thumbs button:hover { opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-buy { position: sticky; top: 76px; }
.product-buy .price { font-size: var(--fs-3); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 20px; }
@media (max-width: 860px) { .product-layout { grid-template-columns: minmax(0, 1fr); } .product-buy { position: static; } }

.basket-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; }
.basket-line + .basket-line { box-shadow: inset 0 1px 0 var(--hairline); }
.basket-line .media { width: 88px; aspect-ratio: 1; border-radius: var(--r); }
.summary { background: var(--surface); border-radius: var(--r-xl); padding: 28px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: var(--fs-sm); }
.summary-row.is-total { font-size: var(--fs-4); font-weight: 600; color: var(--ink); padding-top: 14px; margin-top: 8px; box-shadow: inset 0 1px 0 var(--hairline); }

/* ------------------------------------------------------ auth + account --- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 44px); }
.auth-card .auth-logo { display: block; margin: 0 auto 28px; height: 28px; width: auto; }
.auth-card h1 { font-size: 28px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 28px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: var(--fs-sm); color: var(--muted); }
.code-input { text-align: center; font-family: var(--mono); font-size: 28px !important; letter-spacing: .4em; padding-left: .4em !important; }

.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(32px, 5vw, 56px) 0 96px; align-items: start; }
.account-side { position: sticky; top: 76px; }
.account-side .who { margin-bottom: 20px; }
.account-side .who strong { display: block; color: var(--ink); font-size: var(--fs-body); }
.account-side .who span { color: var(--muted); font-size: var(--fs-xs); }
.account-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-sm); }
.account-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.account-nav a.is-active { background: var(--surface); color: var(--ink); font-weight: 500; }
.account-nav .icon { width: 17px; height: 17px; color: var(--muted); }
.account-nav a.is-active .icon { color: var(--teal-deep); }
.account-main > h1 { font-size: var(--fs-2); margin-bottom: 24px; }
@media (max-width: 860px) {
  .account { grid-template-columns: minmax(0, 1fr); }
  .account-side { position: static; }
  .account-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .account-nav a { white-space: nowrap; }
  .account-side .who { display: none; }
}

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 80px) 0 96px; }
.legal .prose { margin: 0 auto; }
.legal h1 { font-size: var(--fs-1); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 40px; }
