/* ═══════════════════════════════════════════
   BRUNA DIB AMARAL BIOCLINIC — Design System
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --navy: #131B2E;
  --caramel: #A0622A;
  --cream: #D9CDB4;
  --off-white: #FAF8F5;
  --text: #1A1A2E;
  --text-muted: #6B6B7B;
  --card-bg: #FFFFFF;
  --radius-sm: 1rem;
  --radius-md: 2rem;
  --radius-lg: 3rem;
  --radius-pill: 999px;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-ui); background: var(--off-white); color: var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
address { font-style: normal; }

/* ── Noise Overlay ── */
.noise-svg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; mix-blend-mode: overlay; }

/* ── Section Container ── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--caramel); margin-bottom: 1rem; }
.section-eyebrow.light { color: var(--cream); }
.section-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.15; color: var(--text); }
.section-title em { font-style: italic; color: var(--caramel); }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 1.5rem auto 0; line-height: 1.7; }

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500;
  overflow: hidden; cursor: pointer; border: none;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}
.btn-primary { background: var(--caramel); color: #fff; }
.btn-secondary { background: transparent; color: var(--caramel); border: 1.5px solid var(--caramel); }
.btn-primary .btn-bg { position: absolute; inset: 0; background: #7a4a1f; transform: translateY(101%); transition: transform 0.4s var(--transition); }
.btn-secondary .btn-bg { position: absolute; inset: 0; background: var(--caramel); transform: translateY(101%); transition: transform 0.4s var(--transition); }
.btn-text { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover .btn-bg, .btn-secondary:hover .btn-bg { transform: translateY(0); }
.btn-secondary:hover { color: #fff; }
.btn-primary:hover, .btn-secondary:hover { transform: scale(1.03) translateY(-1px); box-shadow: 0 8px 32px rgba(160,98,42,0.3); }
.btn-large { padding: 1.25rem 2.5rem; font-size: 1rem; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 3rem); max-width: 1100px;
}
.nav-pill {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.75rem 1.25rem 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background 0.4s var(--transition), backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  border: 1px solid transparent;
  box-shadow: 0 8px 32px rgba(19, 27, 46, 0.35);
}
#navbar.scrolled .nav-pill {
  background: rgba(19, 27, 46, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(217, 205, 180, 0.15);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; object-fit: contain; display: block; }
.nav-wordmark .accent { color: var(--cream); opacity: 0.7; }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-link { font-size: 0.85rem; font-weight: 400; color: rgba(250,248,245,0.8); padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--cream); background: rgba(217,205,180,0.1); }
.nav-cta { font-size: 0.85rem; font-weight: 500; color: #fff; background: var(--caramel); padding: 0.5rem 1.2rem; border-radius: var(--radius-pill); white-space: nowrap; transition: transform 0.3s var(--transition), box-shadow 0.3s; }
.nav-cta:hover { transform: scale(1.04) translateY(-1px); box-shadow: 0 4px 20px rgba(160,98,42,0.4); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.3s; }
.mobile-menu { display: none; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero { position: relative; height: 100dvh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.4) translateX(12%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,22,0.95) 0%, rgba(19,27,46,0.7) 40%, rgba(19,27,46,0.3) 70%, transparent 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 6vw 4vh; max-width: 800px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--cream); opacity: 0.8; margin-bottom: 0.8rem; text-transform: uppercase; }
.hero-title { margin-bottom: 2rem; }
.hero-title-sans { display: block; font-family: var(--font-ui); font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 600; color: var(--off-white); line-height: 1.1; letter-spacing: -0.02em; }
.hero-title-serif { display: block; font-family: var(--font-head); font-style: italic; font-weight: 300; font-size: clamp(3.5rem, 9.5vw, 8.5rem); color: var(--cream); line-height: 0.8; letter-spacing: -0.02em; margin-top: -0.05em; }
.hero-sub { font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: rgba(250,248,245,0.75); line-height: 1.6; margin-bottom: 1.5rem; max-width: 480px; }
.hero-scroll-hint { position: absolute; bottom: 2.5rem; right: 3rem; z-index: 2; display: flex; align-items: center; }
.scroll-line { display: block; width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--cream)); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:0.8;transform:scaleY(1.15)} }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 1.5rem;
  border-top: 1px solid rgba(217,205,180,0.15); padding-top: 1.25rem;
}
.hero-stats .stat-item { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-stats .stat-number { font-family: var(--font-head); font-size: 2.2rem; color: var(--cream); font-weight: 300; line-height: 1; }
.hero-stats .stat-label { font-family: var(--font-ui); font-size: 0.7rem; color: rgba(250,248,245,0.65); text-transform: uppercase; letter-spacing: 0.05em; max-width: 160px; line-height: 1.4; }

/* ══════════════════════════════════════
   TRUST BAR
══════════════════════════════════════ */
.trust-bar { background: var(--navy); display: flex; justify-content: center; align-items: center; gap: 0; padding: 1.25rem 2rem; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0 3rem; }
.trust-value { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; color: var(--cream); }
.trust-label { font-size: 0.7rem; color: rgba(217,205,180,0.55); letter-spacing: 0.05em; text-align: center; }
.trust-divider { width: 1px; height: 32px; background: rgba(217,205,180,0.2); }

