/* =========================================================================
   Vitalis Hospital — stylesheet
   Self-contained: system font stack, inline SVG icons, no external requests.
   ========================================================================= */

:root {
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --cyan-500: #06b6d4;
    --navy-900: #0b1220;
    --navy-800: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --white: #ffffff;
    --danger: #e11d48;
    --amber: #f59e0b;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .10);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .08);
    --shadow-lg: 0 25px 50px -12px rgba(13, 148, 136, .25);

    --gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 45%, #2563eb 100%);
    --gradient-soft: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 50%, #eff6ff 100%);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--slate-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal-600);
    background: #f0fdfa; border: 1px solid #ccfbf1;
    padding: 6px 14px; border-radius: var(--radius-full);
}

.section { padding: 88px 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 18px 0 14px; }
.section-head p { color: var(--slate-500); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-weight: 700; font-size: .98rem; cursor: pointer;
    padding: 14px 26px; border-radius: var(--radius-full);
    border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px -6px rgba(13,148,136,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgba(13,148,136,.6); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: #fff; color: var(--teal-600); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--teal-400); color: var(--teal-500); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Utility top bar ---------- */
.util-bar { background: var(--navy-900); color: #cbd5e1; font-size: .84rem; }
.util-bar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.util-bar .left { display: flex; align-items: center; gap: 22px; }
.util-bar a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.util-bar a:hover { color: var(--teal-400); }
.util-bar svg { width: 15px; height: 15px; color: var(--teal-400); }
.util-bar .emergency { color: #fff; font-weight: 600; }
.util-bar .right { display: flex; align-items: center; gap: 18px; }

/* ---------- Header ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--slate-100);
}
.topbar .container { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.22rem; color: var(--navy-800); letter-spacing: -.02em; flex-shrink: 0; }
.brand .logo {
    width: 42px; height: 42px; border-radius: 12px; background: var(--gradient);
    display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(13,148,136,.6); flex-shrink: 0;
}
.brand .logo svg { width: 23px; height: 23px; color: #fff; }
.brand .txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .txt small { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); }

nav.main { display: flex; align-items: center; gap: 2px; margin-left: auto; }
nav.main a {
    position: relative; padding: 9px 15px; border-radius: var(--radius-full); font-weight: 600; font-size: .95rem;
    color: var(--slate-600); white-space: nowrap; transition: color .15s, background .15s;
}
nav.main a:hover { color: var(--teal-600); background: var(--slate-50); }
nav.main a.active { color: var(--teal-600); }
nav.main a.active::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
    border-radius: 2px; background: var(--gradient);
}

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(900px 500px at 82% -8%, rgba(20,184,166,.34), transparent 60%),
        radial-gradient(760px 480px at 8% 108%, rgba(37,99,235,.30), transparent 55%),
        linear-gradient(160deg, #0b1220 0%, #0f2a35 100%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero .eyebrow { background: rgba(20,184,166,.16); border-color: rgba(45,212,191,.35); color: #5eead4; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 22px 0 20px; }
.hero h1 .grad { background: linear-gradient(90deg, #5eead4, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.16rem; color: #cbd5e1; max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .trust { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero .trust .item .n { font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero .trust .item .l { font-size: .84rem; color: #94a3b8; }
.hero .ref { margin-top: 18px; font-size: .95rem; color: #5eead4; font-weight: 600; }

.hero-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.hero-card > p { color: #94a3b8; font-size: .92rem; margin-bottom: 20px; }
.hero-card .field { margin-bottom: 14px; }
.hero-card label { display: block; font-size: .82rem; font-weight: 600; color: #cbd5e1; margin-bottom: 7px; }
.hero-card input, .hero-card select {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
    background: rgba(15,23,42,.5); color: #fff; font-size: .95rem; font-family: inherit;
}
.hero-card input::placeholder { color: #64748b; }
.hero-card input:focus, .hero-card select:focus { outline: 2px solid var(--teal-400); border-color: transparent; }
.hero-card .btn { width: 100%; margin-top: 6px; }

.wave { display: block; width: 100%; height: auto; color: var(--white); margin-top: -1px; }

/* ---------- Feature strip ---------- */
.strip { background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 34px 24px; }
.strip .f { display: flex; align-items: center; gap: 14px; }
.strip .f .ic { width: 46px; height: 46px; border-radius: 12px; background: #f0fdfa; color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.strip .f .ic svg { width: 24px; height: 24px; }
.strip .f h4 { font-size: .98rem; margin-bottom: 2px; }
.strip .f p { font-size: .84rem; color: var(--slate-500); }

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

.card {
    background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #ccfbf1; }
.card .ic {
    width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(135deg, #f0fdfa, #ecfeff); color: var(--teal-600);
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card p { color: var(--slate-500); font-size: .96rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--teal-600); font-weight: 700; font-size: .9rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .18s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.stats { background: var(--gradient); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 66px 24px; text-align: center; }
.stats .s .n { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; }
.stats .s .l { font-size: .96rem; color: rgba(255,255,255,.85); margin-top: 4px; }
.stats .s + .s { border-left: 1px solid rgba(255,255,255,.18); }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media {
    border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 420px;
    background: var(--gradient-soft); border: 1px solid var(--slate-100); display: grid; place-items: center;
}
.split .media .badge {
    position: absolute; bottom: 24px; left: 24px; background: #fff; border-radius: var(--radius);
    padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.split .media .badge .ic { width: 46px; height: 46px; border-radius: 12px; background: #f0fdfa; color: var(--teal-600); display: grid; place-items: center; }
.split .media .badge .n { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); }
.split .media .badge .l { font-size: .8rem; color: var(--slate-500); }
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 16px 0 18px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li .ck { width: 24px; height: 24px; border-radius: 50%; background: #f0fdfa; color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.checklist li .ck svg { width: 15px; height: 15px; }
.checklist li b { color: var(--navy-800); }

/* ---------- Doctors ---------- */
.doctor { text-align: center; }
.doctor .photo {
    width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); margin-bottom: 18px;
    background: linear-gradient(135deg, #cffafe, #dbeafe); display: grid; place-items: center; color: var(--teal-600);
    font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; position: relative; overflow: hidden;
}
.doctor .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13,148,136,.14)); }
.doctor h3 { font-size: 1.12rem; }
.doctor .role { color: var(--teal-600); font-weight: 700; font-size: .9rem; margin: 3px 0 8px; }
.doctor .crm { color: var(--slate-500); font-size: .82rem; }
.doctor .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.doctor .tags span { font-size: .74rem; background: var(--slate-50); border: 1px solid var(--slate-100); color: var(--slate-600); padding: 4px 10px; border-radius: var(--radius-full); }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 1.02rem; color: var(--slate-700); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; }
.quote .who b { display: block; color: var(--navy-800); font-size: .95rem; }
.quote .who small { color: var(--slate-500); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; padding: 64px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% -30%, rgba(20,184,166,.4), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: #cbd5e1; max-width: 560px; margin: 0 auto 30px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms (pages) ---------- */
.form-card { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--slate-200);
    font-size: .97rem; font-family: inherit; color: var(--slate-700); background: var(--slate-50); transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(20,184,166,.15); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--slate-500); margin-top: 10px; }
.alert-ok { display: none; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; padding: 16px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 22px; }
.alert-ok.show { display: block; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--gradient-soft); border-bottom: 1px solid var(--slate-100); padding: 66px 0 54px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 12px; }
.page-hero p { color: var(--slate-500); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.crumbs { font-size: .85rem; color: var(--slate-500); }
.crumbs a { color: var(--teal-600); font-weight: 600; }

/* ---------- Info cards (contact) ---------- */
.info { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--slate-100); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.info .ic { width: 46px; height: 46px; border-radius: 12px; background: #f0fdfa; color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.info .ic svg { width: 22px; height: 22px; }
.info h4 { font-size: 1rem; margin-bottom: 3px; }
.info p { color: var(--slate-500); font-size: .93rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-900); color: #cbd5e1; padding: 68px 0 30px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
footer.site .brand { color: #fff; margin-bottom: 16px; }
footer.site .brand .txt small { color: var(--teal-400); }
footer.site p.desc { color: #94a3b8; font-size: .93rem; max-width: 280px; }
footer.site h5 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
footer.site ul { list-style: none; display: grid; gap: 11px; }
footer.site ul a { color: #94a3b8; font-size: .93rem; transition: color .15s; }
footer.site ul a:hover { color: var(--teal-400); }
footer.site .social { display: flex; gap: 10px; margin-top: 8px; }
footer.site .social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cbd5e1; transition: background .15s; }
footer.site .social a:hover { background: var(--teal-600); color: #fff; }
footer.site .social svg { width: 18px; height: 18px; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #64748b; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* On narrower screens the main nav wraps onto its own centered row below the
   brand + CTA, so nothing overflows and navigation stays visible. */
@media (max-width: 1024px) {
    .util-bar { display: none; }
    .topbar .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 4px; }
    .brand { margin-right: auto; }
    nav.main { order: 3; width: 100%; margin-left: 0; justify-content: center; flex-wrap: wrap; gap: 2px 4px; padding-top: 4px; border-top: 1px solid var(--slate-100); }
}

@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 72px; }
    .hero-card { max-width: 460px; }
    .split { grid-template-columns: 1fr; gap: 34px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .strip .container { grid-template-columns: repeat(2, 1fr); }
    .stats .container { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .stats .s + .s { border-left: none; }
    footer.site .cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
    .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .cta-band { padding: 44px 26px; }
    .form-card { padding: 26px; }
    .stats .container { grid-template-columns: 1fr 1fr; }
    footer.site .cols { grid-template-columns: 1fr; }
    footer.site .bottom { justify-content: flex-start; }
}
