/* ========================================================
   Dr. Angshuman Kalita — Shared Stylesheet
   Design: Refined Medical Glassmorphism (Navy + Emerald)
   ======================================================== */

/* Google Fonts: Cormorant Garamond (display) + DM Sans (body) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-base: #eaf3fa;
    --bg-grad-start: #dceefc;
    --bg-grad-mid: #f4f9ff;
    --primary: #1b365d;
    --primary-light: #2a4f87;
    --accent: #2ecc71;
    --accent-dark: #27ae60;
    --text-dark: #1a2332;
    --text-mid: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --glass-bg: rgba(255,255,255,0.62);
    --glass-border: rgba(255,255,255,0.85);
    --shadow: 0 8px 32px rgba(27,54,93,0.09);
    --shadow-hover: 0 16px 48px rgba(27,54,93,0.15);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.25,1,0.5,1);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top left, var(--bg-grad-start) 0%, var(--bg-grad-mid) 50%, var(--bg-base) 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.65;
    min-height: 100vh;
}

/* ── Utility ── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 5%; }

.tag-pill {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
}

/* ── Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 20px rgba(27,54,93,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.1rem 5%;
    gap: 1rem;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 1.45rem; font-weight: 700;
    color: var(--primary); text-decoration: none;
    white-space: nowrap; flex-shrink: 0;
}
.logo i { color: var(--accent); animation: pulseHeart 2.2s infinite ease-in-out; }

@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.nav-links {
    display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
    text-decoration: none; color: var(--text-mid);
    font-size: 0.9rem; font-weight: 500;
    position: relative; transition: color 0.25s;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
    background: var(--primary); color: var(--white) !important;
    padding: 0.55rem 1.4rem; border-radius: 50px;
    font-weight: 600 !important; font-size: 0.88rem !important;
    transition: background 0.25s, transform 0.25s !important;
    flex-shrink: 0;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--primary-light) !important; transform: translateY(-2px) !important; color: var(--white) !important; }

.menu-toggle {
    display: none; background: none; border: none;
    font-size: 1.4rem; color: var(--primary); cursor: pointer;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--primary); color: var(--white);
    padding: 0.85rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(27,54,93,0.22);
}
.btn-primary i { font-size: 0.8rem; }

.btn-accent {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: var(--white);
    padding: 0.85rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(46,204,113,0.3);
}

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--accent);
    font-weight: 600; font-size: 0.88rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: color 0.25s, transform 0.25s var(--ease);
}
.btn-ghost:hover { color: var(--primary); transform: translateX(4px); }

/* ── Footer ── */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1320px;
    margin: 0 auto 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; display: flex; }
.footer-brand .logo i { color: var(--accent); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a { color: rgba(255,255,255,0.62); font-size: 0.88rem; text-decoration: none; transition: color 0.25s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 0.5rem; }
.footer-col p i { color: var(--accent); margin-right: 6px; }
.social-links { display: flex; gap: 12px; margin-top: 1.2rem; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; text-decoration: none;
    transition: background 0.25s, transform 0.25s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem; text-align: center;
    font-size: 0.8rem; color: rgba(255,255,255,0.4);
    max-width: 1320px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.25s; }
.footer-bottom a:hover { color: var(--accent); }

/* ── Form shared styles ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1.2rem;
    border: 1.5px solid rgba(27,54,93,0.1);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.88);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(46,204,113,0.14);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #e53e3e; box-shadow: 0 0 0 4px rgba(229,62,62,0.1); }
.form-group .error-msg { font-size: 0.78rem; color: #e53e3e; display: none; }
.form-group.has-error .error-msg { display: block; }

/* ── Page hero banner (sub-pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4f87 100%);
    color: var(--white);
    padding: 5rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700; margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }

/* ── Treatment card shared ── */
.treatment-list { list-style: none; }
.treatment-list li {
    background: var(--white);
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 14px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.treatment-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.treatment-list li i { color: var(--accent); font-size: 1.05rem; flex-shrink: 0; }

/* ── CTA box ── */
.cta-box {
    margin-top: 3rem; padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white); border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 12px 40px rgba(27,54,93,0.2);
}
.cta-box h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        padding: 1.5rem 5%; flex-direction: column;
        gap: 1.2rem; text-align: center;
        opacity: 0; transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-cta { width: fit-content; margin: 0 auto; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}