:root {
  --ss-green: #24351f;
  --ss-cream: #f3ead2;
  --ss-paper: #fbf3df;
  --ss-gold: #b58a3a;
  --ss-burgundy: #6f1d1b;
  --ss-brown: #5c3a1e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--ss-cream);
  color: var(--ss-green);
}

/* ---------- Springhouse Reserve age gate ---------- */

.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
  background:
    linear-gradient(rgba(24, 30, 20, 0.72), rgba(24, 30, 20, 0.82)),
    radial-gradient(circle at top, #6f5935 0, #24351f 68%);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.ssf-age-verified .age-gate-overlay { display: none; }

.age-gate-card {
  width: min(100%, 620px);
  padding: clamp(2rem, 6vw, 3.75rem);
  text-align: center;
  background: var(--ss-paper);
  border: 2px solid var(--ss-gold);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.age-gate-brand {
  margin: 0;
  color: var(--ss-green);
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.age-gate-section {
  margin: .35rem 0 1.8rem;
  color: var(--ss-burgundy);
  font-size: 1.15rem;
  letter-spacing: .06em;
}

.age-gate-card h1 { margin: 0 0 1.25rem; }
.age-gate-card p { line-height: 1.6; }

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin: 1.75rem 0 1.25rem;
}

.age-gate-actions button { font: inherit; cursor: pointer; }
.age-gate-error { color: var(--ss-burgundy); font-weight: bold; }
.age-gate-session-note { margin-bottom: .5rem; font-size: .9rem; }
.age-gate-home { font-size: .9rem; }

@media (max-width: 520px) {
  .age-gate-actions { display: grid; }
  .age-gate-actions .cta-button { width: 100%; }
}

/* ---------- Section Landing Summary ---------- */

.section-summary {
  max-width: 1000px;
  margin: 2rem auto 3rem auto;
  padding-left: 0.25in;
  padding-right: 0.25in;
  line-height: 1.6;
}

.section-summary.has-image {
  display: grid;
  grid-template-columns: minmax(180px, 33%) 1fr;
  gap: 2rem;
  align-items: start;
}

.section-summary:not(.has-image) .summary-text {
  width: 100%;
}

.summary-image {
  width: 100%;
}

.summary-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(92, 58, 30, 0.25);
}

.summary-text {
  min-width: 0;
}

.summary-text > :first-child {
  margin-top: 0;
}

.summary-text > :last-child {
  margin-bottom: 0;
}

/* Phone: image above summary */
@media (max-width: 640px) {
  .section-summary.has-image {
    display: block;
  }

  .summary-image {
    margin-bottom: 1.5rem;
  }
}

img { max-width: 100%; height: auto; }

a { color: var(--ss-burgundy); }

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(36, 53, 31, 0.97);
  border-bottom: 2px solid var(--ss-gold);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.brand {
  display: block;
  color: var(--ss-cream);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
}

.brand-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.brand-section {
  display: block;
  color: var(--ss-gold);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.15;
  letter-spacing: 0.055em;
}

.brand-subline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.newsletter-signup-link {
  color: var(--ss-cream);
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.025em;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.brand-section + .newsletter-signup-link {
  padding-left: 12px;
  border-left: 1px solid rgba(243, 234, 210, 0.45);
}

.brand:hover,
.brand-section:hover,
.newsletter-signup-link:hover {
  color: #fff;
}

.menu-toggle {
  background: none;
  border: 1px solid var(--ss-gold);
  color: var(--ss-cream);
  font-size: 1.5rem;
  padding: 6px 11px;
  cursor: pointer;
  border-radius: 4px;
}

.main-nav {
  display: none;
  border-top: 1px solid rgba(181, 138, 58, 0.45);
  background: var(--ss-green);
}

.main-nav.open { display: block; }

.main-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--ss-cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 234, 210, 0.12);
  letter-spacing: 0.04em;
}

.main-nav a:hover { background: rgba(181, 138, 58, 0.18); }

