/* ============================================
   Ahh Bee's Wines — Global Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  color: #2c2c2c;
  background: #fefefe;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1rem;
  max-width: 72ch;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: #f8f6f3;
}

.text-center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e4df;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1.2rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #7b2d42;
}

.nav__logo::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 0.4rem;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8c0 5-2 9-3.5 10v6h3a1 1 0 010 2h-7a1 1 0 010-2h3v-6C10 11 8 7 8 2z' fill='%237b2d42' opacity='0.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s;
  color: #4a4a4a;
  letter-spacing: 0.5px;
}

.nav__links a.is-active {
  color: #7b2d42;
  font-weight: 700;
}

.nav__links a:hover {
  color: #7b2d42;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a4a4a;
}

/* ---------- Nav Dropdown ---------- */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.2s;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  min-width: 180px;
  list-style: none;
  z-index: 200;
}

.nav__dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  color: #4a4a4a;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav__dropdown-menu li a:hover {
  background: #f8f6f3;
  color: #7b2d42;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  display: block;
}

.nav__dropdown:hover .nav__dropdown-arrow,
.nav__dropdown.open .nav__dropdown-arrow {
  transform: rotate(180deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1300px;
}

.hero__content {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(253,246,240,0.63) 0%, rgba(245,236,227,0.60) 50%, rgba(240,230,217,0.63) 100%),
    url('../images/washington-vineyard-banner.png') center / cover no-repeat;
  z-index: -1;
}

.hero__photo {
  width: 540px;
  height: 540px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  flex-shrink: 1;
}

.hero__title {
  font-size: 3rem;
  color: #7b2d42;
  margin-bottom: 0.5rem;
}

.hero__title::before {
  content: '';
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-right: 0.5rem;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8c0 5-2 9-3.5 10v6h3a1 1 0 010 2h-7a1 1 0 010-2h3v-6C10 11 8 7 8 2z' fill='%237b2d42' opacity='0.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: #6b6b6b;
  max-width: 600px;
  margin: 0 auto 0.5rem;
  font-style: italic;
}

.hero__quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #9a7b6b;
  margin: 0.5rem auto 0;
  max-width: fit-content;
  padding: 0.5rem 0;
}

.hero__quote::before,
.hero__quote::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(123,45,66,0.3);
  margin: 0 auto;
}

.hero__quote::before {
  margin-bottom: 0.75rem;
}

.hero__quote::after {
  margin-top: 0.75rem;
}

/* ---------- About Section Centering ---------- */
#about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about h2,
#about p {
  width: 100%;
  max-width: 72ch;
}

#about {
  position: relative;
  overflow: hidden;
}

#about::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 280px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 160'%3E%3Cpath d='M20 8h40c0 32-12 56-17 64v40h12a3 3 0 010 6H25a3 3 0 010-6h12V72C32 64 20 40 20 8z' fill='%237B2D42'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

/* ---------- Dedicated About Page ---------- */
.page--about {
  background: radial-gradient(circle at top, rgba(255,249,244,0.8), #fff) fixed;
}

.about-hero {
  position: relative;
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28,22,18,0.7), rgba(123,45,66,0.4));
  z-index: -1;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.1);
  z-index: -2;
}

.about-hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  background: rgba(0,0,0,0.82);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.75);
}

.about-hero__eyebrow,
.about-structure__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.6rem;
}

.about-structure__eyebrow {
  color: #a87264;
}

.about-hero__content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-hero__content p {
  color: rgba(255,255,255,0.92);
}

.about-hero__quote {
  font-size: 1.2rem;
  font-style: italic;
  color: #ffd9ce;
  margin-top: 1rem;
}

.about-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.about-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.about-list li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7b2d42;
  position: absolute;
  left: 0;
  top: 0.5rem;
  box-shadow: 0 0 0 6px rgba(123,45,66,0.08);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(33,18,10,0.06);
  border: 1px solid rgba(123,45,66,0.08);
}

.about-structure__text {
  max-width: 620px;
}

