/* ============================================================
   BABI ÁRABE — Site One-Page Premium
   Paleta extraída do logotipo: cream + black
   ============================================================ */

:root {
  /* Cores base */
  --cream: #F5EFE4;
  --cream-soft: #FAF6EC;
  --cream-dark: #E8E0D0;
  --cream-darker: #D8CEB8;
  --ink: #141210;
  --ink-soft: #2a2520;
  --ink-dim: #6b625a;
  --ink-muted: #9a9388;

  /* Acentos */
  --accent: #b8956a;      /* bronze/rose gold */
  --accent-dark: #8e6e48;
  --wa: #25D366;
  --wa-dark: #128C7E;

  /* Layout */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --max-w: 680px;
  --max-w-wide: 1100px;

  /* Tipografia */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(20, 18, 16, 0.04);
  --shadow: 0 8px 30px rgba(20, 18, 16, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 18, 16, 0.12);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--ink); color: var(--cream); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Grão sutil no fundo ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  background:
    radial-gradient(ellipse at top, var(--cream-soft) 0%, var(--cream) 45%, var(--cream-dark) 100%);
  overflow: hidden;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 149, 106, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(184, 149, 106, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(20, 18, 16, 0.04);
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fa851;
  box-shadow: 0 0 0 0 rgba(31, 168, 81, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 168, 81, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(31, 168, 81, 0); }
}

.hero__logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(20, 18, 16, 0.06));
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  max-width: 520px;
  letter-spacing: -0.01em;
}

.hero__tagline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}

.hero__sub {
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 460px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--accent-dark);
}

.hero__cta svg {
  transition: transform 0.4s var(--ease);
}
.hero__cta:hover svg { transform: translateY(3px); }

/* ============================================================
   SECTION HEAD (comum)
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding: 0 18px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent-dark);
  opacity: 0.4;
}
.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent-dark);
}

.section-sub {
  font-size: 14px;
  color: var(--ink-dim);
  margin-top: 12px;
}

/* ============================================================
   LINKS / BOTÕES
   ============================================================ */
.links {
  position: relative;
  padding: 90px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  z-index: 2;
}

.links__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botão base */
.btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--cream-soft);
  border: 1px solid rgba(20, 18, 16, 0.08);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(184, 149, 106, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 149, 106, 0.4);
  box-shadow: var(--shadow);
}
.btn:hover::before { opacity: 1; }

.btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}
.btn:hover .btn__icon {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(-5deg) scale(1.05);
}

.btn__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  position: relative;
  z-index: 1;
}
.btn__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.btn__sub {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.btn__arrow {
  font-size: 18px;
  color: var(--ink-muted);
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}
.btn:hover .btn__arrow {
  color: var(--accent-dark);
  transform: translateX(4px);
}

/* Botão WhatsApp destaque */
.btn--primary {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
  border: 1px solid var(--ink);
  padding: 22px 24px;
  box-shadow: 0 14px 40px rgba(20, 18, 16, 0.18);
}
.btn--primary .btn__title { color: var(--cream); font-size: 16px; }
.btn--primary .btn__sub { color: var(--cream-darker); }
.btn--primary .btn__icon {
  background: var(--wa);
  color: #fff;
}
.btn--primary .btn__arrow { color: var(--cream-darker); }
.btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20, 18, 16, 0.28);
  border-color: var(--wa);
}
.btn--primary:hover .btn__icon {
  background: var(--cream);
  color: var(--wa-dark);
}
.btn--primary:hover .btn__arrow { color: var(--wa); transform: translateX(6px); }
.btn--primary::before {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, transparent 100%);
}

.btn--full { width: 100%; }

.btn--large {
  padding: 20px 36px;
  font-size: 15px;
  border-radius: 100px;
  display: inline-flex;
  width: auto;
}
.btn--large .btn__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ============================================================
   GALERIA
   ============================================================ */