.main-nav__session { margin: 0; }
.main-nav__session button {
  width: 100%;
  padding: 10px 18px;
  border: 0;
  background: transparent;
  color: var(--ss-cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.main-nav__session button:hover { background: rgba(181, 138, 58, 0.18); }

.staff-login { display: grid; place-items: start center; padding: 3rem 1rem 5rem; }
.staff-login__card { width: min(100%, 520px); padding: 2rem; background: var(--ss-paper); border: 1px solid rgba(92,58,30,.3); border-radius: 10px; box-shadow: 0 10px 35px rgba(0,0,0,.12); }
.staff-login__form { display: grid; gap: 1rem; }
.staff-login__form label { display: grid; gap: .35rem; font-weight: 700; }
.staff-login__form input { width: 100%; padding: .7rem; border: 1px solid #aaa; border-radius: 5px; font: inherit; }
.staff-login__error { margin: 1rem 0; padding: .85rem; color: var(--ss-burgundy); background: #fbe9e7; border-radius: 5px; }

.main-nav__administration {
  border-top: 2px solid rgba(181, 138, 58, 0.7);
  background: rgba(0, 0, 0, 0.13);
}

.main-nav__heading {
  display: block;
  padding: 11px 20px 7px;
  color: var(--ss-gold);
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav__administration a {
  padding-left: 32px;
  font-size: 0.94rem;
}

/* Shared content layout */
.page-main,
.content-narrow,
.section-title,
.section-intro,
.breadcrumb,
.product-wrap {
  width: 100%;
}

.content-narrow,
.page-hero,
.content-section,
.section-title,
.section-intro {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.25in;
  padding-right: 0.25in;
}

.page-hero { padding-top: 32px; padding-bottom: 10px; }

.content-section {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.content-section h2 { margin-bottom: 0.75rem; color: var(--ss-burgundy); }
.content-section p:first-child { margin-top: 0; }

.about-page {
  padding-left: 0.25in;
  padding-right: 0.25in;
}

.about-page .page-hero,
.about-page .content-section {
  padding-left: 0;
  padding-right: 0;
}

/* Home hero image behavior
   The <picture> breakpoints select desktop/tablet/phone.
   CSS must never force tablet dimensions while the desktop image is still selected. */
.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--ss-cream);
  padding: 20px 0.25in;
  overflow: visible;
}

.hero picture {
  display: block;
  width: 100%;
  text-align: center;
}

.hero img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(92, 58, 30, 0.25);
}

.intro {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 36px;
  line-height: 1.6;
}

.tagline {
  color: var(--ss-brown);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0.35rem 0 1rem;
}

/* Section landing pages */
.section-title {
  padding-top: 38px;
  padding-bottom: 20px;
  text-align: center;
}

.section-intro {
  max-width: 850px;
  padding-bottom: 28px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.65;
}

.card-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0.25in 58px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.landing-card {
  background: var(--ss-paper);
  border: 1px solid rgba(92, 58, 30, 0.28);
  box-shadow: 0 8px 24px rgba(92, 58, 30, 0.12);
  display: flex;
  flex-direction: column;
}

.landing-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.landing-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.landing-card h2 {
  margin: 0 0 8px;
  color: var(--ss-burgundy);
  font-size: 1.45rem;
}

.landing-card h2 a {
  color: var(--ss-burgundy);
  text-decoration: none;
}

.landing-card h2 a:hover { text-decoration: underline; }

.landing-card-text {
  font-size: 1.02rem;
  line-height: 1.55;
  flex-grow: 1;
}

/* Product pages */
.product-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0.25in 58px;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: var(--ss-paper);
  border: 1px solid rgba(92, 58, 30, 0.28);
  box-shadow: 0 8px 24px rgba(92, 58, 30, 0.12);
  padding: 22px;
}

@media (min-width: 820px) {
  .product-card { grid-template-columns: minmax(280px, 42%) 1fr; }
}

.product-image img,
.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(92, 58, 30, 0.25);
}

.product-info h1 { margin-top: 0; color: var(--ss-burgundy); }
.product-subtitle { color: var(--ss-brown); font-style: italic; margin-bottom: 12px; }
.product-price { font-size: 1.3rem; font-weight: bold; margin: 12px 0; }
.product-body { line-height: 1.6; }
.product-details { margin-top: 22px; }
.detail-list { padding-left: 1.25rem; line-height: 1.6; }
.detail-photo { margin-top: 28px; }

.wine-editorial { margin-top: 1.75rem; }
.wine-editorial h2, .wine-labels h2 { margin-bottom: .65rem; }
.wine-labels { margin-top: 2.5rem; }
.wine-label-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; align-items: start; }
.wine-label-grid figure { margin: 0; text-align: center; }
.wine-label-grid img { display: block; max-width: 100%; max-height: 680px; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.wine-label-grid figcaption { margin-top: .65rem; font-weight: 600; }

/* Buttons */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  padding: 10px 16px;
  background: var(--ss-burgundy);
  color: var(--ss-cream);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--ss-burgundy);
}

