/* ==================================================
   MASTER STYLESHEET FOR LANSDOWNE PHARMACY (CORRECTED & UNIFIED)
   This single file correctly styles:
   - Homepage
   - All Service Pages
   - About Us Page
   - Contact Page
   ================================================== */

/* ==================================================
   GLOBAL STYLES & RESET
   ================================================== */
:root {
    --primary-dark: #2E5C5E;
    --primary-medium: #4A8B8C;
    --primary-light: #A8E6CF;
    --accent-green: #4CAF50;
    --accent-red: #E41F1F;
    --accent-blue: #005EB8;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Prevents horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding-top: var(--header-height);
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title,
.why-choose-us-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2, .geo-heading {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-light), var(--accent-green));
    color: var(--primary-dark);
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ==================================================
   HEADER & NAVIGATION
   ================================================== */
header {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
}

.logo-icon { width: 40px; height: 40px; }
.logo-text h1 { font-size: 1.5rem; letter-spacing: 1px; margin: 0; }
.logo-text span { font-size: 0.9rem; opacity: 0.9; }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { color: var(--white); text-decoration: none; transition: color 0.3s; font-weight: 500; }
.nav-links a:hover { color: var(--primary-light); }

.mobile-menu { display: none; flex-direction: column; cursor: pointer; }
.mobile-menu span { width: 25px; height: 3px; background: var(--white); margin: 4px 0; transition: 0.3s; }

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    padding-top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background-color: var(--primary-dark);
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem; 
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.nav-links li.has-dropdown:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}
.nav-links li.has-dropdown {
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.mega-menu-inner { display: flex; gap: 2rem; }
.mega-menu-column { flex: 1; }
.mega-menu-column h4 { color: var(--primary-light); margin-bottom: 1rem; border-bottom: 1px solid var(--primary-medium); padding-bottom: 0.5rem; }
.mega-menu-column ul { list-style: none; }
.mega-menu-column ul li { margin-bottom: 0.5rem; }
.mega-menu-column ul a { font-size: 0.95rem; padding: 5px 0; display: block; transition: color 0.2s, padding-left 0.2s; }
.mega-menu-column ul a:hover { color: var(--primary-light); padding-left: 5px; }

/* ==================================================
   UNIFIED HERO SECTION STYLES
   ================================================== */
.hero, .service-hero {
    padding: 60px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
}

.hero .container, .service-hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text { flex: 1; }
.hero-graphic { flex-basis: 300px; text-align: center; }

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-text p, .hero-text .subheadline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 550px;
}