.gallery {
  padding: 90px 24px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.6s var(--ease);
  cursor: pointer;
}
.gallery__item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__ph {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--cream-dark) 0%, var(--cream-darker) 50%, var(--cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  transition: all 0.6s var(--ease);
}
.gallery__ph::before { content: attr(data-label); }
.gallery__ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(245, 239, 228, 0.4), transparent 70%);
}
.gallery__item:hover .gallery__ph {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* Imagens reais da galeria */
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.gallery__item--wide img {
  object-position: center center;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: 100px 24px;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  z-index: 2;
  margin-top: 40px;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184, 149, 106, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(184, 149, 106, 0.1) 0%, transparent 50%);
}

.cta-final__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.cta-final .eyebrow { color: var(--accent); }
.cta-final .eyebrow::before,
.cta-final .eyebrow::after { background: var(--accent); }

.cta-final h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 5.5vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 12px;
  color: var(--cream);
}
.cta-final h2 em {
  font-style: italic;
  color: var(--accent);
}
.cta-final p {
  font-size: 15px;
  color: var(--cream-darker);
  margin: 20px auto 36px;
  max-width: 420px;
}

.cta-final .btn--primary {
  background: var(--wa);
  border-color: var(--wa);
}
.cta-final .btn--primary .btn__icon {
  background: var(--cream);
  color: var(--wa-dark);
}
.cta-final .btn--primary span:last-child {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cta-final .btn--primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}
.cta-final .btn--primary:hover span:last-child { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--cream-darker);
  padding: 60px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(245, 239, 228, 0.06);
  position: relative;
  z-index: 2;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__logo {
  width: 140px;
  opacity: 0.9;
}

.footer__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
}
.footer__nav a {
  color: var(--cream-darker);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--accent); }
.footer__nav .sep { color: var(--ink-muted); }

.footer__credits {
  font-size: 12px;
  margin-top: 20px;
  color: var(--ink-muted);
}
.footer__credits a {
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.3s;
}
.footer__credits a:hover { opacity: 0.8; }

.footer__copy {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.4s var(--ease);
  animation: float-in 0.8s var(--ease) 1s both;
}
.float-wa::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  opacity: 0;
  animation: float-pulse 2.4s ease-out infinite;
}
.float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* ============================================================
   PÁGINAS LEGAIS
   ============================================================ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  position: relative;
  z-index: 2;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 32px;
  transition: color 0.3s;
}
.legal__back:hover { color: var(--accent-dark); }

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal__updated {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}
.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 14px;
}
.legal p, .legal li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 40px; min-height: 88vh; }
  .hero__logo { max-width: 280px; }

  .links { padding: 70px 20px; }
  .btn { padding: 16px 18px; gap: 14px; }
  .btn__icon { width: 40px; height: 40px; }
  .btn__title { font-size: 14px; }
  .btn__sub { font-size: 11px; }
  .btn--primary { padding: 20px; }

  .gallery { padding: 70px 16px; }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 10px;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }

  .cta-final { padding: 80px 24px; }

  .float-wa { width: 52px; height: 52px; bottom: 16px; right: 16px; }

  .footer__nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 400px) {
  .hero__badge { font-size: 10px; }
  .btn__sub { display: none; }
  .btn { padding: 14px 16px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.gallery__item { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14, 12, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: scale(0.92);
  transition: transform 0.45s var(--ease);
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.1);
  border: 1px solid rgba(245, 239, 228, 0.2);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover {
  background: rgba(245, 239, 228, 0.2);
  transform: rotate(90deg);
}
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 239, 228, 0.1);
  border: 1px solid rgba(245, 239, 228, 0.2);
  color: var(--cream);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  user-select: none;
}
.lightbox__nav:hover { background: rgba(245, 239, 228, 0.2); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(245, 239, 228, 0.5);
  letter-spacing: 0.12em;
}
@media (max-width: 640px) {
  .lightbox__nav { display: none; }
}
