/* ==========================================================================
   S.A. Attarwala — base styles
   Shared by every page: tokens, typography, header, footer, buttons, layout.
   Product-specific styling (cards, filters, cart, quiz) lives in shop.css.
   ========================================================================== */

:root{
  --ink:#1B1420;
  --surface:#241B2B;
  --surface-2:#2E2233;
  --gold:#B8874A;
  --gold-bright:#D4A662;
  --brick:#8B3A2E;
  --ivory:#EDE3D3;
  --muted:#A6957F;
  --line:rgba(184,135,74,0.28);
  --radius:2px;
  --wrap:1520px;
  --gutter:28px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--ink);
  color:var(--ivory);
  font-family:'Jost', 'Segoe UI', sans-serif;
  font-weight:300;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,.display{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-weight:500;
  letter-spacing:0.01em;
}

.mono{
  font-family:'IBM Plex Mono', 'Consolas', monospace;
  letter-spacing:0.06em;
  text-transform:uppercase;
}

a{color:inherit;}
img{max-width:100%; display:block;}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--gold-bright);
  outline-offset:3px;
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--gold); color:var(--ink);
  padding:10px 18px;
  font-family:'IBM Plex Mono', monospace; font-size:0.75rem; text-transform:uppercase;
  text-decoration:none;
}
.skip-link:focus{left:0;}

/* ============================== Header ============================== */

header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(27,20,32,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  max-width:var(--wrap); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--gutter);
  gap:16px;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand svg{width:26px; height:26px; flex-shrink:0;}
.brand-text{display:flex; flex-direction:column; line-height:1.1;}
.brand-text .name{
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:1.4rem; font-weight:600; color:var(--ivory);
  white-space:nowrap;
}
.brand-text .est{
  font-family:'IBM Plex Mono', monospace; font-size:0.6rem;
  letter-spacing:0.1em; color:var(--gold-bright); text-transform:uppercase;
}

nav.links{display:flex; gap:32px; align-items:center;}
nav.links a, .nav-link-btn{
  text-decoration:none; color:var(--muted);
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.08em; text-transform:uppercase; font-size:0.72rem;
  transition:color .2s;
  padding-bottom:4px; border-bottom:1px solid transparent;
  background:none; border-top:none; border-left:none; border-right:none;
  cursor:pointer;
}
nav.links a:hover, .nav-link-btn:hover{color:var(--gold-bright); border-color:var(--gold-bright);}
nav.links a.current{color:var(--ivory); border-color:var(--gold);}

.header-actions{display:flex; align-items:center; gap:14px;}

.cart-btn{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px;
  background:transparent; border:1px solid var(--line); color:var(--ivory);
  cursor:pointer; transition:border-color .2s, color .2s;
  flex-shrink:0;
}
.cart-btn:hover{border-color:var(--gold-bright); color:var(--gold-bright);}
.cart-btn svg{width:18px; height:18px;}
.cart-btn .cart-count{
  position:absolute; top:-6px; right:-6px;
  background:var(--brick); color:var(--ivory);
  font-family:'IBM Plex Mono', monospace; font-size:0.62rem;
  width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

/* Mobile menu button + panel */
.menu-btn{
  display:none;
  width:40px; height:40px; border-radius:999px;
  background:transparent; border:1px solid var(--line); color:var(--ivory);
  cursor:pointer; align-items:center; justify-content:center;
  flex-shrink:0;
}
.menu-btn:hover{border-color:var(--gold-bright); color:var(--gold-bright);}
.menu-btn svg{width:18px; height:18px;}

.mobile-nav{
  display:none;
  border-top:1px solid var(--line);
  background:var(--surface);
  padding:10px var(--gutter) 20px;
}
.mobile-nav.open{display:block;}
.mobile-nav a, .mobile-nav button{
  display:block; width:100%; text-align:left;
  padding:14px 0; border:none; border-bottom:1px dashed var(--line);
  background:none; color:var(--ivory); text-decoration:none; cursor:pointer;
  font-family:'IBM Plex Mono', monospace; font-size:0.78rem;
  letter-spacing:0.08em; text-transform:uppercase;
}
.mobile-nav a:last-child, .mobile-nav button:last-child{border-bottom:none;}

/* ============================== Layout ============================== */

section{max-width:var(--wrap); margin:0 auto; padding:52px var(--gutter);}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter);}

