/* ==========================================================================
   Lisvane Stores — site styles
   Brand colours live in ONE place (below). When the owner supplies the real
   paint code for the shop front, change --green (and its light/dark variants).
   ========================================================================== */
:root {
  /* --- Brand: shop-front green (sampled from the owner's reel; TODO swap for real paint code) */
  --green: #1C4E3D;
  --green-light: #34735F;
  --green-dark: #163028;
  /* --- Supporting palette */
  --cream: #F7F1E3;      /* text on green, wordmark */
  --paper: #FBF8F1;      /* main page background */
  --linen: #F2EAD8;      /* alternate section background */
  --brass: #D2B172;      /* accent rules/icons on green (4.66:1 on --green) */
  --brass-text: #E3C994; /* small accent text on green (5.9:1 on --green) */
  --brass-ink: #7A5C24;  /* accent text on light backgrounds (5.5:1 on --cream) */
  --ink: #23251F;        /* body text */
  --ink-soft: #4A4A42;   /* secondary text (7.9:1 on --cream) */
  --line: rgba(28, 78, 61, .16);

  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(22, 48, 40, .06), 0 8px 24px -12px rgba(22, 48, 40, .25);
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-subset.woff2") format("woff2");
  font-weight: 400 640;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback to avoid layout shift while the web font loads */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  size-adjust: 113%;
  ascent-override: 86%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass-ink); outline-offset: 3px; border-radius: 2px; }
.on-green :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.1; color: var(--green); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.35rem, 6.4vw, 4.25rem); letter-spacing: -.02em; }
h1, h2 { text-wrap: balance; }
.lead, .card p { text-wrap: pretty; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 540; }
p { margin: 0 0 1em; }
address { font-style: normal; }
[id] { scroll-margin-top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--cream); color: var(--green-dark); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-ink); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: .45rem; height: .45rem; background: currentColor; transform: rotate(45deg); flex: none; }
.on-green .eyebrow { color: var(--brass-text); }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .8rem 1.35rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; letter-spacing: .01em;
  border: 2px solid var(--green); transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--cream); }
.on-green .btn-primary { background: var(--cream); color: var(--green-dark); border-color: var(--cream); }
.on-green .btn-primary:hover { background: var(--brass); border-color: var(--brass); color: var(--green-dark); }
.on-green .btn-ghost { color: var(--cream); border-color: rgba(247, 241, 227, .6); }
.on-green .btn-ghost:hover { background: var(--cream); color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header (the "fascia") ---------- */
.site-header { background: var(--green); color: var(--cream); border-bottom: 3px solid var(--green-dark); box-shadow: inset 0 -4px 0 -3px var(--brass); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: block; color: var(--cream); padding: .5rem 0; }
.brand svg { width: clamp(12rem, 42vw, 15.5rem); height: auto; aspect-ratio: 13.913; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a { color: var(--cream); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--brass); color: var(--cream); }
.header-call { display: inline-flex; align-items: center; gap: .45rem; color: var(--green-dark); background: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .9rem; border-radius: 999px; min-height: 2.75rem; white-space: nowrap; }
.header-call:hover { background: var(--brass); color: var(--green-dark); }
.header-call svg { width: 1rem; height: 1rem; }
.header-call .long { display: none; }
.subnav { background: var(--green-dark); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: .5rem; overflow-x: auto; }
.subnav a { display: block; color: var(--cream); text-decoration: none; font-size: .9rem; padding: .7rem 0; white-space: nowrap; }
.subnav a:hover { color: var(--brass); }
@media (min-width: 900px) {
  .nav { display: block; }
  .subnav { display: none; }
  .header-call .long { display: inline; }
  .header-call .short { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(28, 78, 61, .045) 27px 28px),
    linear-gradient(180deg, var(--paper), var(--linen));
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 0;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero-copy { padding-bottom: clamp(0rem, 4vw, 4.5rem); }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero .lead { margin-bottom: 1.75rem; }
.hours-note { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(52, 115, 95, .18); flex: none; }
.hero-art { margin: 0 calc(-1 * var(--gutter)); }
.hero-art svg { width: 100%; height: auto; aspect-ratio: 640 / 548; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 3rem; }
  .hero-art { margin: 0; }
}

/* ---------- Highlights strip ---------- */
.strip { background: var(--green); color: var(--cream); }
.strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.25rem; }
.strip li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.strip svg { width: 1.4rem; height: 1.4rem; color: var(--brass); flex: none; }
.strip a { color: var(--cream); }
.strip a:hover { color: var(--brass); }
@media (min-width: 900px) { .strip ul { grid-template-columns: repeat(4, auto); justify-content: space-between; padding: 1.25rem 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--linen); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; }

