/* =========================================================
   GALAXY INTERIORS — base.css
   Palette: Warm Walnut + Bone + Brass
   Site Forge house style. Token names per brief: --walnut / --oak / --brass
   ========================================================= */

:root {
  /* ── Brand palette ── */
  --walnut:      #2C1C10;
  --walnut-mid:  #543520;
  --walnut-soft: #7A5438;
  --oak:         #A07248;
  --bone:        #F6F0E2;
  --bone-2:      #ECE2CC;
  --bone-soft:   #FAF7F0;
  --brass:       #B88A1E;
  --brass-2:     #D4A838;
  --brass-soft:  #EDCF80;
  --grain:       #6A5040;
  --grain-2:     #8A7060;

  /* ── Structural aliases (base.css cascades via these) ── */
  --paper:       var(--bone);
  --paper-2:     var(--bone-2);
  --paper-soft:  var(--bone-soft);
  --ink:         var(--walnut);
  --ink-2:       var(--walnut-mid);
  --accent:      var(--brass);
  --accent-2:    var(--brass-2);
  --accent-soft: var(--brass-soft);
  --spot:        var(--oak);
  --muted:       var(--grain);
  --muted-2:     var(--grain-2);
  --line:        rgba(44,28,16,.13);
  --line-2:      rgba(44,28,16,.06);

  /* ── Type ── */
  --f-display: "Fraunces", Georgia, serif;
  --f-body:    "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* ── Scale + Depth ── */
  --container:        1320px;
  --container-narrow: 1040px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(0,0,0,.18);
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--walnut); color: var(--bone); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.65; font-weight: 400;
  color: var(--ink); background: var(--paper);
  overflow-x: hidden; width: 100%; max-width: 100vw;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
section, header, footer { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bone-2); }
::-webkit-scrollbar-thumb { background: var(--walnut); }

/* ── Film grain (signature) ── */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display); font-weight: 400;
  letter-spacing: -.012em; line-height: 1.08; color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
p  { color: var(--muted); }
em, .italic { font-style: italic; font-family: var(--f-display); }
.serif { font-family: var(--f-display); font-weight: 400; }

.eyebrow {
  font-family: var(--f-body); text-transform: uppercase;
  letter-spacing: .4em; font-size: 11px; font-weight: 500;
  color: var(--ink); display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--brass); margin-right: 14px; vertical-align: middle;
}
.label-mono {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2);
}

/* ── Layout primitives ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section--dark { background: var(--walnut); color: var(--bone); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--bone); }
.section--dark p { color: rgba(246,240,226,.72); }
.section--dark .eyebrow { color: var(--bone); }
.section--dark .eyebrow::before { background: var(--brass-2); }
.section--dark .label-mono { color: rgba(246,240,226,.5); }
.section--paper2 { background: var(--bone-2); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone);
  transition: all .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); opacity: 1; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--walnut); font-weight: 600; }
.btn--brass:hover { background: transparent; color: var(--brass); }
.btn--wa { background: #25D366; border-color: #25D366; color: #fff; }
.btn--wa:hover { background: transparent; color: #25D366; border-color: #25D366; }

/* ── Announce bar ── */
.announce {
  background: var(--walnut); text-align: center; padding: 10px 20px;
  font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--bone-soft); font-weight: 400;
}
.announce span { color: var(--brass-2); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
.nav-logo {
  justify-self: start; font-family: var(--f-display);
  font-size: 1.45rem; letter-spacing: .01em; font-weight: 400; color: var(--walnut);
}
.nav-links {
  display: flex; gap: 32px; justify-self: center; list-style: none;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
}
.nav-links a:hover { color: var(--brass); opacity: 1; }
.nav-cta { justify-self: end; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 24px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }

/* ── Hero (full-bleed image, dark walnut overlay) ── */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: clamp(80px, 14vh, 180px) 0 clamp(60px, 10vw, 120px);
  background: var(--walnut);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1618219908412-a29a1bb7b86e?w=1920&q=85");
  background-size: cover; background-position: center 40%;
  opacity: .38;
}
.hero-inner { position: relative; z-index: 2; }
.hero-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  color: rgba(246,240,226,.65); margin-bottom: 28px;
}
.hero-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brass-2); flex-shrink: 0; }
.hero h1 { color: var(--bone); margin-bottom: 22px; max-width: 16ch; }
.hero h1 em { color: var(--brass-2); font-style: italic; }
.hero-tag { color: rgba(246,240,226,.75) !important; max-width: 50ch; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.7; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Marquee strip ── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 13px 0; background: var(--bone-2); }
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap; width: max-content;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--grain-2); animation: marq 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .dot { color: var(--brass); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Collection cards ── */
.collection-grid { grid-template-columns: repeat(4, 1fr); }
.collection-card { position: relative; overflow: hidden; background: var(--bone); }
.collection-card-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .9s var(--ease);
}
.collection-card:hover .collection-card-img { transform: scale(1.04); }
.collection-card-body { padding: 22px 20px 28px; }
.collection-card-body h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); margin-bottom: 8px; }
.collection-card-body p { font-size: 14px; line-height: 1.65; }
.card-tag {
  position: absolute; top: 14px; left: 0;
  background: var(--walnut); color: var(--brass-soft);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; padding: 5px 14px;
}

