/* ===================== Dr. Marcel Nishimura — Landing Page ===================== */

:root {
  --navy: #12294a;
  --navy-2: #1a3a5c;
  --navy-light: #24466f;
  --gold: #d4af37;
  --gold-light: #e8c766;
  --off-white: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1f2733;
  --ink-soft: #4a5568;
  --line: #e6ddc8;
  --shadow: 0 20px 45px -20px rgba(18, 41, 74, 0.35);
  --radius: 18px;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0; line-height: 1.15; }
p { line-height: 1.7; color: var(--ink-soft); }

.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 0.6rem; }
.section-head p { margin-top: 0.9rem; font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #26200a;
  box-shadow: 0 14px 30px -10px rgba(212, 175, 55, 0.65);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(212, 175, 55, 0.8); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: #1fae57;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(31, 174, 87, 0.6);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: #189249; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
header#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: all 0.35s ease;
}
header#site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(18, 41, 74, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.35s ease;
}
header#site-header.scrolled {
  padding: 12px 0;
}
header#site-header.scrolled .bar {
  background: rgba(255,255,255,0.92);
  border-color: rgba(18,41,74,0.08);
  box-shadow: 0 12px 30px -18px rgba(18,41,74,0.5);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.35);
}
.brand-badge img { height: 30px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.02rem; color: #fff; transition: color 0.35s ease; }
.brand-text span { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--gold-light); text-transform: uppercase; }
header#site-header.scrolled .brand-text strong { color: var(--navy); }

nav.main-nav { display: flex; align-items: center; gap: 1.9rem; }
nav.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
  position: relative;
}
header#site-header.scrolled nav.main-nav a { color: var(--navy); }
nav.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
nav.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
header#site-header.scrolled .hamburger { border-color: rgba(18,41,74,0.25); }
.hamburger span { width: 18px; height: 2px; background: #fff; display: block; transition: 0.3s; }
header#site-header.scrolled .hamburger span { background: var(--navy); }

.mobile-panel {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 600;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel a { color: #fff; font-family: var(--serif); font-size: 1.6rem; }
.mobile-panel .close-panel {
  position: absolute; top: 26px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff; font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(8.5rem, 14vw, 11rem) 0 6rem;
  background: radial-gradient(1100px 620px at 82% -10%, #1e4674 0%, transparent 60%), linear-gradient(160deg, #0f2544 0%, var(--navy-2) 48%, #16324f 100%);
  overflow: hidden;
  color: #fff;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.25);
}
.hero::before { width: 520px; height: 520px; top: -220px; right: -160px; }
.hero::after { width: 320px; height: 320px; bottom: -140px; left: -100px; border-color: rgba(255,255,255,0.08); }
.hero-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin: 0.7rem 0 1.3rem;
}
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 540px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.1rem; }

.hero-info-card {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.6rem 2.2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  max-width: 620px;
}
.hero-info-card div { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #fff; }
.hero-info-card svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 3/3.6;
  border-radius: 28px;
  background: linear-gradient(155deg, #234a72, #142c4d);
  border: 1px solid rgba(212,175,55,0.4);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.portrait-frame::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}
.portrait-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 1;
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,30,50,0.85) 0%, rgba(15,30,50,0.15) 32%, transparent 55%);
  z-index: 2;
  pointer-events: none;
}
.portrait-caption {
  position: absolute; bottom: 50px; left: 0; right: 0;
  text-align: center; color: #fff;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 3;
}
.floating-badge {
  position: absolute;
  z-index: 5;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 34px -14px rgba(18,41,74,0.5);
  padding: 0.8rem 1.05rem;
  display: flex; align-items: center; gap: 10px;
  animation: float 5s ease-in-out infinite;
}
.floating-badge strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.15rem; line-height: 1; }
.floating-badge span { font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.floating-badge.badge-years { top: -18px; left: -24px; animation-delay: 0s; }
.floating-badge.badge-oab { bottom: -18px; left: -12px; animation-delay: 1.3s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
}
.trust-bar .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  align-items: center; justify-content: space-between;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--navy); font-weight: 700; }
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.about-grid p { margin: 0 0 1.1rem; }
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.3rem;
  margin: 1.6rem 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--navy);
  font-size: 1.12rem;
}
.about-side {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.6rem;
}
.stat-big { text-align: center; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.stat-big strong { font-family: var(--serif); font-size: 2.8rem; color: var(--gold-light); display: block; }
.stat-big span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.about-side h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.8rem; }
.about-side ul li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; padding: 0.35rem 0; color: rgba(255,255,255,0.9); }
.about-side ul li svg { width: 16px; height: 16px; color: var(--gold-light); flex-shrink: 0; }

