/* ============================================================================
   style.css - Main Stylesheet for Tri State Insurance Source
   ============================================================================
   A production-quality stylesheet for a Medicare insurance agency website.
   Mobile-first, responsive, accessible, and SEO-optimized.

   Design Principles:
   - Professional, modern, trustworthy, clean, simple, friendly
   - Large typography for readability (60+ audience)
   - Ample white space
   - Rounded cards with soft shadows
   - Clear call-to-action buttons
   - WCAG 2.1 AA compliant contrast ratios
   ============================================================================ */

/* ============================================================================
   CSS RESET & BASE STYLES
   ============================================================================ */

/* Modern CSS reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 100%; /* 16px base */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.125rem; /* 18px - larger for readability */
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Remove default heading margins */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* Remove default paragraph margins */
p {
    margin: 0;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

/* Remove default button styles */
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ============================================================================
   CSS VARIABLES (Design Tokens)
   ============================================================================ */

:root {
    /* Colors */
    /* TEST PALETTE (logo colors) — Aug 4, 2026.
       Previous values for revert:
       --color-primary:      #2563eb
       --color-primary-dark: #1d4ed8
       --color-secondary:    #059669
       --color-bg-light:     #f9fafb */
    --color-primary: #0088bd;
    --color-primary-dark: #0070a0;
    --color-secondary: #82b318;
    --color-accent: #dc2626;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-light: #aad3e2;
    --color-bg-lighter: #f3f4f6;
    --color-border: #e5e7eb;
    --color-border-dark: #d1d5db;
    --color-success: #16a34a;
    --color-warning: #d97706;

    /* Typography */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1.125rem;  /* 18px */
    --font-size-lg: 1.25rem;     /* 20px */
    --font-size-xl: 1.5rem;      /* 24px */
    --font-size-2xl: 2rem;       /* 32px */
    --font-size-3xl: 2.5rem;     /* 40px */
    --font-size-4xl: 3rem;       /* 48px */
    --font-size-5xl: 3.75rem;    /* 60px */

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */

    /* Layout */
    --max-width: 1200px;
    --container-padding: 1.5rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

/* Container - centers content with max-width */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Grid system for flexible layouts */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-cols-2 {
    grid-template-columns: 1fr;
}

.grid-cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 48em) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* Site header */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
    padding: var(--space-sm) 0;
}

/* Site branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: block;
}

.site-logo img {
    width: auto;
    height: 100px;
    max-width: 100%;
}

@media (min-width: 48em) {
    .site-logo img {
        height: 120px;
    }
}

@media (min-width: 64em) {
    .site-logo img {
        height: 140px;
    }
}

/* Header contact info */
.header-contact {
    display: block;
}

.header-contact .phone-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--font-weight-semibold);
    font-size: 1.75rem; /* 28px */
    line-height: 1.2;
    color: var(--color-primary);
}

.header-contact .phone-link:hover {
    color: var(--color-primary-dark);
}

/* Phone icon (using CSS pseudo-element) */
.phone-icon::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230088bd'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.11-.21c1.21.49 2.53.76 3.88.76a1 1 0 011 1v3.5a1 1 0 01-1 1C9.66 21.3 2.7 14.34 2.7 4.5A1 1 0 01 3.7 3.5H7.2a1 1 0 011 1v3.5a1 1 0 01-.21 1.11l-1.29 1.17z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Main navigation */
.main-navigation {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-sm);
}

/* Open mobile menu - constrain height for small viewports */
.nav-menu--open {
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast);
}

.menu-toggle:hover,
.menu-toggle:focus {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.menu-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Hamburger icon - 3 horizontal lines */
.hamburger {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 16px;
}

.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
}

/* Middle line */
.hamburger {
    background: transparent;
    border-top: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    background-clip: content-box;
    padding: 5px 0;
}

/* Top line */
.hamburger::before {
    top: 0;
}

/* Bottom line */
.hamburger::after {
    bottom: 0;
}

/* Navigation menu */
.nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
}

.nav-menu--open {
    display: flex;
}

.nav-item {
    border-bottom: 1px solid var(--color-border);
}

