/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Red, White & Blue Patriotic Theme */
    --primary-color: #1e40af;        /* Deep Blue */
    --primary-dark: #1e3a8a;         /* Darker Blue */
    --primary-light: #3b82f6;       /* Light Blue */
    --secondary-color: #dc2626;      /* Red */
    --secondary-dark: #b91c1c;       /* Darker Red */
    --accent-color: #ef4444;         /* Bright Red */
    --accent-light: #f87171;         /* Light Red */
    --text-dark: #0F172A;            /* Dark Gray */
    --text-medium: #334155;          /* Medium Gray */
    --text-light: #64748B;           /* Light Gray */
    --text-lighter: #94A3B8;         /* Lighter Gray */
    --bg-light: #F8FAFC;             /* Light Background */
    --bg-lighter: #F1F5F9;           /* Lighter Background */
    --bg-white: #FFFFFF;             /* White */
    --border-color: #E2E8F0;         /* Light Border */
    --success-color: #059669;        /* Green for success */
    --error-color: #dc2626;          /* Red for errors */
    --warning-color: #d97706;        /* Orange for warnings */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 30px 60px 0 rgba(0, 0, 0, 0.15);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Roboto', 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

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

ul {
    list-style: none;
}

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

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
    will-change: transform;
}

.page-header,
section[id],
h1[id],
h2[id],
h3[id],
h4[id] {
    scroll-margin-top: 180px;
}

@media (max-width: 992px) {
    .page-header,
    section[id],
    h1[id],
    h2[id],
    h3[id],
    h4[id] {
        scroll-margin-top: 140px;
    }
}

@media (max-width: 576px) {
    .page-header,
    section[id],
    h1[id],
    h2[id],
    h3[id],
    h4[id] {
        scroll-margin-top: 150px;
    }
}

.site-header:hover {
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tagline {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px; 
    opacity: 0.95;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
}

.phone-link:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.2);
}

