/* ============================================================
   Dr. José Motta — Nefrologista
   Shared Stylesheet — style.css
   Colors: Navy #0B1D38 | Gold #C8A870 | Cream #F5F1EB
   Fonts: Helvetica Neue (headings) + DM Sans (body)
   ============================================================ */

/* ── Reset & Box Model ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #F5F1EB; color: #0B1D38; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy:      #0B1D38;
  --navy-mid:  #152E52;
  --navy-light:#1E3F6E;
  --gold:      #C8A870;
  --gold-dk:   #A88848;
  --gold-lt:   #E5D0A0;
  --cream:     #F5F1EB;
  --cream-dk:  #EDE8DF;
  --white:     #FDFAF5;
  --text:      #0B1D38;
  --text-mid:  #3A4F68;
  --text-mute: #7A8FA8;
}

/* ── Typography ─────────────────────────────────────────────── */
.t-display {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.t-section {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.t-section-sm {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.t-pull {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
}

.t-lead {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--text-mid);
}

.t-small {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.65;
}

.t-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Eyebrow ────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow-w {
  color: var(--gold-lt);
}
.eyebrow-w::before {
  background: var(--gold-lt);
}

/* ── Gold Rule ──────────────────────────────────────────────── */
.g-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 38px;
  border: none;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-primary:hover {
  background: var(--gold-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 168, 112, 0.35);
}

.btn-ghost-w {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.btn-ghost-w:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(11, 29, 56, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 168, 112, 0.12);
}

.nav-logo { display: flex; align-items: center; gap: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-drop-btn:hover { color: #fff; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #0B1D38;
  border: 1px solid rgba(200, 168, 112, 0.18);
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 8px);
}
.nav-drop-menu a {
  display: block;
  padding: 11px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s, background 0.2s;
}
.nav-drop-menu a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile menu */
#mob-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: rgba(6, 12, 22, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(200, 168, 112, 0.12);
  padding: 8px 24px 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
#mob-menu.open {
  max-height: 80vh;
  opacity: 1;
  overflow-y: auto;
}
#mob-menu a {
  padding: 13px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}
#mob-menu a:last-of-type { border-bottom: none; }
#mob-menu a:hover { color: var(--gold); }

/* ── Page Hero (internal pages) ─────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 140px 0 88px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 120%, rgba(200, 168, 112, 0.07), transparent);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 168, 112, 0.2), transparent);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.breadcrumb a,
.breadcrumb span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(255, 255, 255, 0.65); }
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}
.breadcrumb .current { color: var(--gold); }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.4, 1),
              transform 0.65s cubic-bezier(0.2, 0.6, 0.4, 1);
}
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.container-sm {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.section-pad    { padding-top: 100px; padding-bottom: 100px; }
.section-pad-lg { padding-top: 140px; padding-bottom: 140px; }
.section-pad-sm { padding-top: 64px;  padding-bottom: 64px;  }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Content Card ───────────────────────────────────────────── */
.content-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 40px;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--cream-dk);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.faq-q {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
}
.faq-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde3eb;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  transition: transform 0.28s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.faq-body.open { max-height: 360px; }
.faq-a { padding-bottom: 26px; }

/* ── CTA Block ──────────────────────────────────────────────── */
.cta-block {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(200, 168, 112, 0.08), transparent);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: #060c16;
  border-top: 1px solid rgba(200, 168, 112, 0.1);
}
.footer-inner {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-links a { transition: color 0.2s; }
.footer-nav-links a:hover { color: rgba(255, 255, 255, 0.75) !important; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.wa-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 3s infinite;
  transition: transform 0.2s ease;
}
.wa-btn:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  55%       { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ── Utility Colors ─────────────────────────────────────────── */
.gold    { color: var(--gold); }
.gold-dk { color: var(--gold-dk); }
.navy    { color: var(--navy); }
.white   { color: #fff; }
.mute-w  { color: rgba(255, 255, 255, 0.5); }
.mute    { color: var(--text-mute); }
.italic  { font-style: italic; }

/* ── Misc helpers ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 1025px) {
  #nav-cta-desktop { display: inline-block !important; }
  #hamburger       { display: none !important; }
}

@media (max-width: 1024px) {
  .nav-links       { display: none; }
  #hamburger       { display: flex !important; }
  #nav-cta-desktop { display: none !important; }

  .split-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .container    { padding-left: 24px; padding-right: 24px; }
  .container-sm { padding-left: 24px; padding-right: 24px; }

  .section-pad    { padding-top: 72px;  padding-bottom: 72px;  }
  .section-pad-lg { padding-top: 96px;  padding-bottom: 96px;  }
  .section-pad-sm { padding-top: 48px;  padding-bottom: 48px;  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .page-hero { padding: 110px 0 56px; }

  .t-display  { font-size: 32px; line-height: 1.05; }
  .t-section  { font-size: 24px; }
  .t-section-sm { font-size: 20px; }
  .t-pull     { font-size: 18px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  .content-card { padding: 28px 24px; }

  .cta-block { padding: 64px 0; }

  .wa-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }

  /* Grid overrides for small screens */
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 2px; }
  .split-2 { gap: 32px; }
}

/* ── Specific page helpers ──────────────────────────────────── */

/* Image placeholder style */
.img-placeholder {
  background: var(--cream-dk);
  border: 1px dashed rgba(200, 168, 112, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Value card (navy bg) */
.value-card {
  padding: 32px 28px;
  border-top: 2px solid rgba(200, 168, 112, 0.25);
}
.value-card:hover {
  border-top-color: var(--gold);
  transition: border-top-color 0.3s;
}

/* Stat highlight */
.stat-block {
  padding: 36px;
  background: rgba(200, 168, 112, 0.06);
  border-left: 3px solid var(--gold);
}

/* Symptom / list item */
.styled-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
}
.styled-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Stone type card */
.stone-type {
  padding: 28px 32px;
  background: var(--white);
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease;
}
.stone-type:hover { border-left-color: var(--gold); }
.stone-type-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

/* Approach step */
.approach-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.approach-num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  opacity: 0.5;
  flex-shrink: 0;
  width: 48px;
}

/* Grid 4 columns */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   SHARED JS — include in every HTML page inside <script> tags
   ============================================================

const nav=document.getElementById('nav');
window.addEventListener('scroll',()=>{nav.classList.toggle('scrolled',window.scrollY>40);},{passive:true});
document.getElementById('hamburger').addEventListener('click',()=>{document.getElementById('mob-menu').classList.toggle('open');});
document.querySelectorAll('#mob-menu a').forEach(a=>a.addEventListener('click',()=>document.getElementById('mob-menu').classList.remove('open')));
const obs=new IntersectionObserver(entries=>{entries.forEach(e=>{if(e.isIntersecting)e.target.classList.add('in');});},{threshold:0.08,rootMargin:'0px 0px -24px 0px'});
document.querySelectorAll('.rv').forEach(el=>obs.observe(el));
function faq(btn){const item=btn.closest('.faq-item');const body=item.querySelector('.faq-body');const icon=btn.querySelector('.faq-icon');const open=item.classList.contains('open');document.querySelectorAll('.faq-item').forEach(fi=>{fi.classList.remove('open');fi.querySelector('.faq-body').classList.remove('open');fi.querySelector('.faq-icon').textContent='+';});if(!open){item.classList.add('open');body.classList.add('open');icon.textContent='−';}}

   ============================================================ */