/* ══════════════════════════════════════
   PROCEDURES
══════════════════════════════════════ */
.procedures { padding: 8rem 0; background: var(--off-white); }
.procedures-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proc-card {
  background: var(--card-bg); border-radius: var(--radius-md);
  border: 1px solid rgba(19,27,46,0.08);
  box-shadow: 0 4px 24px rgba(19,27,46,0.06);
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
  cursor: default; outline: none; overflow: hidden;
}
.proc-card:hover, .proc-card:focus-visible { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 48px rgba(19,27,46,0.14); }
.proc-card-featured { border-color: rgba(160,98,42,0.25); box-shadow: 0 4px 24px rgba(160,98,42,0.1); }
.proc-card-featured:hover { box-shadow: 0 16px 48px rgba(160,98,42,0.2); }
.proc-card-image { width: 100%; height: 260px; overflow: hidden; }
.proc-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition); }
.proc-card:hover .proc-card-image img { transform: scale(1.05); }
.proc-card-inner { padding: 2.5rem; height: calc(100% - 260px); display: flex; flex-direction: column; gap: 0.75rem; }
.proc-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.proc-desc { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; color: var(--caramel); font-weight: 400; }
.proc-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.proc-tag { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(19,27,46,0.35); border: 1px solid rgba(19,27,46,0.1); padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); align-self: flex-start; margin-top: auto; }
.proc-card-featured .proc-tag { color: var(--caramel); border-color: rgba(160,98,42,0.3); }

.plan-positioning { display: flex; align-items: center; gap: 2rem; margin-top: 4rem; }
.plan-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(160,98,42,0.3), transparent); }
.plan-text { font-family: var(--font-head); font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-muted); text-align: center; line-height: 1.7; max-width: 500px; }
.plan-text em { font-style: italic; color: var(--caramel); }