/* ---------- Diagnostic / services interactive ---------- */
.diagnostic { background: var(--paper); }
.diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.diag-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.diag-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.diag-card.active { border-color: var(--gold); box-shadow: var(--shadow); }
.diag-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(150deg, var(--navy-2), var(--navy));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.diag-icon svg { width: 24px; height: 24px; color: var(--gold-light); }
.diag-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.diag-card p { font-size: 0.9rem; margin: 0; }
.diag-more { font-size: 0.8rem; color: var(--gold); font-weight: 700; margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.diag-more svg { width: 13px; height: 13px; transition: transform 0.25s ease; }
.diag-card.active .diag-more svg { transform: rotate(90deg); }

.diag-detail {
  margin-top: 2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  display: none;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.diag-detail.show { display: flex; animation: fadeUp 0.4s ease; }
.diag-detail-text h4 { color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.5rem;}
.diag-detail-text p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px);} to {opacity:1; transform: translateY(0);} }

/* ---------- Differentiators ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.diff-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.diff-card:hover { transform: translateY(-6px); }
.diff-card .num {
  font-family: var(--serif); font-size: 2.1rem; color: var(--gold);
  display: block; margin-bottom: 0.6rem;
}
.diff-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.diff-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Process timeline ---------- */
.process { background: var(--navy); color: #fff; overflow: hidden; }
.process .section-head h2, .process .section-head p { color: #fff; }
.process .section-head p { color: rgba(255,255,255,0.75); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(212,175,55,0.5) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: left; }
.step .step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.step h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 1rem;
}
.faq-q h3 { font-size: 1.05rem; color: var(--navy); }
.faq-q .plus {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative; transition: transform 0.3s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--gold);
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; transition: opacity 0.2s ease; }
.faq-item.open .faq-q .plus::after { opacity: 0; }
.faq-item.open .faq-q .plus { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding-top: 0.9rem; margin: 0; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--navy-2), var(--navy) 60%);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(212,175,55,0.22), transparent 70%);
}
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); position: relative; }
.final-cta p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0.9rem auto 2rem; position: relative; }
.final-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: transform 0.25s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card .ic {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--navy-2), var(--navy));
  display: flex; align-items: center; justify-content: center;
}
.contact-card .ic svg { width: 22px; height: 22px; color: var(--gold-light); }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.contact-card a, .contact-card span.value { font-weight: 700; color: var(--navy); font-size: 1.02rem; }

/* ---------- Footer ---------- */
footer { background: #0e2038; color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-brand .brand-badge img { height: 30px; }
.footer-brand strong { font-family: var(--serif); color: #fff; font-size: 1.1rem; }
footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
footer ul li { padding: 0.35rem 0; font-size: 0.9rem; }
footer ul li a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding-top: 1.6rem; font-size: 0.8rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 62px; height: 62px; border-radius: 50%;
  background: #1fae57; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -10px rgba(31,174,87,0.7);
}
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #1fae57; animation: pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.55;} 100% { transform: scale(1.8); opacity: 0;} }

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

/* ---------- Counter ---------- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  nav.main-nav, .header-actions .btn-gold-desktop { display: none; }
  .hamburger { display: flex; }
  .hero .container, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .portrait-frame { width: 260px; }
  .diag-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .diag-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .hero-info-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .diag-detail { flex-direction: column; align-items: flex-start; }
  .floating-badge.badge-oab { left: 4px; bottom: -10px; padding: 0.6rem 0.8rem; }
  .floating-badge.badge-years { left: 4px; top: -14px; padding: 0.6rem 0.8rem; }
  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 26px; height: 26px; }
}
