/* ==============================
   CSS Variables & Design Tokens
   ============================== */
:root {
    /* Colors - Brand */
    --blue-main: #0A3D73;     /* Institutional Blue */
    --blue-light: #185EAA;
    --blue-dark: #05264B;
    --green: #2CB67D;         /* Green Hope */
    --green-dark: #1F8A5D;
    --green-light: #E9F7F1;
    
    /* Colors - Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-500: #64748B;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Box Shadow */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius for friendly look */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ==============================
   Reset & Base Styles
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for accessibility */
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem; /* Larger text for elderly readability */
}

a {
    text-decoration: none;
    color: var(--blue-main);
    transition: var(--transition);
}

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

/* ==============================
   Layout & Utilities
   ============================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

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

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

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

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

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

.text-white-muted {
    color: #CBD5E1 !important; /* Gray-300 */
}

/* ==============================
   Buttons & Badges
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 4px 14px rgba(44, 182, 125, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(44, 182, 125, 0.6);
}

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

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

.btn-secondary {
    background-color: var(--white);
    color: var(--blue-main);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--blue-main);
    color: var(--blue-main);
    background-color: var(--gray-50);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--blue-light);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    background-color: var(--green-light);
    color: var(--green-dark);
}

/* ==============================
   Navigation
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-main);
}

.logo i {
    color: var(--green);
    font-size: 2rem;
}

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

.nav-links a:not(.btn) {
    color: var(--gray-800);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--blue-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--green);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blue-main);
    cursor: pointer;
}

/* ==============================
   Hero Section
   ============================== */
.hero {
    padding-top: 8rem; /* Account for navbar */
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
    position: relative;
}

/* Subtle background accent */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-light) 0%, transparent 60%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.hero-text strong {
    color: var(--blue-main);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
}

.hero-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    z-index: 2;
    animation: float 6s ease-in-out infinite 1.5s; /* Delayed float */
}

.card-icon {
    background: var(--green-light);
    color: var(--green);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-card strong {
    display: block;
    color: var(--blue-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.floating-card span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ==============================
   Services Section
   ============================== */
.section-title {
    font-size: 2.5rem;
    color: var(--blue-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--green-light);
    color: var(--green-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--green);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--blue-main);
}

.service-card p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ==============================
   About Us Section
   ============================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.rounded-img {
    border-radius: var(--radius-xl);
    width: 100%;
    object-fit: cover;
}

.about-features {
    list-style: none;
    margin-top: 1.5rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.about-features i {
    font-size: 1.5rem;
}

/* ==============================
   Documents Section (Form)
   ============================== */
.docs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.docs-steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.form-wrapper {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-wrapper h3 {
    text-align: center;
    color: var(--blue-dark);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    transition: var(--transition);
    background-color: var(--gray-50);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--blue-main);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 61, 115, 0.1);
}

/* File Upload Drag & Drop */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    background-color: var(--gray-50);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    gap: 0.5rem;
}

.file-drop-area:hover, .file-drop-area.drag-over {
    border-color: var(--blue-main);
    background-color: #f0f7ff;
}

.file-drop-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-msg {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.file-name-display {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
    text-align: center;
}

/* ==============================
   Footer
   ============================== */
.footer {
    background-color: var(--gray-50);
    padding-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 350px;
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--blue-dark);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--gray-500);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-500);
}

.footer-contact i {
    font-size: 1.25rem;
    color: var(--blue-main);
}

.footer-contact a {
    color: var(--gray-500);
}

.footer-contact a:hover {
    color: var(--green);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-200);
    color: var(--blue-dark);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--blue-dark);
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: var(--white);
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ==============================
   Floating WhatsApp Button
   ============================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    color: var(--gray-800);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid var(--gray-100);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--white);
    border-top: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==============================
   Responsive Queries
   ============================== */
@media (max-width: 992px) {
    .hero-container, .about-container, .docs-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        bottom: 10px;
        left: 10px;
        padding: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