.nav-link {
    display: block;
    padding: var(--space-md) var(--space-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.nav-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.nav-item.active .nav-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

/* Contact CTA in nav */
.contact-cta .nav-link {
    background-color: var(--color-primary);
    color: #ffffff;
    margin: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-weight: var(--font-weight-bold);
}

.contact-cta .nav-link:hover,
.contact-cta .nav-link:focus {
    background-color: var(--color-primary-dark);
    color: #ffffff;
}

/* Dropdown menu */
.has-dropdown > .nav-link::after {
    content: "▼";
    font-size: var(--font-size-xs);
    margin-left: var(--space-xs);
}

/* Mobile dropdown (accordion style) */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: var(--color-bg-light);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    padding: var(--space-xs) 0;
}

.has-dropdown.dropdown-open .dropdown-menu {
    display: flex;
}

.dropdown-item .dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.dropdown-item .dropdown-link:hover,
.dropdown-item .dropdown-link:focus {
    background-color: var(--color-bg-lighter);
    color: var(--color-primary);
}

/* ============================================================================
   TABLET STYLES (768px+)
   ============================================================================ */

@media (min-width: 48em) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .main-navigation {
        position: static;
    }

    .nav-menu--open {
        max-height: none;
        overflow-y: visible;
    }

    .header-contact {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .nav-container {
        justify-content: center;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .nav-item {
        border: none;
    }

    .nav-link {
        padding: var(--space-md) var(--space-sm);
    }

    .has-dropdown {
        position: relative;
    }

    /* Desktop dropdown - positioned directly below trigger with no gap */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background-color: var(--color-bg);
        border: 1px solid var(--color-border);
        border-left: 1px solid var(--color-border);
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-lg);
        padding: var(--space-xs) 0;
        margin: 0;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu {
        display: flex;
    }

    .dropdown-item .dropdown-link {
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }

    .dropdown-item .dropdown-link:hover,
    .dropdown-item .dropdown-link:focus {
        background-color: var(--color-bg-light);
        color: var(--color-primary);
    }

    .contact-cta .nav-link {
        margin: 0;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================================
   DESKTOP STYLES (1024px+)
   ============================================================================ */

@media (min-width: 64em) {
    .header-contact .phone-link {
        font-size: 2.75rem; /* 44px */
    }

    .phone-icon::before {
        width: 36px;
        height: 36px;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-link {
        padding: var(--space-md) var(--space-md);
    }
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

/* Main content area */
main {
    flex: 1;
}

#main-content {
    scroll-margin-top: var(--space-md);
}

/* Section spacing */
section {
    padding: var(--space-2xl) 0;
}

section + section {
    border-top: 1px solid var(--color-border);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header .section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-header .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 40rem;
    margin: 0 auto;
}

@media (min-width: 48em) {
    .site-logo img {
        height: 120px;
    }

    .header-contact .phone-link {
        font-size: 2.25rem; /* 36px */
    }

    .phone-icon::before {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 2px solid transparent;
}

.btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #047857;
    border-color: #047857;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-light {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: #ffffff;
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--color-bg-light);
    border-color: var(--color-bg-light);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-xl);
}

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

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.card:focus-within {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.card-header {
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.card-body {
    flex: 1;
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* Service cards */
.service-card {
    text-align: center;
    padding: var(--space-xl);
}

.service-card .service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-primary);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero--lg {
    padding: var(--space-3xl) 0 4rem;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-light);
    max-width: 42rem;
    margin: 0 auto var(--space-xl);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

@media (min-width: 48em) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
    }
}

@media (min-width: 64em) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */

.faq-accordion {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: var(--space-lg) 0;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover,
.faq-question:focus {
    color: var(--color-primary);
}

.faq-question:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--color-text-light);
    transition: transform var(--transition-fast);
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    color: var(--color-text);
}

.faq-answer--open {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    line-height: 1.7;
}

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */

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

.testimonial-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 48em) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64em) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-author .author-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.testimonial-author .author-title {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ============================================================================
   CONTACT FORM
   ============================================================================ */

.contact-form {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 48em) {
    .form-row {
        flex-direction: row;
    }

    .form-row .form-group {
        flex: 1;
    }
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

.form-success {
    color: var(--color-success);
    font-size: var(--font-size-base);
    padding: var(--space-md);
    background-color: #dcfce7;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
}

/* ============================================================================
   GOOGLE MAPS
   ============================================================================ */

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 300px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 48em) {
    .map-container {
        height: 400px;
    }
}

/* ============================================================================
   CALL-TO-ACTION BANNER
   ============================================================================ */

.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    text-align: center;
    padding: var(--space-2xl) 0;
    border-radius: var(--border-radius-lg);
}

