/* Villa Madamadoré — shared stylesheet. Plain CSS, no build step. */
:root {
  --cream: #faf8f4;
  --cream-2: #f4efe6;
  --ink: #2e2c27;
  --muted: #6f6a5e;
  --line: #e3dac9;
  --accent: #7d6b4f;
  --white: #fffdf9;
  --radius: 14px;
  --maxw: 1100px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Thin frame around the whole page */
.page-frame {
  position: fixed;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 200;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1.25rem; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin-left: auto; margin-right: auto; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; display: block;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 3rem auto; max-width: var(--maxw); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif); font-size: 1.45rem; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em;
}
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.main-nav a:hover { color: var(--accent); }
.btn-outline {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.6rem 1.3rem !important; transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--ink); color: var(--cream) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background-size: cover; background-position: center;
  position: relative; padding: 6rem 1.5rem 4rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,18,14,0.35), rgba(20,18,14,0.15) 40%, rgba(20,18,14,0.45));
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-kicker {
  font-size: 0.85rem; letter-spacing: 0.42em; text-transform: uppercase;
  margin-bottom: 1.2rem; opacity: 0.92;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.2rem); line-height: 1.08; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: #fff; font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.8; text-decoration: none;
}

/* ---------- Page banner ---------- */
.page-banner {
  height: clamp(220px, 38vh, 420px);
  background-size: cover; background-position: center;
  border-radius: var(--radius); margin: 6.5rem auto 0;
  max-width: 1280px; width: calc(100% - 3rem);
}
.page-head { padding: 3.5rem 0 1rem; text-align: center; }
.page-head h1 { margin-bottom: 0.5rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--ink); transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(60,50,35,0.12); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.5rem 1.6rem 1.8rem; }
.card-body h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card-cta { display: inline-block; margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

/* ---------- Feature image ---------- */
.feature-img { border-radius: var(--radius); overflow: hidden; margin: 3.5rem 0; }
.feature-img img { width: 100%; max-height: 70vh; object-fit: cover; }
.caption { text-align: center; color: var(--muted); font-size: 0.9rem; font-style: italic; margin-top: 0.8rem; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ---------- Text pages ---------- */
.prose { max-width: 46rem; margin: 0 auto; }
.prose img.rounded { border-radius: var(--radius); margin: 2rem 0; }

/* ---------- Wineries ---------- */
.winery-list { list-style: none; padding: 0; max-width: 46rem; margin: 2rem auto 0; }
.winery-list li {
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.winery-list li:last-child { border-bottom: 0; }
.winery-list .wname { font-family: var(--serif); font-size: 1.15rem; }
.winery-list a.wlink { font-size: 0.85rem; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
  max-width: 34rem; margin: 2.5rem auto;
}
.contact-card .clabel { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.contact-card .cvalue { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1.8rem; }
.contact-card .cvalue:last-child { margin-bottom: 0; }
.contact-card a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-card a:hover { color: var(--accent); }

/* ---------- OwnerRez widgets ---------- */
.widget-wrap { max-width: 960px; margin: 2rem auto; }
.ownerrez-widget { width: 100%; min-height: 400px; }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: 1rem; margin-top: 2.5rem; }
.gallery-grid a {
  display: inline-block; width: 100%; margin-bottom: 1rem;
  border-radius: 10px; overflow: hidden; cursor: zoom-in;
  break-inside: avoid;
}
.gallery-grid img { width: 100%; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(18, 16, 12, 0.94);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; object-fit: contain; }
.lb-btn {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 2.2rem; cursor: pointer; padding: 0.8rem 1.1rem; line-height: 1;
  opacity: 0.85;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 0.6rem; right: 1rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.85rem; letter-spacing: 0.15em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3.5rem 0 4.5rem; text-align: center; }
.site-footer h2 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.site-footer .courtesy { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.site-footer nav a { color: var(--ink); text-decoration: none; margin: 0 1rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
main { padding-top: 72px; }
.hero + main, body.home main { padding-top: 0; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    gap: 0; padding: 0.5rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line);
    display: none; text-align: left;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .btn-outline { text-align: center; margin-top: 0.8rem; border-bottom: 1px solid var(--ink); }
  .page-frame { inset: 6px; }
  .section { padding: 3rem 0; }
  .winery-list li { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
}