/* ══════════════════════════════════════
   PHILOSOPHY
══════════════════════════════════════ */
.philosophy { position: relative; background: var(--navy); padding: 10rem 2rem; overflow: hidden; }
.philosophy-texture {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(0deg, rgba(217,205,180,0.5) 0px, rgba(217,205,180,0.5) 1px, transparent 1px, transparent 40px), repeating-linear-gradient(90deg, rgba(217,205,180,0.5) 0px, rgba(217,205,180,0.5) 1px, transparent 1px, transparent 40px);
  background-size: 40px 40px;
}
.philosophy-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.phil-intro { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--cream); opacity: 0.5; text-transform: uppercase; margin-bottom: 4rem; }
.phil-contrast { display: flex; flex-direction: column; gap: 3rem; }
.phil-common { font-family: var(--font-head); font-size: clamp(1.25rem, 2.5vw, 2rem); color: rgba(250,248,245,0.4); font-weight: 300; line-height: 1.4; }
.phil-common span { color: rgba(250,248,245,0.55); }
.phil-unique { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 4.5rem); color: var(--off-white); font-weight: 300; line-height: 1.2; }
.phil-keyword { font-style: italic; color: var(--caramel); }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about { padding: 8rem 0; background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-image-col { position: relative; }
.about-img-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.about-img { width: 100%; height: 600px; object-fit: cover; object-position: center top; border-radius: var(--radius-md); }
.about-img-badge {
  position: absolute; bottom: 2rem; left: 2rem;
  background: rgba(19,27,46,0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(217,205,180,0.2); border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
}
.badge-mono { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--caramel); font-weight: 500; }
.badge-label { display: block; font-size: 0.7rem; color: rgba(217,205,180,0.6); margin-top: 0.2rem; }
.about-text-col { display: flex; flex-direction: column; gap: 1.5rem; }
.about-body { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.info-badge { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--caramel); border: 1px solid rgba(160,98,42,0.3); padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.testimonials { padding: 8rem 0; background: #F5F2EC; }
.testimonials-track-wrap { overflow: hidden; margin: 0 -2rem; padding: 1rem 0; }
.testimonials-track { display: flex; gap: 1.5rem; padding: 1rem 2rem; cursor: grab; user-select: none; }
.testimonials-track:active { cursor: grabbing; }
.test-card {
  flex: 0 0 380px; background: var(--card-bg); border-radius: var(--radius-md);
  padding: 2.5rem; border: 1px solid rgba(19,27,46,0.07);
  box-shadow: 0 4px 20px rgba(19,27,46,0.06);
  display: flex; flex-direction: column; gap: 1rem;
}
.test-stars { color: var(--caramel); font-size: 1rem; letter-spacing: 0.1em; }
.test-quote { font-family: var(--font-head); font-size: 1.1rem; font-style: italic; color: var(--text); line-height: 1.7; flex: 1; }
.test-author { display: flex; flex-direction: column; gap: 0.2rem; margin-top: auto; }
.test-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.test-source { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; }
.test-rating-total { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 3rem; }
.rating-number { font-family: var(--font-head); font-size: 4rem; font-weight: 300; color: var(--text); line-height: 1; }
.rating-stars { color: var(--caramel); font-size: 1.2rem; letter-spacing: 0.15em; }
.rating-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; }

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section { position: relative; background: var(--navy); padding: 10rem 2rem; text-align: center; overflow: hidden; }
.cta-bg-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: radial-gradient(circle, var(--cream) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta-headline { font-family: var(--font-head); font-style: italic; font-weight: 300; font-size: clamp(2.5rem, 6vw, 5.5rem); color: var(--off-white); line-height: 1.15; }
.cta-sub { font-size: 1.05rem; color: rgba(250,248,245,0.65); line-height: 1.7; max-width: 480px; }
.cta-address { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(217,205,180,0.4); margin-top: 1rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer { background: #0A0E1A; border-radius: 3rem 3rem 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 3rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 4rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo-img { height: 44px; width: auto; object-fit: contain; align-self: flex-start; display: block; margin-bottom: 0.5rem; }
.footer-wordmark span { color: rgba(217,205,180,0.45); }
.footer-slogan { font-family: var(--font-head); font-style: italic; font-size: 0.95rem; color: rgba(217,205,180,0.45); }
.footer-nav { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-title { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: rgba(217,205,180,0.4); text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-link { font-size: 0.85rem; color: rgba(217,205,180,0.6); transition: color 0.2s; }
.footer-link:hover { color: var(--cream); }
.footer-status { display: flex; align-items: center; gap: 0.6rem; justify-content: flex-end; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); animation: statusPulse 2s ease infinite; }
@keyframes statusPulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,0.4)} 70%{box-shadow:0 0 0 8px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }
.status-label { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(217,205,180,0.4); letter-spacing: 0.1em; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem; border-top: 1px solid rgba(217,205,180,0.08); }
.footer-copy { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(217,205,180,0.25); letter-spacing: 0.08em; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .procedures-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img { height: 400px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-status { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    background: rgba(19,27,46,0.95); backdrop-filter: blur(20px);
    border-radius: var(--radius-md); border: 1px solid rgba(217,205,180,0.1);
    overflow: hidden; max-height: 0; opacity: 0; pointer-events: none;
    transition: max-height 0.4s var(--transition), opacity 0.3s;
  }
  .mobile-menu.open { max-height: 400px; opacity: 1; pointer-events: all; }
  .mobile-link { width: 100%; padding: 1rem 2rem; font-size: 0.95rem; color: rgba(250,248,245,0.8); border-bottom: 1px solid rgba(217,205,180,0.08); text-align: center; transition: background 0.2s; }
  .mobile-link:hover { background: rgba(217,205,180,0.05); color: var(--cream); }
  .mobile-cta { width: calc(100% - 2rem); margin: 1rem; padding: 0.85rem 1rem; background: var(--caramel); color: #fff; border-radius: var(--radius-pill); text-align: center; font-weight: 500; font-size: 0.9rem; }
  .hero-content { padding: 0 5vw 10vh; }
  .hero-title-serif { font-size: clamp(3.5rem, 18vw, 7rem); }
  .hero-stats { flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; }
  .hero-stats .stat-label { max-width: 100%; }
  .trust-bar { flex-direction: column; gap: 1rem; }
  .trust-divider { width: 40px; height: 1px; }
  .trust-item { padding: 0; }
  .philosophy { padding: 6rem 1.5rem; }
  .plan-positioning { flex-direction: column; gap: 1rem; }
  .plan-line { width: 60px; height: 1px; }
  .footer-nav { flex-direction: column; gap: 2rem; }
  .testimonials-track { flex-direction: column; }
  .test-card { flex: none; }
}
