/* ═══════════════════════════════════════
   SERVICE / CONDITION PAGES
   Shared styles for /<condition>-jalandhar/ pages.
   Matches the main site: Drishti Eye Care
═══════════════════════════════════════ */

:root {
    --primary-red: #B22222;
    --accent-red: #8B0000;
    --soft-white: #FDFDFD;
    --dark-navy: #0F172A;
    --text-gray: #475569;
    --light-gray: #F1F5F9;
}

html, body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--soft-white);
    color: var(--dark-navy);
    scroll-behavior: smooth;
    padding-top: 114px;
}

h1, h2, h3, h4, .navbar-brand { font-family: 'Lexend Deca', sans-serif; }

/* ─── TOP INFO BAR ─── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    background: var(--primary-red);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 0;
    letter-spacing: 0.2px;
}
.topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item i { font-size: 0.75rem; opacity: 0.85; }
.topbar-item a { color: inherit; text-decoration: none; }
.topbar-item a:hover { color: #fff; text-decoration: underline; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.3); flex-shrink: 0; }
@media (max-width: 767px) {
    .hide-sm { display: none !important; }
    .topbar-item.show-sm-only { display: flex; }
    .topbar .topbar-inner { justify-content: center; gap: 8px; }
    .topbar { font-size: 0.72rem; padding: 5px 0; }
}
@media (min-width: 768px) { .show-sm-only { display: none !important; } }

/* ─── NAVBAR ─── */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 14px 0;
    top: 34px;
}
@media (max-width: 767px) {
    .navbar { top: 28px; padding: 10px 0; }
    body { padding-top: 90px; }
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand span { color: var(--primary-red); }
.navbar-logo { height: 50px; width: auto; display: none; border-radius: 6px; object-fit: contain; }
.navbar-brand-text { display: inline; }
.navbar-brand.logo-loaded .navbar-logo { display: block; }
.navbar-brand.logo-loaded .navbar-brand-text { display: none; }

/* ─── BUTTONS ─── */
.btn-red {
    background: var(--primary-red);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    display: inline-block;
    text-decoration: none;
}
.btn-red:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(178, 34, 34, 0.2);
    color: white;
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    display: inline-block;
    text-decoration: none;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
    color: white;
}

/* ─── PAGE HEADER ─── */
.page-header {
    padding: 56px 0 44px;
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.page-header .breadcrumb { font-size: 0.88rem; margin-bottom: 20px; }
.page-header .breadcrumb-item a { color: var(--text-gray); text-decoration: none; }
.page-header .breadcrumb-item a:hover { color: var(--primary-red); }
.page-header .breadcrumb-item.active { color: var(--primary-red); font-weight: 600; }
.page-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
}
.page-header .lead { color: var(--text-gray); font-size: 1.08rem; max-width: 720px; }
.page-header .doctor-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--light-gray);
    border-radius: 50px;
    padding: 6px 16px 6px 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 18px;
    color: var(--dark-navy);
    text-decoration: none;
}
.page-header .doctor-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.page-header .doctor-chip:hover { background: #FFF5F5; color: var(--primary-red); }

/* ─── ARTICLE BODY ─── */
.article-wrap { padding: 56px 0 40px; }
.article-body { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #1E293B; }
.article-body h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 44px 0 16px;
    padding-top: 8px;
    color: var(--dark-navy);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--primary-red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-red); }

