:root {
  --bg: #f1ede7;
  --red-dark: #6d0f1b;
  --red-carmim: #4d0011;
  --rose: #cd5f5d;
  --gold: #c4a41b;
  --black-soft: #111111;
  --white: #ffffff;
  --text: #332a29;
  --muted: #6b5f5d;
  --border: rgba(109, 15, 27, 0.12);
  --shadow: 0 20px 50px rgba(17, 17, 17, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 0.35s ease;
  --container: 1180px;
  --page-bg: #f1ede7;
  --page-text: #332a29;
  --heading-color: #6d0f1b;
  --header-bg: rgba(241, 237, 231, 0.78);
  --header-border: rgba(109, 15, 27, 0.08);
  --nav-link: #4d0011;
  --outline-text: #6d0f1b;
  --outline-border: rgba(109, 15, 27, 0.22);
  --outline-hover: rgba(109, 15, 27, 0.06);
  --surface-card: rgba(255, 255, 255, 0.62);
  --surface-panel: rgba(255, 255, 255, 0.5);
  --meta-bg: rgba(109, 15, 27, 0.05);
  --footer-bg: #4d0011;
  --footer-text: #f1ede7;
}

[data-theme="dark"] {
  --page-bg: #4d0011;
  --page-text: #f1ede7;
  --muted: rgba(241, 237, 231, 0.82);
  --heading-color: #f1ede7;
  --header-bg: rgba(77, 0, 17, 0.88);
  --header-border: rgba(241, 237, 231, 0.2);
  --nav-link: #f1ede7;
  --outline-text: #f1ede7;
  --outline-border: rgba(241, 237, 231, 0.35);
  --outline-hover: rgba(241, 237, 231, 0.12);
  --surface-card: rgba(241, 237, 231, 0.12);
  --surface-panel: rgba(241, 237, 231, 0.12);
  --meta-bg: rgba(241, 237, 231, 0.12);
  --footer-bg: #f1ede7;
  --footer-text: #4d0011;
}

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

html {
  scroll-behavior: auto;
}

body {
  background: var(--page-bg);
  color: var(--page-text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.65;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

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

button {
  font: inherit;
}

.page-shell {
  overflow: hidden;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.88;
  color: #111111;
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  font-size: 1.2rem;
}

.brand-mark {
  display: block;
}

.brand-mark:first-child {
  text-align: right;
}

.brand .second {
  color: #111111;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--nav-link);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--red-carmim);
  margin: 5px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(109, 15, 27, 0.18);
}

.btn-primary:hover {
  background: var(--red-carmim);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-outline {
  border: 1px solid var(--outline-border);
  color: var(--outline-text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--outline-hover);
}

.theme-toggle {
  border: 1px solid rgba(196, 164, 27, 0.7);
  color: #f1ede7;
  background: linear-gradient(135deg, #6d0f1b, #4d0011);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 10px 20px rgba(77, 0, 17, 0.35);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(77, 0, 17, 0.45);
}

.nav-theme-toggle {
  margin-left: 0.4rem;
}

.theme-icon {
  line-height: 1;
  font-size: 0.95rem;
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: inline;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #f1ede7, #dfd3c6);
  color: #4d0011;
  border-color: rgba(77, 0, 17, 0.28);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.18);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 82px;
}

.hero-bg,
.hero-bg img,
.hero-bg video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(to right, rgba(17, 17, 17, 0.66), rgba(17, 17, 17, 0.18)),
    linear-gradient(to top, rgba(17, 17, 17, 0.55), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow.dark {
  color: var(--gold);
}

.eyebrow.accent {
  color: var(--rose);
}

.hero h1,
.hero h2,
.section-title,
.product-showcase h3,
.contact-card h3 {
  font-family: "Libre Baskerville", serif;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 6rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--heading-color);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.section-description {
  max-width: 720px;
  color: var(--muted);
  margin: 0.35rem auto 0;
  font-size: 0.96rem;
  text-align: center;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.territory-section {
  padding: 3.5rem 0;
}

.split-layout,
.history-wrap,
.contact-wrap,
.territory-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.text-column p,
.history-text p,
.contact-text p,
.territory-text p {
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.about-tags span {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(109, 15, 27, 0.08);
  color: var(--red-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.image-frame,
.history-image,
.full-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.large-frame img,
.history-image img,
.full-image img {
  height: 540px;
}

.history-image .history-year {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(241, 237, 231, 0.85);
  color: var(--red-dark);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

/* Products */
.products-section {
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.product-card:hover,
.product-card.active {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(109, 15, 27, 0.22);
}

.product-card-image {
  height: 280px;
  padding: 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(196, 164, 27, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(109,15,27,0.08), rgba(77,0,17,0.02));
}

.product-card-image img {
  max-height: 240px;
  width: auto;
}

.product-card-content {
  padding: 1.3rem 1.3rem 1.5rem;
}

.product-type {
  display: inline-block;
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h3 {
  font-family: "Libre Baskerville", serif;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.product-showcase h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  background: var(--meta-bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.meta-value {
  color: var(--heading-color);
  font-weight: 600;
}

.product-block {
  margin-bottom: 1.3rem;
}

.product-block h4 {
  color: var(--heading-color);
  margin-bottom: 0.35rem;
}

.product-showcase-image {
  display: grid;
  place-items: start center;
}

.product-visual-card {
  position: relative;
  width: 100%;
  height: 620px;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding: 0 0 2rem;
  background: var(--page-bg);
}

.product-visual-bg {
  display: none;
}

.product-visual-card img {
  position: relative;
  z-index: 2;
  width: auto;
  max-height: 520px;
}

/* Territory */
.territory-wrap {
  position: relative;
  grid-template-columns: 1fr;
}

.territory-image {
  position: relative;
}

.territory-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 17, 17, 0.68), rgba(17, 17, 17, 0.18));
}

.full-image img {
  height: 520px;
}

.territory-text {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  max-width: 760px;
  margin-top: 0;
}

.territory-text .section-title {
  color: var(--white);
}

.territory-text p {
  color: rgba(255, 255, 255, 0.92);
}

.territory-text .eyebrow.dark {
  color: #f5d98a;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

.gallery-item img,
.gallery-item video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.06);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 1.5rem 0;
}

.contact-list li {
  margin-bottom: 0.6rem;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-card {
  background: linear-gradient(145deg, var(--red-dark), var(--red-carmim));
  color: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  padding: 3rem 0 1.2rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  justify-items: start;
  text-align: left;
}

.footer-copy {
  margin-top: 1rem;
  color: var(--footer-text);
  max-width: 440px;
}

.footer-col h4 {
  font-family: "Libre Baskerville", serif;
  color: var(--footer-text);
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.footer-col p {
  margin-bottom: 0.45rem;
}

.footer-note {
  color: var(--footer-text);
  font-size: 0.92rem;
}

.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-info-list li {
  margin-bottom: 0.45rem;
  color: var(--footer-text);
}

.footer-info-list strong {
  color: var(--footer-text);
}

.footer-bottom {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--footer-text);
  font-size: 0.9rem;
}

[data-theme="dark"] .brand,
[data-theme="dark"] .brand .second,
[data-theme="dark"] .about-tags span,
[data-theme="dark"] .product-type,
[data-theme="dark"] .meta-label,
[data-theme="dark"] .history-image .history-year,
[data-theme="dark"] .hero-scroll a,
[data-theme="dark"] .section-description {
  color: #f1ede7;
}

.footer-brand,
.footer-brand .second {
  color: #f1ede7;
}

[data-theme="dark"] .footer-brand,
[data-theme="dark"] .footer-brand .second {
  color: #111111;
}

[data-theme="dark"] .about-tags span,
[data-theme="dark"] .history-image .history-year {
  background: rgba(241, 237, 231, 0.12);
  border-color: rgba(241, 237, 231, 0.35);
}

[data-theme="dark"] .contact-card,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .whatsapp-popup a {
  background: #f1ede7;
  color: #4d0011;
}

[data-theme="dark"] .contact-card h3 {
  color: #4d0011;
}

[data-theme="dark"] .btn-primary:hover {
  background: #e8dfd5;
}

[data-theme="dark"] .whatsapp-popup p,
[data-theme="dark"] .popup-close {
  color: #4d0011;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  background: #25d366;
  color: var(--white);
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 18px 35px rgba(37, 211, 102, 0.28);
  animation: floatPulse 2.6s infinite;
}

.whatsapp-float svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  display: block;
}

.whatsapp-float small {
  font-weight: 700;
}

.whatsapp-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 5.6rem;
  z-index: 59;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  width: min(280px, calc(100vw - 2rem));
  display: none;
}

.whatsapp-popup.show {
  display: block;
}

.whatsapp-popup p {
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.whatsapp-popup strong {
  display: block;
  color: var(--red-dark);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.whatsapp-popup a {
  color: var(--white);
  background: var(--red-dark);
  display: inline-flex;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
}

.popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 1080px) {
  .product-cards,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .history-wrap,
  .contact-wrap,
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-visual-card {
    height: 500px;
    min-height: 500px;
  }
}

@media (max-width: 820px) {
  .desktop-whatsapp {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(241, 237, 231, 0.98);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
  }

  [data-theme="dark"] .main-nav {
    background: rgba(77, 0, 17, 0.98);
  }

  .nav-theme-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

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

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero h2 {
    font-size: 1.35rem;
  }

  .large-frame img,
  .history-image img {
    height: 400px;
  }

  .full-image img {
    height: 460px;
  }

  .territory-text {
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
    max-width: none;
  }

}

@media (max-width: 580px) {
  .section {
    padding: 4.5rem 0;
  }

  .territory-section {
    padding: 2.6rem 0;
  }

  .product-cards,
  .gallery-grid,
  .product-meta {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-buttons .btn,
  .contact-buttons .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

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

  .hero-text {
    margin: 0 auto 2rem;
  }

  .hero-scroll {
    display: none;
  }

  .product-showcase {
    padding: 1.3rem;
  }

  .product-visual-card {
    height: 400px;
    min-height: 400px;
  }

  .product-visual-card img {
    max-height: 340px;
  }

  .full-image img {
    height: 420px;
  }

  .territory-text {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .territory-text .section-title {
    font-size: 1.75rem;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    padding: 0.8rem 0.95rem;
  }

  .whatsapp-popup {
    right: 1rem;
    bottom: 4.7rem;
  }
}