/* ── Story band (dark walnut) ── */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.story-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid rgba(246,240,226,.14); }
.story-stat { padding: 28px 24px; border-bottom: 1px solid rgba(246,240,226,.14); border-right: 1px solid rgba(246,240,226,.14); }
.story-stat:nth-child(even) { border-right: none; }
.story-stat-num { font-family: var(--f-display); font-size: clamp(2rem, 3.5vw, 3rem); color: var(--bone); line-height: 1; }
.story-stat-num em { color: var(--brass-2); }
.story-stat-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,240,226,.5); margin-top: 6px; }
.story-img-frame { position: relative; }
.story-img-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(44,28,16,.9) 0%, transparent 100%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(246,240,226,.65);
}

/* ── Branch / showroom cards ── */
.branch-grid { grid-template-columns: repeat(4, 1fr); }
.branch-card {
  padding: 32px 28px; border: 1px solid var(--line);
  background: var(--bone-soft); position: relative; overflow: hidden;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.branch-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.branch-num { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; color: var(--brass); text-transform: uppercase; margin-bottom: 14px; display: block; }
.branch-card h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-bottom: 10px; }
.branch-address { font-size: 14px; color: var(--grain-2); line-height: 1.75; margin-top: 10px; }
.branch-badge {
  display: inline-block; margin-top: 16px;
  background: var(--walnut); color: var(--brass-soft);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; padding: 4px 12px;
}
.branch-card--main .branch-badge { background: var(--brass); color: var(--walnut); font-weight: 600; }
.branch-card--main { border-color: var(--brass); }
.branch-stripe {
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--line);
}
.branch-card--main .branch-stripe { background: var(--brass); }

/* ── Enquiry section ── */
.enquiry-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(48px, 7vw, 96px); align-items: start; }
.enquiry-info h2 { margin-bottom: 16px; }
.enquiry-info > p { margin-bottom: 28px; max-width: 40ch; }
.enquiry-channels { display: flex; flex-direction: column; gap: 14px; }
.enquiry-phone { display: flex; flex-direction: column; gap: 4px; }
.enquiry-phone .label-mono { margin-bottom: 4px; }
.enquiry-phone a { font-family: var(--f-display); font-size: 1.3rem; color: var(--walnut); }
.enquiry-phone a:hover { color: var(--brass); opacity: 1; }
.enquiry-form { display: flex; flex-direction: column; gap: 14px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-bottom: 2px solid var(--line);
  background: var(--bone-soft); font-family: var(--f-body); font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .25s;
  -webkit-appearance: none;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  border-bottom-color: var(--brass);
}
.enquiry-form input::placeholder, .enquiry-form textarea::placeholder { color: var(--grain-2); }
.enquiry-form textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Footer ── */
.footer { background: var(--walnut); color: var(--bone); padding: clamp(56px, 8vw, 100px) 0 40px; }
.footer a { color: rgba(246,240,226,.68); }
.footer a:hover { color: var(--brass-2); opacity: 1; }
.footer-logo { font-family: var(--f-display); font-size: 1.9rem; color: var(--bone); letter-spacing: .01em; }
.footer-tagline { font-size: 14px; color: rgba(246,240,226,.55); margin-top: 8px; max-width: 34ch; line-height: 1.75; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(32px, 5vw, 60px); }
.footer-col-title { font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(246,240,226,.4); margin-bottom: 16px; display: block; }
.footer-col p, .footer-col a { font-size: 14px; line-height: 1.9; display: block; }
.footer-credit {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(246,240,226,.13);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(246,240,226,.42);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-credit a { color: rgba(246,240,226,.55); }
.footer-credit a:hover { color: var(--brass-2); opacity: 1; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Image fallback ── */
.img-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--bone-2); border: 1px solid var(--line); min-height: 220px; }
.img-fallback-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grain-2); padding: 24px; text-align: center; }

/* ── Utilities ── */
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.maxw-prose { max-width: 60ch; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .branch-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links.open {
    display: flex; position: fixed; inset: 62px 0 auto 0; flex-direction: column;
    background: var(--bone); padding: 32px var(--gutter); gap: 22px;
    border-bottom: 1px solid var(--line); z-index: 99;
  }
  .collection-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .collection-card-img { aspect-ratio: 4/3; }
  .story-grid { grid-template-columns: 1fr; }
  .story-img-frame { order: -1; }
  .enquiry-split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .collection-grid { grid-template-columns: 1fr !important; }
  .branch-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .footer-credit { flex-direction: column; }
}
