:root {
    --white: #ffffff;
    --navy: #102f52;
    --navy-700: #0c2440;
    --navy-900: #081a2e;
    --teal: #08aeb8;
    --teal-600: #069aa3;
    --teal-700: #057b82;
    --pale-teal: #ddf7f8;
    --grey-light: #f5f7fa;
    --grey-border: #e3e8ef;
    --body: #334155;
    --muted: #64748b;
    --success: #15803d;
    --success-bg: #dcfce7;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;
    --info: #1d4ed8;
    --info-bg: #dbeafe;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 47, 82, .06), 0 1px 3px rgba(16, 47, 82, .08);
    --shadow: 0 10px 30px rgba(16, 47, 82, .08);
    --shadow-lg: 0 24px 60px rgba(16, 47, 82, .12);
    --container: 1180px;
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--body);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }

h1, h2, h3, h4, h5 {
    color: var(--navy);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-grey { background: var(--grey-light); }
.section-pale { background: var(--pale-teal); }
.section-navy { background: var(--navy); color: #dbe6f2; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--teal-700);
    margin-bottom: 12px;
}
.section-navy .eyebrow { color: var(--teal); }
.lead { font-size: 1.125rem; color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
}
.btn:focus-visible { outline: 3px solid rgba(8, 174, 184, .45); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; box-shadow: 0 10px 22px rgba(8, 174, 184, .28); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--grey-border); }
.btn-light:hover { border-color: var(--teal); color: var(--teal-700); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-sm { padding: 8px 15px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--grey-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-name small { display: block; font-weight: 600; font-size: .7rem; color: var(--teal-700); letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 9px 13px;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 600;
    font-size: .92rem;
}
.main-nav a:hover, .main-nav a.active { background: var(--pale-teal); color: var(--teal-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--grey-border); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* Hero */
.hero { position: relative; min-height: 620px; overflow: hidden; background: var(--navy-900); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 26, 46, .93) 0%, rgba(8, 26, 46, .82) 40%, rgba(8, 26, 46, .35) 68%, rgba(8, 26, 46, .15) 100%);
}
.hero-content { position: relative; z-index: 3; min-height: 620px; display: flex; align-items: center; padding: 70px 0; }
.hero-copy { max-width: 600px; color: #e8eef6; }
.hero-copy .eyebrow { color: var(--teal); }
.hero-copy h1 { color: #fff; margin-bottom: 18px; }
.hero-copy p { font-size: 1.15rem; color: #d7e1ee; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-controls { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 4; }
.hero-controls-inner { display: flex; align-items: center; gap: 16px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 30px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; }
.hero-dot.is-active { background: var(--teal); width: 46px; }
.hero-pause { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: .8rem; }
.hero-anim { opacity: 0; transform: translateY(18px); }
.hero-slide.is-active .hero-anim,
[data-slide-copy]:not([hidden]) .hero-anim { animation: heroIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-slide.is-active .hero-anim.d1,
[data-slide-copy]:not([hidden]) .hero-anim.d1 { animation-delay: .12s; }
.hero-slide.is-active .hero-anim.d2,
[data-slide-copy]:not([hidden]) .hero-anim.d2 { animation-delay: .26s; }
.hero-slide.is-active .hero-anim.d3,
[data-slide-copy]:not([hidden]) .hero-anim.d3 { animation-delay: .4s; }
.d-none { display: none !important; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff;
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 24px; }
.card-icon {
    width: 52px; height: 52px; border-radius: 13px; background: var(--pale-teal);
    display: grid; place-items: center; color: var(--teal-700); margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card img { height: 190px; width: 100%; object-fit: cover; }
.service-card .card-body { flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.link-arrow { font-weight: 600; color: var(--teal-700); display: inline-flex; gap: 6px; align-items: center; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; }
.feature-check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--grey-border); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .88rem; }

/* Branches */
.branch-card { background: #fff; border: 1px solid var(--grey-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.branch-card h3 { margin-bottom: 4px; }
.hours-table { width: 100%; font-size: .9rem; border-collapse: collapse; margin-top: 14px; }
.hours-table td { padding: 5px 0; border-bottom: 1px dashed var(--grey-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours-table tr:last-child td { border-bottom: 0; }

/* Team */
.team-card { text-align: center; }
.team-card img { aspect-ratio: 1/1; object-fit: cover; }
.team-card .card-body { padding: 20px; }
.team-card .discipline { color: var(--teal-700); font-weight: 600; font-size: .85rem; }
.avatar-placeholder { aspect-ratio: 1/1; display: grid; place-items: center; background: var(--pale-teal); color: var(--teal-700); font-size: 2.4rem; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--grey-border); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font-weight: 600; color: var(--navy); font-size: 1rem; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-family: inherit; }
.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--teal); line-height: 1; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding: 0 20px 20px; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 600px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .92rem; }
.label-hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="time"], input[type="number"], input[type="file"],
select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .95rem;
    color: var(--body);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 174, 184, .16); }
textarea { min-height: 120px; resize: vertical; }
.form-error { color: var(--danger); font-size: .84rem; margin-top: 5px; }
.form-help { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 500; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; border: 1px solid transparent; font-size: .93rem; }
.alert-success { background: var(--success-bg); border-color: #bbf7d0; color: #14532d; }
.alert-error { background: var(--danger-bg); border-color: #fecaca; color: #7f1d1d; }
.alert-warning { background: var(--warning-bg); border-color: #fde68a; color: #78350f; }
.alert-info { background: var(--info-bg); border-color: #bfdbfe; color: #1e3a8a; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.badge-success { background: var(--success-bg); color: #166534; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-info { background: var(--info-bg); color: #1e40af; }
.badge-primary { background: var(--pale-teal); color: var(--teal-700); }
.badge-muted { background: #eef2f7; color: #475569; }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside { position: relative; background: var(--navy); color: #d9e4f0; padding: 56px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.auth-aside-content { position: relative; z-index: 2; max-width: 460px; }
.auth-aside h2 { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .brand { margin-bottom: 30px; }
.auth-footer { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
table.data th { text-align: left; padding: 13px 16px; background: var(--grey-light); color: var(--navy); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--grey-border); white-space: nowrap; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--grey-border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafcff; }

/* Footer */
.site-footer { background: #446b93; color: #a9bcd2; padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { color: #c4d3e4; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 116px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.emergency-note { background: rgba(185, 28, 28, .16); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.stack { display: grid; gap: 20px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.pill { background: var(--pale-teal); color: var(--teal-700); padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.divider { height: 1px; background: var(--grey-border); margin: 28px 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-700); }
.page-hero { background: var(--grey-light); border-bottom: 1px solid var(--grey-border); padding: 54px 0; }
.page-hero h1 { margin-bottom: 8px; }
.prose { color: var(--body); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--grey-border); padding-bottom: 10px; }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey-border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); border: 1px dashed var(--grey-border); border-radius: var(--radius); background: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--pale-teal); color: var(--teal-700); display: grid; place-items: center; }

@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 78px; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--grey-border); padding: 12px 20px 20px; box-shadow: var(--shadow);
    }
    .nav-toggle { display: block; }
    .grid-2, .grid-3, .grid-4, .stat-row, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .hero, .hero-content, .hero-slide img { min-height: 560px; }
    .header-actions .btn span.label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .hero-slide { transition: none; }
    .hero-anim { opacity: 1; transform: none; }
    .card:hover { transform: none; }
}
