/* Silver Street by Taj — public theme stylesheet.

   Page bodies are authored with inline styles in the templates to stay
   byte-faithful to the design. This file carries:
     - brand tokens (the single source of truth — :root variables);
     - the Google-font import (Bodoni Moda + Archivo);
     - reset, keyframes;
     - :hover states (inline styles can't express :hover);
     - the responsive nav + full-screen mobile drawer (hamburger → X morph);
     - the marquee, jump-flash and lazy smoke-pour video helpers;
     - the footer grid, gallery grid and re-themed cookie banner. */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");

/* ── Brand tokens — ONE place. Templates mirror these hexes inline for design
      fidelity; author all *new* CSS against the variables. ─────────────────── */
:root{
  --ss-ground:#15120B;        /* page ground          */
  --ss-panel:#1A1610;         /* raised panel         */
  --ss-dark:#0F0C07;          /* dark band            */
  --ss-dark-2:#0C0A06;        /* darkest band         */
  --ss-emerald:#143026;       /* emerald band         */
  --ss-brass:#C8A24A;         /* brass primary        */
  --ss-brass-light:#E3C77A;   /* brass hover / light  */
  --ss-brass-deep:#9C8C5C;    /* brass deep           */
  --ss-sage:#A9C0A6;          /* sage text            */
  --ss-mint:#BFD0BE;          /* mint text            */
  --ss-cream:#ECE7D6;         /* cream text           */
  --ss-cream-2:#F2EDDC;       /* bright cream         */
  --ss-body:#B3A988;          /* body copy            */
  --ss-muted:#988E72;         /* muted                */
  --ss-muted-2:#8C8268;       /* muted 2              */
  --ss-serif:'Bodoni Moda',Georgia,serif;
  --ss-sans:'Archivo',system-ui,-apple-system,sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*{box-sizing:border-box;margin:0;padding:0;}
html{min-height:100%;-webkit-text-size-adjust:100%;background-color:var(--ss-dark-2);}
body{min-height:100vh;min-height:100svh;background:var(--ss-dark-2);color:var(--ss-cream);font-family:var(--ss-sans);
  display:flex;flex-direction:column;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
body > main{flex:1 0 auto;background:var(--ss-ground);}
body > footer{flex-shrink:0;}
button{font-family:inherit;color:inherit;}
img{display:block;max-width:100%;}
a{color:inherit;}
h1,h2,h3{text-wrap:balance;}
::selection{background:var(--ss-brass);color:var(--ss-dark);}

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes ssFade{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:translateY(0);}}
@keyframes ssMarquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* ── Hover states (inline base appearance; :hover wins with !important) ───── */
.ss-hov-brass:hover{background:var(--ss-brass-light) !important;border-color:var(--ss-brass-light) !important;}
.ss-hov-ghost:hover{border-color:var(--ss-cream) !important;background:rgba(236,231,214,.08) !important;}
.ss-hov-emerald:hover{background:#1B4233 !important;}
.ss-hov-fill-brass:hover{background:var(--ss-brass) !important;color:var(--ss-dark) !important;border-color:var(--ss-brass) !important;}
.ss-hov-border-cream:hover{border-color:var(--ss-cream) !important;}
.ss-hov-border-brass:hover{border-color:var(--ss-brass) !important;}
.ss-hov-brass-text:hover{color:var(--ss-brass-light) !important;}
.ss-hov-marigold-text:hover{color:var(--ss-brass) !important;}
.ss-hov-white:hover{color:#fff !important;}
.ss-hov-jumplink:hover{border-bottom-color:var(--ss-brass) !important;}

/* ── Responsive nav ──────────────────────────────────────────────────────── */
.ss-desktop-nav{display:flex;}
.ss-mobile-btn{display:none;}
@media (max-width:899px){
  .ss-desktop-nav{display:none;}
  .ss-mobile-btn{display:inline-flex;}
}

/* ── Announcement bar: drop the separators / wrap on phones ──────────────── */
@media (max-width:560px){
  .ss-announce-sep{display:none;}
  .ss-announce-item{flex:0 0 100%;}
}

/* ── Hamburger → X morph (same button, animated in place) ────────────────── */
.ss-bar{position:absolute;left:9px;width:26px;height:2.5px;background:#ECE7D6;border-radius:2px;
  transform-origin:center;transition:transform .32s cubic-bezier(.6,.05,.3,1),opacity .2s ease,top .32s cubic-bezier(.6,.05,.3,1);}
.ss-bar-top{top:15px;} .ss-bar-mid{top:21px;} .ss-bar-bot{top:27px;}
body.ss-drawer-lock .ss-bar-top{top:21px;transform:rotate(45deg);}
body.ss-drawer-lock .ss-bar-mid{opacity:0;transform:scaleX(.3);}
body.ss-drawer-lock .ss-bar-bot{top:21px;transform:rotate(-45deg);}

/* ── Full-screen mobile drawer ───────────────────────────────────────────── */
.ss-drawer{display:none;}
.ss-drawer.is-open{display:flex;}
body.ss-drawer-lock{overflow:hidden;}

/* ── Smooth in-page jumps (marquee deep-links + jump pills) ──────────────── */
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

/* ── Marquee (home / signature pours) ────────────────────────────────────── */
.ss-marquee-track{display:flex;width:max-content;animation:ssMarquee 38s linear infinite;}
.ss-marquee-track:hover{animation-play-state:paused;}
@media (prefers-reduced-motion:reduce){.ss-marquee-track{animation:none;}}

/* Hide the jump bar's scrollbar (the horizontal pill rail). */
.ss-jumpbar::-webkit-scrollbar{display:none;}

/* ── Footer columns: auto-fit desktop, 2-up phones ───────────────────────── */
.ss-footer-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
@media (max-width:600px){ .ss-footer-grid{grid-template-columns:repeat(2,1fr);} }

/* Pair two-button CTA rows on phones instead of stacking them when they fit. */
.ss-visit-actions{width:100%;max-width:430px;display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px !important;}
.ss-visit-actions > a{min-width:0 !important;display:inline-flex !important;align-items:center;justify-content:center;text-align:center;white-space:nowrap !important;padding-left:clamp(8px,2.2vw,24px) !important;padding-right:clamp(8px,2.2vw,24px) !important;}

@media (max-width:520px){
  .ss-visit-actions > a{
    padding:13px clamp(7px,2.3vw,14px) !important;
    font-size:clamp(10px,2.75vw,12.5px) !important;
    letter-spacing:.05em !important;
    gap:clamp(5px,1.7vw,8px) !important;
  }
  .ss-visit-actions > a svg{width:13px;height:13px;flex:0 0 13px;}

  main div[style*="flex-wrap:wrap"]:has(> a:nth-of-type(2)):not(:has(> a:nth-of-type(3))):not(.ss-visit-actions){
    width:100%;max-width:430px;flex-wrap:nowrap !important;gap:8px !important;
  }
  main div[style*="flex-wrap:wrap"]:has(> a:nth-of-type(2)):not(:has(> a:nth-of-type(3))):not(.ss-visit-actions) > a{
    flex:1 1 0;min-width:0;display:inline-flex !important;align-items:center;justify-content:center;text-align:center;white-space:nowrap !important;
    padding:14px clamp(8px,2.7vw,16px) !important;font-size:clamp(10.5px,2.9vw,13px) !important;letter-spacing:.06em !important;gap:clamp(5px,1.7vw,8px) !important;
  }
  main div[style*="flex-wrap:wrap"]:has(> a:nth-of-type(2)):not(:has(> a:nth-of-type(3))):not(.ss-visit-actions) > a svg{width:13px;height:13px;flex:0 0 13px;}
}

/* ── Gallery: three tiles — 3-up desktop/tablet, stacked on phones ───────── */
.ss-gallery{grid-template-columns:repeat(3,1fr);}
@media (max-width:640px){ .ss-gallery{grid-template-columns:1fr;} }

/* Hero on short / landscape viewports: cap to the visible height so the
   bottom-aligned headline stays in view instead of dropping below the fold. */
@media (max-height:560px){
  .ss-hero{min-height:100vh;min-height:100svh;}
}

/* ── Cookie consent banner — flat jali-corner treatment.
   The engine injects #blackrail-cookie-css AFTER this file, so colours use
   !important; layout/visibility is left to the engine. Intentional geometric
   corner detail, no top stripe, gradients, shine, or generic ornament wash. */
.blackrail-cookie-banner{
  position:fixed;overflow:hidden;isolation:isolate;
  --ss-cookie-jali:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath d='M7 47V20C7 12.8 12.8 7 20 7h27' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M15 47V23c0-4.4 3.6-8 8-8h24' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Cpath d='M7 36h13c4.4 0 8-3.6 8-8V15' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='round'/%3E%3Ccircle cx='15' cy='36' r='1.5' fill='%23000'/%3E%3Ccircle cx='28' cy='15' r='1.5' fill='%23000'/%3E%3C/svg%3E");
  background:#0F2A20 !important;color:var(--ss-cream) !important;
  border:1px solid rgba(200,162,74,.42) !important;
  border-radius:8px !important;box-shadow:0 12px 34px rgba(0,0,0,.42) !important;
  font-family:'Archivo',system-ui,-apple-system,sans-serif !important;
  /* Clear the corner jali flourishes so the text/buttons never overlap them. */
  padding:16px 72px !important;
}
.blackrail-cookie-banner::before,.blackrail-cookie-banner::after{content:"" !important;position:absolute;width:48px;height:48px;background:var(--ss-brass);opacity:.34;pointer-events:none;z-index:0;-webkit-mask:var(--ss-cookie-jali) center/contain no-repeat;mask:var(--ss-cookie-jali) center/contain no-repeat;}
.blackrail-cookie-banner::before{left:10px;top:10px;}
.blackrail-cookie-banner::after{right:10px;bottom:10px;transform:rotate(180deg);}
.blackrail-cookie-banner > *{position:relative;z-index:1;}
.blackrail-cookie-banner p{color:rgba(236,231,214,.9) !important;}
.blackrail-cookie-banner button{position:relative;overflow:hidden;border-radius:5px !important;font-weight:700 !important;letter-spacing:.02em;border:1px solid transparent !important;}
.blackrail-cookie-banner button::before{content:none !important;}
.blackrail-cookie-accept{background:var(--ss-brass) !important;color:var(--ss-dark) !important;border-color:#8A6E2E !important;}
.blackrail-cookie-accept:hover{background:var(--ss-brass-light) !important;color:var(--ss-dark) !important;border-color:#8A6E2E !important;}
.blackrail-cookie-decline{background:rgba(236,231,214,.15) !important;color:var(--ss-cream) !important;border-color:rgba(236,231,214,.55) !important;}
.blackrail-cookie-decline:hover{background:rgba(236,231,214,.26) !important;color:var(--ss-cream) !important;border-color:var(--ss-cream) !important;}
/* Phones: the banner stacks and centres, leaving no room for corner flourishes — drop them and restore compact padding. */
@media (max-width:640px){
  .blackrail-cookie-banner{padding:14px !important;}
  .blackrail-cookie-banner::before,.blackrail-cookie-banner::after{display:none !important;}
}
