/* ═══════════════════════════════════════════════════════════
   TOKENS & RESET
═══════════════════════════════════════════════════════════ */
:root {
  /* Palette */
  --frozen-water: #bee9e8;
  --pacific-blue: #62b6cb;
  --yale-blue:    #1b4965;
  --pale-sky:     #cae9ff;
  --fresh-sky:    #5fa8d3;

  /* Semantic tokens */
  --bg:          #f5fbff;
  --bg-alt:      #dff0fb;
  --navy:        #1b4965;
  --graphite:    #1e3a4a;
  --muted:       #5b7a8c;
  --border:      #c2dff0;
  --coral:       #62b6cb;
  --coral-light: #bee9e8;
  --white:       #FFFFFF;
  --wpp:         #25D366;
  --wpp-dark:    #128C7E;

  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --radius-xl:   48px;

  --shadow-sm:   0 2px 8px rgba(27,73,101,.06);
  --shadow-md:   0 8px 32px rgba(27,73,101,.10);
  --shadow-lg:   0 20px 60px rgba(27,73,101,.12);

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--graphite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 54ch;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-sub { margin-inline: auto; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #163d54;
  border-color: #163d54;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.btn--wpp {
  background: var(--wpp);
  color: var(--white);
  border-color: var(--wpp);
  width: 100%;
  justify-content: center;
}
.btn--wpp:hover { background: var(--wpp-dark); border-color: var(--wpp-dark); }

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal--right { transform: translateX(40px); }
.reveal--left  { transform: translateX(-40px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger siblings */
.cards-grid .reveal:nth-child(2)  { transition-delay: .15s; }
.cards-grid .reveal:nth-child(3)  { transition-delay: .3s;  }
.depo-grid  .reveal:nth-child(2)  { transition-delay: .15s; }
.depo-grid  .reveal:nth-child(3)  { transition-delay: .3s;  }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245,251,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.logo__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.logo__crm {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: 2.25rem;
}
.nav__link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { width: 100%; }

.header__cta { margin-left: 1.5rem; padding: .625rem 1.375rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--coral);
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Photo frame */
.hero__visual { display: flex; justify-content: center; }

.hero__photo-frame {
  position: relative;
  width: 380px;
  height: 460px;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #bee9e8 0%, #62b6cb 100%);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero__photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.photo-silhouette {
  width: 100%;
  padding-bottom: 1rem;
}
.photo-silhouette svg { width: 100%; }

/* Floating badges */
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .875rem 1.25rem;
  box-shadow: var(--shadow-md);
  animation: floatBadge 4s ease-in-out infinite alternate;
}
.hero__badge--top {
  top: -1.5rem;
  right: -2rem;
  animation-delay: 0s;
}
.hero__badge--bottom {
  bottom: 2rem;
  left: -2.5rem;
  animation-delay: .8s;
}

.badge__icon {
  font-size: 1.5rem;
  color: var(--coral);
}
.hero__badge strong { display: block; font-size: .9375rem; color: var(--navy); }
.hero__badge small  { font-size: .75rem; color: var(--muted); }

@keyframes floatBadge {
  from { transform: translateY(0);    }
  to   { transform: translateY(-8px); }
}

/* Geometric circles */
.hero__circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__circle--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(98,182,203,.12) 0%, transparent 70%);
  top: -140px;
  right: -180px;
}
.hero__circle--2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(27,73,101,.06) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

/* ═══════════════════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--navy);
  padding: 2.5rem 0;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
}
.trust-item__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.trust-item__label {
  font-size: .8125rem;
  color: #94a3b8;
  letter-spacing: .02em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ═══════════════════════════════════════════════════════════
   ESPECIALIDADES
═══════════════════════════════════════════════════════════ */
.especialidades {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.card--featured .card__text,
.card--featured .card__list li { color: #94a3b8; }
.card--featured .card__link  { color: var(--pale-sky); }

.card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--coral);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
}

.card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.card__icon-wrap--1 { background: var(--coral-light); color: var(--coral); }
.card__icon-wrap--2 { background: rgba(95,168,211,.18); color: var(--fresh-sky); }
.card__icon-wrap--3 { background: #f0fdf4; color: #22c55e; }

.card__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: inherit;
  margin-bottom: .875rem;
}
.card--featured .card__title { color: var(--white); }

.card__text {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card__list {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card--featured .card__list { border-color: rgba(255,255,255,.12); }
.card__list li {
  font-size: .875rem;
  color: var(--graphite);
  padding-left: 1.25rem;
  position: relative;
}
.card__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--coral);
}

.card__link {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition), gap var(--transition);
  display: inline-flex;
  gap: .25rem;
}
.card__link:hover { gap: .5rem; }

