:root {
  --brand: #087c88;
  --brand-dark: #075b69;
  --accent: #05a59e;
  --ink: #17323a;
  --muted: #5d7075;
  --surface: #ffffff;
  --tint: #f1f8f8;
  --line: #d8e6e7;
  --shadow: 0 18px 50px rgba(6, 68, 77, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 125px; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--surface);
  font: 400 1rem/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .7em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1rem; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.hero-grid > *, .split > *, .doctor-card > *, .services-grid > *, .contact-grid > *, .instagram-card > * { min-width: 0; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.1rem; }
.eyebrow { color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(7,91,105,.1); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-dark); text-decoration: none; font-size: 1.05rem; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand strong { text-transform: uppercase; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 650; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); }
.site-nav .nav-cta { padding: 10px 17px; color: #fff; background: var(--brand); border-radius: 999px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.service-ticker { overflow: hidden; color: var(--brand-dark); background: #f2f7f7; border-top: 1px solid rgba(7,91,105,.08); border-bottom: 1px solid rgba(7,91,105,.1); }
.ticker-track { display: flex; width: max-content; will-change: transform; animation: ticker-scroll 34s linear infinite; }
.ticker-group { display: flex; flex: none; align-items: center; gap: clamp(32px, 4vw, 64px); padding: 9px clamp(16px, 2vw, 32px); }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: #40565d; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.ticker-item > span { color: var(--brand); font-size: 1rem; line-height: 1; }
.service-ticker:hover .ticker-track, .service-ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.hero { min-height: calc(100vh - 114px); display: grid; align-items: center; overflow: hidden; background: linear-gradient(135deg, #f8fbfb 0%, #e5f4f3 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(30px, 7vw, 90px); padding-block: 64px; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-image { position: relative; width: 100%; min-width: 0; }
.hero-image::before { content: ""; position: absolute; inset: 7% -6% -7% 8%; background: rgba(5,165,158,.13); border-radius: 32px; filter: blur(2px); }
.hero-image img { position: relative; width: 100%; height: auto; object-fit: contain; border-radius: 24px; box-shadow: var(--shadow); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 21px; border: 2px solid var(--brand); border-radius: 999px; text-decoration: none; font-weight: 750; }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-secondary { color: var(--brand); }
.button-secondary:hover { background: #fff; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.split p:not(.eyebrow) { color: var(--muted); }
.feature-image { width: min(100%, 440px); margin: 0 auto; }
.feature-image img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow); }
.text-link { color: var(--brand-dark); font-weight: 800; text-decoration: none; }

.gallery { columns: 4; column-gap: 14px; }
.gallery img { width: 100%; height: auto; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; }

.doctor-grid { display: grid; gap: 28px; }
.doctor-card { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(6,68,77,.07); }
.doctor-card > img { width: calc(100% - 48px); height: 380px; margin: 24px; align-self: center; object-fit: contain; background: #f5f8f8; border: 1px solid var(--line); border-radius: 14px; }
.doctor-card > img.portrait { object-position: center; }
.doctor-content { padding: clamp(28px, 5vw, 56px); }
.doctor-content p { color: var(--muted); }
.doctor-content .credential { margin: 0 0 5px; color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(6,68,77,.06); }
.service-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .85fr 1.15fr; }
.service-card > img { width: 100%; height: auto; object-fit: contain; background: #eef5f5; }
.service-card:last-child > img { height: auto; min-height: 0; align-self: center; }
.service-body { padding: 28px; }
.service-body > p { color: var(--muted); }
details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
summary { color: var(--brand-dark); cursor: pointer; font-weight: 800; }
details p { margin-top: 14px; color: var(--muted); font-size: .94rem; }
.service-cta { display: inline-flex; margin-top: 20px; color: var(--brand-dark); font-weight: 800; text-decoration: none; }
.service-cta::after { content: " →"; margin-left: 5px; }
.notice { max-width: 900px; margin: 32px auto 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--accent); border-radius: 8px; }

.instagram-section { padding-block: 64px; background: #fff; }
.instagram-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: clamp(28px, 5vw, 54px); color: #fff; background: linear-gradient(135deg, #075b69, #05a59e); border-radius: var(--radius); box-shadow: var(--shadow); }
.instagram-card .eyebrow { color: #b9fff9; }
.instagram-card h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.instagram-card p:last-child { margin-bottom: 0; color: #e1f7f6; }
.instagram-icon { width: 70px; height: 70px; padding: 15px; background: rgba(255,255,255,.14); border-radius: 20px; }
.instagram-icon svg { width: 100%; height: 100%; fill: currentColor; }
.instagram-button { color: var(--brand-dark); background: #fff; border-color: #fff; white-space: nowrap; }

.contact-section { color: #fff; background: var(--brand-dark); }
.contact-section .eyebrow { color: #75dfd8; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 80px); }
.contact-image { width: 100%; height: auto; margin: 26px 0 10px; object-fit: contain; border-radius: 16px; }
.contact-list { display: grid; gap: 10px; margin-top: 28px; font-style: normal; }
.contact-list a, .contact-list p { display: grid; margin: 0; padding: 13px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.16); text-decoration: none; }
.contact-list span { color: #a9d1d4; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list strong { overflow-wrap: anywhere; }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-links a { padding: 9px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; text-decoration: none; }
.appointment-card { align-self: center; padding: clamp(28px, 5vw, 55px); color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.appointment-card > img { width: min(100%, 310px); height: auto; margin: 0 auto 26px; object-fit: contain; }
.appointment-card h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.appointment-card > p:not(.eyebrow) { color: var(--muted); }
.button-whatsapp { width: 100%; color: #fff; background: #1fa855; border-color: #1fa855; }
.button-whatsapp:hover { background: #168744; border-color: #168744; }
.maps-link { display: block; margin-top: 16px; color: var(--brand-dark); text-align: center; font-weight: 750; }

.site-footer { padding: 34px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .9rem; }
.footer-inner img { width: 150px; height: auto; object-fit: contain; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; width: 62px; height: 62px; place-items: center; color: #fff; background: #25d366; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.whatsapp-float svg { width: 35px; height: 35px; fill: currentColor; }

@media (max-width: 860px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; padding: 22px 20px 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 7px 0; }
  .site-nav .nav-cta { text-align: center; }
  .hero { min-height: auto; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-image { width: 100%; max-width: 620px; margin-inline: auto; }
  .gallery { columns: 3; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-card > img { width: calc(100% - 40px); height: 340px; margin: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; display: block; }
  .service-card:last-child > img { height: auto; min-height: 0; }
  .instagram-card { grid-template-columns: auto 1fr; }
  .instagram-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand span { font-size: .86rem; }
  .hero-grid { padding-block: 34px 62px; }
  h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .button-row, .button { width: 100%; }
  .gallery { columns: 2; }
  .doctor-content, .service-body { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .instagram-card { grid-template-columns: 1fr; text-align: center; }
  .instagram-icon { margin-inline: auto; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