.animated-svg-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Specific Hero Overrides */
.about-hero { background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-medium) 100%); }
.service-hero-earwax { background: linear-gradient(135deg, #e0f7fa 0%, var(--white) 100%); }
.service-hero-bp { background: linear-gradient(135deg, #fff0f0 0%, var(--white) 100%); }
.service-hero-smoking { background: linear-gradient(135deg, #f5f5f5 0%, var(--white) 100%); }
.service-hero-weight-loss { background: linear-gradient(135deg, #f0fff0 0%, var(--white) 100%); }

.service-hero h1, .service-hero p { color: var(--primary-dark); }
.about-hero h1, .about-hero p { color: var(--white); text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }


/* ==================================================
   ABOUT US PAGE STYLES
   ================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pilled-list { list-style: none; padding-left: 0; margin-top: 2rem; }
.pilled-list li { background-color: var(--primary-light); color: var(--primary-dark); border-radius: 20px; padding: 0.5rem 1rem; margin-bottom: 0.5rem; display: inline-block; font-weight: bold; }

.why-choose-us-section .why-choose-us-title { text-align: center; margin-bottom: 2rem; }

.why-choose-us-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.benefit-card-bp {
    background-color: var(--white);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.benefit-card-bp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.benefit-icon-bp { width: 60px; height: 60px; margin-bottom: 1rem; fill: none; stroke: var(--accent-red); }
.benefit-card-bp h3 { color: var(--primary-dark); font-size: 1.3rem; margin-bottom: 0.5rem; }

.impact-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.stat-box-impact .impact-number { font-size: 4rem; font-weight: bold; color: var(--primary-medium); }
.stat-box-impact p { font-size: 1.1rem; color: var(--text-light); }

.testimonial-carousel-item { border-top: 4px solid var(--primary-light); padding-top: 2rem; max-width: 700px; margin: 3rem auto 0; text-align: center; }
.testimonial-rating { color: #FFC107; font-size: 1.5rem; margin-bottom: 1rem; }
.quote { font-size: 1.2rem; font-style: italic; margin-bottom: 1rem; }
.author { font-weight: bold; }

.badges-container { display: flex; justify-content: center; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap; }
.quality-badge { text-align: center; }
.badge-icon { width: 80px; height: 80px; }
.quality-badge span { display: block; margin-top: 0.5rem; font-weight: bold; }

.mission-box { background-color: var(--primary-medium); color: var(--white); padding: 2rem; border-radius: 15px; max-width: 800px; margin: 0 auto; text-align: center; }
.mission-box p { font-size: 1.5rem; font-weight: bold; font-style: italic; }

/* ==================================================
   SERVICE PAGES - COMMON MODULES
   ================================================== */

.benefits-grid .container, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); border-color: var(--primary-light); }
.service-icon { width: 60px; height: 60px; margin: 0 auto 1rem; fill: var(--primary-medium); }
.service-card h3 { color: var(--primary-dark); margin-bottom: 1rem; }

.how-it-works-timeline, .stepped-process-section {
    position: relative;
}
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--primary-light); top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-number { position: absolute; width: 50px; height: 50px; line-height: 50px; background: var(--primary-medium); color: var(--white); font-size: 1.5rem; text-align: center; border-radius: 50%; top: 50%; transform: translateY(-50%); z-index: 1; }
.timeline-item:nth-child(odd) .timeline-number { right: -25px; }
.timeline-item:nth-child(even) .timeline-number { left: -25px; }
.timeline-content { padding: 20px 30px; background: var(--white); border-radius: 8px; box-shadow: 0 3px 15px rgba(0,0,0,0.07); }
.timeline-content h4 { color: var(--primary-dark); }

.pricing-table { width: 100%; max-width: 700px; margin: 0 auto; border-collapse: collapse; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; }
.pricing-table th, .pricing-table td { padding: 1rem; text-align: center; border-bottom: 1px solid #e0e0e0; }
.pricing-table thead th { background-color: var(--primary-medium); color: var(--white); }
.pricing-table tbody tr:nth-child(even) { background-color: var(--light-bg); }
.pricing-table td:first-child { text-align: left; font-weight: bold; }
.pricing-footnote { text-align: center; margin-top: 1.5rem; font-style: italic; }

.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question { width: 100%; background: none; border: none; padding: 1.5rem 1rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.1rem; font-weight: bold; color: var(--primary-dark); text-align: left; }
.faq-icon { width: 1em; height: 1em; transition: transform 0.3s ease; position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background-color: var(--primary-medium); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s ease; }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding: 0 1rem; }
.faq-answer p { padding-bottom: 1.5rem; }

.contact-location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: flex-start; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.map-container { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.map-overlay { position: absolute; bottom: 10px; left: 10px; background-color: rgba(255, 255, 255, 0.9); padding: 1rem; border-radius: 8px; max-width: 80%; }
.map-overlay .nhs-blue { color: var(--accent-blue); font-weight: bold; }

.testimonials-grid, .success-stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card, .success-card { background: var(--white); padding: 2rem; border-radius: 12px; border-top: 5px solid var(--primary-light); box-shadow: 0 8px 25px rgba(0,0,0,0.08); text-align: center;}
.testimonial-rating { font-size: 1.5rem; color: #FFC107; margin-bottom: 1rem; }
.testimonial-text, .success-quote { font-style: italic; margin-bottom: 1rem; }
.testimonial-author, .success-author { font-weight: bold; color: var(--primary-dark); }

.urgency-section .container { max-width: 900px; }
.urgency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.stat-box { background: var(--primary-dark); color: var(--white); padding: 2rem; border-radius: 12px; text-align: center; }
.stat-box h3 { color: var(--primary-light); }
.stat-big-text { font-size: 5rem; font-weight: bold; line-height: 1; }
.source-text { font-size: 0.8rem; opacity: 0.7; margin-top: 1rem; display: block; }
.local-testimonial { padding: 2rem; border-left: 5px solid var(--primary-light); }

.disclaimer-section { background: var(--light-bg); text-align: center; padding: 40px 0; }
.no-smoking-sign { width: 60px; height: 60px; margin-bottom: 1rem; }
.nhs-disclaimer { max-width: 600px; margin: 0 auto; color: var(--text-light); }


/* ==================================================
   FOOTER
   ================================================== */
footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.7;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 0.2rem 0;
}

.footer-section ul a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==================================================
   RESPONSIVE OVERRIDES
   ================================================== */
@media (max-width: 992px) {
    .nav-links li.has-dropdown .mega-menu { display: none !important; }
    .hero .container, .service-hero .container, .about-content, .contact-location-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .hero-graphic { order: -1; margin-bottom: 2rem; }
    .hero-text p, .hero-text .subheadline { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { padding: 1rem; display: block; width: 100%; border-bottom: 1px solid var(--primary-medium); }

    .mobile-menu { display: flex; }

    .section-title h2, .geo-heading { font-size: 2rem; }
    .hero-text h1 { font-size: 2.2rem; }

    .timeline::after { left: 25px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-number { left: 0; }
    
    .mobile-call-button {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: var(--accent-green);
        color: var(--white);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1001;
        font-size: 1.5rem;
        text-decoration: none;
    }
    .urgency-grid { grid-template-columns: 1fr; }
}
/* ==================================================
   HOMEPAGE-SPECIFIC ADDITIONS
   ================================================== */

.social-proof {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
}

.social-proof .section-title h2,
.social-proof .section-title p {
    color: var(--white);
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1.1;
}

.stat-item .stat-text {
    font-size: 1rem;
    color: var(--white);
    opacity: 0.8;
}

.testimonial-section {
    padding: 80px 0;
}

.final-cta {
    background: var(--accent-green);
    text-align: center;
    color: var(--white);
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.final-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}
/* ==================================================
   CONTACT PAGE - SPECIFIC STYLES
   ================================================== */

.contact-details-section {
    padding-top: 0;
    padding-bottom: 60px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    stroke: var(--primary-medium);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.contact-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 1.1rem;
}
/* ==================================================
   PHARMACY FIRST PAGE - ADDITIONS
   ================================================== */

.service-hero-pf {
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
}

.service-hero-pf .hero-text h1,
.service-hero-pf .hero-text p {
    color: var(--primary-dark);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.condition-card {
    background-color: var(--white);
    border: 2px solid var(--accent-blue);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.condition-card:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 94, 184, 0.2);
}

.condition-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.condition-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.condition-card:hover p {
    opacity: 1;
}

.stepped-process-section .stepped-process {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.stepped-process .step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.step-card .step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto 1rem;
    background: var(--primary-medium);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}
.step-arrow {
    font-size: 2.5rem;
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .stepped-process-section .step-arrow { display: none; }
    .stepped-process-section .step-card { margin-bottom: 1rem; }
}