/* ═══════════════════════════════════════════════════════════
   SOBRE
═══════════════════════════════════════════════════════════ */
.sobre {
  background: var(--bg-alt);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Photo */
.sobre__visual { display: flex; justify-content: center; }

.sobre__photo-frame {
  position: relative;
  width: 360px;
}

.sobre__photo-placeholder {
  background: linear-gradient(145deg, #cae9ff, #5fa8d3);
  border-radius: var(--radius-xl) var(--radius-sm) var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 460px;
  display: flex;
  align-items: flex-end;
}

.sobre__photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.photo-silhouette--alt svg { width: 100%; }

.sobre__accent-card {
  position: absolute;
  bottom: -1.5rem;
  right: -2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 240px;
  border-left: 4px solid var(--coral);
}
.sobre__accent-quote {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}

/* Content */
.sobre__text {
  font-size: 1rem;
  color: var(--graphite);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.sobre__credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.credential {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.credential strong { font-size: .875rem; color: var(--navy); font-weight: 600; }
.credential span   { font-size: .8125rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   DEPOIMENTOS
═══════════════════════════════════════════════════════════ */
.depoimentos {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.depo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.depo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition);
}
.depo-card:hover { box-shadow: var(--shadow-md); }

.depo-stars {
  color: #FBBF24;
  font-size: 1rem;
  letter-spacing: .1em;
}

.depo-card p {
  font-size: .9375rem;
  color: var(--graphite);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.depo-card footer {
  font-size: .8125rem;
  color: var(--muted);
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.depo-card footer strong { color: var(--navy); display: block; }

/* ═══════════════════════════════════════════════════════════
   CONTATO
═══════════════════════════════════════════════════════════ */
.contato {
  background: var(--bg-alt);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.contato__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contato__items {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0 2.5rem;
}

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

.contato__item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--coral-light);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato__item strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .2rem;
}
.contato__item span { font-size: .9375rem; color: var(--muted); line-height: 1.6; }

/* Map */
.mapa-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  filter: grayscale(40%);
  transition: filter var(--transition);
}
.mapa-frame:hover { filter: grayscale(0); }
.mapa-frame iframe { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.footer__brand .logo__name { color: var(--white); font-size: 1rem; }
.footer__reg { font-size: .75rem; color: #64748b; }

.footer__nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.footer__nav a {
  font-size: .9rem;
  color: #94a3b8;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__copy { width: 100%; font-size: .8125rem; color: #475569; }

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--wpp);
  color: var(--white);
  border-radius: 100px;
  padding: .875rem 1.375rem .875rem 1rem;
  box-shadow: 0 8px 32px rgba(37,211,102,.35);
  font-weight: 600;
  font-size: .9375rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  max-width: 280px;
}
.whatsapp-fab:hover {
  background: var(--wpp-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,211,102,.45);
}

.whatsapp-fab__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP MODAL
═══════════════════════════════════════════════════════════ */
.wpp-modal {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 801;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 300px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(16px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wpp-modal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wpp-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--bg-alt);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: .8rem;
  cursor: pointer;
  color: var(--muted);
  transition: background var(--transition);
}
.wpp-modal__close:hover { background: var(--border); }

.wpp-modal__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
}
.wpp-modal__avatar svg { width: 100%; height: 100%; }

.wpp-modal__body strong { font-size: .9375rem; color: var(--navy); display: block; margin-bottom: .35rem; }
.wpp-modal__body p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 960px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero__inner        { grid-template-columns: 1fr; text-align: center; }
  .hero__sub          { margin-inline: auto; }
  .hero__actions      { justify-content: center; }
  .hero__visual       { order: -1; }
  .hero__photo-frame  { width: 300px; height: 370px; }
  .hero__badge--top   { right: -1rem; }
  .hero__badge--bottom{ left: -1rem; }

  .sobre__inner       { grid-template-columns: 1fr; }
  .sobre__photo-frame { width: 100%; max-width: 400px; }
  .sobre__photo-placeholder { height: 360px; }
  .sobre__accent-card { right: 0; }
  .sobre__credentials { grid-template-columns: 1fr 1fr; }

  .cards-grid, .depo-grid { grid-template-columns: 1fr 1fr; }

  .contato__inner { grid-template-columns: 1fr; }
  .mapa-frame     { height: 320px; }

  .trust-divider  { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 620px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 620px) {
  /* Header */
  .nav {
    position: fixed;
    inset: 72px 0 0;
    background: var(--bg);
    padding: 2rem 1.5rem;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-top: 1px solid var(--border);
  }
  .nav.open       { transform: translateX(0); }
  .nav__list      { flex-direction: column; gap: 1.5rem; }
  .nav__link      { font-size: 1.125rem; }
  .header__cta    { display: none; }
  .hamburger      { display: flex; }

  /* Cards stacked */
  .cards-grid, .depo-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero__photo-frame  { width: 260px; height: 320px; }
  .hero__badge        { padding: .625rem 1rem; }
  .hero__badge--top   { top: -1rem; right: -.5rem; }
  .hero__badge--bottom{ bottom: 1rem; left: -.5rem; }

  /* Sobre */
  .sobre__credentials { grid-template-columns: 1fr; }

  /* Footer */
  .footer__nav { margin-left: 0; }

  /* FAB label */
  .whatsapp-fab__label { display: none; }
  .whatsapp-fab { padding: 1rem; border-radius: 50%; }

  .wpp-modal { right: 1rem; left: 1rem; width: auto; }
}