.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:14px; margin-bottom:28px;
  flex-wrap:wrap; gap:10px;
}
.section-head h2{font-size:2.1rem; margin:0; color:var(--ivory);}
.section-head .mono{color:var(--muted); font-size:0.7rem;}

.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:0.72rem;
  letter-spacing:0.18em; text-transform:uppercase;
  color:var(--gold-bright); margin-bottom:18px; display:block;
}

.page-head{
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.page-head-inner{
  max-width:var(--wrap); margin:0 auto;
  padding:44px var(--gutter) 38px;
}
.page-head h1{font-size:clamp(2.1rem, 4vw, 3.1rem); margin:0 0 12px; color:var(--ivory);}
.page-head h1 em{font-style:italic; color:var(--gold-bright);}
.page-head p{color:var(--muted); margin:0; max-width:60ch;}

/* ============================== Buttons ============================== */

.btn-primary{
  display:inline-block;
  background:var(--brick); color:var(--ivory);
  padding:14px 26px; text-decoration:none; border-radius:var(--radius);
  font-family:'IBM Plex Mono', monospace; font-size:0.75rem;
  letter-spacing:0.1em; text-transform:uppercase;
  border:1px solid var(--brick); cursor:pointer;
  transition:background .2s;
}
.btn-primary:hover{background:#a34537;}

.btn-ghost{
  display:inline-block;
  padding:14px 26px; text-decoration:none; border-radius:var(--radius);
  font-family:'IBM Plex Mono', monospace; font-size:0.75rem;
  letter-spacing:0.1em; text-transform:uppercase;
  border:1px solid var(--line); color:var(--ivory);
  background:transparent; cursor:pointer;
  transition:border-color .2s, color .2s;
}
.btn-ghost:hover{border-color:var(--gold-bright); color:var(--gold-bright);}

/* ============================== Hero ============================== */

.hero{
  max-width:var(--wrap); margin:0 auto;
  padding:48px var(--gutter) 40px;
  display:grid; grid-template-columns:1.2fr 0.8fr; gap:48px; align-items:center;
}
.hero h1{
  font-size:clamp(2.6rem, 5vw, 4.2rem);
  line-height:1.05; margin:0 0 22px; color:var(--ivory);
}
.hero h1 em{font-style:italic; color:var(--gold-bright);}
.hero p.lede{color:var(--muted); font-size:1.05rem; max-width:48ch; margin:0 0 34px;}
.hero-ctas{display:flex; gap:16px; flex-wrap:wrap;}

.bottle-wrap{position:relative; display:flex; justify-content:center;}
.scent-trail{
  position:absolute; top:-40px; left:50%; transform:translateX(-50%);
  width:120px; height:140px; overflow:visible; pointer-events:none;
}
.scent-trail path{
  fill:none; stroke:var(--gold-bright); stroke-width:1.4; opacity:0;
  stroke-dasharray:220; stroke-dashoffset:220;
  animation:trail 5s ease-in-out infinite;
}
.scent-trail path.p2{animation-delay:1.1s;}
.scent-trail path.p3{animation-delay:2.2s;}
@keyframes trail{
  0%{stroke-dashoffset:220; opacity:0;}
  12%{opacity:.55;}
  55%{stroke-dashoffset:0; opacity:.35;}
  80%{opacity:0;}
  100%{stroke-dashoffset:0; opacity:0;}
}
@media (prefers-reduced-motion: reduce){
  .scent-trail path{animation:none; opacity:0.3; stroke-dashoffset:0;}
  html{scroll-behavior:auto;}
}

/* ============================== Category tiles ============================== */

.tiles{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:16px;
}
.tile{
  position:relative; display:block; text-decoration:none;
  border:1px solid var(--line); background:var(--surface);
  padding:22px 20px 20px;
  transition:transform .25s, border-color .25s;
}
.tile:hover{transform:translateY(-4px); border-color:var(--gold);}
.tile .tile-count{
  font-family:'IBM Plex Mono', monospace; font-size:0.62rem;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--gold-bright);
}
.tile h3{font-size:1.4rem; margin:6px 0 6px; color:var(--ivory);}
.tile p{margin:0; color:var(--muted); font-size:0.84rem; line-height:1.45;}
.tile .tile-arrow{
  margin-top:14px; display:inline-block;
  font-family:'IBM Plex Mono', monospace; font-size:0.68rem;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-bright);
}

