/* ===================== VARIABLES & RESET ===================== */
:root {
  --bg: #faf7f4;
  --bg-light: #f0ebe5;
  --bg-card: #ffffff;
  --brand: #861629;
  --brand-light: #a31d33;
  --gold: #c9a84c;
  --amber: #d4a03c;
  --cream: #e8dcc8;
  --text: #3a3a3a;
  --text-muted: #6b6b6b;
  --white: #861629;
  --whatsapp: #25d366;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --container: 1140px;
  --gap: 1.5rem;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-light);
}

ul {
  list-style: none;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand);
  margin: 0.75rem auto 0;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

section {
  padding: 5rem 0;
}

/* ===================== HEADER & NAV ===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(134, 22, 41, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.header__logo-img {
  height: 50px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--brand);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--brand);
}

.lang-toggle__option {
  transition: color 0.2s;
}

.lang-toggle__option.active {
  color: var(--brand);
  font-weight: 600;
}

.lang-toggle__sep {
  margin: 0 0.15rem;
  opacity: 0.5;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%),
    url('../img/mr_raucher_hero.webp?v=3');
  background-size: cover;
  background-position: center;
  padding: 70px 0 1rem;
}

@media (max-width: 767px) {
  .hero {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%),
      url('../img/mr_raucher_hero_mobile.webp?v=3');
  }
}

.hero__logo {
  max-width: 180px;
  width: 35vw;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.4));
}

.hero__title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__tagline {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-family: var(--font-display);
  color: #fff;
  margin: 0;
  font-style: italic;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__cta {
  margin-top: 2.5rem;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn--primary {
  background-color: var(--whatsapp);
  color: #fff;
}

.btn--primary:hover {
  background-color: #20bd5a;
  color: #fff;
}

/* ===================== ABOUT ===================== */
.about {
  background-color: var(--bg-light);
}

.about__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__content p {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

/* ===================== PRODUCTS ===================== */
.product-category {
  margin-bottom: 3rem;
}

.product-category__title {
  font-size: 1.6rem;
  color: var(--brand-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(134, 22, 41, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-card__img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f0ebe5, #e4ddd4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
  padding: 1rem;
}

.product-card__name {
  font-size: 1.25rem;
  padding: 1rem 1rem 0.25rem;
}

.product-card__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  padding: 0 1rem 1rem;
  line-height: 1.5;
}

/* ===================== CONTACT ===================== */
.contact {
  background-color: var(--bg-light);
}

.contact__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 0.2rem;
}

.contact__item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact__link {
  font-size: 1.15rem;
  color: var(--text);
}

.contact__link:hover {
  color: var(--brand);
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s, box-shadow 0.2s, opacity 0.3s;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ===================== FOOTER ===================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(134, 22, 41, 0.1);
}

.footer__inner {
  text-align: center;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  margin: 0;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-light);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}


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

/* ===================== MEDIA QUERIES ===================== */

/* Mobile: show hamburger, hide nav */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 244, 0.98);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .nav__link {
    font-size: 1.25rem;
  }
}

/* Tablet */
@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  section {
    padding: 7rem 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
