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

:root {
    --bg: #07090d;
    --panel: rgba(15, 19, 27, 0.88);
    --panel-strong: rgba(20, 24, 34, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f5f7;
    --muted: #aab2c3;
    --soft: #7c869b;
    --accent: #ff4d5f;
    --accent-deep: #b91f35;
    --accent-glow: rgba(255, 77, 95, 0.22);
    --teal: #56d7c3;
    --green: #66d28f;
    --amber: #ffcc7a;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --content: 1160px;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 95, 0.12), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(86, 215, 195, 0.12), transparent 28%),
        linear-gradient(180deg, #0b0f17 0%, #07090d 30%, #07090d 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.14;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

a { color: inherit; }

main { position: relative; z-index: 1; }

.page-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.24;
    z-index: 0;
}
.page-glow.one { top: -140px; left: -80px; background: rgba(255, 77, 95, 0.18); }
.page-glow.two { right: -120px; top: 240px; background: rgba(86, 215, 195, 0.12); }
.page-glow.three { left: 40%; bottom: -180px; background: rgba(255, 204, 122, 0.08); }

.container {
    width: min(var(--content), calc(100% - 2rem));
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(7, 9, 13, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, rgba(255, 77, 95, 0.96), rgba(171, 31, 53, 0.88));
    box-shadow: 0 16px 40px rgba(255, 77, 95, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
    font-size: 1.2rem;
}
.brand-copy { min-width: 0; }
.brand-title { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-subtitle { color: var(--soft); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.nav-links a { text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.ghost-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.ghost-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

/* HERO */
.hero { padding: 5rem 0 3rem; }
.hero.hero-small { padding: 3rem 0 2rem; }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 77, 95, 0.25);
    background: rgba(255, 77, 95, 0.08);
    color: #ffc7cf;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 10px rgba(255, 77, 95, 0.14);
}
.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.15rem;
}
.hero-content h1 .muted-line { color: #c6cfdd; opacity: 0.84; }
.hero-content > p {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.06rem;
    margin: 0 auto 1.8rem;
}

/* STATS */
.stats-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.stat-item { text-align: center; }
.stat-item .value {
    font-size: 2rem;
    font-weight: 800;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
}
.stat-item .label {
    color: var(--soft);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* SEARCH / FILTER */
.search-section { padding: 2rem 0; }
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--panel);
    box-shadow: var(--shadow);
}
.search-input {
    flex: 1;
    min-width: 200px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.search-input::placeholder { color: #8a94a8; }
.search-input:focus { border-color: rgba(255, 77, 95, 0.45); background: rgba(255, 255, 255, 0.06); }

.filter-select {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c869b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.2rem;
}
.filter-select option { background: #0b0f17; color: var(--text); }

/* FEATURED */
.featured-section { padding: 1rem 0 2rem; }
.featured-card {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 77, 95, 0.3);
    background: linear-gradient(135deg, rgba(255, 77, 95, 0.08), rgba(255, 255, 255, 0.03)), var(--panel);
    box-shadow: 0 30px 80px rgba(255, 77, 95, 0.15);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffc7cf;
    background: rgba(255, 77, 95, 0.15);
    border: 1px solid rgba(255, 77, 95, 0.25);
    margin-bottom: 0.8rem;
}
.featured-badge::before {
    content: "⭐";
    font-size: 0.8rem;
}
.featured-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.featured-card .featured-loc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}
.featured-card .featured-desc {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 55ch;
    margin-bottom: 1rem;
}
.featured-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tag {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    text-decoration: none;
}
.tag.dental, .tag.Dental\ Clinics { border-color: rgba(86, 215, 195, 0.25); background: rgba(86, 215, 195, 0.08); color: #c0fff6; }
.tag.hospital, .tag.Hospitals\ \&\ Medical\ Centres { border-color: rgba(255, 204, 122, 0.25); background: rgba(255, 204, 122, 0.08); color: #ffe7bf; }
.tag.cosmetic, .tag.Cosmetic\ \&\ Aesthetic { border-color: rgba(255, 77, 95, 0.25); background: rgba(255, 77, 95, 0.08); color: #ffc7cf; }
.tag.eye, .tag.Eye\ Clinics { border-color: rgba(102, 210, 143, 0.25); background: rgba(102, 210, 143, 0.08); color: #cff9e8; }
.tag.ortho, .tag.Orthopaedics { border-color: rgba(147, 130, 255, 0.25); background: rgba(147, 130, 255, 0.08); color: #d4cfff; }
.tag.hair, .tag.Hair\ Transplant { border-color: rgba(255, 165, 0, 0.25); background: rgba(255, 165, 0, 0.08); color: #ffe0a3; }
.tag.fertility, .tag.Fertility\ \&\ IVF { border-color: rgba(255, 105, 180, 0.25); background: rgba(255, 105, 180, 0.08); color: #ffcce5; }

.featured-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 18px 45px rgba(255, 77, 95, 0.26);
}
.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* CLINIC GRID */
.directory-section { padding: 1rem 0 3rem; }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 1.7rem;
}
.section-kicker {
    color: #ffc6cd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}
.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.55rem;
}
.section-head p { max-width: 58ch; color: var(--muted); }

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.clinic-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--panel);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.2s ease;
}
.clinic-card:hover {
    border-color: rgba(255, 77, 95, 0.25);
    transform: translateY(-3px);
}

.clinic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.clinic-card h3 { font-size: 1.1rem; line-height: 1.2; }
.clinic-link { text-decoration: none; color: inherit; }
.clinic-link:hover { color: var(--accent); }
.clinic-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.clinic-location {
    color: var(--soft);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.clinic-desc {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    flex: 1;
}
.clinic-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.clinic-price {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.clinic-actions { display: flex; gap: 0.6rem; margin-top: auto; }
.clinic-actions .btn { flex: 1; font-size: 0.85rem; padding: 0.75rem 0.9rem; }

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--soft);
    font-size: 1rem;
    display: none;
}

/* CATEGORIES */
.categories-section { padding: 2rem 0; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}
.cat-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--panel);
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.2s ease;
}
.cat-card:hover, .cat-card.active { border-color: rgba(255, 77, 95, 0.3); transform: translateY(-2px); }
.cat-card.active { background: rgba(255, 77, 95, 0.06); }
.cat-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.cat-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.cat-card p { color: var(--soft); font-size: 0.8rem; }

/* INTERNATIONAL PATIENTS */
.intl-section { padding: 3rem 0; }
.intl-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(86, 215, 195, 0.2);
    background: linear-gradient(135deg, rgba(86, 215, 195, 0.06), rgba(255, 255, 255, 0.03)), var(--panel);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
}
.intl-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.intl-card > p { color: var(--muted); font-size: 1rem; max-width: 55ch; margin: 0 auto 2rem; }
.intl-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.intl-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.intl-link:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); transform: translateY(-2px); }

/* CLINIC DETAIL */
.clinic-detail { padding: 2rem 0 3rem; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--soft);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.clinic-detail-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--panel);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(102, 210, 143, 0.1);
    border: 1px solid rgba(102, 210, 143, 0.25);
    margin-bottom: 1rem;
}
.clinic-detail-card h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}
.clinic-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.clinic-detail-desc {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 65ch;
}
.clinic-detail-info {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.info-label {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 120px;
}
.info-row a {
    color: var(--teal);
    text-decoration: none;
}
.info-row a:hover { text-decoration: underline; }
.clinic-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ABOUT */
.about-section { padding: 1rem 0 3rem; }
.about-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), var(--panel);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 720px;
    margin: 0 auto;
}
.about-card h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}
.about-card h2:first-child { margin-top: 0; }
.about-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.about-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.about-card li {
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.about-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* FOOTER */
footer { padding: 1rem 0 3rem; }
.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
.footer-shell p { color: var(--soft); font-size: 0.84rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; font-weight: 700; }
.footer-links a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 820px) {
    .container { width: min(var(--content), calc(100% - 1.25rem)); }
    .nav-inner { height: auto; padding: 0.9rem 0; flex-wrap: wrap; }
    .nav-links { display: none; }
    .nav-actions { width: 100%; justify-content: flex-end; }
    .hero { padding-top: 3rem; }
    .featured-card { grid-template-columns: 1fr; }
    .clinic-grid { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; }
    .filter-select { width: 100%; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-shell { flex-direction: column; text-align: center; }
    .clinic-detail-card { padding: 1.5rem; }
    .clinic-detail-actions { flex-direction: column; }
}
