/* =============================================================================
   CRITICAL CSS — Render-blocking essentials (inline or preloaded)
   Covers: reset, variables, type scale, utilities, header, hero, buttons
   ============================================================================= */


/* ─── CSS Custom Properties ─── */

:root {
    /* Brand colors */
    --color-blue:         #0076B6;
    --color-green:        #8EB84A;
    --color-text:         #33363D;
    --color-text-mid:     #676767;
    --color-text-light:   #86B3D5;
    --color-text-muted:   #D5D5D5;
    --color-white:        #fff;

    /* Background tints */
    --bg-blue-tint:       #f5fcff;
    --bg-green-tint:      #fcfff8;
    --bg-soft-blue:       #fbfeff;
    --bg-soft-green:      #f5f9ef;

    /* Footer */
    --color-footer:       #ADADAD;
    --color-bg-footer:    #33363d;
    --color-bg-footer-card: #41454C;

    /* Layout */
    --max-width:          1140px;
    --container-pad:      1.25rem;

    /* ── Font-size scale ──
       Use these tokens everywhere instead of raw rem values.
       Paragraphs / content: --fs-md (mobile) → --fs-lg (desktop, via utility class or component rule)
       Headings scale via clamp on h2; hero h1 uses em children.
    */
    --fs-xs:   0.875rem;   /* labels, footer, small UI */
    --fs-sm:   0.9375rem;  /* phone-block-label, sub text */
    --fs-base: 1rem;       /* body default */
    --fs-md:   1.0625rem;  /* content paragraphs (mobile) */
    --fs-lg:   1.1875rem;  /* content paragraphs (desktop), list items */
    --fs-xl:   1.25rem;    /* buttons (mobile), phone numbers (mobile) */
    --fs-2xl:  1.625rem;   /* h2 mobile, hero h1 mobile */
    --fs-3xl:  2rem;       /* csnp-title, phone-cta number, faq-q desktop */
    --fs-4xl:  2.5rem;     /* h2 desktop, step-number desktop */
}


/* ─── Reset ─── */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.1;
}

p {
    line-height: 1.51;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ─── Heading defaults ─── */

h2 {
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--color-text);
}

h2 strong {
    font-weight: 600;
}


/* ─── Utility Classes ─── */

.color-green { color: var(--color-green); }
.color-blue  { color: var(--color-blue); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* Background gradients */
.grad-blue      { background: linear-gradient(180deg, var(--bg-blue-tint) 0%, var(--color-white) 100%); }
.grad-green     { background: linear-gradient(180deg, var(--bg-green-tint) 0%, var(--color-white) 100%); }
.grad-blue-up   { background: linear-gradient(0deg, var(--bg-blue-tint) 0%, var(--color-white) 100%); }
.grad-green-up  { background: linear-gradient(0deg, var(--bg-green-tint) 0%, var(--color-white) 100%); }


/* ─── Buttons ─── */

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.9375rem 1.75rem;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: var(--color-white);
    font-size: var(--fs-xl);
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: background-position 0.5s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background-position: 100% 0%;
    transform: translateY(-1px);
}

.btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    font-size: var(--fs-md);
    font-weight: 600;
    border-radius: 100px;
    background: var(--color-white);
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
    transition: color 0.3s ease;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
    border-radius: 100px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: -1;
}

.btn-outline:hover::after { transform: translateX(0); }
.btn-outline:hover { color: var(--color-white); }

/* btn-outline icon (phone SVG) */
.btn-outline .icon svg {
    width: 18px;
    height: 18px;
    margin-right: 0.375rem;
    position: relative;
    top: 1px;
}

.btn-outline .icon path {
    fill: var(--color-blue);
    transition: fill 0.3s ease;
}

