/* ===================================================
   Empório Rei Davi — Design System & Styles
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Brand Colors */
  --brown-main: #5A3E2B;
  --brown-dark: #3B291D;
  --beige-light: #F5EFE6;
  --green-olive: #6F7F4F;
  --gold-soft: #B89146;

  /* Extended Palette */
  --white: #FFFFFF;
  --off-white: #FAF8F5;
  --brown-light: #7A5E4B;
  --brown-medium: #4A3222;
  --beige-warm: #EDE4D6;
  --beige-medium: #D9CFC1;
  --green-dark: #5A6A3F;
  --gold-dark: #9A7838;
  --text-primary: #2C1E13;
  --text-secondary: #5A4A3A;
  --text-muted: #8A7A6A;
  --overlay-dark: rgba(43, 29, 19, 0.65);
  --overlay-light: rgba(90, 62, 43, 0.08);

  /* Typography */
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 9999px;
  --radius-btn: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(43, 29, 19, 0.08);
  --shadow-md: 0 4px 12px rgba(43, 29, 19, 0.1);
  --shadow-lg: 0 8px 30px rgba(43, 29, 19, 0.12);
  --shadow-xl: 0 16px 50px rgba(43, 29, 19, 0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--off-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* --- Focus Visible (Accessibility) --- */
:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--brown-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Section Common --- */
.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--beige-light);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green-olive);
  margin-bottom: var(--space-md);
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--gold-soft);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  max-width: 600px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__header .section__label {
  justify-content: center;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn:hover::after {
  opacity: 1;
}

.btn--primary {
  background-color: var(--brown-main);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(90, 62, 43, 0.3);
}

.btn--primary:hover {
  background-color: var(--brown-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(90, 62, 43, 0.4);
}

.btn--primary:active {
  transform: scale(1);
}

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

.btn--secondary:hover {
  background-color: var(--brown-main);
  color: var(--white);
  transform: scale(1.05);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: #1ebd5a;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--brown-main);
  transform: scale(1.05);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(184, 145, 70, 0.3);
}

.btn--gold:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(184, 145, 70, 0.4);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 18px 42px;
  font-size: 1.05rem;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==============================
   HEADER
   ============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90, 62, 43, 0.08);
  transition: all var(--transition-normal);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(245, 239, 230, 0.97);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brown-main), var(--brown-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brown-dark);
  line-height: 1.1;
}

.header__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-olive);
}

/* Navigation */
.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: var(--space-xl);
}

.header__nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--brown-main));
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.header__nav-link:hover {
  color: var(--brown-main);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}

/* Mobile Toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown-dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

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

.header__toggle--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: rgba(245, 239, 230, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown-dark);
  padding: var(--space-sm) var(--space-lg);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.mobile-menu--open .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu--open .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu--open .mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu--open .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu--open .mobile-menu__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu--open .mobile-menu__link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu--open .mobile-menu__link:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu__link:hover {
  color: var(--gold-soft);
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg picture {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__bg picture img,
.hero__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(43, 29, 19, 0.92) 0%,
    rgba(43, 29, 19, 0.75) 45%,
    rgba(43, 29, 19, 0.15) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero__col--left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
}

.hero__col--right {
  /* vazia — imagem de fundo respira na direita */
}

.hero__logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-xs);
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hero__title {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__title span {
  color: var(--gold-soft);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  max-width: 480px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__actions .btn {
  padding: 11px 24px;
  font-size: 0.88rem;
  border-radius: 8px;
}

.hero__actions .btn svg {
  width: 17px;
  height: 17px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 1px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==============================
   ABOUT
   ============================== */
.about__grid {
  display: grid;
  gap: var(--space-2xl);
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__text {
  margin-bottom: var(--space-lg);
  line-height: 1.9;
}

.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(111, 127, 79, 0.08), rgba(184, 145, 70, 0.06));
  border-left: 3px solid var(--gold-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-md);
}

.about__highlight svg {
  width: 24px;
  height: 24px;
  color: var(--gold-soft);
  flex-shrink: 0;
  margin-top: 2px;
}

.about__highlight p {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about__visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.about__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Decorative corner */
.about__visual::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--gold-soft);
  border-right: 3px solid var(--gold-soft);
  border-radius: 0 var(--radius-md) 0 0;
  z-index: 1;
}

/* ==============================
   PRODUCTS
   ============================== */
.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
}

.product-card {
  position: relative;
  min-width: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  background: var(--white);
  border: 1px solid rgba(90, 62, 43, 0.08);
  display: flex;
  flex-direction: column;
}

.product-card.animate-on-scroll.is-visible:hover,
.product-card:hover {
  transform: scale(1.05) !important;
  box-shadow: var(--shadow-xl);
  border-color: rgba(184, 145, 70, 0.4);
  z-index: 5;
}

.product-card__header {
  position: relative;
  padding: var(--space-xl) var(--space-lg) var(--space-xs);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brown-main), var(--brown-dark));
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(90, 62, 43, 0.18);
}

.product-card__icon-box svg {
  width: 28px;
  height: 28px;
}

.product-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: var(--space-xs);
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.product-card__list {
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  flex: 1;
}

.product-card__list li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card__list li svg {
  width: 14px;
  height: 14px;
  color: #25D366;
  flex-shrink: 0;
}

.product-card__btn {
  margin-top: auto;
  width: 100%;
  font-size: 0.82rem;
  padding: 10px 16px;
}

/* ==============================
   DIFFERENTIALS
   ============================== */
