/* =========================================================================
   PROSPEROUS - CSS STYLESHEET
   Brand Colors: 
   - Navy Blue (Primary/Sober) #0F2A4A
   - Gold (Accent/Elegant) #CBA052 
   - White / Light Gray for background #F9FAFC
   Typography:
   - Playfair Display for headings (Elegant / Traditional)
   - Lato for body text (Highly readable for older adults)
========================================================================= */

:root {
    /* Color Palette */
    --color-primary: #012D3D;
    /* Deep Teal / Navy */
    --color-primary-light: #023f54;
    --color-secondary: #FFB71D;
    /* Vibrant Gold/Yellow */
    --color-secondary-dark: #d69700;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F9FAFC;
    --color-white: #FFFFFF;

    /* Typography Settings for Seniors (larger base sizes) */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-size-base: 18px;
    /* Slightly larger base size for readability */

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius & Shadows */
    --border-radius: 8px;
    /* Modest radius, not too playful */
    --shadow-soft: 0 4px 20px rgba(15, 42, 74, 0.08);
    --shadow-hover: 0 10px 30px rgba(15, 42, 74, 0.15);
}

/* =========================================================================
   RESET & BASE STYLES
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    /* Inter SemiBold */
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
}

/* =========================================================================
   BUTTONS
========================================================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(203, 160, 82, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(203, 160, 82, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* =========================================================================
   LANGUAGE SWITCHER (CSS ONLY TOGGLE)
========================================================================= */
.lang-switcher {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-opt {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 6px 10px;
    /* Reduced from 14px to tighten spacing */
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.lang-opt.active {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   HEADER & NAVIGATION
========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 1rem 0;
    /* Reduced from 1.5rem */
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled,
.header.mobile-menu-active {
    background-color: var(--color-primary);
    padding: 0.5rem 0;
    /* Reduced from 1rem */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* Shrink the logo significantly when scrolling to allow a thin navbar */
.header.scrolled .logo-img,
.header.mobile-menu-active .logo-img {
    height: 55px;
}

/* Since header is over an image, we want white text initially */
.nav-link {
    color: var(--color-white);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

/* =========================================================================
   HERO SECTION
========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('images/xavier-mouton-photographie-ry_sD0P1ZL0-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 42, 74, 0.9) 0%, rgba(15, 42, 74, 0.6) 50%, rgba(15, 42, 74, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--color-white);
}

.hero-text h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-checks {
    margin-bottom: 2rem;
}

.hero-checks li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-checks i {
    color: var(--color-secondary);
}

/* Hero Embedded Form Card */
.hero-form-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--color-text-dark);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-form-card.form-hidden {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
}

.hero-form-card.form-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-form-card h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* =========================================================================
   BENEFITS SECTION
========================================================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-secondary);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.icon-wrapper i {
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================================================
   ABOUT SECTION
========================================================================= */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.img-container {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

/* Decorative background behind image */
.img-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-secondary);
    border-radius: var(--border-radius);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.about-text {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(203, 160, 82, 0.15);
    color: var(--color-secondary-dark);
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--color-text-dark);
    font-weight: 600;
}

.check-list i {
    color: var(--color-secondary);
}

/* =========================================================================
   CALL TO ACTION SECTION (CTA)
========================================================================= */
.cta {
    background-color: var(--color-white);
}

.cta-banner {
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    padding: 0;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 42, 74, 0.2);
    position: relative;
}

.simple-banner {
    justify-content: center;
    padding: 5rem 2rem;
}

.text-center {
    text-align: center;
}

/* Subtle pattern/overlay for CTA */
.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--color-primary-light), transparent 80%);
    z-index: 0;
}

.cta-content {
    flex: 1;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    background-color: #fafafa;
    color: var(--color-text-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(203, 160, 82, 0.2);
}

.privacy-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.privacy-text.text-dark {
    color: #888;
}

.privacy-text i {
    width: 16px;
    height: 16px;
}

/* =========================================================================
   FOOTER
========================================================================= */
.footer {
    background-color: var(--color-bg-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid #eaeaea;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    /* Increased size to match the screenshot */
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--color-text-light);
    font-family: var(--font-body);
    /* Ensure body font */
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
    /* Update color to match design */
}

.footer-contact i {
    color: var(--color-secondary);
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* =========================================================================
   RESPONSIVE DESIGN (100% Mobile Ready)
========================================================================= */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .about-flex {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        margin-top: 4rem;
    }

    .hero-text p {
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .hero-checks {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-checks li {
        justify-content: center;
    }

    .hero-form-card {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .about-flex {
        flex-direction: column;
    }

    .img-container {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .img-container::before {
        display: none;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
        --spacing-md: 1.5rem;
    }

    .nav {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    /* Hide CTA button in header for very small screens or re-position it */
    .header-actions .btn-primary {
        display: none;
    }

    /* Make language switcher larger for touch */
    .lang-switcher {
        margin-right: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 8rem 0 4rem;
        /* Top padding for fixed header */
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-content,
    .cta-action {
        padding: 2rem 1rem;
    }

    .btn-white {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand .logo,
    .footer-contact p {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .header .logo-img {
        height: 45px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-form-card {
        padding: 1.5rem;
    }

    .hero-form-card h3 {
        font-size: 1.4rem;
    }

    .section-title h2,
    .about-text h2 {
        font-size: 1.75rem;
    }

    .font-size-base {
        font-size: 16px;
    }
}