/* अलख आयुर्वेद — Professional Theme */
:root {
    --primary: #2d5016;
    --primary-light: #4a7c23;
    --primary-dark: #1a3009;
    --accent: #c9a227;
    --accent-light: #e8c547;
    --cream: #faf8f3;
    --cream-dark: #f0ebe0;
    --text: #2c2c2c;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(45, 80, 22, 0.08);
    --shadow-lg: 0 10px 40px rgba(45, 80, 22, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-devanagari: 'Noto Sans Devanagari', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.devanagari { font-family: var(--font-devanagari); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45,80,22,0.08);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-dark);
}
.nav-brand:hover { color: var(--primary); }

.brand-logo {
    height: 76px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: #f7f3ea;
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
    display: block;
}
.brand-icon {
    width: 64px; height: 64px;
    background: #f7f3ea;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(45,80,22,0.12);
    flex-shrink: 0;
}
.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.15rem; }
.brand-text small { font-size: 0.75rem; color: var(--text-muted); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}
.nav-menu a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
    background: rgba(45,80,22,0.06);
}
.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
}
.nav-cta:hover {
    background: var(--primary-light) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 92px;
}
.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.03'%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");
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 6vw, 4rem);
}
.hero-subtitle {
    font-family: var(--font-devanagari);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.95;
    margin-bottom: 12px;
    font-weight: 500;
}
.hero-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,162,39,0.3);
    color: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}
.btn-green {
    background: var(--primary);
    color: var(--white);
}
.btn-green:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Sections ── */
section { padding: 80px 0; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}
.section-header .label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ── Intro / About Block ── */
.intro-section { background: var(--white); }
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.intro-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.02rem;
}
.intro-text .highlight {
    font-family: var(--font-devanagari);
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    margin: 24px 0 16px;
}
.intro-visual {
    background: linear-gradient(135deg, var(--cream-dark), var(--cream));
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    border: 1px solid rgba(45,80,22,0.08);
}
.intro-visual .om-symbol {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px;
}
.intro-visual blockquote {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
}

/* ── Specialities Cards ── */
.specialities { background: var(--cream); }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(45,80,22,0.06);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(45,80,22,0.1), rgba(74,124,35,0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Why Choose Us ── */
.why-us { background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--cream);
}
.why-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.why-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* ── Doctor Profile ── */
.doctor-section { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.doctor-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    align-items: start;
}
.doctor-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--cream-dark);
    border-radius: var(--radius);
    overflow: hidden;
}
.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.doctor-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-top: 32px;
}
.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(45,80,22,0.06);
}
.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.gallery-logo img {
    object-fit: contain;
    background: var(--cream);
    padding: 24px;
}
.gallery-item p {
    padding: 14px 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
}
.footer-logo {
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: #f7f3ea;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}
.doctor-info h2 { margin-bottom: 4px; }
.doctor-title {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}
.doctor-info p { color: var(--text-muted); margin-bottom: 16px; }
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.tag {
    background: rgba(45,80,22,0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}
.ideology-box {
    background: var(--cream);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 24px;
}
.ideology-box h4 { margin-bottom: 8px; color: var(--primary); }
.ideology-box p { font-family: var(--font-devanagari); font-size: 1.05rem; color: var(--text); }

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { opacity: 0.85; margin-bottom: 32px; font-size: 1.1rem; }
.contact-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}
.contact-info-item i { color: var(--accent); }

/* ── Footer ── */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand h3 {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand p { margin-bottom: 6px; }
.footer-tagline { opacity: 0.7; font-size: 0.9rem; }
.footer-links h4, .footer-contact h4 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 160px 0 60px;
    text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { opacity: 0.85; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Medicines ── */
.medicines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.medicine-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(45,80,22,0.06);
}
.medicine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.medicine-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 24px;
}
.medicine-card-header .category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}
.medicine-card-header h3 { color: var(--white); font-size: 1.3rem; }
.medicine-card-body { padding: 24px; }
.medicine-card-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.medicine-card-body .benefits-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* ── Consultation Form ── */
.form-section { background: var(--white); }
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--cream);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(45,80,22,0.12);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.2s;
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Admin Styles ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 24px 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.admin-sidebar .sidebar-brand h3 {
    color: var(--white);
    font-size: 1.2rem;
}
.admin-sidebar .sidebar-brand small { opacity: 0.6; font-size: 0.8rem; }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.admin-nav a i { width: 20px; text-align: center; }

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    background: var(--cream);
    min-height: 100vh;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.admin-header h1 { font-size: 1.8rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-serif);
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(45,80,22,0.06);
    font-size: 0.9rem;
}
.admin-table th {
    background: var(--cream);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table tr:hover { background: rgba(45,80,22,0.02); }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #cce5ff; color: #004085; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.login-box {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}
.login-box h2 { text-align: center; margin-bottom: 8px; }
.login-box .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; font-size: 0.9rem; }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
}
.btn-danger { background: #dc3545; color: white; border: none; cursor: pointer; }
.btn-danger:hover { background: #c82333; }
.btn-edit { background: var(--primary); color: white; border: none; cursor: pointer; }
.btn-edit:hover { background: var(--primary-light); }

.table-actions { display: flex; gap: 8px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--cream-dark); margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .brand-logo { height: 58px; max-width: 130px; }
    .nav-container { min-height: 80px; }
    .nav-menu {
        position: fixed;
        top: 80px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .intro-grid, .doctor-card, .doctor-gallery { grid-template-columns: 1fr; }
    .gallery-item img { height: 260px; }
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 28px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .hero-buttons { flex-direction: column; }
    .contact-info { flex-direction: column; align-items: center; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    section { padding: 56px 0; }
    .doctor-card { padding: 24px; }
}
