@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

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

:root {
  --accent: #B11226;
  --accent-light: rgba(177, 18, 38, 0.05);
  --accent-border: rgba(177, 18, 38, 0.22);
  --accent-ring: rgba(177, 18, 38, 0.12);
  --green: #10B981;
  --red: #EF4444;
  --bg: #FAFBFC;
  --card: #FFFFFF;
  --fg: #1A2332;
  --fg-secondary: #475569;
  --fg-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: rgba(17, 24, 39, 0.10);
  --input-border: #CBD5E1;
  --shadow-2xs: 0 1px 0 0 rgba(26, 35, 50, 0.04);
  --shadow-xs: 0 1px 0 0 rgba(26, 35, 50, 0.05);
  --shadow-sm: 0 1px 0 0 rgba(26, 35, 50, 0.05), 0 8px 18px -18px rgba(26, 35, 50, 0.20);
  --shadow-md: 0 1px 0 0 rgba(26, 35, 50, 0.06), 0 18px 32px -28px rgba(26, 35, 50, 0.26);
  --gridline: #EAECF0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Baskerville", ui-serif, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { text-decoration: none; color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; display: block; }
::selection { background: rgba(177, 18, 38, 0.18); }

/* CONTAINER */
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* GRID BG */
.clinic-grid {
  background-image:
    linear-gradient(to right, var(--gridline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridline) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
}

/* TOPSTRIP */
.topstrip {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--fg-secondary);
}
.topstrip .container { display: flex; align-items: center; gap: 8px; }
.topstrip svg { color: var(--accent); }

/* HEADER */
.site-header {
  width: 100%; border-bottom: 1px solid var(--border);
  background: rgba(250, 251, 252, 0.92); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; height: 64px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border: 1px solid var(--border); background: var(--card);
  box-shadow: var(--shadow-2xs);
}
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; font-family: "Inter", sans-serif; }
.brand-sub { font-size: 12px; color: var(--fg-secondary); font-family: "Inter", sans-serif; }

/* NAV */
.nav-desktop { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--fg-secondary);
  transition: color 0.2s; position: relative; font-family: "Inter", sans-serif;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -20px;
  height: 1px; background: var(--accent); opacity: 0.9;
}

/* HEADER CTAS */
.header-ctas { display: none; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .header-ctas { display: flex; } }

/* MOBILE MENU */
.mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; transition: background 0.2s;
}
.mobile-toggle:hover { background: var(--accent-light); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 16px 0;
}
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); background: var(--card);
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  color: var(--fg); margin-bottom: 8px; transition: background 0.2s;
}
.mobile-nav-item:hover { background: var(--accent-light); }
.mobile-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
@media (max-width: 639px) { .mobile-ctas { grid-template-columns: 1fr; } }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: #FFF; background: var(--accent); border: 1px solid rgba(177,18,38,0.3);
  cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-xs);
  font-family: "Inter", sans-serif;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-2xs); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: var(--fg); background: transparent; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.3s ease; font-family: "Inter", sans-serif;
}
.btn-ghost:hover { background: var(--accent-light); border-color: var(--accent-border); }

/* PAGE HEADER */
.page-header { border-bottom: 1px solid var(--border); background: var(--card); padding: 40px 0 48px; }
.page-header h1 { font-size: 32px; line-height: 1.1; }
@media (min-width: 640px) { .page-header h1 { font-size: 40px; } }
.page-header .lead { margin-top: 16px; }

/* SECTION */
.section { padding: 56px 0; }
@media (min-width: 640px) { .section { padding: 64px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-border { border-top: 1px solid var(--border); padding-top: 56px; }
@media (min-width: 640px) { .section-border { padding-top: 64px; } }

/* TYPOGRAPHY */
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-secondary); font-family: "Inter", sans-serif;
}
@media (min-width: 640px) { .kicker { font-size: 13px; } }

.headline-hero { font-size: 36px; line-height: 1.03; }
@media (min-width: 640px) { .headline-hero { font-size: 48px; } }
@media (min-width: 1024px) { .headline-hero { font-size: 60px; } }

.lead { font-size: 16px; line-height: 1.7; color: var(--fg-secondary); }
@media (min-width: 640px) { .lead { font-size: 18px; } }

.section-title { font-size: 24px; }
@media (min-width: 640px) { .section-title { font-size: 30px; } }

/* CARD */
.card {
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); transition: box-shadow 0.28s, border-color 0.28s;
}
.card:hover { box-shadow: var(--shadow-sm); }

/* ILLUSTRATION */
.illustration {
  border: 1px solid var(--border); background: var(--card);
  box-shadow: var(--shadow-xs); padding: 24px;
}
@media (min-width: 640px) { .illustration { padding: 28px; } }

/* GRID LAYOUTS */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.grid-hero { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .grid-hero { grid-template-columns: 7fr 5fr; gap: 48px; } }

/* TRUST STRIP */
.trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--border); padding-top: 40px; }
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-strip { grid-template-columns: repeat(5, 1fr); } }
.trust-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--fg-secondary); }
.trust-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* CHECK LIST */
.check-list { list-style: none; }
.check-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 14px; line-height: 1.7; }
@media (min-width: 640px) { .check-item { font-size: 16px; } }
.check-item svg { flex-shrink: 0; margin-top: 3px; }
.check-item .icon-check { color: var(--accent); }
.check-item .icon-x { color: var(--red); }