/* Stock cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--green); border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 639.98px) {
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.35rem 1.25rem; }
  .card .icon { grid-row: span 2; margin: 0; }
  .card h3 { font-size: 1.25rem; margin-top: .55rem; }
}
.icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--linen); color: var(--green); margin-bottom: 1rem; }
.icon svg { width: 1.6rem; height: 1.6rem; }
.card-feature { background: var(--green); border-color: var(--green); }
.card-feature::before { background: var(--brass); }
.card-feature h3 { color: var(--cream); }
.card-feature p { color: #E9DFC8; }
.card-feature .icon { background: rgba(247, 241, 227, .12); color: var(--brass); }

/* Local & wine (green band) */
section.on-green { background: var(--green); color: var(--cream); }
.on-green h2, .on-green h3 { color: var(--cream); }
.on-green a { color: var(--cream); }
.feature { position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60rem 30rem at 85% -10%, rgba(52, 115, 95, .35), transparent 60%); }
.feature > .wrap { position: relative; z-index: 1; }
.feature .section-head p { color: #E9DFC8; font-size: 1.15rem; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.panel { background: var(--green-dark); border: 1px solid rgba(210, 177, 114, .35); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.panel-body { padding: 1.6rem 1.5rem 1.8rem; }
.panel-body p { color: #E9DFC8; margin: 0; }
/* Photo slots: illustrated until real photos arrive. Keep the 4:3 ratio for no layout shift. */
.photo-slot { aspect-ratio: 4 / 3; background: #1A3D31; border-bottom: 1px solid rgba(210, 177, 114, .35); }
.photo-slot svg, .photo-slot img { width: 100%; height: 100%; object-fit: cover; }

/* Visit */
.visit-grid { display: grid; gap: 1.5rem; align-items: stretch; }
.visit-grid > *, .hero-grid > *, .story-grid > *, .split > * { min-width: 0; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: .9fr 1.1fr; gap: 2rem; } }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); }
.info dl { margin: 0 0 1.75rem; display: grid; gap: 1.25rem; }
.info dt { display: flex; align-items: center; gap: .55rem; font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: .3rem; }
.info dt svg { width: 1.05rem; height: 1.05rem; color: var(--green); }
.info dd { margin: 0; font-size: 1.08rem; }
.info dd a { font-weight: 600; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--green-dark); min-height: 24rem; box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; color: var(--cream);
  background:
    radial-gradient(circle at 50% 42%, rgba(52, 115, 95, .6), transparent 55%),
    repeating-linear-gradient(35deg, transparent 0 38px, rgba(247, 241, 227, .05) 38px 40px),
    repeating-linear-gradient(-55deg, transparent 0 58px, rgba(247, 241, 227, .05) 58px 60px),
    var(--green-dark); }
.map-cover > svg { width: 3rem; height: 3rem; color: var(--brass); }
.map-cover p { margin: 0; max-width: 22rem; color: #E9DFC8; font-size: .95rem; }
.map-cover .place { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); line-height: 1.2; }
.map-cover .btn-row { justify-content: center; }
.small { font-size: .9rem; color: var(--ink-soft); }

/* Story */
.story-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.story p { max-width: 38rem; }
.pull { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.3; color: var(--green); border-left: 3px solid var(--brass); padding-left: 1.25rem; margin: 1.75rem 0; max-width: 32rem; }
.signoff { font-family: var(--serif); font-size: 1.3rem; color: var(--green); }
.credits { font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.story-art { background: var(--green); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
@media (min-width: 900px) { .story-art { aspect-ratio: 4 / 5; } }
.story-art svg, .story-art img { width: 100%; height: 100%; object-fit: cover; }

/* Social CTA */
.social { text-align: center; }
.social h2 { margin-bottom: .35em; }
.social p { color: var(--ink-soft); margin-inline: auto; max-width: 34rem; }
.social .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #E9DFC8; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .98rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--brass); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand svg, .footer-brand img { width: 13rem; height: auto; color: var(--cream); }
.footer-brand p { margin-top: 1.25rem; max-width: 18rem; }
.site-footer h2 { font: 600 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.socials a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2rem; }
.socials svg { width: 1.15rem; height: 1.15rem; }
.footer-base { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(247, 241, 227, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .88rem; }
.footer-base p { margin: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .btn-row { justify-content: center; }
.notfound .lead { margin-inline: auto; }
.footer-dir { margin: .75rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .subnav, .map, .social, .hero-art { display: none; }
  body { background: #fff; }
}
