/* ==========================================================================
           GLOBAL VARIABLES
           ========================================================================== */

:root {
    --primary: #174f7a;
    --secondary: #1d69bf;
    --accent: #033d61;
    --light-bg: #eceeef;
    --dark-bg: #033d61;
    --white: #ffffff;
    --gray: #e2e2e2;
    --font-family: "Avenir", sans-serif;
    --font-size-base: 1rem; /* 16px */
    --line-height-base: 1.6;
}

/* ==========================================================================
           HEADER STYLES
           ========================================================================== */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.header {
    background-color: var(--white);
    padding: 0.9375rem 0; /* 15px */
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1); /* 2px 10px */
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    height: auto;
    width: auto;
    max-width: 12.5rem; 
    color: var(--primary);
}

.logo-img {
    max-width: 12.5rem; /* 200px */
    width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: 1.875rem; /* 30px */
    list-style: none;

}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9375rem; /* 15px */
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary);
}

/* Navigation Bar - Second Level */
.nav-bar {
    background-color: var(--gray);
    padding: 0.75rem 0; /* 12px */
    font-family: var(--font-family);
}

.nav-bar-content {
    display: flex;
    gap: 2.5rem; /* 40px */
    justify-content: end;
}

.nav-bar a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.0625rem; /* 17px */
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-bar a:hover {
    color: var(--secondary);
}

/* Mobile nav toggle (hidden on desktop) */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 2.75rem; /* 44px */
    height: 2.75rem; /* 44px */
    padding: 0.5rem; /* 8px */
    align-self: center;
    cursor: pointer;
}

.mobile-nav-toggle .hamburger {
    display: block;
    width: 1.5rem; /* 24px */
    height: 0.125rem; /* 2px */
    background: var(--primary);
    position: relative;
    transition: transform 0.25s ease;
}
.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 1.5rem; /* 24px */
    height: 0.125rem; /* 2px */
    background: var(--primary);
    transition: transform 0.25s ease, top 0.2s ease, bottom 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle .hamburger::before { top: -0.5rem; } /* -8px */
.mobile-nav-toggle .hamburger::after  { bottom: -0.5rem; } /* -8px */

/* When nav open, animate hamburger to X */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
           HERO SECTION STYLES
           ========================================================================== */

.hero {
    padding: 0.625rem 0; /* 10px */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3.75rem; /* 60px */
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-family: var(--font-family);
    font-size: 2.125rem; /* 34px */
    font-weight: 300;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1.25rem; /* 20px */
}

.hero-title-b {
    color: var(--primary);
}

.hero-title::before {
    content: "+";
    font-size: 5rem; /* 80px */
    font-weight: 400;
    color: var(--secondary);
    display: block;
}

.hero-badges {
    display: flex;
    gap: 1.25rem; /* 20px */
    margin-bottom: 1.25rem; /* 20px */
    flex-wrap: wrap;
}


/* Updated Badge Styles for Tabs */
.badge {
    font-family: var(--font-family);
    background-color: transparent;
    color: var(--secondary);
    font-size: 0.9375rem; /* 15px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem; /* 1px */
    cursor: pointer; /* ADD THIS */
    padding: 0.5rem 1rem; /* ADD THIS - 8px 16px */
    /* border: 0.125rem solid transparent; ADD THIS - 2px */
    /* border-radius: 1.5625rem; ADD THIS - 25px */
    /* transition: all 0.3s ease; ADD THIS */
    user-select: none; /* ADD THIS */
}



.badge.active {
    /* background-color: var(--primary); */
    /* color: var(--white); */
    border-color: var(--primary);
    border-top: 0.25rem solid var(--primary); /* ADD THIS - 4px */
    /* transform: translateY(-0.125rem); -2px */
    /* box-shadow: 0 0.25rem 0.75rem rgba(23, 79, 122, 0.3); 4px 12px */
}

/* NEW - Tab Content Styles */
.hero-content-wrapper {
    position: relative;
    min-height: 7.5rem; /* 120px */
}