/* ============================== Story / about ============================== */

.about{
  background:var(--surface);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.about-inner{
  max-width:var(--wrap); margin:0 auto;
  padding:52px var(--gutter);
  display:grid; grid-template-columns:1fr 1fr; gap:50px;
}
.about h2{font-size:2rem; margin:0 0 18px;}
.about p{color:var(--muted); margin:0 0 14px; max-width:52ch;}
.about-list{list-style:none; padding:0; margin:24px 0 0; display:flex; flex-direction:column; gap:14px;}
.about-list li{display:flex; gap:14px; align-items:flex-start; font-size:0.92rem; color:var(--ivory);}
.about-list .mark{
  color:var(--gold-bright); font-family:'Cormorant Garamond', Georgia, serif;
  font-size:1.3rem; line-height:1;
}

.banner-figure{margin:0; border:1px solid var(--line); overflow:hidden;}
.banner-figure img{width:100%; height:100%; object-fit:cover;}
.banner-figure figcaption{
  padding:10px 14px; color:var(--muted);
  font-family:'IBM Plex Mono', monospace; font-size:0.65rem;
  letter-spacing:0.08em; text-transform:uppercase;
  border-top:1px solid var(--line);
}

.prose{max-width:70ch;}
.prose h2{font-size:1.8rem; margin:38px 0 14px;}
.prose h3{font-size:1.3rem; margin:28px 0 10px; color:var(--gold-bright);}
.prose p{color:var(--muted); margin:0 0 16px;}
.prose strong{color:var(--ivory); font-weight:500;}

.timeline{list-style:none; padding:0; margin:26px 0 0;}
.timeline li{
  display:grid; grid-template-columns:90px 1fr; gap:18px;
  padding:16px 0; border-bottom:1px dashed var(--line);
}
.timeline .year{
  font-family:'IBM Plex Mono', monospace; font-size:0.78rem;
  color:var(--gold-bright); letter-spacing:0.06em;
}
.timeline .what{color:var(--muted); font-size:0.92rem;}
.timeline .what strong{color:var(--ivory); font-weight:500; display:block; margin-bottom:2px;}

/* ============================== Quiz CTA band ============================== */

.band{
  background:var(--surface);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.band-inner{
  max-width:var(--wrap); margin:0 auto;
  padding:46px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
  gap:30px; flex-wrap:wrap;
}
.band h2{font-size:1.9rem; margin:6px 0 8px;}
.band p{color:var(--muted); margin:0; max-width:52ch;}

/* ============================== Contact ============================== */

.contact-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
}
.contact-card{
  border:1px solid var(--line); background:var(--surface);
  padding:26px 24px;
}
.contact-card h2{font-size:1.5rem; margin:0 0 16px;}
.contact-rows{display:flex; flex-direction:column; gap:16px;}
.contact-row{display:flex; gap:14px; align-items:flex-start;}
.contact-row svg{width:17px; height:17px; color:var(--gold-bright); flex-shrink:0; margin-top:3px;}
.contact-row .label{
  font-family:'IBM Plex Mono', monospace; font-size:0.62rem;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--muted);
  display:block; margin-bottom:2px;
}
.contact-row a{color:var(--ivory); text-decoration:none;}
.contact-row a:hover{color:var(--gold-bright);}

