/* ============================================================
   PLATFORM KIT — the component stylesheet that used to live,
   unscoped, inside /platform-theme.css.

   SMOS-298. platform-theme.css is loaded on every route from
   src/app/(frontend)/layout.tsx, and its own comment describes it
   as "the platform's own design tokens ... the whole app's
   foundation". Tokens app-wide is right. But the same file also
   carried a full component stylesheet — .card .band .sec-head
   .wrap .btn .faq .menu-row and the rest — written against
   exactly the class names the shared block components emit. So
   every tenant shell inherited a component kit it never opted
   into, and each new theme paid the same tax again.

   HOW IT SURFACED, and note that it took RENDERING to find, not
   reading: `.sec-head{text-align:center;max-width:660px}` was
   centring every `.aw .sec-head` on Artistic, including a section
   that had already shipped and that several people had looked at.
   That is the whole failure mode — silent, visual, invisible to a
   diff and to `tsc`. Two other themes were already paying it in
   code: artistic.css overrides `.sec-head` inside `.aw`, and
   studio.css neutralises `.ph`'s gradient by hand.

   WHAT CHANGED: nothing about these rules except WHERE they
   apply. A surface opts in by putting `platform-kit` on its root
   element; everything else stops inheriting them.

   `:where()` rather than a plain `.platform-kit ` prefix, and this
   is load-bearing. :where() contributes ZERO specificity, so
   `:where(.platform-kit) .card` scores exactly what `.card` scored
   before. A plain prefix would score one class higher and start
   WINNING cascade fights these rules used to lose — which matters
   here because Next bundles smos-home.css/careers.css ahead of
   this file in the document, so same-specificity ties are already
   resolved in this file's favour by source order. Keeping
   specificity identical is what makes this a pure restriction of
   scope rather than a silent restyle.

   TOKENS AND THE RESET STAY IN platform-theme.css. Custom
   properties have to be global — five stylesheets read --wine /
   --gold / --cream / --sand — and so does the `*` box-sizing
   reset, which every sheet in the app was written against.
   ============================================================ */

/* Element defaults. These applied to every route, so any surface
   rendering a bare <h1> or <a> — with no class at all — was
   restyled by a file it had never heard of.

   `a{color:inherit;text-decoration:none}` was the sharpest of
   them and is an accessibility defect rather than a cosmetic one:
   on any surface that did not set its own link styling, links
   rendered visually identical to body text, carrying their meaning
   in neither colour nor decoration. Scoped, such a surface gets
   the user agent's own distinguishable link back. */
html:where(:has(.platform-kit)){scroll-behavior:smooth;}
/* `overflow-x:hidden` app-wide MASKS the bug class it looks like it
   prevents: a layout that blows out its container clips silently
   instead of showing a scrollbar. It also invalidates the obvious
   test — `scrollWidth > innerWidth` reads clean on every page while
   this is on, so measure a child's bounding rect against its
   container instead. Kept for the surfaces that were designed with
   it; no longer imposed on the ones that were not. */
body:where(:has(.platform-kit)){overflow-x:hidden;}
:where(.platform-kit) h1,:where(.platform-kit) h2,:where(.platform-kit) h3,:where(.platform-kit) .serif{font-family:'Fraunces',Georgia,serif;font-weight:500;letter-spacing:-.005em;}
:where(.platform-kit) a{color:inherit;text-decoration:none;}

:where(.platform-kit) .wrap{max-width:1200px;margin:0 auto;padding:0 30px;}

