/* Dr. Mateus Rates — identidade visual própria (estúdio clean + navy/dourado) */

:root {
  --navy: #1B2A4A;
  --navy-dark: #0f1a2e;
  --navy-mid: #243656;
  --gold: #B8972B;
  --gold-soft: #c9a84a;
  --cream: #f7f5f0;
  --mist: #eef1f5;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c6570;
  --line: rgba(27, 42, 74, 0.12);
  --whatsapp: #25d366;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-soft { background: var(--cream); }
.section-mist { background: var(--mist); }

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(184, 151, 43, 0.28);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn-wa {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-wa:hover { filter: brightness(1.05); }

.btn-sm { padding: 11px 20px; font-size: 0.72rem; }

/* —— Header —— */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

.header.is-solid {
  background: rgba(15, 26, 46, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--white);
}

.logo-mark {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--white);
}

/* —— Hero: full-bleed photo plane —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 26, 46, 0.88) 0%, rgba(15, 26, 46, 0.55) 48%, rgba(15, 26, 46, 0.25) 100%),
    linear-gradient(to top, rgba(15, 26, 46, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(120px, 18vh, 180px) 0 clamp(56px, 10vh, 96px);
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 151, 43, 0.55);
  border-radius: 999px;
  background: rgba(184, 151, 43, 0.12);
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-actions .btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* —— Trust strip —— */
.trust {
  background: var(--navy-dark);
  color: var(--white);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* —— Insurance —— */
.insurance {
  padding: 36px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.insurance-label {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: slide 45s linear infinite;
}

.marquee-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.45;
  white-space: nowrap;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— About —— */
.about-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--mist);
  box-shadow: 0 24px 60px rgba(27, 42, 74, 0.14);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: auto -18px -18px auto;
  width: 42%;
  height: 42%;
  border: 2px solid var(--gold);
  border-radius: 22px;
  z-index: -1;
}

.about-copy p { margin-bottom: 16px; color: var(--muted); }
.about-copy p:first-of-type { color: var(--ink); font-size: 1.12rem; }

.about-list {
  margin: 28px 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding-left: 22px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.about-note {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-top: 8px;
}

/* —— Tech —— */
.tech-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.tech-visual {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy);
}

.tech-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.tech-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.tech-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}

.tech-chip h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.tech-chip p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* —— Portrait mosaic (no scrollbars) —— */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}

.mosaic figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mist);
}

.mosaic figure:first-child {
  grid-row: 1 / 3;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s var(--ease);
}

.mosaic figure:hover img { transform: scale(1.04); }

/* —— Procedures —— */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.proc-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.35s var(--ease);
}

.proc-card:hover {
  border-color: rgba(184, 151, 43, 0.45);
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.08);
  transform: translateY(-3px);
}

.proc-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 18px;
}

.proc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.proc-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
  min-height: 4.2em;
}

/* —— Testimonials —— */
.quote-wrap {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  min-height: 220px;
}

.quote {
  display: none;
  animation: fadeUp 0.45s var(--ease);
}

.quote.is-on { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-stars {
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.quote-text {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 22px;
}

.quote-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

.quote-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.quote-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
}
.quote-dot.is-on { background: var(--gold); }

/* —— Accordion —— */
.acc {
  max-width: 780px;
  margin: 36px auto 0;
}

.acc-item { border-bottom: 1px solid var(--line); }

.acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.acc-btn:hover { color: var(--gold); }

.acc-plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: transform 0.25s;
}

.acc-item.is-open .acc-plus { transform: rotate(45deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.acc-panel > div {
  overflow: hidden;
}

.acc-panel p {
  padding-bottom: 20px;
  color: var(--muted);
}

.conditions-cta {
  text-align: center;
  margin-bottom: 8px;
}

.conditions-cta .lead { margin: 0 auto 24px; }

/* —— Locations —— */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.loc-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.loc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(27, 42, 74, 0.1);
}

.loc-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--mist);
}

.loc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.loc-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.loc-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.loc-body h3 span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.loc-addr {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
  flex: 1;
}

.loc-phone {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* —— FAQ / CTA —— */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 151, 43, 0.18), transparent 50%),
    var(--navy-dark);
  color: var(--white);
}

.cta-band .section-title { color: var(--white); }
.cta-band .lead { color: rgba(255, 255, 255, 0.78); margin: 0 auto 28px; }

/* —— Footer —— */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.95rem;
  max-width: 28rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links li,
.footer-contact li { margin-bottom: 12px; }

.footer-links a:hover,
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* —— FAB —— */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform 0.25s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* —— Modal —— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.78);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.is-open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--mist);
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--muted);
}

.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  padding-right: 36px;
}

.modal-body p {
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-cta { margin-top: 22px; }

/* —— Mobile menu —— */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.mobile-menu a:hover { color: var(--gold); }

.mobile-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .proc-grid,
  .loc-grid { grid-template-columns: 1fr 1fr; }

  .about-layout,
  .tech-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 420px;
    margin-inline: auto;
  }

  .tech-visual {
    max-width: 480px;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .mosaic figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links,
  .nav .btn { display: none; }
  .menu-toggle { display: flex; }

  .trust-grid { grid-template-columns: 1fr; gap: 16px; }

  .hero-content { padding-bottom: 48px; }

  .proc-grid,
  .loc-grid,
  .tech-benefits,
  .footer-grid { grid-template-columns: 1fr; }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .mosaic figure { aspect-ratio: 4 / 5; }
  .mosaic figure:first-child { aspect-ratio: 3 / 4; }

  .header:not(.is-solid) {
    background: rgba(15, 26, 46, 0.55);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .loc-actions .btn { flex: 1; }
}