.hours-table{width:100%; border-collapse:collapse; margin-top:6px;}
.hours-table th, .hours-table td{
  text-align:left; padding:8px 0; border-bottom:1px dashed var(--line);
  font-size:0.86rem; font-weight:400;
}
.hours-table th{color:var(--muted); font-weight:400;}
.hours-table td{color:var(--ivory); font-family:'IBM Plex Mono', monospace; font-size:0.78rem;}
.hours-table tr.closed td{color:var(--brick);}

.form-field{display:flex; flex-direction:column; gap:6px; margin-bottom:16px;}
.form-field label{
  font-family:'IBM Plex Mono', monospace; font-size:0.65rem;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--muted);
}
.form-field input, .form-field textarea, .form-field select{
  background:var(--surface-2); border:1px solid var(--line); color:var(--ivory);
  padding:11px 13px; border-radius:var(--radius);
  font-family:'Jost', sans-serif; font-size:0.92rem;
}
.form-field textarea{resize:vertical; min-height:120px;}
.form-note{
  color:var(--muted); font-size:0.78rem; margin:14px 0 0;
}

.map-embed{
  margin-top:22px; border:1px solid var(--line); overflow:hidden;
  aspect-ratio:16/9; background:var(--surface-2);
}
.map-embed iframe{width:100%; height:100%; border:0; display:block; filter:grayscale(0.3);}

/* ============================== 404 ============================== */

.notfound{
  max-width:640px; margin:0 auto; padding:90px var(--gutter) 110px; text-align:center;
}
.notfound .code{
  font-family:'IBM Plex Mono', monospace; font-size:0.75rem;
  letter-spacing:0.2em; color:var(--gold-bright); text-transform:uppercase;
}
.notfound h1{font-size:clamp(2.2rem, 5vw, 3.2rem); margin:14px 0 16px;}
.notfound p{color:var(--muted); margin:0 auto 30px; max-width:46ch;}
.notfound .hero-ctas{justify-content:center;}

/* ============================== Footer ============================== */

footer.site-footer{padding:60px var(--gutter) 40px; border-top:1px solid var(--line);}
.footer-inner{
  max-width:var(--wrap); margin:0 auto;
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;
}
.footer-inner .brand{margin-bottom:12px;}
footer.site-footer p{color:var(--muted); font-size:0.85rem; max-width:38ch;}
.footer-col h3{
  font-family:'IBM Plex Mono', monospace; font-size:0.65rem;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--gold-bright);
  margin:0 0 14px; font-weight:400;
}
.footer-links{display:flex; flex-direction:column; gap:9px; font-size:0.84rem;}
.footer-links a, .footer-contact a{color:var(--ivory); text-decoration:none;}
.footer-links a:hover, .footer-contact a:hover{color:var(--gold-bright);}
.footer-contact{
  font-family:'IBM Plex Mono', monospace; font-size:0.76rem;
  display:flex; flex-direction:column; gap:9px;
}
.footer-contact span{color:var(--muted);}
.fine{
  max-width:var(--wrap); margin:40px auto 0; padding-top:20px;
  border-top:1px solid var(--line);
  color:var(--muted); font-size:0.72rem; font-family:'IBM Plex Mono', monospace;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}

/* ============================== Responsive ============================== */

@media (max-width:1000px){
  .footer-inner{grid-template-columns:1fr 1fr;}
}

@media (max-width:860px){
  :root{--gutter:20px;}
  nav.links{display:none;}
  .menu-btn{display:flex;}
  .hero{grid-template-columns:1fr; padding-top:36px;}
  .bottle-wrap{order:-1;}
  .bottle-wrap svg.bottle{width:170px; height:auto;}
  .about-inner{grid-template-columns:1fr; gap:32px;}
  .contact-grid{grid-template-columns:1fr; gap:28px;}
  section{padding:40px var(--gutter);}
  .section-head h2{font-size:1.7rem;}
}

@media (max-width:600px){
  .footer-inner{grid-template-columns:1fr; gap:30px;}
  .timeline li{grid-template-columns:1fr; gap:4px;}
  .band-inner{padding:36px var(--gutter);}
}