.differentials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.diff-card {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(90, 62, 43, 0.06);
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--brown-main));
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, rgba(111, 127, 79, 0.12), rgba(184, 145, 70, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-olive);
  transition: all var(--transition-normal);
}

.diff-card:hover .diff-card__icon {
  background: linear-gradient(135deg, var(--green-olive), var(--green-dark));
  color: var(--white);
  transform: scale(1.05);
}

.diff-card__icon svg {
  width: 28px;
  height: 28px;
}

.diff-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: var(--space-sm);
}

.diff-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==============================
   LOCATION
   ============================== */
.location__grid {
  display: grid;
  gap: var(--space-2xl);
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.location__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.location__detail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(90, 62, 43, 0.08), rgba(184, 145, 70, 0.06));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-main);
  flex-shrink: 0;
}

.location__detail-icon svg {
  width: 22px;
  height: 22px;
}

.location__detail h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.location__detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 320px;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location__actions {
  margin-top: var(--space-lg);
}

/* ==============================
   CTA FINAL
   ============================== */
.cta-final {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-main) 50%, var(--brown-medium) 100%);
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 145, 70, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(111, 127, 79, 0.1) 0%, transparent 50%);
}

.cta-final__content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-final__title {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-final__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-final__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin: var(--space-xl) auto;
  max-width: 300px;
}

.cta-final__divider::before,
.cta-final__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.cta-final__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.cta-final__social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-normal);
}

.cta-final__social-link:hover {
  background: var(--white);
  color: var(--brown-main);
  transform: scale(1.1);
  border-color: transparent;
}

.cta-final__social-link svg {
  width: 22px;
  height: 22px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background-color: var(--brown-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo-img {
  max-width: 160px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.footer__info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer__divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ==============================
   WHATSAPP FLOATING BUTTON
   ============================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-normal);
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #1ebd5a;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.08); }
}

/* ==============================
   ANIMATIONS (Scroll-triggered via JS)
   ============================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animate-delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.animate-delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.animate-delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.animate-delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.animate-delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.animate-delay-6 { transition-delay: 0.6s; }

/* ==============================
   RESPONSIVE BREAKPOINTS
   ============================== */

/* Tablet (≥ 640px) */
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }

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

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

  .cta-final__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  /* Header */
  .header__nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__toggle {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    height: auto;
  }

  .hero__scroll {
    display: flex;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }





  /* Products */
  .products__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Differentials */
  .differentials__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Location */
  .location__grid {
    grid-template-columns: 1fr 1fr;
  }

  .location__map {
    height: 100%;
    min-height: 380px;
  }
}

/* Large Desktop (≥ 1280px) */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Mobile (≤ 768px) Centering */
@media (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__col--left {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero__logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title {
    text-align: center;
  }

  .hero__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
    width: 100%;
  }

  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(43, 29, 19, 0.88) 0%,
      rgba(43, 29, 19, 0.75) 60%,
      rgba(43, 29, 19, 0.40) 100%
    );
  }

  .about__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .about__text {
    text-align: center;
  }
}

/* --- Print Styles --- */
@media print {
  .header,
  .whatsapp-float,
  .hero__scroll,
  .mobile-menu {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ===================================================
   GALERIA / CARROSSEL DE IMAGENS
   =================================================== */

/* Wrapper principal do carrossel */
.gallery-carousel {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.gallery-carousel__track-wrapper {
  overflow: hidden;
  flex: 1;
  border-radius: var(--radius-lg);
  min-width: 0;
}

/* Track que se desloca horizontalmente */
.gallery-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--space-md);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-carousel__item {
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  z-index: 0;
}

/* Hover: expande o frame do card (não apenas a imagem interna) */
.gallery-carousel__item:hover {
  transform: scale(1.07);
  box-shadow: var(--shadow-xl);
  z-index: 5;
}

.gallery-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}

/* Botões de navegação (prev / next) */
.gallery-carousel__btn {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--brown-main);
  background: var(--white);
  color: var(--brown-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.gallery-carousel__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery-carousel__btn:hover {
  background: var(--brown-main);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.gallery-carousel__btn:active {
  transform: scale(0.96);
}

.gallery-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Dots indicadores */
.gallery-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--beige-medium);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}

.gallery-carousel__dot.is-active {
  background: var(--brown-main);
  width: 24px;
  transform: none;
}

.gallery-carousel__dot:hover:not(.is-active) {
  background: var(--brown-light);
  transform: scale(1.2);
}

/* ── Responsividade ── */

/* Tablet: largura definida via JS (2 por linha) */
@media (max-width: 900px) {
  .gallery-carousel__item {
    aspect-ratio: 3 / 4;
  }
}

/* Mobile: 1 imagem por vez */
@media (max-width: 560px) {
  .gallery-carousel {
    gap: var(--space-sm);
  }

  .gallery-carousel__btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .gallery-carousel__btn svg {
    width: 1rem;
    height: 1rem;
  }

  .gallery-carousel__item {
    aspect-ratio: 3 / 4;
  }
}

/* ===================================================
   LIGHTBOX
   =================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 12, 6, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox:not([hidden]) {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

/* Imagem centralizada */
.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox:not([hidden]) .lightbox__img {
  transform: scale(1);
}

/* Botão fechar */
.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 1;
}

.lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.1) rotate(90deg);
}

/* Botões de navegação (prev / next) */
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 1;
}

.lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.lightbox__nav--prev {
  left: 1.25rem;
}

.lightbox__nav--prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav--next {
  right: 1.25rem;
}

.lightbox__nav--next:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Contador (ex: 3 / 10) */
.lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