.about-structure__card {
  background: linear-gradient(135deg, #fef6f1, #fde8dd);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(123,45,66,0.08);
}

.about-structure {
  display: flex;
  align-items: center;
}

.about-structure .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-structure__card h3 {
  margin-bottom: 0.8rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.insights-grid article {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(123,45,66,0.08);
  box-shadow: 0 15px 40px rgba(33,18,10,0.04);
}

.about-promise__content {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-promise__badge {
  min-width: 220px;
  background: #7b2d42;
  color: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(123,45,66,0.3);
}

.about-promise__badge span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.3rem;
}

.about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.about-gallery__grid figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.about-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section.section--alt.about-gallery {
  background: #f7f3ef;
}

/* ---------- Region Cards Grid ---------- */
.regions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.region-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  flex: 1 1 320px;
  max-width: calc(33.333% - 1rem);
}

.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.region-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.region-card:hover .region-card__image {
  transform: scale(1.05);
}

.region-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.region-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.region-card__teaser {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.region-card--coming-soon {
  opacity: 0.6;
  cursor: default;
}

.region-card--coming-soon:hover {
  transform: none;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.region-card--coming-soon:hover .region-card__image {
  transform: none;
}

.region-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ---------- Region Page — Full-page parallax background ---------- */
.page--region {
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #f5f0eb;
}

.page--california { background-image: url('../images/california-vineyard-banner.jpg'); }
.page--washington { background-image: url('../images/washington-vineyard-banner.png'); }
.page--spain      { background-image: url('../images/spain-flag-banner.jpg'); }
.page--crete      { background-image: url('../images/crete-harbor-banner.jpg'); }
.page--germany    { background-image: url('../images/germany-mosel-vineyard-banner.jpg'); }
.page--portugal   { background-image: url('../images/portugal-aerial-harbor-banner.png'); }
.page--austria    { background-image: url('../images/austria-alpine-banner.jpg'); }

/* Very light gray overlay over parallax background */
.page--region::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(200, 200, 200, 0.12);
  pointer-events: none;
}

/* All direct children of body need to sit above the ::before overlay */
.page--region > * {
  position: relative;
  z-index: 1;
}

/* Restore nav stacking above hero so dropdown stays reachable */
.page--region > .nav {
  position: sticky;
  z-index: 100;
}

/* Hero — transparent window into the parallax background */
.region-hero {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.region-hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 3px 16px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

/* Content cards — sections float over the background */
.page--region .section {
  background: rgba(255,255,255,0.97);
  margin: 0 auto 1rem;
  max-width: 1140px;
  width: 92%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 3rem 0;
}

.page--region .section > .container {
  width: 95%;
}

.page--region .section--alt {
  background: rgba(248,246,243,0.98);
}

/* Breadcrumb card */
.page--region .region-nav {
  background: rgba(255,255,255,0.94);
  max-width: 1140px;
  width: 92%;
  margin: 0 auto;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

/* Footer on region pages */
.page--region .footer {
  margin-top: 0;
  border-radius: 0;
}

/* ---------- Wine Tables ---------- */
.wine-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: relative;
}

.wine-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 650px;
}

.wine-table__header-row {
  color: #fff;
  text-align: left;
}

.wine-table__header-row th {
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wine-table__title-row td {
  padding: 0.8rem 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.wine-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.wine-table tbody td:first-child {
  border-left: 3px solid #ddd;
}

/* Region-specific table accent borders (using :has) */
.wine-table:has(.table-header--california) tbody td:first-child { border-left-color: #5a8a2e; }
.wine-table:has(.table-header--california-alt) tbody td:first-child { border-left-color: #e07b2e; }
.wine-table:has(.table-header--washington) tbody td:first-child { border-left-color: #2a6b7c; }
.wine-table:has(.table-header--spain) tbody td:first-child { border-left-color: #c0392b; }
.wine-table:has(.table-header--spain-alt) tbody td:first-child { border-left-color: #8b1a1a; }
.wine-table:has(.table-header--crete) tbody td:first-child { border-left-color: #2a7c6b; }
.wine-table:has(.table-header--germany) tbody td:first-child { border-left-color: #5a7a3a; }
.wine-table:has(.table-header--portugal) tbody td:first-child { border-left-color: #c0665a; }
.wine-table:has(.table-header--austria) tbody td:first-child { border-left-color: #7b2d6b; }

.wine-table tbody tr:last-child td {
  border-bottom: none;
}

.wine-table tbody tr:hover {
  background: rgba(0,0,0,0.02);
}

/* Region-specific table header colors */
.table-header--california { background: #5a8a2e; }
.table-header--california-alt { background: #e07b2e; }
.table-title--california { background: #6b9e35; }
.table-title--california-alt { background: #e88c3a; }

.table-header--washington { background: #2a6b7c; }
.table-title--washington { background: #358a9e; }
.table-header--washington-off { background: #2a6b7c; }
.table-title--washington-off { background: #358a9e; }

.table-header--spain { background: #c0392b; }
.table-title--spain { background: #d44637; }
.table-header--spain-alt { background: #8b1a1a; }
.table-title--spain-alt { background: #a52222; }

.table-header--crete { background: #2a7c6b; }
.table-title--crete { background: #35a08a; }
.table-header--crete-alt { background: #2a7c6b; }
.table-title--crete-alt { background: #35a08a; }

.table-header--germany { background: #5a7a3a; }
.table-title--germany { background: #6b8e4a; }
.table-header--germany-alt { background: #5a7a3a; }
.table-title--germany-alt { background: #6b8e4a; }

.table-header--portugal { background: #c0665a; }
.table-title--portugal { background: #d47a6e; }
.table-header--portugal-alt { background: #c0665a; }
.table-title--portugal-alt { background: #d47a6e; }

.table-header--austria { background: #7b2d6b; }
.table-title--austria { background: #9a3d85; }
.table-header--austria-alt { background: #7b2d6b; }
.table-title--austria-alt { background: #9a3d85; }

/* Varietal highlight colors (the subtle cell backgrounds from Canva) */
.varietal--red    { background: #fde8e8; }
.varietal--yellow { background: #fef9e7; }
.varietal--green  { background: #eafaf1; }
.varietal--blue   { background: #ebf5fb; }
.varietal--pink   { background: #fdf2f8; }

/* ---------- Content Images & Maps ---------- */
.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.map-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.map-wrap {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.sweetness-scale {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 550px;
  margin: 1.5rem auto 3rem;
}

.sweetness-scale__item {
  text-align: center;
}

/* ---------- Pie Charts (CSS conic-gradient) ---------- */
.pie-chart-section {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  margin: 2rem 0;
}

.pie-chart-wrap {
  text-align: center;
}

.pie-chart-wrap h3 {
  margin-bottom: 1.2rem;
  font-size: 1.35rem;
}

.pie-chart {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  position: relative;
}

.pie-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  justify-content: center;
  font-size: 0.85rem;
  max-width: 300px;
  margin: 0 auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ---------- Educational Content Blocks ---------- */
.edu-block {
  background: #faf8f5;
  border-left: 4px solid #c9a87c;
  padding: 2rem 2.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.edu-block h3 {
  color: #7b2d42;
  margin-bottom: 0.75rem;
}

.edu-block p {
  max-width: 72ch;
}

.edu-block strong {
  color: #4a3728;
}

/* Region-specific edu-block border colors */
.page--california .edu-block { border-left-color: #5a8a2e; }
.page--washington .edu-block { border-left-color: #2a6b7c; }
.page--spain .edu-block { border-left-color: #c0392b; }
.page--crete .edu-block { border-left-color: #2a7c6b; }
.page--germany .edu-block { border-left-color: #5a7a3a; }
.page--portugal .edu-block { border-left-color: #c0665a; }
.page--austria .edu-block { border-left-color: #7b2d6b; }

/* ---------- Info Cards (Sweetness scales, Madeira types) ---------- */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.info-card {
  background: #f0edea;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
}

.info-card__label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.info-card__sublabel {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #555;
}

.info-card__detail {
  font-size: 0.8rem;
  color: #777;
}

/* Color-coded info cards */
.info-card--orange  { border-top: 4px solid #e67e22; }
.info-card--green   { border-top: 4px solid #6b8e4a; }
.info-card--purple  { border-top: 4px solid #8e44ad; }
.info-card--pink    { border-top: 4px solid #e91e90; }
.info-card--teal    { border-top: 4px solid #1abc9c; }
.info-card--red     { border-top: 4px solid #c0392b; }

/* ---------- Winery Table ---------- */
.winery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.winery-table th {
  background: #6b8e4a;
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.winery-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eee;
}

.winery-table tbody tr:hover {
  background: rgba(0,0,0,0.02);
}

/* ---------- Region Breadcrumb / Back Nav ---------- */
.region-nav {
  padding: 1rem 0;
  font-size: 0.9rem;
}

.region-nav a {
  color: #7b2d42;
  font-weight: 500;
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}

.region-nav a:hover {
  text-decoration: underline;
  transform: translateX(-3px);
}

/* ---------- Region Subnav (other regions) ---------- */
.region-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0 0;
}

.region-subnav a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid #ddd;
  color: #555;
}

.region-subnav a:hover {
  border-color: #7b2d42;
  color: #7b2d42;
}

.region-subnav a:not(.active):hover {
  transform: scale(1.03);
}

.region-subnav a:not(.active)::after {
  content: ' \203A';
  display: inline-block;
  margin-left: 0.2rem;
  transition: transform 0.2s;
  font-size: 1em;
  opacity: 0.5;
}

.region-subnav a:not(.active):hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.region-subnav a.active {
  background: #7b2d42;
  color: #fff;
  border-color: #7b2d42;
}

/* ---------- Boldness Chart ---------- */
.boldness-chart {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.boldness-chart__label {
  padding: 0.6rem 1rem;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boldness-chart__label--light {
  background: #f5e6dc;
  color: #9a7b6b;
}

.boldness-chart__label--bold {
  background: #4a1525;
  color: #e8d5c4;
}

.boldness-chart__list {
  list-style: none;
  background: linear-gradient(to bottom, #d4a088, #7b2d42);
}

.boldness-chart__list li {
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.boldness-chart__list li:last-child {
  border-bottom: none;
}

.boldness-chart__credit {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */
.footer {
  background: #2c2420;
  color: #ccc;
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7b2d42, transparent);
  border-radius: 1px;
  margin: 0 auto 2rem;
}

.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #e8d5c4;
  margin-bottom: 0.5rem;
}

.footer__brand::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 0.4rem;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8c0 5-2 9-3.5 10v6h3a1 1 0 010 2h-7a1 1 0 010-2h3v-6C10 11 8 7 8 2z' fill='%23e8d5c4' opacity='0.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer__tagline {
  font-size: 0.9rem;
  color: #999;
  margin: 0 auto 1.5rem;
  max-width: none;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer__links a {
  color: #bbb;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #e8d5c4;
}

.footer__copy {
  font-size: 0.8rem;
  color: #999;
}

/* ---------- Focus & Accessibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7b2d42;
  outline-offset: 2px;
  border-radius: 3px;
}

.region-card:focus-visible {
  outline: 2px solid #7b2d42;
  outline-offset: 4px;
  border-radius: 14px;
}

.region-subnav a:focus-visible {
  outline: 2px solid #7b2d42;
  outline-offset: 2px;
}

/* ---------- Region Page Heading Underlines ---------- */
.page--region .section > .container:not(.text-center) > h2 {
  position: relative;
  padding: 0.75rem 1.5rem 1rem;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.page--region .section > .container:not(.text-center) > h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
}

/* Center standalone h3 subsection titles in region pages */
.page--region .section > .container > h3 {
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem 1.2rem 0.6rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Center intro paragraphs under centered headings */
.page--region .section > .container > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page--california .section > .container:not(.text-center) > h2::after { background: #5a8a2e; }
.page--washington .section > .container:not(.text-center) > h2::after { background: #2a6b7c; }
.page--spain .section > .container:not(.text-center) > h2::after { background: #c0392b; }
.page--crete .section > .container:not(.text-center) > h2::after { background: #2a7c6b; }
.page--germany .section > .container:not(.text-center) > h2::after { background: #5a7a3a; }
.page--portugal .section > .container:not(.text-center) > h2::after { background: #c0665a; }
.page--austria .section > .container:not(.text-center) > h2::after { background: #7b2d6b; }

/* ---------- Spacing Enhancements ---------- */
#regions {
  padding-bottom: 5rem;
}

.page--region .wine-table-wrap {
  margin-bottom: 3.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero .container { flex-direction: column-reverse; gap: 1.5rem; }
  .hero__content { text-align: center; }
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { margin: 0 auto 0.5rem; }
  .hero__quote { margin: 0.5rem auto 0; }
  .hero__quote::before, .hero__quote::after { margin: 0 auto; }
  .hero__photo { width: 280px; height: 280px; }

  .section { padding: 2.5rem 0; }

  .regions-grid > * {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page--region { background-attachment: scroll; }
  .region-hero { height: 200px; }
  .region-hero__title { font-size: 2.5rem; }
  .page--region .section { width: 96%; margin-bottom: 1rem; border-radius: 10px; padding: 2rem 0; }
  .page--region .region-nav { width: 96%; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e8e4df;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0.75rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav__dropdown-menu li a {
    padding: 0.4rem 0;
    font-size: 0.9rem;
  }

  .about-hero {
    min-height: auto;
    padding: 4rem 0 2.5rem;
  }

  .about-hero__content {
    padding: 1.5rem;
  }

  .about-overview__grid,
  .story-grid,
  .insights-grid,
  .about-gallery__grid {
    grid-template-columns: 1fr;
  }

  .about-promise__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-structure .container {
    flex-direction: column;
  }

  .pie-chart { width: 200px; height: 200px; }

  .info-cards {
    gap: 0.5rem;
  }

  .info-card {
    min-width: 120px;
    padding: 0.8rem 1rem;
  }

  .edu-block {
    padding: 1.5rem;
  }

  .wine-table { font-size: 0.85rem; }

  #about::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .region-hero { height: 160px; }
  .region-hero__title { font-size: 2rem; }
  .container { width: 95%; }
  .page--region .section { width: 98%; border-radius: 8px; }
  .page--region .region-nav { width: 98%; }
  .about-gallery__grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .region-card:hover { transform: none; }
  .region-card:hover .region-card__image { transform: none; }
  .region-subnav a:not(.active):hover { transform: none; }
  .region-nav a:hover { transform: none; }
}

/* ---------- Table Scroll Indicator (mobile) ---------- */
.wine-table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.85));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .wine-table-wrap::after {
    opacity: 1;
  }
}

/* ---------- Gallery Lightbox (dialog) ---------- */
.about-gallery__grid figure {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-gallery__grid figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-dialog::backdrop {
  background: rgba(0,0,0,0.9);
}

.lightbox-dialog__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-dialog__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  border: none;
  background: rgba(255,255,255,0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-dialog__close:hover {
  background: rgba(255,255,255,0.25);
}

@media (prefers-reduced-motion: reduce) {
  .about-gallery__grid figure { transition: none; }
  .about-gallery__grid figure:hover { transform: none; }
}

/* ---------- Print Styles ---------- */
@media print {
  .nav,
  .footer {
    display: none;
  }

  .section:has(.region-subnav) {
    display: none;
  }

  .wine-table tbody tr {
    break-inside: avoid;
  }

  .page--region {
    background: #fff !important;
  }

  .page--region::before {
    display: none;
  }

  .page--region .section {
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
  }

  .region-hero {
    height: auto;
    padding: 2rem 0;
    color: #2c2c2c;
  }

  .section {
    padding: 1.5rem 0;
  }

  body {
    font-size: 12pt;
    background: #fff;
  }

  .wine-table-wrap {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .content-image {
    box-shadow: none;
  }
}