.btn-outline:hover .icon path { fill: #fff; }

/* btn-outline double-arrow icon */
.btn-outline .icon-two {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    width: 12px;
    height: 15px;
}

.btn-outline .icon-two svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.btn-outline .icon-two::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 15px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='12' height='15' viewBox='0 0 12 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.068.0002C.799-.005.528.118.32.369c-.417.503-.428 1.332-.024 1.852L4.217 7.267.296 12.312c-.404.52-.393 1.349.024 1.852.204.247.467.369.731.369.275 0 .549-.133.756-.398l4.629-5.957c.395-.508.395-1.314 0-1.822L1.807.399C1.605.139 1.337.006 1.068.0002zm5.113 0c-.269-.005-.54.118-.748.369-.417.503-.427 1.332-.024 1.852l3.922 5.045-3.922 5.046c-.404.52-.393 1.349.024 1.852.204.247.467.369.731.369.275 0 .549-.133.756-.398l4.629-5.957c.395-.508.395-1.314 0-1.822L6.92.399C6.718.139 6.45.006 6.181.0002z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg width='12' height='15' viewBox='0 0 12 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.068.0002C.799-.005.528.118.32.369c-.417.503-.428 1.332-.024 1.852L4.217 7.267.296 12.312c-.404.52-.393 1.349.024 1.852.204.247.467.369.731.369.275 0 .549-.133.756-.398l4.629-5.957c.395-.508.395-1.314 0-1.822L1.807.399C1.605.139 1.337.006 1.068.0002zm5.113 0c-.269-.005-.54.118-.748.369-.417.503-.427 1.332-.024 1.852l3.922 5.045-3.922 5.046c-.404.52-.393 1.349.024 1.852.204.247.467.369.731.369.275 0 .549-.133.756-.398l4.629-5.957c.395-.508.395-1.314 0-1.822L6.92.399C6.718.139 6.45.006 6.181.0002z'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover .icon-two svg { opacity: 0; }
.btn-outline:hover .icon-two::after { opacity: 1; }


/* ─── Header ─── */

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.875rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.sticky-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.sticky-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo { max-width: 150px; }

.header-logo a {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-text);
}

/* Header agent block: hidden on mobile, shown at 1024px+ in main.css */
.header-agent { display: none; }

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header btn-outline overrides (smaller than default) */
.header-right .btn-outline {
    font-size: var(--fs-xs);
    padding: 0.375rem 0.875rem;
}

.header-right .btn-outline::before { padding: 3px; }

.header-right .btn-outline .icon-two { margin-left: 0; }

.header-right .btn-outline .icon-two svg {
    top: 2px;
    left: 0;
}


/* ─── Phone Block ─── */

.phone-block {
    display: block;
    flex-direction: column;
    gap: 0;
}

.phone-block-label {
    font-size: var(--fs-sm);
    color: var(--color-text-mid);
    font-weight: 600;
}

.phone-block-number {
    display: block;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--fs-xl);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: var(--color-blue);
    transition: opacity 0.2s ease;
}

.phone-block-number:hover { opacity: 0.7; }

.phone-block-number svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.phone-block-number svg path { fill: var(--color-blue); }

.phone-block-number .sep {
    color: var(--color-blue);
    font-weight: 600;
}

.phone-block-number .tty {
    color: var(--color-blue);
    font-weight: 600;
}

.phone-block-sub {
    font-size: var(--fs-md);
    color: var(--color-text-mid);
    font-weight: 600;
    line-height: 1.2;
}


/* ─── Hero ─── */

.hero {
    padding: 2rem 0 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 0;
}

.hero-eyebrow {
    display: inline-block;
    align-self: flex-start;
    background: #e9f7fe;
    line-height: 1.1;
    border-radius: 10px;
    padding: 0.25rem 0.625rem;
    margin-bottom: 2rem;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-blue);
}

.hero-eyebrow sup {
    font-size: 0.6em;
    vertical-align: super;
}

.hero h1 {
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    font-size: var(--fs-2xl);
    margin-bottom: 1.5rem;
}

/* Em-based children scale relative to h1 font-size */
.hero h1 .hl {
    display: block;
    color: var(--color-green);
    font-weight: 700;
    font-size: 1.5em;
    line-height: 0.95;
    margin: 0.1em 0;
}

.hero h1 .sub { font-size: 1em; }

.hero-cta-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-image {
    display: block;
    position: relative;
    overflow: hidden;
    width: 120%;
    margin-left: -38px;
    margin-top: 1.5rem;
}

.hero-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* carriers */
.carriers {
    text-align: center;
    padding: 50px 0 0;
    font-weight: 600;
    font-size: var(--fs-lg);
    line-height: 1.2;
}

.carriers h2 {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-blue);
    padding-bottom: 9px;
}

@media screen and (min-width: 1024px) {
    .carriers h2 {
        margin-bottom: 0;
        font-size: var(--fs-xl);
    }
    .carriers {
        text-align: center;
        font-size: var(--fs-2xl);
    }
}

@media screen and (max-width: 768px) {
    .hero-eyebrow {
        text-align: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero-cta-row {
        align-items: center;
    }

    .phone-block {
        text-align: center;
    }

    .dscl {
        margin-bottom: -50px;
        padding-bottom: 0;
    }

    .stats-grid .icon img {
        padding-bottom: 8px;
        width: 54px;
    }
}