.cta-banner .cta-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.cta-banner .cta-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.cta-banner .btn {
    font-size: var(--font-size-xl);
    padding: var(--space-lg) var(--space-2xl);
}

@media (min-width: 48em) {
    .cta-banner .cta-title {
        font-size: var(--font-size-3xl);
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background-color: #1f2937;
    color: #e5e7eb;
    font-size: var(--font-size-sm);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

@media (min-width: 48em) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.footer-contact .contact-info {
    font-size: var(--font-size-sm);
}

.contact-item {
    margin-bottom: var(--space-xs);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.contact-label {
    font-weight: var(--font-weight-semibold);
    color: #d1d5db;
}

.contact-value {
    color: #e5e7eb;
}

.contact-value a {
    color: #60a5fa;
    transition: color var(--transition-fast);
}

.contact-value a:hover,
.contact-value a:focus {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.footer-menu a {
    color: #d1d5db;
    transition: color var(--transition-fast);
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: #60a5fa;
}

.social-menu {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: #374151;
    color: #e5e7eb;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.social-link:hover,
.social-link:focus {
    background-color: var(--color-primary);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
}

.copyright {
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

.disclaimer {
    color: #6b7280;
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-primary);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    z-index: 1000;
    cursor: pointer;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.back-to-top::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-bottom: none;
    border-left: none;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

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

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-auto { margin-top: auto; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .site-header,
    .main-navigation,
    .back-to-top,
    .footer-social {
        display: none;
    }

    .site-footer {
        border-top: none;
    }

    .contact-value a::after {
        content: " " attr(href);
    }
}

/* ============================================================================
   PAGE SECTIONS: TRUST INDICATORS, SERVICES OVERVIEW, TURNING 65 PREVIEW
   ============================================================================ */

/* Trust indicators section */
.trust-indicators {
    background-color: var(--color-bg-light);
}

/* Services overview section */
.services-overview {
    background-color: #eff3e0;
}

/* Turning 65 preview section */
.turning-65-preview {
    background-color: var(--color-bg-light);
}

/* Agent section (Meet Your Agent) */
.agent-section {
    background-color: var(--color-bg);
}

.agent-grid {
    align-items: center;
    gap: var(--space-xl);
}

.agent-photo-wrap {
    display: flex;
    justify-content: center;
}

.agent-photo {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.agent-blurb p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.agent-blurb p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   PAGE SECTIONS: AGENT PROFILE, WHY CHOOSE US
   ============================================================================ */

/* Agent profile section */
.agent-profile {
    background-color: var(--color-bg);
}

/* Why choose us section */
.why-choose-us {
    background-color: var(--color-bg-light);
}

/* ============================================================================
   PAGE SECTIONS: HOW IT WORKS
   ============================================================================ */

/* How it works section */
.how-it-works {
    background-color: var(--color-bg);
}

/* ============================================================================
   PAGE SECTIONS: PLAN TYPES, EXTRA BENEFITS, WHAT IS COVERED, FORMULARY INFO
   ============================================================================ */

/* Plan types section */
.plan-types {
    background-color: var(--color-bg-light);
}

/* Extra benefits section */
.extra-benefits {
    background-color: var(--color-bg);
}

/* What is covered section */
.what-is-covered {
    background-color: var(--color-bg-light);
}

/* Formulary info section */
.formulary-info {
    background-color: var(--color-bg);
}

/* ============================================================================
   PAGE SECTIONS: DENTAL COVERAGE, VISION COVERAGE
   ============================================================================ */

/* Dental coverage section */
.dental-coverage {
    background-color: var(--color-bg-light);
}

/* Vision coverage section */
.vision-coverage {
    background-color: var(--color-bg);
}

/* ============================================================================
   PAGE SECTIONS: FAQ CATEGORIES, FAQ SECTION
   ============================================================================ */

/* FAQ categories section */
.faq-categories {
    background-color: var(--color-bg-light);
}

/* FAQ section */
.faq-section {
    background-color: var(--color-bg);
}

/* ============================================================================
   PAGE SECTIONS: OFFICIAL RESOURCES, EDUCATIONAL GUIDES, USEFUL TOOLS
   ============================================================================ */

/* Official resources section */
.official-resources {
    background-color: var(--color-bg-light);
}

/* Educational guides section */
.educational-guides {
    background-color: var(--color-bg);
}

/* Useful tools section */
.useful-tools {
    background-color: var(--color-bg-light);
}

/* ============================================================================
   PAGE SECTIONS: CONTACT SECTION, CONTACT INFO, CONTACT FORM, MAP SECTION
   ============================================================================ */

/* Contact section */
.contact-section {
    background-color: var(--color-bg-light);
}

/* Contact info section */
.contact-info-section {
    background-color: var(--color-bg);
}

/* ============================================================================
   CONTACT INFO (used in cards and content areas - NOT the footer)
   ============================================================================ */

/* Default contact info styles for light backgrounds (cards, content areas) */
.contact-info,
.contact-details {
    font-size: var(--font-size-base);
}

.contact-info .contact-item,
.contact-details .contact-item {
    margin-bottom: var(--space-sm);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.contact-info .contact-label,
.contact-details .contact-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.contact-info .contact-value,
.contact-details .contact-value {
    color: var(--color-text);
}

.contact-info .contact-value a,
.contact-details .contact-value a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.contact-info .contact-value a:hover,
.contact-info .contact-value a:focus,
.contact-details .contact-value a:hover,
.contact-details .contact-value a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Footer contact info overrides - dark background styles */
.site-footer .contact-info {
    font-size: var(--font-size-sm);
}

.site-footer .contact-item {
    margin-bottom: var(--space-xs);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.site-footer .contact-label {
    font-weight: var(--font-weight-semibold);
    color: #d1d5db;
}

.site-footer .contact-value {
    color: #e5e7eb;
}

.site-footer .contact-value a {
    color: #60a5fa;
    transition: color var(--transition-fast);
}

.site-footer .contact-value a:hover,
.site-footer .contact-value a:focus {
    color: #93c5fd;
    text-decoration: underline;
}

/* Contact form section */
.contact-form-section {
    background-color: var(--color-bg-light);
}

/* Map section */
.map-section {
    background-color: var(--color-bg);
}

/* ============================================================================
   PAGE SECTIONS: PRIVACY POLICY
   ============================================================================ */

/* Privacy policy section */
.privacy-policy {
    background-color: var(--color-bg-light);
}

/* ============================================================================
   PAGE SECTIONS: ENROLLMENT PERIOD, MEDICARE TIMELINE, CHECKLIST
   ============================================================================ */

/* Enrollment period section */
.enrollment-period {
    background-color: var(--color-bg);
}

/* Medicare timeline section */
.medicare-timeline {
    background-color: var(--color-bg-light);
}

/* Checklist section */
.checklist {
    background-color: var(--color-bg);
}

/* ============================================================================
   PAGE SECTIONS: GET STARTED STEPS
   ============================================================================ */

/* Step cards */
.steps-grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 48em) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
    padding: var(--space-lg);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card .card-title {
    margin-bottom: var(--space-xs);
}

.step-card .card-body {
    margin-bottom: 0;
}

/* ============================================================================
   PAGE SECTIONS: SERVICE DETAIL
   ============================================================================ */

/* Service detail section */
.service-detail {
    background-color: var(--color-bg-light);
}

/* ============================================================================
   SOCIAL MEDIA LINKS
   ============================================================================ */

/* Social media links - use inline SVG icons instead of placeholder text */
.social-link.facebook {
    background-color: #1877f2;
}

.social-link.facebook:hover,
.social-link.facebook:focus {
    background-color: #166fe0;
}

.social-link.twitter {
    background-color: #1da1f2;
}

.social-link.twitter:hover,
.social-link.twitter:focus {
    background-color: #1a8cd8;
}

.social-link.linkedin {
    background-color: #0a66c2;
}

.social-link.linkedin:hover,
.social-link.linkedin:focus {
    background-color: #084f91;
}

.social-link.youtube {
    background-color: #ff0000;
}

.social-link.youtube:hover,
.social-link.youtube:focus {
    background-color: #cc0000;
}

/* ============================================================================
   END OF STYLE.CSS
   ============================================================================ */