.cta-button.secondary {
  background: transparent;
  color: var(--ss-burgundy);
}

/* Newsletter registration */
.newsletter-registration {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.25in;
  padding-right: 0.25in;
  box-sizing: border-box;
}

.newsletter-registration__header,
.newsletter-registration__details {
  max-width: 760px;
}

.newsletter-registration__copy > :last-child {
  margin-bottom: 0;
}

.newsletter-form {
  position: relative;
  margin: 1.75rem 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgba(90, 31, 40, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(43, 36, 28, 0.08);
}

.newsletter-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.newsletter-form label,
.newsletter-interests legend {
  font-weight: 650;
}

.newsletter-form__grid input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid #a89f90;
  border-radius: 4px;
  background: #fff;
  color: #252019;
  font: inherit;
}

.newsletter-form__grid input:focus {
  outline: 3px solid rgba(181, 138, 58, 0.3);
  border-color: var(--ss-burgundy);
}

.newsletter-interests {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #c8bead;
  border-radius: 5px;
}

.newsletter-interests legend span {
  font-size: 0.85em;
  font-weight: normal;
}

.newsletter-interests__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.newsletter-interests__grid label {
  font-weight: normal;
}

.newsletter-message {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 5px;
}

.newsletter-message--success {
  border: 1px solid #58784d;
  background: #edf5e9;
}

.newsletter-message--error {
  border: 1px solid var(--ss-burgundy);
  background: #f9e9e8;
}

.newsletter-message ul {
  margin: 0;
}

.newsletter-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .newsletter-form__grid,
  .newsletter-interests__grid {
    grid-template-columns: 1fr;
  }

  .brand-subline {
    gap: 2px 8px;
  }

  .brand-section + .newsletter-signup-link {
    padding-left: 8px;
  }

  .newsletter-signup-link {
    font-size: 0.7rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #2b241c;
  color: #f4f1ea;
  border-top: 4px solid #8c6b3b;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.25in;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #f4f1ea;
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }
.footer-separator { color: rgba(255,255,255,.45); }

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav { justify-content: center; }
  .footer-separator { display: none; }

  .footer-nav a {
    display: block;
    width: 100%;
    padding: .15rem 0;
  }
}

/* Noteworthy Events */
.noteworthy-page, .noteworthy-manager { max-width: 1000px; margin: 0 auto; padding: 2rem 0.25in; box-sizing: border-box; }
.noteworthy-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.noteworthy-card, .noteworthy-admin-card { padding: 1.25rem; border: 1px solid #c8bead; border-radius: 7px; background: rgba(255,255,255,.72); }
.noteworthy-card__type, .noteworthy-modal__type { margin: 0 0 .35rem; color: var(--ss-burgundy); font-size: .78rem; font-weight: bold; letter-spacing: .09em; text-transform: uppercase; }
.noteworthy-admin-card { margin: 1rem 0; overflow-x: auto; }
.noteworthy-admin-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.noteworthy-table { width:100%; border-collapse:collapse; }
.noteworthy-table th, .noteworthy-table td { padding:.7rem; text-align:left; border-bottom:1px solid #ddd3c4; }
.noteworthy-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.noteworthy-form label { font-weight:650; }
.noteworthy-form input:not([type=checkbox]), .noteworthy-form select, .noteworthy-form textarea { display:block; width:100%; box-sizing:border-box; margin-top:.3rem; padding:.65rem; font:inherit; }
.noteworthy-form .span-2 { grid-column:1 / -1; }
.noteworthy-modal { width:min(620px,calc(100% - 2rem)); padding:0; border:2px solid var(--ss-gold); border-radius:9px; color:#2b241c; background:#faf6eb; box-shadow:0 22px 70px rgba(0,0,0,.45); }
.noteworthy-modal::backdrop { background:rgba(24,30,20,.72); }
.noteworthy-modal__inner { padding:clamp(1.35rem,4vw,2.5rem); }
.noteworthy-modal__inner h2 { margin-top:.2rem; color:var(--ss-burgundy); }
.noteworthy-modal__actions { display:flex; gap:.75rem; flex-wrap:wrap; margin-top:1.35rem; }
.noteworthy-modal button { font:inherit; cursor:pointer; }
@media (max-width:640px) { .noteworthy-form { grid-template-columns:1fr; } .noteworthy-form .span-2 { grid-column:auto; } .noteworthy-admin-head { align-items:flex-start; flex-direction:column; } }
