/* CSS Variables */
:root {
    /* Colors extracted and inspired from reference imagery */
    --primary-color: #264697;
    /* Deep blue brand color */
    --primary-light: #3d5fa6;
    /* Lighter blue for hovers/accents */
    /* Lighter blue for hovers/accents */
    --secondary-color: #f6c746;
    /* Yellow button color */
    --secondary-hover: #e3b333;

    --bg-color: #ffffff;
    /* White background */
    --bg-light: #f4f7f9;

    --text-main: #333333;
    /* Dark text */
    --text-muted: #4a5568;
    --text-light: #ffffff;

    --success-color: #55a832;
    /* Green from the checkmarks */
    --error-color: #dc3545;

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

/* Shared Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #000000;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hero .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.hero .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-large {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    border-radius: 2px;
}

.divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* ------------------
   Navigation
   ------------------ */
.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

#site-logo {
    max-height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Nav overrides below in Medias Queries */

/* ------------------
   Hero Section
   ------------------ */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.hero-title span {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 5px 15px;
    display: inline-block;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    color: var(--text-light);
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.3rem;
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ------------------
   Form Card
   ------------------ */
.hero-form-wrapper {
    flex: 0 0 400px;
}

.lead-form-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.lead-form-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.lead-form-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f9fbfd;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 123, 196, 0.1);
}

.input-wrapper.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input-wrapper.success {
    border-color: var(--success-color);
}

.input-icon,
.country-code {
    padding: 12px 15px;
    color: var(--text-muted);
    background-color: #f1f5f9;
    font-weight: 500;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
}

.privacy-note {
    text-align: center;
    font-size: 0.75rem !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.success-message {
    display: none;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* ------------------
   About Section
   ------------------ */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.about-card {
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(53, 75, 156, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-muted);
}

/* ------------------
   Testimonials Section
   ------------------ */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card.video-card {
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
}

.testimonial-card.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.quote-icon {
    color: rgba(242, 107, 33, 0.2);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.testimonial-text {
    flex-grow: 1;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.patient-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.patient-details h4 {
    color: var(--primary-color);
    margin-bottom: 2px;
}

.patient-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ------------------
   Footer
   ------------------ */
.footer {
    background-color: #22262d;
    /* Very dark blue from text main */
    color: #a0aec0;
    padding-top: var(--spacing-xl);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.8rem;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 300px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: #17191d;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ------------------
   Responsive Design
   ------------------ */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: flex-start;
        text-align: left;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-form-wrapper {
        flex: 1;
        width: 100%;
        max-width: 500px;
        margin-top: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide standard links on very small screens, keep CTA */
    }

    .hero-title {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lead-form-card {
        padding: 20px;
    }

    .hero {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ------------------
   Lead Gen Additions
   ------------------ */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    background-color: var(--bg-color);
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-around;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: flex;
    }

    .footer {
        padding-bottom: 70px;
        /* Space for sticky nav */
    }
}

/* ------------------
   FAQ Section
   ------------------ */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.faq-question:hover {
    background-color: #e2e8f0;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    padding: 10px 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ------------------
   Video Loop Testimonials
   ------------------ */
.video-loop-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.video-loop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-loop-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-loop-card video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .video-loop-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------
   Stats/Trust Strip
   ------------------ */
.stats-strip {
    background-color: #1a3270;
    padding: 30px 0;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.6rem;
    }
}

/* ------------------
   Floating WhatsApp
   ------------------ */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp i {
    color: white;
    font-size: 1.8rem;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 80px;
        /* Above sticky mobile CTA */
        right: 15px;
        width: 55px;
        height: 55px;
    }
}

/* ------------------
   Mid-page CTA
   ------------------ */
.mid-cta {
    background: linear-gradient(135deg, #264697, #1a3270);
    padding: 50px 0;
    color: var(--text-light);
    text-align: center;
}

.mid-cta h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.mid-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.mid-cta .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------
   Credibility Section
   ------------------ */
.credibility-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.credibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.credential-card {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    border-radius: 12px;
    padding: 40px;
    border-left: 5px solid var(--primary-color);
}

.credential-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.credential-list {
    list-style: none;
    padding: 0;
}

.credential-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-muted);
}

.credential-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-badge {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(38, 70, 151, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-icon i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.trust-badge-text h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2px;
}

.trust-badge-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .credibility-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------
   Exit-Intent Modal
   ------------------ */
.exit-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.exit-modal-overlay.show {
    display: flex;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.exit-modal {
    background: white;
    border-radius: 16px;
    padding: 40px 35px;
    max-width: 440px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: slideUpModal 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUpModal {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.exit-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.exit-modal-close:hover {
    color: #333;
}

.exit-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #4a6cf7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.exit-modal h2 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.exit-modal>p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.exit-modal .form-group {
    margin-bottom: 12px;
}

.exit-modal .success-message.show {
    display: flex;
}

/* ------------------
   Social Proof Toast
   ------------------ */
.social-proof-toast {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9000;
    transform: translateX(calc(-100% - 40px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, visibility 0.5s;
    max-width: 320px;
    border-left: 4px solid var(--success-color);
}

.social-proof-toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    width: 36px;
    height: 36px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
}

.toast-action {
    font-size: 0.75rem;
    color: #888;
}

@media (max-width: 600px) {
    .social-proof-toast {
        left: 10px;
        right: 10px;
        bottom: 80px;
        max-width: none;
    }
}