/* WineryGuide — site styles.
   Matches the iOS app: white cards floating on a near-white ground,
   generous radii, capsule controls, lavender chips, gold stars. Separation
   comes from surface contrast and soft shadow rather than strokes, which
   is what keeps it feeling airy.

   Single-theme by design. The app pins itself to light throughout
   (.preferredColorScheme(.light)), so the site commits to the same world
   rather than inventing a dark identity the product doesn't have. */

@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/JosefinSans-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}

:root {
  color-scheme: light;

  --purple: #663F85;
  --purple-deep: #4E2E68;
  --purple-soft: #F4EFF8;
  --purple-line: #E8DFF0;
  --gold: #C08A18;
  --ink: #1C1B22;
  --ink-soft: #55505F;
  --muted: #8B8695;
  --ground: #F6F5F9;
  --surface: #FFFFFF;
  --hairline: #EDEBF1;

  --shadow-sm: 0 1px 2px rgba(28,27,34,.04), 0 4px 14px -8px rgba(28,27,34,.10);
  --shadow-md: 0 1px 3px rgba(28,27,34,.05), 0 12px 32px -18px rgba(28,27,34,.18);

  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 11px;

  --display: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "Lato", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --wrap: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.14;
  letter-spacing: -.005em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.06rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.stack > * + * { margin-top: 1rem; }

/* ---------- header / footer ---------- */
.site-head {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 66px;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.22rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand span { color: var(--purple); }
.nav { display: flex; gap: 1.5rem; align-items: center; }
/* :not(.btn) matters — a bare `.nav a` rule (specificity 0,1,1) outranks
   `.btn` (0,1,0) and would repaint the header CTA's white label dark. */
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.nav a:not(.btn):hover { color: var(--purple); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.35rem; border-radius: 999px;
  background: var(--purple); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .93rem; border: 0; white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
  box-shadow: 0 6px 18px -10px rgba(102,63,133,.7);
}
.btn:hover { background: var(--purple-deep); transform: translateY(-1px); }
.btn.ghost {
  background: var(--surface); color: var(--purple);
  border: 1px solid var(--purple-line); box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { background: var(--purple-soft); }

.site-foot {
  border-top: 1px solid var(--hairline); margin-top: 5rem;
  padding: 2.5rem 0 3.5rem; color: var(--muted); font-size: .89rem;
  background: var(--surface);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--purple); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 1.6rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple); }

/* ---------- winery page ---------- */
.hero { margin: 1.4rem 0 2rem; }
.hero img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-lg); background: var(--purple-soft);
  box-shadow: var(--shadow-md);
}
.title-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  align-items: center; }
.ava-tag {
  font-family: var(--display); font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-soft); padding: .38rem .8rem; border-radius: 999px;
}
.lede { color: var(--ink-soft); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .8rem; margin: 2rem 0;
}
.fact {
  background: var(--surface); padding: 1.1rem 1.2rem;
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.fact dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .3rem; }
.fact dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.fact a { text-decoration: none; }
.fact .star { color: var(--gold); }

section.block { margin: 3.25rem 0; }
section.block > h2 { margin-bottom: 1.15rem; }

.card {
  background: var(--surface); border-radius: var(--r-md);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
}
.cards { display: grid; gap: .9rem; }
.card-head { display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline; flex-wrap: wrap; }
.card-head .price { font-weight: 700; color: var(--purple); white-space: nowrap; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-top: .5rem; }

table.hours {
  width: 100%; border-collapse: collapse; font-size: .96rem;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
table.hours th, table.hours td {
  text-align: left; padding: .8rem 1.3rem; border-bottom: 1px solid var(--hairline);
}
table.hours th { font-weight: 400; color: var(--muted); width: 45%; }
table.hours td { font-variant-numeric: tabular-nums; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  font-size: .85rem; padding: .42rem .95rem; border-radius: 999px;
  background: var(--purple-soft); color: var(--purple-deep);
  text-decoration: none;
}
a.chip:hover { background: var(--purple-line); }

.wines {
  background: var(--surface); border-radius: var(--r-md); padding: .4rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 2.5rem;
}
.wine { display: flex; justify-content: space-between; gap: 1rem;
  padding: .72rem 0; border-bottom: 1px solid var(--hairline); font-size: .95rem; }
.wine .p { color: var(--muted); white-space: nowrap; }

.gallery { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); }

.cta {
  background: linear-gradient(135deg, #6B4489 0%, #4E2E68 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: 2.2rem 2rem; margin: 3.5rem 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 44px -26px rgba(78,46,104,.85);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); font-size: .96rem; margin-top: .45rem;
  max-width: 46ch; }
.cta .btn { background: #fff; color: var(--purple-deep); box-shadow: none; }
.cta .btn:hover { background: rgba(255,255,255,.9); }

/* ---------- listing grids ---------- */
.tiles { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.35rem; }
.tile {
  background: var(--surface); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--purple-soft); }
.tile .body { padding: 1rem 1.1rem 1.2rem; display: flex;
  flex-direction: column; gap: .3rem; }
.tile .n { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.tile .m { font-size: .85rem; color: var(--muted); }

.letter-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0 2.5rem; }
.letter-nav a {
  min-width: 2.2rem; text-align: center; padding: .35rem .55rem;
  background: var(--surface); border-radius: 999px;
  text-decoration: none; font-size: .88rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.letter-nav a:hover { background: var(--purple-soft); color: var(--purple); }
.group-head { font-family: var(--display); font-weight: 700;
  font-size: 1.6rem; margin: 3rem 0 1.25rem; color: var(--purple); }

/* ---------- home ---------- */
.hero-home { padding: 4rem 0 2.5rem; display: grid; gap: 2.75rem;
  grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .hero-home { grid-template-columns: 1.05fr .95fr; gap: 3.5rem;
    padding: 5.5rem 0 3.5rem; }
}
.hero-home h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.08; }
.hero-home .sub { font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  color: var(--ink-soft); margin-top: 1.15rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-note { font-size: .88rem; color: var(--muted); margin-top: 1.1rem; }
.hero-note b { color: var(--gold); }

.montage { display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr); gap: .8rem; }
.montage img { width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-md); aspect-ratio: 1 / 1;
  background: var(--purple-soft); box-shadow: var(--shadow-md); }
.montage img:first-child { grid-row: span 2; aspect-ratio: 1 / 2.09; }

.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: .8rem; margin: 1rem 0 4rem; }
.statbar div { background: var(--surface); padding: 1.35rem .75rem;
  text-align: center; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.statbar b { display: block; font-family: var(--display); font-size: 1.9rem;
  color: var(--purple); line-height: 1; margin-bottom: .3rem; }
.statbar span { font-size: .82rem; color: var(--muted); }

.steps { display: grid; gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { background: var(--surface); border-radius: var(--r-md);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--display); font-size: .85rem; font-weight: 700;
  color: #fff; background: var(--purple); width: 2rem; height: 2rem;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; }
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

.feats { display: grid; gap: 1.9rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feat h3 { color: var(--purple); margin-bottom: .4rem; }
.feat p { color: var(--ink-soft); font-size: .95rem; }

.prose { max-width: 64ch; }
.prose p + p { margin-top: 1rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1.15rem; }
  .nav { gap: 1rem; }
  .nav a.hide-sm { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.5rem; }
  .hero-home { padding: 2.5rem 0 1.5rem; }
  .wines { gap: 0 1.5rem; }
}
