/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors from Logo */
    --brand-orange: #F7931E; 
    --brand-blue: #0071BC;   
    
    /* Functional Colors */
    --whatsapp: #25D366;
    --light: #f4f6f8; /* Soft grey background */
    --dark: #333;
    --white: #fff;
    --grey-text: #666;
}

/* GLOBAL RESET - CRITICAL FOR LAYOUTS */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark);
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. GENERAL LAYOUT
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
}

/* =========================================
   3. HEADER & NAVIGATION (FIXED)
   ========================================= */

/* The Main Header Container (The ID that JS targets) */
#header-placeholder {
    background-color: var(--white);
    border-top: 5px solid var(--brand-orange);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    
    /* STICKY BEHAVIOR */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    
    /* SMOOTH TRANSITION FOR SCROLL EFFECT */
    transition: all 0.3s ease;
}

/* The Scrolled State (Added by JS) */
#header-placeholder.scrolled {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);      /* Deeper shadow */
    border-top-color: var(--brand-blue);          /* Changes top border color */
    padding-bottom: 5px;                          /* Slight padding shift */
}

/* The Inner Layout (Logo Left, Menu Right) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center everything */
    flex-wrap: nowrap;   /* CRITICAL: Prevents menu from dropping below */
    padding: 10px 0;
    width: 100%;
}

/* Logo Sizing */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevents logo from getting squashed */
}

.logo img {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Space between menu items */
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
    white-space: nowrap; /* Prevents text from wrapping */
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-orange);
}

/* Mobile Responsive - Adjust if screen is too small */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack vertically only on mobile */
        gap: 15px;
    }
}
/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-primary {
    background: var(--brand-blue);
    color: var(--white);
}

.btn-action {
    background: var(--brand-orange);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

/* Secondary outline button (View Prices) */
.btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    box-shadow: none;
    /* Adjust padding to match solid buttons (minus border width) */
    padding: 10px 28px; 
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: var(--white);
}

/* =========================================
   5. HERO SECTION (SPLIT LAYOUT)
   ========================================= */
.hero-wrapper {
    background: linear-gradient(105deg, #fdfdfd 0%, #f4f7f9 100%);
    padding: 80px 0;
    border-bottom: 1px solid #e1e1e1;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start; /* Left aligned on desktop */
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 5px solid var(--white);
}

/* =========================================
   6. HOMEPAGE COMPONENTS
   ========================================= */
/* Trust Bar */
.trust-bar {
    background: var(--brand-blue);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    font-weight: 600;
    font-size: 1.1rem;
}

/* How It Works Steps */
.steps-section {
    padding: 80px 0;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    position: relative;
    padding: 20px;
}

.step-number {
    background: var(--brand-orange);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(247, 147, 30, 0.4);
}

/* Connector Line (Desktop Only) */
.step-card::after {
    content: '';
    position: absolute;
    top: 45px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e1e1e1;
    z-index: -1;
}

.step-card:last-child::after {
    display: none;
}

/* General Grid for "Who We Help" */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
    align-items: stretch;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

/* =========================================
   7. SUBSCRIPTION & PRICING GRIDS
   ========================================= */
.pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 equal columns */
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch; /* Equal height cards */
}

.plan-card {
    background: var(--white);
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 30px;
    display: flex;       
    flex-direction: column; 
    justify-content: space-between; /* Pushes button to bottom */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.plan-card.popular {
    border: 2px solid var(--brand-orange);
    transform: scale(1.02); 
    z-index: 2;
}
.plan-card.popular:hover {
    transform: scale(1.05);
}

.plan-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.plan-card h3 {
    color: var(--brand-blue);
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.plan-card .price {
    font-size: 2.5rem;
    color: var(--brand-orange);
    font-weight: 800;
    margin: 5px 0;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.senior-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-bottom: 60px;
}

.senior-card {
    max-width: 500px;
    width: 100%;
    border-top: 5px solid var(--brand-blue);
}

/* =========================================
   8. SERVICES GRID
   ========================================= */
.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 50px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--brand-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    color: var(--brand-blue);
    margin: 10px 0;
    font-size: 1.3rem;
}

.service-card .price {
    font-size: 2rem;
    color: var(--brand-orange);
    font-weight: 800;
    margin: 5px 0 15px 0;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.section-divider {
    border-top: 1px solid #eee;
    margin: 60px 0 40px 0;
    padding-top: 40px;
    text-align: center;
}

/* =========================================
   9. FOOTER & WHATSAPP
   ========================================= */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

footer a { 
    color: var(--brand-orange); 
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp);
    color: #FFF;
    border-radius: 50px;
    padding: 15px;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    display: flex; 
    align-items: center; 
    gap: 10px; 
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* =========================================
   10. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    /* Hero */
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-text p {
        margin: 0 auto 30px auto;
    }
    .hero-badges {
        justify-content: center;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .step-card::after {
        display: none;
    }

    /* Grids */
    .grid-3, .pricing-row, .services-grid {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    .plan-card.popular {
        transform: none;
    }
}