/* ============================================================
   Rancho Torino — site.css
   Additions on top of theme.css (the original theme, unchanged).
   Same palette, same font, same spacing.
   ============================================================ */

/* ── NAV (static links in place of wp_nav_menu) ── */
.nav-links a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid var(--oak);
}

.nav-links--right { flex: 1; }
.nav-links:not(.nav-links--right) { flex: 1; }

/* ── NAV: half the theme's height, larger title-case name (Don, Nov 2026) ── */
.site-nav {
  min-height: 90px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-brand .nav-logo-placeholder {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: none;
}

/* ── HERO FIX ──
 * The theme's fixed 50vh hero let the headline slide up under the 180px nav
 * on shorter screens. Let the hero grow to fit its text instead.
 */
.hero {
  height: auto;
  min-height: max(50vh, 400px);
  padding-top: calc(90px + 3rem);
}

/* ── INNER PAGE HERO (shorter version of the home hero) ── */
.hero--page {
  min-height: max(38vh, 340px);
}

.hero--page .hero-content {
  padding-bottom: 3rem;
}

/* ── SECTION CTA (matches .hero-cta) ── */
.section-cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--harvest);
  padding-bottom: 3px;
  transition: color 0.2s;
}

.section-cta:hover { color: var(--harvest); }

/* ── SECTION IMAGES ── */
.section-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ── READ MORE ── */
.read-more-body { margin-top: 1.4em; }

.read-more-toggle {
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* ── WINE LIST ── */
.section-content .wine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(232, 217, 176, 0.15);
}

.section-content .wine-row {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 2.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(232, 217, 176, 0.15);
}

/* Home page list shows no prices: two columns instead of three */
.section-content .wine-list[data-hide-price] .wine-row {
  grid-template-columns: 1fr auto;
}

.wine-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--straw);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(201, 168, 108, 0.35);
  transition: color 0.2s, border-color 0.2s;
  justify-self: start;
}

.wine-name:hover,
.wine-name:focus-visible {
  color: var(--harvest);
  border-color: var(--harvest);
  outline: none;
}

.wine-cases,
.wine-price {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.85;
  white-space: nowrap;
  text-align: right;
}

.wine-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--straw);
  opacity: 0.55;
  margin-bottom: 0.2rem;
}

.wine-row.is-sold-out .wine-name { opacity: 0.55; }

.wine-sold-out {
  color: var(--wine-clay);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.wine-note {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.wine-status {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── WINE LIGHTBOX ── */
.wine-dialog {
  margin: auto; /* the reset zeroes margins; dialogs center with auto */
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 2.5rem 2.25rem 2rem;
  background: var(--oak-bark);
  color: var(--cream);
  border: 1px solid rgba(201, 168, 108, 0.35);
  border-radius: 2px;
  font-family: var(--font-body);
}

.wine-dialog::backdrop {
  background: rgba(30, 24, 16, 0.75);
}

.wine-dialog h2 {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--straw);
  margin: 0 2rem 1.25rem 0;
  line-height: 1.3;
}

.wine-dialog .dialog-body {
  line-height: 1.85;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.wine-dialog .dialog-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 217, 176, 0.15);
  font-size: 0.85rem;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 1px solid rgba(201, 168, 108, 0.35);
  border-radius: 2px;
  color: var(--straw);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  cursor: pointer;
}

.dialog-close:hover { border-color: var(--harvest); }

/* ── FORMS (same look as the theme's CF7 styles) ── */
.rt-form p { margin-bottom: 1.25rem; }

.rt-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--straw);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.section-content input[type="tel"],
.section-content input[type="number"],
.section-content select {
  display: block;
  width: 100%;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 217, 176, 0.2);
  border-radius: 2px;
  padding: 0.55rem 0.75rem;
  outline: none;
  -webkit-appearance: none;
}

.section-content select option { color: var(--oak); }

.section-content input:focus,
.section-content select:focus {
  border-color: rgba(201, 168, 108, 0.55);
}

.rt-form button {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(201, 168, 108, 0.5);
  border-radius: 2px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  opacity: 0.85;
  margin-top: 0.5rem;
  transition: opacity 0.2s, border-color 0.2s;
}

.rt-form button:hover { opacity: 1; border-color: var(--harvest); }

.form-status {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--chaparral);
  margin-top: 1rem;
  min-height: 1em;
}

.form-status.is-error { color: var(--wine-clay); }

/* ── FOOTER NAV (static version of the widget menu) ── */
.footer-nav {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--straw);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

/* ── RESPONSIVE ── */
@media ( max-width: 768px ) {
  .section-content .wine-row {
    grid-template-columns: 1fr 1fr;
  }

  .wine-name { grid-column: 1 / -1; }

  .wine-cases { text-align: left; }

  .wine-dialog { padding: 2.25rem 1.5rem 1.5rem; }

  .site-nav { min-height: 60px; }

  .hero { padding-top: calc(60px + 2rem); }
}

@media ( max-width: 600px ) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }

  .nav-brand { order: -1; flex-basis: 100%; text-align: center; }

  .nav-links,
  .nav-links--right { flex: 0 0 auto; }
}

/* Hairline between the last (alt) section and the footer, which share a color */
.site-footer {
  border-top: 1px solid rgba(232, 217, 176, 0.08);
}
