:root {
  --brown: #8a7a45;
  --brown-dark: #3f3a26;
  --gold: #c2a55c;
  --cream: #f7f4ec;
  --charcoal: #2a2420;
  --text-muted: #6b6058;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Cormorant Garamond', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

/* ---------- Language switch ---------- */

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  gap: 0.3rem;
  background: rgba(42,36,32,0.35);
  backdrop-filter: blur(3px);
  border-radius: 20px;
  padding: 0.3rem;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: rgba(250,246,240,0.75);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch button:hover { color: var(--cream); }

.lang-switch button.active {
  background: var(--cream);
  color: var(--brown-dark);
}

/* ---------- Hero ---------- */

.hero-video-wrap {
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 13vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 1rem 1.5rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(184,146,90,0.15), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(184,146,90,0.12), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-logo {
  max-width: 104px;
  max-height: 104px;
  margin-bottom: 0.1rem;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-subtitle {
  font-size: 0.9rem;
  max-width: 30rem;
  color: rgba(250,246,240,0.85);
  font-weight: 300;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  margin-top: 0.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--gold);
  color: var(--brown-dark);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.hero .btn-primary {
  background: var(--cream);
  color: var(--brown-dark);
  border-color: var(--cream);
}

.hero .btn-primary:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-block { width: 100%; text-align: center; }

.btn-secondary {
  background: transparent;
  color: var(--brown-dark);
  border: 1px solid var(--brown-dark);
}

.btn-secondary:hover {
  background: var(--brown-dark);
  color: var(--cream);
}

/* ---------- Video strip ---------- */

.video-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  background: var(--charcoal);
  margin-top: -10vh;
}

.video-strip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.video-strip video.active {
  opacity: 1;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.8rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Wines ---------- */

.wines {
  max-width: 1300px;
}

.wine-grid {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.wine-card {
  text-align: center;
  width: 360px;
  display: block;
  transition: opacity 0.2s ease;
}

.wine-card:hover {
  opacity: 0.85;
}

.wine-card:hover .wine-photo img {
  transform: scale(1.03);
}

.wine-photo img {
  transition: transform 0.3s ease;
}

.wine-photo {
  aspect-ratio: 1 / 1;
  margin-bottom: 0.5rem;
  position: relative;
}

.wine-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wine-photo .placeholder-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.8rem;
}

.wine-photo.placeholder { background: #ece4d8; border: 1px solid #e3d8c8; border-radius: 4px; }
.wine-photo.placeholder img { display: none; }
.wine-photo.placeholder .placeholder-label { display: flex; }

.wine-card h3 {
  font-size: 1.15rem;
  color: var(--brown-dark);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.wine-year {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.wine-price {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Tastings / catas ---------- */

.tastings { background: #fff; border-radius: 6px; }

.catas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 1.8rem;
}

.about-block h3, .booking-form h3, .map-block h3 {
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin-bottom: 0.6rem;
}

.about-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.booking-form, .map-block {
  background: var(--cream);
  border: 1px solid #e8ddcc;
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
}

.map-block {
  display: flex;
  flex-direction: column;
}

.map-embed {
  flex: 1 1 auto;
  min-height: 220px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d9cdb8;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.map-address {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.form-row { margin-bottom: 0.8rem; }

.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-row input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d9cdb8;
  border-radius: 4px;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--charcoal);
}

.form-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.tasting-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}

/* ---------- Contact ---------- */

.contact {
  max-width: 100%;
  background: var(--brown-dark);
  color: var(--cream);
  padding: 3.2rem 1.5rem;
}

.section-header.light h2 { color: var(--cream); }
.section-header.light .eyebrow { color: var(--gold); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.contact-item p {
  color: rgba(250,246,240,0.85);
  font-size: 0.92rem;
}

.contact-item a:hover { color: var(--gold); }

/* ---------- Wine detail pages ---------- */

.detail-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--brown-dark);
  color: var(--cream);
}

.detail-topbar .back-link {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}

.detail-topbar .back-link:hover { opacity: 1; }

.detail-topbar .brand {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.wine-detail {
  max-width: 1500px;
}

.wine-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.wine-detail-photo {
  display: flex;
  justify-content: center;
}

.wine-detail-photo img {
  width: auto;
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

.wine-detail-info h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brown-dark);
  margin: 0.3rem 0 0.4rem;
  line-height: 1.05;
}

.wine-detail-info .wine-year {
  display: inline-block;
  margin-left: 0.5rem;
}

.wine-detail-info .wine-price {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.wine-specs {
  background: #fff;
  border: 1px solid #e3d8c8;
  border-radius: 6px;
  padding: 0.3rem 1.1rem;
  margin-bottom: 1.6rem;
}

.wine-specs .spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0e9dc;
  font-size: 0.88rem;
}

.wine-specs .spec-row:last-child { border-bottom: none; }

.wine-specs .spec-label { color: var(--text-muted); }
.wine-specs .spec-value { color: var(--charcoal); text-align: right; }

.wine-note-title {
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.wine-note p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

.other-wines {
  text-align: center;
  border-top: 1px solid #e8ddc9;
  margin-top: 1rem;
}

.other-wines h3 {
  font-size: 1.15rem;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
}

.other-wines-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.other-wine-card {
  display: block;
  width: 130px;
  transition: opacity 0.2s ease;
}

.other-wine-card:hover { opacity: 0.8; }

.other-wine-card .wine-photo {
  margin-bottom: 0.5rem;
}

.other-wine-card span {
  display: block;
  font-family: var(--serif);
  color: var(--brown-dark);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .wine-detail-grid { grid-template-columns: 1fr; }
  .wine-detail-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 1.2rem;
  background: var(--charcoal);
  color: rgba(250,246,240,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .catas-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 2.6rem 1.2rem; }
  .wine-grid { gap: 0.7rem; }
  .wine-card { width: 100px; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .form-row-split { grid-template-columns: 1fr; }
  .tasting-actions { flex-direction: column; align-items: stretch; }
}
