/* Somersetwest Vineyard House: wine, vine and limewash. */
:root {
  --wine: #4a1d2a;
  --wine-2: #6b2a3c;
  --vine: #5d6b34;
  --vine-soft: #e8ebdc;
  --cream: #faf7f1;
  --stone: #efe9df;
  --ink: #2a2226;
  --muted: #6d6266;
  --line: #ddd3c6;
  --ok: #2f6b3a;
  --err: #a3242f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 34, 38, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--wine); margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.small { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--wine); text-decoration: none; }
.brand-mark { color: var(--vine); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--wine-2); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* buttons */
.btn { display: inline-block; background: var(--wine); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover, .btn:focus-visible { background: var(--wine-2); }
.nav .btn { color: #fff; }
.btn-small { padding: 8px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 2px var(--wine); }
.btn-ghost:hover { background: var(--wine); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-link { background: none; border: 0; color: var(--err); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--vine); outline-offset: 2px; }

/* hero */
.hero { position: relative; min-height: min(78vh, 680px); display: grid; align-items: end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,22,30,.05) 30%, rgba(42,22,30,.72)); }
.hero-copy { position: relative; color: #fff; padding: 56px 0; }
.hero-copy h1 { color: #fff; margin-bottom: .2em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; opacity: .9; }
.lead { font-size: 1.2rem; max-width: 40ch; }
.facts { font-weight: 500; opacity: .95; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--wine); }

/* sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tint { background: var(--stone); }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.direct-note { background: var(--vine-soft); border-left: 4px solid var(--vine); padding: 12px 16px; border-radius: 8px; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.highlights li { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.highlights .icon { color: var(--vine); flex: none; }
.highlights strong { display: block; color: var(--wine); }
.highlights span { color: var(--muted); font-size: .95rem; }
.amenities { columns: 2; padding-left: 1.1em; }
.amenities li { margin-bottom: .4em; break-inside: avoid; }
@media (max-width: 520px) { .amenities { columns: 1; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g-wide { grid-column: 1 / -1; }
.g-wide img { aspect-ratio: 21 / 9; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .g-wide img { aspect-ratio: 16 / 9; } }

.map-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.map-title { font-family: var(--serif); font-size: 1.8rem; color: var(--wine); margin: 0; }
.cta-band { background: var(--wine); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--wine); }

/* footer */
.site-footer { background: #2a1a20; color: #e9dfe2; padding: 48px 0 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-brand { color: #fff; }
.site-footer .small { color: #b8a9ae; margin-top: 24px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 30; }

/* booking */
.book-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } .summary-card { order: -1; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 20px; background: #fff; }
legend { font-weight: 600; padding: 0 6px; color: var(--wine); }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--vine); outline: 2px solid var(--vine-soft); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 5px; }
.row2, .row3 { display: grid; gap: 12px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.summary-card { position: sticky; top: 84px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.summary-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.summary-body { padding: 18px 20px; }
.summary-title { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); margin: 0; }
.quote table { width: 100%; border-collapse: collapse; }
.quote td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.quote td:last-child { text-align: right; }
.quote tr.total td { font-weight: 700; border-bottom: 0; font-size: 1.1rem; }
.notice { background: var(--vine-soft); border-radius: 10px; padding: 12px 16px; }
.notice-ok { background: #e2f0e4; color: var(--ok); }
.notice-err { background: #f8e3e5; color: var(--err); }
.notice ul { margin: 0; padding-left: 1.1em; }
.big { font-size: 1.4rem; }

/* calendar */
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 14px; }
.cal-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.cal-nav button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-month h3 { font-family: var(--sans); font-size: 1rem; text-align: center; color: var(--ink); margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .9rem; }
.cal-grid .dow { font-size: .72rem; color: var(--muted); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.cal-day:hover:not(:disabled) { background: var(--vine-soft); }
.cal-day:disabled { color: #bbb; text-decoration: line-through; cursor: default; }
.cal-day.in-range { background: var(--vine-soft); border-radius: 0; }
.cal-day.sel { background: var(--wine); color: #fff; }
.cal-legend { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: 0; }

/* faq / prose */
.faq details { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.faq summary { font-weight: 600; cursor: pointer; color: var(--wine); }
.faq details p { margin: 10px 0 0; }
.rules li { margin-bottom: .45em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }

/* admin */
.admin { background: #f4f1ec; padding: 24px 0 60px; }
.admin h1, .admin h2 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; margin-top: 1.4em; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 60px auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--ink); border-radius: 8px 8px 0 0; }
.tabs a[aria-current="page"] { background: #fff; font-weight: 600; }
.tabs .right { margin-left: auto; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--stone); font-weight: 600; }
tr.st-conflict td { background: #fbe9eb; }
tr.st-confirmed td:nth-child(2) { color: var(--ok); font-weight: 600; }
tr.st-expired, tr.st-cancelled, tr.muted { color: #999; }
.inline-form, .grid-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: #fff; padding: 14px; border-radius: 10px; margin-bottom: 12px; }
.inline-form label, .grid-form label { margin: 0; flex: 1 1 160px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
code.copy { display: block; word-break: break-all; background: #fff; padding: 8px; border-radius: 6px; user-select: all; }

/* Partner card: Helderberg Social */
.partner-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--vine); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); margin: 2em 0; }
.partner-card .eyebrow { color: var(--vine); margin: 0; }
.partner-card .partner-name { font: 600 1.6rem/1.1 var(--serif); color: var(--wine); margin: .2em 0 .6em; }
.partner-card h2 { font-size: 1.25rem; margin: 0 0 .4em; }
.partner-card p { color: var(--ink); }