.phone-icon {
    width: 22px;
    height: 22px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.main-nav {
    padding: 20px 0;
}

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

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    background: linear-gradient(90deg, #1e40af 0%, #1e40af 45%, #dc2626 55%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 span {
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-medium);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-menu a:not(.btn-primary-nav):hover {
    color: var(--primary-color);
}

.nav-menu a:not(.btn-primary-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-nav:hover::before {
    left: 100%;
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Keep nav from breaking into two lines on mid-width screens */
@media (max-width: 1100px) and (min-width: 769px) {
    .logo h1 {
        font-size: 24px;
    }
    .nav-menu {
        gap: 24px;
    }
    .btn-primary-nav {
        padding: 10px 20px !important;
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 940px) and (min-width: 769px) {
    .nav-menu {
        gap: 16px;
    }
    .nav-menu a {
        font-size: 14px;
    }
    .btn-primary-nav {
        padding: 8px 16px !important;
        font-size: 14px;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
    color: var(--primary-color);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 1;
}

@media (min-width: 1000px) {
    .hero::after {
        content: '⭐ ⭐ ⭐ ⭐ ⭐';
        position: absolute;
        top: 30px;
        right: 5%;
        font-size: 24px;
        opacity: 0.2;
        letter-spacing: 10px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}


.hero-title {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 16px;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
    border-radius: var(--radius-xl);
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
}

/* ===========================
   Sections
   =========================== */
.services, .why-choose, .testimonials, .states-served {
    padding: 100px 0;
}

.services {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.section-title {
    font-size: 46px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===========================
   Services Grid
   =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #1e40af 30%, #ffffff 50%, #dc2626 70%, #dc2626 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    padding: 18px;
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
    border-radius: var(--radius-xl);
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.35);
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 16px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* ===========================
   Benefits Section
   =========================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-item {
    position: relative;
    padding-left: 80px;
}

.benefit-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.benefit-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Quote Benefits Section
   =========================== */
.quote-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quote-benefit-item {
    text-align: center;
    padding: 20px;
}

.quote-benefit-item .service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    padding: 18px;
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
    border-radius: var(--radius-xl);
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-benefit-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.35);
}

.quote-benefit-item .service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.quote-benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.quote-benefit-item p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   Testimonials
   =========================== */
.testimonials {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: white;
    padding: 40px 36px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 80px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.08;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.rating {
    color: var(--accent-color);
    font-size: 22px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.testimonial-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
    position: relative;
    padding-left: 24px;
}

.testimonial-author::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 400;
}

/* ===========================
   Texas Specialists Section
   =========================== */
.texas-specialists {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.05) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(220, 38, 38, 0.05) 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.texas-specialists::before {
    content: '★ ★ ★';
    position: absolute;
    top: 00px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: rgba(30, 64, 175, 0.2);
    letter-spacing: 15px;
}

.texas-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #1e40af 30%, #ffffff 50%, #dc2626 70%, #dc2626 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.texas-cta {
    margin-top: 40px;
}

/* ===========================
   Carrier Partners Section
   =========================== */
.carrier-partners {
    margin: 60px 0 40px;
    padding: 10px 0;
}

.carrier-partners h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.carrier-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.carrier-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carrier-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.carrier-name {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.carrier-type {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 400;
}

.carrier-logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: var(--transition);
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carrier-item:hover .carrier-logo {
    transform: scale(1.05);
}

/* ===========================
   Carrier Partners Standalone Section (Homepage)
   =========================== */
.partners-section {
    background: var(--text-dark);
    color: #d1d5db;
    padding: 60px 0;
}

.partners-section .carrier-partners {
    /* In standalone section, spacing is handled by the section container */
    margin: 0;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(90deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--primary-color);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.cta-section::after {
    content: '⭐ ⭐ ⭐';
    position: absolute;
    bottom: 30px;
    left: 5%;
    font-size: 20px;
    opacity: 0.15;
    letter-spacing: 15px;
    z-index: 0;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 22px;
    margin-bottom: 48px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--text-dark);
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    min-width: 0; /* Ensure grid items can shrink and wrap without overflow */
}

.footer-column h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 20px;
    overflow-wrap: anywhere; /* Allow long words like domain names to wrap */
    word-break: break-word;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 14px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.8;
}

/* ===========================
   Form Styles
   =========================== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 16px;
    transition: var(--transition-fast);
    font-family: inherit;
    background: white;
    color: var(--text-dark);
}

.form-control:hover {
    border-color: var(--text-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: white;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%230066FF' d='M11.293 4.293L7 8.586 2.707 4.293A1 1 0 001.293 5.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

.form-control::placeholder {
    color: var(--text-lighter);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

/* ===========================
   Form Validation & Error States
   =========================== */
.formcarry-field-error {
    border-color: var(--error-color) !important;
    background-color: #fef2f2 !important;
    animation: shake 0.4s ease-in-out;
}

.formcarry-field-error:focus {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Error styling for checkboxes */
input[type="checkbox"].formcarry-field-error {
    outline: 2px solid var(--error-color);
    outline-offset: 2px;
}

/* Error message display below fields (not for checkboxes/radios) */
.formcarry-field-error[data-error-message]:not([type="checkbox"]):not([type="radio"])::after {
    content: attr(data-error-message);
    display: block;
    color: var(--error-color);
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

/* Error highlighting for select dropdowns */
select.formcarry-field-error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23dc2626' d='M11.293 4.293L7 8.586 2.707 4.293A1 1 0 001.293 5.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Form response box positioning */
.form-response {
    border-radius: var(--radius-lg);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===========================
   Content Pages
   =========================== */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #ffffff 50%, #dc2626 100%);
    color: var(--primary-color);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 1;
}

.page-header::after {
    content: '⭐ ⭐ ⭐ ⭐ ⭐';
    position: absolute;
    top: 30px;
    right: 5%;
    font-size: 24px;
    opacity: 0.2;
    letter-spacing: 10px;
    z-index: 1;
}

.page-header h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 22px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: 5px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.main-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 48px 0 20px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.main-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 36px 0 16px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.main-content p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-medium);
    font-size: 17px;
}

.main-content ul, .main-content ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.main-content ul {
    list-style: none;
}

.main-content ul li {
    position: relative;
    padding-left: 8px;
}

.main-content ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: 800;
    font-size: 20px;
    position: absolute;
    left: -20px;
}

.main-content ol {
    list-style: decimal;
}

.main-content li {
    margin-bottom: 12px;
    color: var(--text-medium);
    line-height: 1.7;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 36px;
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.sidebar-widget h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.highlight-box {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.08) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(220, 38, 38, 0.08) 100%);
    padding: 36px;
    border-radius: var(--radius-xl);
    border-left: 5px solid var(--primary-color);
    margin: 40px 0;
    box-shadow: var(--shadow-sm);
}

.highlight-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .tagline {
        text-align: center;
        font-size: 14px;
    }
    
    .phone-link {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-xl);
        gap: 20px;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 38px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .texas-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .carrier-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .main-content h2 {
        font-size: 30px;
    }
    
    .main-content h3 {
        font-size: 22px;
    }
    
    .services, .why-choose, .testimonials, .states-served {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .phone-link {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .phone-number {
        font-size: 16px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .services, .why-choose, .testimonials, .states-served {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 32px;
    }
    
    .cta-section p {
        font-size: 18px;
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .service-card, .testimonial-card {
        padding: 32px 24px;
    }
    
    .feature-item {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .quote-benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .quote-benefit-item .service-icon {
        width: 64px;
        height: 64px;
        padding: 14px;
    }
    
    .quote-benefit-item .service-icon i {
        font-size: 32px;
    }
    
    .quote-benefit-item h3 {
        font-size: 20px;
    }
    
    .quote-benefit-item p {
        font-size: 15px;
    }
    
    .carrier-logos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .carrier-item {
        padding: 15px;
    }
    
    .carrier-logo {
        width: 60px;
        height: 45px;
        padding: 6px;
    }
    
    .carrier-name {
        font-size: 14px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

 
/* ===========================
   Mobile Safari hairline fix
   - mitigates thin black line artifacts during scroll on iOS
   =========================== */
@media (max-width: 768px) {
    .site-header {
        /* Avoid over-aggressive layer promotion on iOS */
        will-change: auto;
    }

    /* Promote sections beneath the sticky header to their own layers */
    .hero,
    .cta-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}