/* ============================================
   Danilo Macchi — Nutricionista Esportivo
   Design system: editorial clínico + performance
   ============================================ */

:root {
  /* Identidade alinhada ao novo monograma DM — dourado/bronze sobre tons quentes */
  --ink: #1C1815;
  --ink-soft: #4A4038;
  --muted: #8C8278;
  --bg: #F7F2E9;
  --bg-alt: #EFE4D2;
  --white: #FFFFFF;

  --accent: #B08A5E;
  --accent-dark: #8C6A42;
  --accent-light: #D4B383;
  --accent-wash: #F3E9D8;

  --ink-rgb: 28, 24, 21;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-minimal: 'Outfit', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px -20px rgba(29, 29, 31, 0.18);
  --shadow-card: 0 12px 32px -12px rgba(29, 29, 31, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.section { padding: clamp(64px, 10vw, 140px) 0; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.section-kicker--light { color: var(--accent-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 18ch;
}
.section-title--light { color: var(--white); }

.muted { color: var(--muted); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-minimal);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s;
  white-space: nowrap;
}
.btn-accent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 60%, var(--accent-dark));
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(140, 106, 66, 0.55);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -10px rgba(140, 106, 66, 0.65); }
@media (prefers-reduced-motion: no-preference) {
  .btn-accent::before {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 35%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: btn-shimmer 3.4s ease-in-out infinite;
  }
}
@keyframes btn-shimmer {
  0% { left: -60%; }
  50% { left: 130%; }
  100% { left: 130%; }
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(var(--ink-rgb), 0.18);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(var(--ink-rgb), 0.04); }
.btn-lg { padding: 18px 36px; font-size: 0.98rem; }
.btn-header { padding: 11px 22px; font-size: 0.82rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(247, 242, 233, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.06);
}
/* Header parte sobre o hero escuro: texto claro. Ao rolar, vira claro-de-fundo/texto escuro. */
.site-header:not(.is-scrolled) .brand-wordmark,
.site-header:not(.is-scrolled) .main-nav a {
  color: var(--white);
}
.site-header:not(.is-scrolled) .main-nav a::after { background: var(--accent-light); }
.site-header:not(.is-scrolled) .nav-toggle span { background: var(--white); }
.site-header.is-scrolled .brand-wordmark { color: var(--ink); }
.site-header.is-scrolled .main-nav a { color: var(--ink-soft); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  width: 224px;
  height: 40px;
}
.brand-mark {
  position: absolute;
  left: 0; top: 50%;
  height: 40px; width: 40px;
  object-fit: contain;
  filter: brightness(1.65) contrast(1.25) saturate(1.15) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
  transform: translateY(-50%) scale(1) rotate(0deg);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.brand-wordmark {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  font-family: var(--font-minimal);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  opacity: 0;
  transform: translateY(-50%) scale(0.65) rotate(-10deg);
}
.brand:hover .brand-wordmark,
.brand:focus-visible .brand-wordmark {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: 8px;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-minimal);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* ============ HERO (full-bleed) ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 15, 13, 0.94) 0%, rgba(18, 15, 13, 0.8) 24%, rgba(18, 15, 13, 0.3) 44%, rgba(18, 15, 13, 0.1) 64%, transparent 82%),
    linear-gradient(to top, rgba(18, 15, 13, 0.75) 0%, rgba(18, 15, 13, 0) 26%);
}
.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(120px, 16vw, 170px) clamp(20px, 5vw, 40px) 70px;
}
.hero-copy { max-width: 520px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  color: var(--white);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stars {
  color: var(--accent-light);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.stars-sm { font-size: 0.9rem; }
.stars-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 48px;
}
.stars-center span {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-trust-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.hero-trust-text strong { color: var(--white); }


.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 40px);
  bottom: clamp(24px, 4vw, 40px);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
.hero-scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { top: 6px; opacity: 1; }
  70% { top: 24px; opacity: 0; }
  100% { top: 24px; opacity: 0; }
}
.btn-ghost--dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost--dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ============ PROVA SOCIAL STRIP ============ */
.proof-strip {
  background: var(--white);
  border-top: 1px solid rgba(var(--ink-rgb), 0.06);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.06);
  padding: 28px 0;
}
.proof-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.proof-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.proof-mark { width: 34px; height: 34px; object-fit: contain; }
.proof-rating p { font-size: 0.88rem; color: var(--ink-soft); }
.proof-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  flex: 1;
  min-width: 240px;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.proof-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.proof-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============ PROBLEMA / SOLUÇÃO ============ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 32px);
  align-items: stretch;
}
.split-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
}
.split-card--problem {
  background: var(--bg-alt);
  border: 1px solid rgba(var(--ink-rgb), 0.06);
}
.split-card--solution {
  background: var(--ink);
  color: var(--white);
}
.split-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--muted);
}
.split-card--solution .split-label { color: var(--accent-light); }
.split-list li {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  padding: 14px 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.08);
}
.split-list li:first-child { border-top: none; }
.split-card--solution .split-list li { border-top-color: rgba(255,255,255,0.12); }
.split-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
}