/* Highlight boxes */
.note-box {
    background: #FFF5F5;
    border-left: 4px solid var(--primary-red);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 24px 0;
}
.note-box p:last-child { margin-bottom: 0; }
.note-box .box-title { font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.note-box .box-title i { color: var(--primary-red); }

/* CTA card */
.cta-card {
    background: var(--dark-navy);
    color: white;
    border-radius: 20px;
    padding: 32px;
    margin: 36px 0;
}
.cta-card h3 { color: white; font-weight: 800; margin: 0 0 6px; font-size: 1.3rem; }
.cta-card p { color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.cta-card .cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
/* Buttons inside the article must win over .article-body a (red, underlined) */
.article-body .cta-card a.btn-red,
.article-body .cta-card a.btn-whatsapp,
.cta-card a.btn-red,
.cta-card a.btn-whatsapp {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.article-body .cta-card a.btn-red:hover,
.cta-card a.btn-red:hover { color: #fff; background: var(--accent-red); }
.article-body .cta-card a.btn-whatsapp:hover,
.cta-card a.btn-whatsapp:hover { color: #fff; background: #1ebe5d; }

/* FAQ accordion */
.faq-section .accordion-item {
    border: none;
    margin-bottom: 14px;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.faq-section .accordion-button { font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; }
.faq-section .accordion-button:not(.collapsed) { background-color: var(--primary-red); color: white; }
.faq-section .accordion-body { color: var(--text-gray); line-height: 1.75; }

/* Related pages */
.related-section { padding: 56px 0; background: var(--light-gray); }
.related-card {
    display: block;
    background: white;
    border-left: 4px solid var(--primary-red);
    border-radius: 0 12px 12px 0;
    padding: 20px 22px;
    text-decoration: none;
    color: var(--dark-navy);
    height: 100%;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.related-card:hover { transform: translateX(8px); background: #FFF5F5; color: var(--dark-navy); }
.related-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.related-card p { font-size: 0.9rem; color: var(--text-gray); margin: 0; }

/* Address / visit block */
.visit-section { padding: 56px 0; background: white; }
.visit-card {
    height: 100%;
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 32px;
}
.visit-card h3 { font-weight: 800; margin-bottom: 14px; }
.visit-card .visit-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--text-gray); }
.visit-card .visit-line i { color: var(--primary-red); margin-top: 5px; width: 18px; text-align: center; }
.visit-card .visit-line a { color: var(--dark-navy); font-weight: 600; text-decoration: none; }
.visit-card .visit-line a:hover { color: var(--primary-red); }

/* ─── HERO SLIDER (optional, landing pages) ─── */
.hero-slider { position: relative; width: 100%; height: 72vh; min-height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; z-index: 0; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide .img-desktop { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide .img-mobile { display: none; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,0.72) 40%, rgba(0,0,0,0.25) 100%); z-index: 2; }
.hero-caption { position: absolute; bottom: 20%; left: 0; right: 0; z-index: 3; padding: 0 2rem; }
.hero-caption .badge-pill {
    display: inline-block; background: var(--primary-red); color: #fff;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    padding: 6px 16px; border-radius: 50px; margin-bottom: 18px;
}
.hero-caption h1, .hero-caption .slide-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4); margin-bottom: 16px;
}
.hero-caption h1 span, .hero-caption .slide-title span { color: #FF6B6B; }
.hero-caption p { color: rgba(255,255,255,0.85); font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 26px; max-width: 560px; }
.hero-caption .btn-outline-white {
    background: transparent; color: #fff; padding: 13px 30px; border-radius: 12px; font-weight: 700;
    border: 2px solid rgba(255,255,255,0.6); display: inline-block; text-decoration: none; transition: 0.3s;
}
.hero-caption .btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; border: none; padding: 0; }
.hero-dot.active { background: #fff; width: 28px; border-radius: 5px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.4); color: #fff;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--primary-red); border-color: var(--primary-red); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--primary-red); z-index: 10; animation: heroProgress 5s linear infinite; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }
.crumb-bar { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 14px 0; }
.crumb-bar .breadcrumb { margin: 0; font-size: 0.88rem; }
.crumb-bar .breadcrumb-item a { color: var(--text-gray); text-decoration: none; }
.crumb-bar .breadcrumb-item a:hover { color: var(--primary-red); }
.crumb-bar .breadcrumb-item.active { color: var(--primary-red); font-weight: 600; }
.crumb-bar .doctor-chip {
    display: inline-flex; align-items: center; gap: 10px; background: var(--light-gray); border-radius: 50px;
    padding: 6px 16px 6px 6px; font-size: 0.85rem; font-weight: 600; color: var(--dark-navy); text-decoration: none;
}
.crumb-bar .doctor-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.crumb-bar .doctor-chip:hover { background: #FFF5F5; color: var(--primary-red); }
@media (max-width: 767px) {
    .hero-slider { height: 62vh; min-height: 400px; }
    .hero-slide .img-desktop { display: none; }
    .hero-slide .img-mobile { display: block; }
    .hero-caption { bottom: 16%; padding: 0 1.25rem; }
    .hero-caption h1, .hero-caption .slide-title { font-size: 1.8rem; }
    .hero-arrow { display: none; }
    .crumb-bar .doctor-chip { display: none; }
}

/* ─── MAP EMBED ─── */
.map-embed {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    background: #E5E7EB;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .map-embed { min-height: 280px; } }

/* ─── SITE FOOTER ─── */
.site-footer {
    background: #0F172A;
    color: rgba(255,255,255,0.72);
    padding: 72px 0 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B22222, #FF6B6B, #B22222);
}
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; transition: 0.25s; }
.site-footer a:hover { color: #fff; }
.footer-brand {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-brand span { color: #FF6B6B; }
.footer-brand img { height: 40px; width: auto; border-radius: 6px; background: #fff; padding: 3px; }
.footer-tagline { font-size: 0.92rem; line-height: 1.7; margin-bottom: 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.footer-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 5px 11px;
    border-radius: 50px;
}
.footer-heading {
    font-family: 'Lexend Deca', sans-serif;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}
.footer-heading::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 2px;
    background: #B22222;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #B22222;
    flex-shrink: 0;
    transition: 0.25s;
}
.footer-links a:hover::before { background: #FF6B6B; transform: scale(1.3); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.92rem; line-height: 1.6; }
.footer-contact li i {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(178,34,34,0.18);
    color: #FF6B6B;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.footer-contact .phone-big { color: #fff; font-weight: 800; font-size: 1.15rem; font-family: 'Lexend Deca', sans-serif; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-cta a {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    display: inline-flex; align-items: center; gap: 8px;
}
.footer-cta .f-call { background: #B22222; }
.footer-cta .f-call:hover { background: #8B0000; }
.footer-cta .f-wa { background: #25D366; }
.footer-cta .f-wa:hover { background: #1ebe5d; }
.footer-areas { margin-top: 20px; }
.footer-areas .footer-heading { margin-bottom: 12px; }
.footer-areas ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-areas a, .footer-areas span {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}
.footer-areas a:hover { background: rgba(178,34,34,0.35); border-color: #B22222; color: #fff; }
.footer-areas a i { color: #FF6B6B; font-size: 0.7rem; }
.footer-bottom {
    margin-top: 52px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-credit .heart { color: #FF6B6B; }
.footer-credit a { font-weight: 700; color: rgba(255,255,255,0.8); }
.footer-credit a:hover { color: #fff; }
@media (max-width: 767px) {
    .site-footer { padding-top: 48px; }
    .footer-bottom { margin-top: 36px; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

/* ─── MOBILE BOTTOM CTA BAR ─── */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1100;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.mobile-cta-bar .cta-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mobile-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.mobile-cta-btn i { font-size: 1.1rem; line-height: 1; }
.cta-call { background: var(--primary-red); color: #fff; }
.cta-call:hover { background: var(--accent-red); color: #fff; }
.cta-whatsapp { background: #25D366; color: #fff; }
.cta-whatsapp:hover { background: #1ebe5d; color: #fff; }
.cta-directions { background: #1A73E8; color: #fff; }
.cta-directions:hover { background: #1558b0; color: #fff; }
@media (max-width: 767px) {
    .mobile-cta-bar { display: block; }
    body { padding-bottom: 80px; }
    .page-header { padding: 36px 0 30px; }
    .article-wrap { padding: 36px 0 24px; }
    .article-body { font-size: 1rem; }
    .cta-card { padding: 24px 20px; }
    .related-section, .visit-section { padding: 40px 0; }
}