/* PROCESS STEP */
.process-step { border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-xs); margin-bottom: 24px; }
.process-step-inner { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .process-step-inner { grid-template-columns: 56px 1fr 1fr; } }
.step-num {
  display: none; place-items: center; border-right: 1px solid var(--border);
  background: var(--accent-light); color: var(--accent); font-weight: 600; font-size: 18px;
  font-family: "Inter", sans-serif;
}
@media (min-width: 768px) { .step-num { display: grid; } }
.step-col { padding: 24px; }
.step-col + .step-col { border-top: 1px solid var(--border); }
@media (min-width: 768px) { .step-col + .step-col { border-top: none; border-left: 1px solid var(--border); } }
.step-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-secondary); margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}
.step-mobile-num { color: var(--accent); margin-right: 8px; }
@media (min-width: 768px) { .step-mobile-num { display: none; } }

/* FAQ */
.faq-container { border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-xs); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px; display: flex;
  align-items: flex-start; justify-content: space-between; gap: 24px;
  background: none; border: none; cursor: pointer; font-size: 14px;
  font-weight: 600; color: var(--fg); transition: background 0.2s;
  font-family: "Inter", sans-serif; line-height: 1.4;
}
@media (min-width: 640px) { .faq-question { font-size: 16px; } }
.faq-question:hover { background: var(--accent-light); }
.faq-question svg { flex-shrink: 0; margin-top: 2px; color: var(--fg-secondary); transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.32s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 24px; font-size: 14px; line-height: 1.7; color: var(--fg-secondary); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.contact-info {
  border: 1px solid var(--border); background: var(--card);
  padding: 28px; font-size: 14px; color: var(--fg-secondary); line-height: 1.7;
}
.contact-info-row { margin-bottom: 16px; }
.contact-info-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); font-family: "Inter", sans-serif; }
.contact-info-label svg { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-full { grid-column: 1 / -1; }

.form-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-secondary); display: block;
  margin-bottom: 8px; font-family: "Inter", sans-serif;
}
.input-clinic {
  width: 100%; padding: 12px 16px; background: var(--card); color: var(--fg);
  border: 1px solid var(--input-border); font-size: 14px; font-family: "Inter", sans-serif;
  transition: border-color 0.2s;
}
.input-clinic:focus { outline: none; border-color: rgba(177, 18, 38, 0.55); box-shadow: 0 0 0 4px var(--accent-ring); }
.input-clinic::placeholder { color: var(--fg-muted); }
textarea.input-clinic { min-height: 140px; resize: vertical; }

.consent-box {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border); background: var(--card);
  padding: 16px; transition: background 0.2s;
}
.consent-box:hover { background: var(--accent-light); }
.consent-box input[type="checkbox"] { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; }

.success-box { border: 1px solid var(--border); background: var(--card); padding: 20px; margin-bottom: 24px; }
.success-msg { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
.success-note { margin-top: 12px; font-size: 12px; color: var(--fg-secondary); }

.error-msg { font-size: 12px; color: var(--red); margin-top: 8px; }

/* METRICS GRID */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); background: var(--card); }
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }
.metric-item {
  padding: 28px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.metric-item:nth-child(2n) { border-right: none; }
@media (min-width: 768px) { .metric-item:nth-child(2n) { border-right: 1px solid var(--border); } .metric-item:nth-child(3n) { border-right: none; } }
.metric-number { font-size: 28px; font-weight: 700; color: var(--fg); font-family: "Inter", sans-serif; letter-spacing: -0.02em; }
.metric-label { font-size: 13px; color: var(--fg-secondary); margin-top: 4px; font-family: "Inter", sans-serif; }

/* PROFILE */
.profile-block {
  border: 1px solid var(--border); background: var(--card); padding: 28px;
  box-shadow: var(--shadow-xs);
}
.profile-avatar {
  width: 56px; height: 56px; background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.profile-avatar svg { color: var(--fg-muted); }
.profile-name { font-size: 15px; font-weight: 600; font-family: "Inter", sans-serif; }
.profile-role { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 2px; font-family: "Inter", sans-serif; }
.profile-text { font-size: 14px; color: var(--fg-secondary); line-height: 1.7; margin-top: 8px; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-heading { font-size: 14px; font-weight: 600; font-family: "Inter", sans-serif; }
.footer-sub { font-size: 14px; color: var(--fg-secondary); margin-top: 4px; }
.footer-text { font-size: 14px; color: var(--fg-secondary); line-height: 1.7; margin-top: 12px; }
.footer-links { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.footer-link { font-size: 14px; color: var(--fg-secondary); transition: color 0.2s; }
.footer-link:hover { color: var(--fg); text-decoration: underline; }

/* WHATSAPP FIXED */
.wa-fixed {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  border: 1px solid var(--border); background: var(--card);
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif;
}
.wa-fixed:hover { background: var(--accent-light); }
.wa-fixed svg { color: var(--accent); }

/* ICON */
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }

/* ANIMATIONS */
.rise-in { animation: riseIn 680ms ease-out both; }
.stagger-1 { animation-delay: 80ms; }
.stagger-2 { animation-delay: 140ms; }
.stagger-3 { animation-delay: 200ms; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* UTILITY */
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.pt-0 { padding-top: 0; }
.text-muted { color: var(--fg-secondary); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.flex-col-sm-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .flex-col-sm-row { flex-direction: row; } }
