/* ===================================================
   BUGLÂNDIA — Design Tokens (v2: moderno/tech)
   =================================================== */
:root {
  /* Cor base */
  --cream: #FBF3E4;
  --white: #FFFFFF;
  --ink: #150F0B;
  --ink-2: #2B1B11;
  --ink-soft: #5C5246;
  --orange: #DE7A30;
  --orange-deep: #B5491E;
  --gold: #E4A53E;
  --glow: #FFB454;
  --line: #ECDFC6;
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* Vidro (glassmorphism) */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-bg-dark: rgba(255, 255, 255, 0.07);
  --glass-border-dark: rgba(255, 255, 255, 0.16);

  /* Tipografia */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  /* Espaçamento */
  --gap-section: clamp(4rem, 8vw, 7.5rem);
  --gap-content: clamp(1.5rem, 4vw, 3rem);
  --container-max: 1180px;

  /* Outros */
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--orange-deep);
  display: inline-block;
}

.section { padding: var(--gap-section) 0; position: relative; }

.section--cream {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 8% 12%, rgba(222,122,48,0.10), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(228,165,62,0.14), transparent 42%);
}

.section--orange { background: var(--orange); color: var(--white); }
.section--orange h2, .section--orange h3, .section--orange .eyebrow { color: var(--white); }
.section--orange .eyebrow::before { background: var(--white); }
.section--orange p { color: rgba(255,255,255,0.88); }

.section--rust {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,180,84,0.22), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(181,73,30,0.45), transparent 48%),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  color: var(--cream);
}

/* Seções claras com leve textura/brilho (pra dar profundidade aos cards de vidro) */
.section--glow {
  background-color: var(--white);
  background-image:
    radial-gradient(circle at 10% 15%, rgba(222,122,48,0.08), transparent 36%),
    radial-gradient(circle at 90% 85%, rgba(228,165,62,0.10), transparent 40%);
}

/* ===================================================
   Botões
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(222,122,48,0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange-deep) 100%);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(255,180,84,0.45);
  transform: translateY(-2px);
}

.btn--on-orange {
  border-color: var(--white);
  color: var(--white);
}
.btn--on-orange:hover { background: var(--white); color: var(--orange-deep); }

/* ===================================================
   Header
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 15, 11, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1.25rem, 5vw, 2.5rem);
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-header__logo img { height: 44px; width: auto; filter: drop-shadow(0 0 10px rgba(255,180,84,0.5)); }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }

.site-nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(251, 243, 228, 0.7);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--glow));
  box-shadow: 0 0 8px rgba(255,180,84,0.7);
  transition: width 0.25s var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--cream); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: 0.25s var(--ease); transform-origin: center; }

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(21, 15, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav__link { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
}

/* ===================================================
   Footer
   =================================================== */
.site-footer {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255,180,84,0.12), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(181,73,30,0.25), transparent 45%),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  color: rgba(251, 243, 228, 0.7);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--orange), var(--glow), var(--orange-deep)) 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid img { height: 48px; margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(255,180,84,0.5)); }
.footer-grid p { color: rgba(251, 243, 228, 0.6); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.92rem;
  color: rgba(251, 243, 228, 0.65);
  margin-bottom: 0.6rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--glow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(251, 243, 228, 0.45);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===================================================
   Cabeçalho de página genérico (Sobre, Equipe, Marcas, Depoimentos)
   — agora um hero escuro com brilho, igual à Home
   =================================================== */
.page-hero {
  padding-top: clamp(7.5rem, 14vw, 10rem);
  padding-bottom: var(--gap-section);
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,180,84,0.22), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(181,73,30,0.4), transparent 45%),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  color: var(--cream);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow { color: var(--glow); }
.page-hero .eyebrow::before { background: var(--glow); }
.page-hero h1 { color: var(--white); margin-top: 1rem; }
.page-hero__lead p { margin-bottom: 1.1rem; font-size: 1.02rem; color: rgba(251,243,228,0.78); }

@media (max-width: 880px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===================================================
   Citação destaque (componente compartilhado)
   =================================================== */
.quote-feature { text-align: center; position: relative; z-index: 1; }
.quote-feature__mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(255,180,84,0.4);
  margin-bottom: -1.5rem;
}
.quote-feature blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--cream);
  max-width: 780px;
  margin: 0 auto 1.4rem;
  line-height: 1.35;
}
.quote-feature footer {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(251,243,228,0.7);
}

/* ===================================================
   Cartão de vidro (glassmorphism) — reutilizável
   =================================================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(43,28,18,0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(222,122,48,0.22);
  border-color: rgba(222,122,48,0.45);
}

/* ===================================================
   Botão flutuante Instagram
   =================================================== */
.instagram-float {
  position: fixed;
  bottom: calc(clamp(1.2rem, 4vw, 2rem) + 68px);
  right: clamp(1.2rem, 4vw, 2rem);
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  padding: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.instagram-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(214,36,159,0.45);
}
.instagram-float__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.instagram-float__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease);
}
.instagram-float:hover .instagram-float__label {
  max-width: 160px;
  opacity: 1;
}

@media (max-width: 600px) {
  .instagram-float__label { display: none; }
  .instagram-float { bottom: calc(clamp(1.2rem, 4vw, 2rem) + 60px); }
}

/* ===================================================
   Botão flutuante WhatsApp
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: clamp(1.2rem, 4vw, 2rem);
  right: clamp(1.2rem, 4vw, 2rem);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #25D366;
  color: #fff;
  padding: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
}
.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
.whatsapp-float__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
}
.whatsapp-float__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease);
}
.whatsapp-float:hover .whatsapp-float__label {
  max-width: 160px;
  opacity: 1;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__ring { animation: none; }
}

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

/* ===================================================
   Reveal on scroll
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Efeito cascata: cada item de uma grade aparece com um pequeno atraso */
.pillars__grid .reveal:nth-child(2),
.diferencial__grid .reveal:nth-child(2),
.team-grid .reveal:nth-child(2),
.testimonial-grid .reveal:nth-child(2),
.brand-grid .reveal:nth-child(2),
.timeline__stops .reveal:nth-child(2) { transition-delay: 0.12s; }

.pillars__grid .reveal:nth-child(3),
.diferencial__grid .reveal:nth-child(3),
.team-grid .reveal:nth-child(3),
.testimonial-grid .reveal:nth-child(3),
.brand-grid .reveal:nth-child(3),
.timeline__stops .reveal:nth-child(3) { transition-delay: 0.24s; }

.team-grid .reveal:nth-child(4),
.testimonial-grid .reveal:nth-child(4),
.brand-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

.testimonial-grid .reveal:nth-child(5),
.brand-grid .reveal:nth-child(5) { transition-delay: 0.48s; }
.testimonial-grid .reveal:nth-child(6),
.brand-grid .reveal:nth-child(6) { transition-delay: 0.6s; }
.brand-grid .reveal:nth-child(7) { transition-delay: 0.72s; }
.brand-grid .reveal:nth-child(8) { transition-delay: 0.84s; }
.brand-grid .reveal:nth-child(9) { transition-delay: 0.96s; }
.brand-grid .reveal:nth-child(10) { transition-delay: 1.08s; }