/* image placeholder tiles (art-direction stand-ins for real photos) */
:where(.platform-kit) .ph{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--sand),var(--sand-2));border-radius:18px;}
:where(.platform-kit) .ph::after{content:'';position:absolute;inset:0;background:radial-gradient(120% 80% at 30% 20%,rgba(255,255,255,.4),transparent 60%);}
:where(.platform-kit) .ph .cap{position:absolute;left:14px;bottom:11px;font-family:'Fraunces',serif;font-style:italic;font-size:13px;color:var(--wine);opacity:.75;z-index:2;}
:where(.platform-kit) .ph.wine{background:linear-gradient(135deg,#7A3247,#3A1620);} :where(.platform-kit) .ph.wine .cap{color:var(--gold-text);opacity:.9;}
:where(.platform-kit) .ph.sage{background:linear-gradient(135deg,#B4BFA9,#8C9A80);} :where(.platform-kit) .ph.sage .cap{color:#33402c;}
:where(.platform-kit) .ph.candle{background:radial-gradient(ellipse at 60% 45%,rgba(214,161,92,.4),transparent 55%),linear-gradient(120deg,#3A1620,#5A2233 60%,#2A1014);} :where(.platform-kit) .ph.candle .cap{color:var(--gold-text);}

/* buttons */
:where(.platform-kit) .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:14px;border-radius:100px;padding:13px 28px;cursor:pointer;border:none;transition:all .2s;font-family:'Inter',sans-serif;white-space:nowrap;}
:where(.platform-kit) .btn-primary{background:var(--wine);color:var(--cream);box-shadow:0 6px 20px rgba(90,34,51,.28);}
:where(.platform-kit) .btn-primary:hover{background:var(--wine-deep);transform:translateY(-1px);}
:where(.platform-kit) .btn-gold{background:var(--gold);color:var(--wine-deep);} :where(.platform-kit) .btn-gold:hover{background:var(--gold-soft);}
:where(.platform-kit) .btn-ghost{background:transparent;color:var(--espresso);border:1px solid var(--line);} :where(.platform-kit) .btn-ghost:hover{border-color:var(--wine);color:var(--wine);}
:where(.platform-kit) .btn-lg{padding:16px 34px;font-size:15px;}

/* announcement */
:where(.platform-kit) .announce{background:var(--wine-deep);color:var(--cream);text-align:center;font-size:12.5px;letter-spacing:.03em;padding:9px 16px;}
:where(.platform-kit) .announce b{color:var(--gold-text);font-weight:600;}
/* NOTE: header + nav rules intentionally REMOVED — smos-home.css is the sole
   authority for the header (fixed, transparent-over-hero, scroll-aware). Keeping
   them here made theme.css win the cascade and forced a sticky cream nav bar. */

/* page hero (compact wine band for inner pages) */
:where(.platform-kit) .page-hero{background:radial-gradient(ellipse 70% 120% at 85% 30%,rgba(214,161,92,.22),transparent 60%),linear-gradient(120deg,#3A1620,#5A2233);color:var(--cream);padding:72px 0 66px;text-align:center;}
:where(.platform-kit) .page-hero .eyebrow{font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-text);font-weight:600;margin-bottom:16px;}
:where(.platform-kit) .page-hero h1{font-size:clamp(40px,6vw,62px);line-height:1.02;color:var(--cream);margin-bottom:14px;}
:where(.platform-kit) .page-hero h1 em{font-style:italic;color:var(--gold-text);}
:where(.platform-kit) .page-hero p{font-size:18px;color:rgba(248,242,233,.8);max-width:620px;margin:0 auto;}

/* section shells */
:where(.platform-kit) section.blk{padding:88px 0;}
:where(.platform-kit) .sec-head{text-align:center;max-width:660px;margin:0 auto 52px;}
:where(.platform-kit) .sec-head .eyebrow{font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--wine);font-weight:600;margin-bottom:14px;}
:where(.platform-kit) .sec-head h2{font-size:44px;line-height:1.05;margin-bottom:14px;}
:where(.platform-kit) .sec-head h2 em{font-style:italic;color:var(--wine);}
:where(.platform-kit) .sec-head p{font-size:17px;color:var(--stone);}

/* service / feature cards */
:where(.platform-kit) .grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
:where(.platform-kit) .grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;}
:where(.platform-kit) .card{background:var(--ivory);border:1px solid var(--line);border-radius:20px;overflow:hidden;transition:all .25s;display:flex;flex-direction:column;}
:where(.platform-kit) .card:hover{transform:translateY(-4px);box-shadow:0 24px 46px rgba(42,30,28,.1);}
:where(.platform-kit) .card .ph{border-radius:0;height:190px;}
:where(.platform-kit) .card .card-body{padding:24px;flex:1;display:flex;flex-direction:column;}
:where(.platform-kit) .card h3{font-size:25px;margin-bottom:5px;font-weight:600;}
:where(.platform-kit) .card .price{font-size:13px;font-weight:600;color:var(--wine);margin-bottom:10px;}
:where(.platform-kit) .card p{font-size:14px;color:var(--stone);margin-bottom:18px;flex:1;}
:where(.platform-kit) .card .lnk{font-size:13px;font-weight:600;color:var(--espresso);display:inline-flex;align-items:center;gap:6px;}

/* price / menu list rows — restaurant-style: name … price, description below */
:where(.platform-kit) .menu-list{max-width:840px;margin:0 auto;}
:where(.platform-kit) .menu-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:22px 0;border-bottom:1px solid var(--line);}
:where(.platform-kit) .menu-row:last-child{border-bottom:none;}
:where(.platform-kit) .menu-row .mr-name{font-family:'Fraunces',serif;font-size:21px;font-weight:600;color:var(--espresso);white-space:nowrap;}
:where(.platform-kit) .menu-row .mr-dots{flex:1 1 24px;min-width:18px;align-self:center;border-bottom:1px dotted var(--sand-2);}
:where(.platform-kit) .menu-row .mr-price{font-weight:700;color:var(--wine);font-size:15.5px;white-space:nowrap;}
:where(.platform-kit) .menu-row .mr-desc{flex-basis:100%;font-size:14.5px;line-height:1.6;color:var(--stone);margin-top:3px;max-width:64ch;}

/* coloured bands */
:where(.platform-kit) .band{border-radius:22px;padding:44px;display:flex;flex-direction:column;justify-content:center;min-height:320px;}
:where(.platform-kit) .band.member{background:var(--sand);}
:where(.platform-kit) .band.gift{background:var(--sage);color:#fff;}
:where(.platform-kit) .band.wine{background:radial-gradient(ellipse at 85% 20%,rgba(214,161,92,.2),transparent 55%),linear-gradient(120deg,#3A1620,#5A2233);color:var(--cream);}
:where(.platform-kit) .band .b-eyebrow{font-size:12px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;margin-bottom:14px;}
:where(.platform-kit) .band.member .b-eyebrow{color:var(--wine);} :where(.platform-kit) .band.gift .b-eyebrow{color:rgba(255,255,255,.82);} :where(.platform-kit) .band.wine .b-eyebrow{color:var(--gold-text);}
:where(.platform-kit) .band h3{font-size:36px;line-height:1.05;margin-bottom:12px;font-weight:600;}
:where(.platform-kit) .band.gift h3,:where(.platform-kit) .band.wine h3{color:#fff;}
:where(.platform-kit) .band p{font-size:15px;margin-bottom:24px;max-width:400px;}
:where(.platform-kit) .band.member p{color:var(--stone);} :where(.platform-kit) .band.gift p{color:rgba(255,255,255,.88);} :where(.platform-kit) .band.wine p{color:rgba(248,242,233,.8);}
:where(.platform-kit) .band .btn{align-self:flex-start;}
:where(.platform-kit) .band.gift .btn-white{background:#fff;color:var(--sage);} :where(.platform-kit) .band.wine .btn-white{background:var(--gold);color:var(--wine-deep);}

/* testimonials */
:where(.platform-kit) .tst{background:var(--ivory);border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px;}
:where(.platform-kit) .tst .stars{color:var(--gold);letter-spacing:2px;font-size:14px;}
:where(.platform-kit) .tst p{font-size:15px;color:var(--espresso);line-height:1.6;font-family:'Fraunces',serif;font-style:italic;}
:where(.platform-kit) .tst .who{display:flex;align-items:center;gap:12px;margin-top:auto;}
:where(.platform-kit) .tst .av{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#7A3247,#3A1620);flex-shrink:0;}
:where(.platform-kit) .tst .who .nm{font-size:14px;font-weight:600;} :where(.platform-kit) .tst .who .sv{font-size:12px;color:var(--stone);}

/* faq accordion */
:where(.platform-kit) .faq{max-width:820px;margin:0 auto;}
:where(.platform-kit) .faq details{border-bottom:1px solid var(--line);padding:6px 0;}
:where(.platform-kit) .faq summary{list-style:none;cursor:pointer;padding:18px 0;font-family:'Fraunces',serif;font-size:20px;font-weight:600;display:flex;justify-content:space-between;align-items:center;}
:where(.platform-kit) .faq summary::-webkit-details-marker{display:none;}
:where(.platform-kit) .faq summary::after{content:'+';color:var(--wine);font-size:24px;font-family:'Inter';}
:where(.platform-kit) .faq details[open] summary::after{content:'–';}
:where(.platform-kit) .faq p{padding:0 0 18px;font-size:15px;color:var(--stone);}

/* final CTA */
:where(.platform-kit) .final{text-align:center;padding:96px 0;}
:where(.platform-kit) .final .eyebrow{font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--wine);font-weight:600;margin-bottom:16px;}
:where(.platform-kit) .final h2{font-size:56px;line-height:1.02;margin-bottom:14px;}
:where(.platform-kit) .final h2 em{font-style:italic;color:var(--wine);}
:where(.platform-kit) .final p{font-size:18px;color:var(--stone);margin-bottom:30px;}

/* footer */
:where(.platform-kit) footer.site{background:var(--wine-deep);color:var(--cream);padding:64px 0 32px;}
:where(.platform-kit) .foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:44px;}
:where(.platform-kit) .foot-brand .logo{font-family:'Fraunces',serif;font-size:32px;font-weight:600;}
:where(.platform-kit) .foot-brand .tag{font-family:'Fraunces',serif;font-style:italic;color:rgba(248,242,233,.6);font-size:16px;margin:8px 0 18px;}
:where(.platform-kit) .foot-brand .tel{font-weight:600;font-size:18px;color:var(--gold-text);}
:where(.platform-kit) .foot-col h5{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-text);margin-bottom:16px;font-weight:600;}
:where(.platform-kit) .foot-col a{display:block;font-size:14px;color:rgba(248,242,233,.72);margin-bottom:10px;}
:where(.platform-kit) .foot-col a:hover{color:#fff;}
:where(.platform-kit) .foot-bottom{border-top:1px solid rgba(248,242,233,.14);padding-top:24px;display:flex;justify-content:space-between;font-size:12px;color:rgba(248,242,233,.5);flex-wrap:wrap;gap:10px;}

/* floating concierge + mobile bar + booking sheet */
:where(.platform-kit) .fab{position:fixed;right:24px;bottom:24px;z-index:50;}
:where(.platform-kit) .fab-btn{width:60px;height:60px;border-radius:50%;background:var(--wine);color:var(--cream);display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(90,34,51,.4);cursor:pointer;}
:where(.platform-kit) .fab-btn svg{width:26px;height:26px;stroke:var(--gold-text);fill:none;}
:where(.platform-kit) .sheet-overlay{position:fixed;inset:0;z-index:70;background:rgba(42,20,22,.55);backdrop-filter:blur(4px);display:none;align-items:flex-end;justify-content:center;}
:where(.platform-kit) .sheet-overlay.open{display:flex;}
:where(.platform-kit) .sheet{background:var(--ivory);width:100%;max-width:460px;border-radius:24px 24px 0 0;padding:26px 24px 30px;}
@media(min-width:600px){:where(.platform-kit) .sheet-overlay{align-items:center;}:where(.platform-kit) .sheet{border-radius:24px;}}
:where(.platform-kit) .sheet .sheet-x{float:right;font-size:20px;color:var(--stone);cursor:pointer;}
:where(.platform-kit) .sheet h4{font-family:'Fraunces',serif;font-size:26px;margin-bottom:3px;font-weight:600;}
:where(.platform-kit) .sheet .sub{font-size:14px;color:var(--stone);margin-bottom:20px;}
:where(.platform-kit) .loc-opt{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:16px;padding:15px 18px;margin-bottom:12px;cursor:pointer;transition:all .2s;}
:where(.platform-kit) .loc-opt:hover{border-color:var(--wine);background:var(--cream);}
:where(.platform-kit) .loc-opt .lo-ic{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#7A3247,#3A1620);flex-shrink:0;}
:where(.platform-kit) .loc-opt .nm{font-weight:600;font-size:16px;} :where(.platform-kit) .loc-opt .dt{font-size:13px;color:var(--stone);} :where(.platform-kit) .loc-opt .arrow{margin-left:auto;color:var(--wine);font-size:18px;}
:where(.platform-kit) .mobile-bar{display:none;}

@media(max-width:920px){
  :where(.platform-kit) .nav-links,:where(.platform-kit) .nav-cta .tel{display:none;}
  :where(.platform-kit) .grid-3,:where(.platform-kit) .grid-2{grid-template-columns:1fr;}
  :where(.platform-kit) .sec-head h2{font-size:34px;} :where(.platform-kit) .final h2{font-size:40px;}
  :where(.platform-kit) .band{padding:32px;min-height:auto;}
  :where(.platform-kit) .foot-grid{grid-template-columns:1fr 1fr;gap:26px;}
  :where(.platform-kit) .mobile-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:56;background:var(--wine-deep);padding:10px 12px;gap:10px;align-items:center;box-shadow:0 -6px 24px rgba(0,0,0,.28);}
  :where(.platform-kit) .mobile-bar .mb-ico{width:46px;height:46px;border-radius:14px;background:rgba(248,242,233,.1);display:flex;align-items:center;justify-content:center;flex-shrink:0;border:none;cursor:pointer;}
  :where(.platform-kit) .mobile-bar .mb-ico svg{width:20px;height:20px;stroke:var(--gold-text);fill:none;}
  :where(.platform-kit) .mobile-bar .mb-book{flex:1;background:var(--gold);color:var(--wine-deep);height:46px;border-radius:14px;font-weight:700;font-size:15px;border:none;cursor:pointer;}
  :where(.platform-kit) .fab{display:none;}
  /* SMOS-298. This reserves room for the fixed .mobile-bar above, and it used
     to be an unscoped `body{padding-bottom:72px}` — so it applied to EVERY page
     on the platform at <=920px, while exactly ONE component renders that bar.
     Measured at origin/main 2db1dd0: of 141 .tsx files, only CareersView.tsx
     contains `mobile-bar`, and of 21 CSS files nothing overrode the rule.

     The consequence was live, not latent. Measured in the running app on
     artisticwindowsanddoors.com at 375px: body padding-bottom 72px, zero
     .mobile-bar elements, and a 71px strip of page background (#F8F2E9)
     rendering BELOW the dark footer. A client site days from launch, on the
     viewport most of its visitors will use.

     It was invisible three ways at once, which is why it survived: absent from
     any diff, unreachable by types, and gone at desktop width — which is where
     people check. Verified to flip exactly at the breakpoint: 0px at 921px,
     72px at 920px.

     `:has()` keeps the fix in CSS rather than making every view opt in through
     a body class. Its failure mode is deliberately the safe direction: an engine
     without `:has()` support simply omits the padding, which costs Careers its
     bar offset on that one page rather than adding dead space to all of them.

     The `.platform-kit` qualifier is not redundant with `.mobile-bar`: the bar
     is only POSITIONED by the block above, which is now scoped, so padding for
     it outside the kit would reserve room for a bar that is not fixed. */
  body:has(.platform-kit .mobile-bar){padding-bottom:72px;}
  :where(.platform-kit) .menu-row{padding:18px 0;gap:3px;}
  :where(.platform-kit) .menu-row .mr-dots{display:none;}
  :where(.platform-kit) .menu-row .mr-name{flex-basis:100%;white-space:normal;font-size:19px;line-height:1.25;}
  :where(.platform-kit) .menu-row .mr-price{flex-basis:100%;font-size:14px;}
  :where(.platform-kit) .menu-row .mr-desc{flex-basis:100%;margin-top:4px;}
}