/* ============ MÉTODO (timeline vertical) ============ */
.method-section { background: var(--bg-alt); }
.method-timeline {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}
.method-step {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
}
.method-num-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 56px;
}
.method-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.method-line {
  flex: 1;
  width: 1px;
  min-height: 44px;
  margin: 6px 0;
  background: repeating-linear-gradient(to bottom, rgba(var(--ink-rgb), 0.18) 0, rgba(var(--ink-rgb), 0.18) 4px, transparent 4px, transparent 9px);
}
.method-content { padding-top: 4px; padding-bottom: clamp(28px, 4vw, 44px); }
.method-step--last .method-content { padding-bottom: 0; }
.method-icon {
  width: 15px; height: 15px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.method-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.method-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.method-content p:last-child {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* ============ SOBRE (full-bleed) ============ */
.about-section {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 22%;
}
.about-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18, 15, 13, 0.94) 0%, rgba(18, 15, 13, 0.72) 34%, rgba(18, 15, 13, 0.22) 62%, rgba(18, 15, 13, 0.05) 80%, transparent 100%),
    linear-gradient(100deg, rgba(18, 15, 13, 0.35) 0%, transparent 45%);
}
.about-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(90px, 12vw, 130px) clamp(20px, 5vw, 40px) clamp(56px, 8vw, 90px);
}
.about-copy { max-width: 620px; }
.about-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 28px;
}
.about-specialties {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 28px;
  margin-bottom: 28px;
}
.about-specialties li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}
.about-specialties li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}
.about-credential {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ============ DEPOIMENTOS ============ */
.testimonials-section {
  background: var(--ink);
  color: var(--white);
}
.testimonials-section .section-inner:first-child { margin-bottom: 48px; }

/* Carrossel infinito */
.testimonials-marquee {
  width: 100%;
  overflow: hidden;
  margin-bottom: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.testimonials-track {
  display: flex;
  width: max-content;
  gap: 22px;
  padding: 0 clamp(20px, 5vw, 40px);
  animation: testimonials-scroll 46s linear infinite;
}
.testimonials-marquee:hover .testimonials-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}
@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  flex: 0 0 340px;
  width: 340px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease-out), background 0.4s;
}
.testimonial-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,140,90,0.5);
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  flex: 1;
}
.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

.testimonials-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-minimal);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--accent-light);
  letter-spacing: 0.02em;
}
.testimonial-cta-arrow { font-size: 1.2rem; transition: transform 0.3s; }
.testimonials-cta-link:hover .testimonial-cta-arrow { transform: translateX(6px); }

/* ============ DIAGNÓSTICO RÁPIDO ============ */
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.diagnostic-list { display: grid; gap: 18px; }
.diagnostic-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 100%;
}
.diagnostic-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 800;
  margin-top: 2px;
}
.diagnostic-cta {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
}
.diagnostic-cta p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 14px; max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============ CONTATO ============ */
.contact-section { background: var(--ink); color: var(--white); }
.contact-lead {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: 32px;
}
.contact-details {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.contact-detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.contact-detail a { line-height: 1.5; }
.contact-detail a:hover { color: var(--accent-light); }
.social-links { display: flex; gap: 18px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 48px 0 32px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { height: 30px; width: 30px; object-fit: contain; }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.9;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a, .footer-social a { font-size: 0.88rem; }
.footer-nav a:hover, .footer-social a:hover { color: var(--white); }
.footer-social { display: flex; gap: 18px; }
.footer-tagline { width: 100%; font-size: 0.85rem; margin-top: 8px; }
.footer-copy { width: 100%; font-size: 0.78rem; opacity: 0.6; }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  z-index: 90;
  transition: transform 0.3s var(--ease-out);
  animation: float-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 12px 34px -6px rgba(37, 211, 102, 0.85); }
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: loader-pulse 1.8s ease-in-out infinite;
}
.loader-mark { height: 64px; width: 64px; object-fit: contain; }
.loader-wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: -6px;
}
.loader-bar {
  width: 180px;
  height: 3px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.1);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-dark));
  transition: width 0.4s var(--ease-out);
}
@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading { overflow: hidden; }

/* ============ SCROLL REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transform: translateY(28px);
}
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="scale"] { transform: scale(0.92) translateY(16px); }
[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Staggered children within a reveal group */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* Parallax-ish hero background drift */
.hero-bg { will-change: transform; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
  z-index: 101;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .diagnostic-grid { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -12px 0 40px rgba(0,0,0,0.12);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.15rem; color: var(--ink) !important; }
  .nav-toggle.is-open span { background: var(--ink) !important; }
  .nav-toggle { display: flex; z-index: 101; margin-left: auto; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .btn-header { display: none; }

  .split-grid { grid-template-columns: 1fr; }
  .split-arrow { transform: rotate(90deg); padding: 4px 0; }
  .testimonial-card { flex-basis: 280px; width: 280px; padding: 22px; }
  .method-num-col { width: 46px; }
  .method-num { width: 46px; height: 46px; font-size: 1.1rem; border-radius: 14px; }
  .method-step { gap: 16px; }
  .proof-inner { flex-direction: column; align-items: flex-start; }
  .proof-quote { border-left: none; border-top: 2px solid var(--accent); padding-left: 0; padding-top: 14px; }

  .hero { min-height: 92svh; align-items: flex-end; }
  .hero-bg { object-position: 68% center; }
  .hero-scroll-cue { display: none; }
  .hero-inner { padding: 100px clamp(20px, 5vw, 40px) 56px; }
  .hero-scrim {
    background: linear-gradient(to top,
      rgba(18, 15, 13, 0.97) 0%,
      rgba(18, 15, 13, 0.9) 26%,
      rgba(18, 15, 13, 0.55) 46%,
      rgba(18, 15, 13, 0.15) 66%,
      transparent 82%);
  }

  .about-section { min-height: 76svh; }
  .about-bg { object-position: 38% 15%; }
  .about-specialties { grid-template-columns: 1fr; }
  .brand { width: 34px; }
  .brand-wordmark { display: none; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