.tab-content {
    opacity: 0;
    transform: translateY(1.25rem); /* 20px */
    transition: all 0.4s ease;
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

/* Enhanced CTA Button Hover */
.cta-button:hover {
    background-color: var(--secondary);
    transform: translateY(-0.125rem); /* -2px */
    box-shadow: 0 0.375rem 1.25rem rgba(29, 105, 191, 0.3); /* 6px 20px */
}

.hero-description {
    font-family: var(--font-family);
    font-size: 1.375rem; /* 22px */
    margin-bottom: 3.125rem; /* 50px */
    font-weight: 300;
    letter-spacing: 0.09375rem; /* 1.5px */
}

.cta-button {
    font-family: var(--font-family);
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.9375rem 1.875rem; /* 15px 30px */
    border: none;
    border-radius: 2.1875rem; /* 35px */
    cursor: pointer;
    letter-spacing: 0.0625rem; /* 1px */
    transition: background-color 0.3s ease;
    display: inline-block;
    min-width: 8.75rem; /* 140px */
}

.cta-button:hover {
    background-color: var(--secondary);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 25rem; /* 400px */
    width: 100%;
    height: auto;
    border-radius: 1.25rem; /* 20px */
}

/* ==========================================================================
           WHY CHOOSE US SECTION STYLES
           ========================================================================== */

.why-choose {
    padding: 3.75rem 0; /* 60px */
    background-color: var(--white);
}

.section-title {
    font-family: var(--font-family);
    font-size: 1.0625rem; /* 17px */
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.9375rem; /* 15px */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px fluid */
    gap: 2.5rem; /* 40px */
    margin-bottom: 3.75rem; /* 60px */
    padding: 1rem; /* 16px */
    background-color: var(--light-bg);
    border: 0.0625rem solid #b0b3b5; /* 1px */
    border-radius: 0.625rem; /* 10px */
}

.feature-item:nth-child(even) {
    border-right: 0.0625rem solid #b3b3b3; /* 1px */
    border-left: 0.0625rem solid #b3b3b3; /* 1px */
    padding-left: 1.25rem; /* 20px */
    padding-right: 1.25rem; /* 20px */
}

.feature-item h4::before {
    content: "+";
    font-size: 0.875rem; /* 14px */
    font-weight: 300;
    color: #666666;
    margin-right: 0.625rem; /* 10px */
}

.feature-item h4 {
    font-family: var(--font-family);
    font-size: 0.9375rem; /* 15px */
    font-weight: 500;
    color: #6c90aa;
}

.feature-item p {
    font-family: var(--font-family);
    font-size: 0.9375rem; /* 15px */
    font-weight: 300;
    color: #6c90aa;
    line-height: 1.6;
    margin-left: 1.25rem; /* 20px */
}

/* ==========================================================================
           INNOVATIVE SOLUTIONS SECTION STYLES
           ========================================================================== */

.innovative-solutions {
    background-color: var(--white);
}

.solutions-content {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.solutions-image {
    flex: 1;
}

.solutions-image img {
    width: 80%;
    height: auto;
    margin-left: 1.875rem; /* 30px - removed on mobile */
}

.solutions-text {
    flex: 1;
}

.solutions-title {
    font-family: var(--font-family);
    font-size: 2.8125rem; /* 45px */
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.3125rem; /* 5px */
}

.solutions-description {
    font-size: 1rem; /* 16px */
    color: var(--primary);
    font-weight: 300;
    margin-bottom: 0.9375rem; /* 15px */
    line-height: var(--line-height-base);
}

.solutions-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem; /* 10px */
}

.solution-item {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.solution-item::before {
    content: "+";
    color: var(--secondary);
    margin-right: 0.625rem; /* 10px */
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
}

/* ==========================================================================
           RETIREMENT SECTION STYLES
           ========================================================================== */

.retirement-section {
    padding: 5rem 0; /* 80px */
}

.retirement-content {
    display: flex;
    align-items: center;
    gap: 3.75rem; /* 60px */
}

.retirement-text {
    flex: 1;
}

.retirement-title {
    font-family: var(--font-family);
    font-size: 2.8125rem; /* 45px */
    font-weight: 300;
    color: var(--primary);
}

.retirement-subtitle {
    font-size: 1rem; /* 16px */
    color: var(--primary);
    margin-bottom: 0.9375rem; /* 15px */
    font-weight: 500;
}

.retirement-description {
    font-size: 0.875rem; /* 14px */
    color: var(--primary);
    margin-bottom: 0.9375rem; /* 15px */
    font-weight: 300;
}

.retirement-features {
    list-style: none;
    padding-left: 1.25rem; /* 20px */
    margin-bottom: 0.625rem; /* 10px */
}

.retirement-features li {
    font-size: 0.875rem; /* 14px */
    font-weight: 300;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.retirement-features li::before {
    content: "•";
    color: var(--secondary);
    font-size: 0.875rem; /* 14px */
    margin-right: 0.5rem; /* 8px */
    margin-bottom: 0.125rem; /* 2px */
}

.retirement-image {
    flex: 1;
}

.retirement-image img {
    width: 100%;
    height: auto;
    border-radius: 0.9375rem; /* 15px */
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
    font-weight: 300;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
           RESOURCES SECTION STYLES
           ========================================================================== */

.resources {
    padding: 2.5rem 0; /* 40px */
    background-color: var(--light-bg);
}

.resources-title {
    font-size: 2.4375rem; /* 39px */
    font-weight: 300;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.875rem; /* 30px */
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); /* 280px fluid */
    gap: 1.5625rem; /* 25px */
}

.resource-card {
    background-color: var(--white);
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1); /* 5px 15px */
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-0.3125rem); /* -5px */
}

.resource-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.resource-card-content {
    padding: 0 1.25rem; /* 20px */
}

.resource-card h3 {
    font-size: 1.1875rem; /* 19px */
    font-weight: 500;
    margin-top: 0.3125rem; /* 5px */
    color: var(--primary);
}

.resource-card .resource-p-a {
    font-size: 0.875rem; /* 14px */
    font-weight: 300;
    font-style: italic;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 1.25rem; /* 20px */
}

.resource-card .resource-p-b {
    font-size: 0.875rem; /* 14px */
    font-weight: 300;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 1.25rem; /* 20px */
}

.resource-link {
    color: var(--secondary);
    justify-self: end;
    text-decoration: none;
    font-size: 0.8125rem; /* 13px */
    font-weight: 300;
    margin-bottom: 0.3125rem; /* 5px */
}

.resource-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
           STATS SECTION STYLES
           ========================================================================== */

.stats {
    padding: 3.75rem 0; /* 60px */
    background-color: #d6cfbf;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); /* 200px fluid */
    gap: 2.5rem; /* 40px */
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-family);
    font-size: 3.4375rem; /* 55px */
    font-weight: 700;
    color: var(--accent);
}

.stat-item p {
    margin-top: -0.75rem; /* -12px */
    font-size: 1.125rem; /* 18px */
    color: var(--accent);
    font-weight: 300;
}

/* ==========================================================================
           FOOTER STYLES
           ========================================================================== */

.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3.75rem 0 1.875rem 0; /* 60px 30px */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); /* 200px fluid */
    gap: 2.5rem; /* 40px */
    margin-bottom: 2.5rem; /* 40px */
}

.footer-section h4 {
    font-size: 1rem; /* 16px */
    font-weight: 300;
    margin-bottom: 1.25rem; /* 20px */
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.625rem; /* 10px */
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.0625rem; /* 17px */
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary);
}

/* footer links start*/

.footer-section-links ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.footer-section-links ul li {
    margin-left: 0.625rem; /* 10px */
}

.footer-section-links ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.0625rem; /* 17px */
    transition: color 0.3s ease;
}

.footer-section-links ul li a:hover {
    color: var(--secondary);
}

/* footer links end */

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem; /* 20px */
}

.footer-logo::before {
    content: "❄";
    margin-right: 0.5rem; /* 8px */
    color: var(--secondary);
}

.footer-bottom p {
    font-size: 0.9375rem; /* 15px */
    color: var(--white);
}

/* Accessibility: Focus styles */
a:focus, button:focus {
    outline: 0.125rem solid var(--secondary); /* 2px */
}