:root {
    --primary: #19233C;
    --red: #B64441;
    --gold: #B28C5C;
    --light: #F7F3EC;
    --text: #202534;
    --white: #FFFFFF;
    --muted: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 18px 45px rgba(11, 31, 77, 0.12);
    --radius: 18px;
    --heading-font: "Merriweather", Georgia, serif;
    --body-font: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 9999;
}

.skip-link:focus {
    top: 16px;
}

/* ================================
   Header / Logo / Navigation
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(11, 31, 77, 0.08);
}

.top-strip {
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
}

.top-strip-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-strip-offer strong {
    color: var(--gold);
}

.header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 380px;
    max-height: 96px;
    height: auto;
    object-fit: contain;
}

.text-logo {
    display: none;
}

.primary-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a,
.dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a:hover,
.dropdown-toggle:hover,
.nav-menu a.active {
    background: var(--light);
    color: var(--red);
}

/* ================================
   Header Dropdown / Submenu Fix
   Desktop: horizontal multi-column
   Mobile: vertical accordion
================================ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 760px;
    max-width: 980px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 1001;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 6px 8px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: grid;
}

.nav-dropdown .dropdown-menu li {
    list-style: none;
}

.nav-dropdown .dropdown-menu li a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: var(--light);
    color: var(--red);
}

/* Center the Subjects dropdown */
.nav-dropdown:nth-child(3) .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-link {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    font-size: 18px;
    transition: 0.2s ease;
}

.icon-link:hover {
    border-color: var(--primary);
    background: var(--light);
    transform: translateY(-1px);
}

.help-now-btn {
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(200, 16, 46, 0.25);
    transition: 0.2s ease;
    white-space: nowrap;
}

.help-now-btn:hover {
    background: #a70d26;
    color: var(--white);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary);
    display: block;
    margin: 5px auto;
}

/* ================================
   General Sections
================================ */

.section {
    width: 100%;
    padding: 80px 0;
}

.section-light {
    background: var(--light);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-kicker {
    color: var(--red);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 13px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--heading-font);
    color: var(--primary);
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: clamp(34px, 5vw, 60px);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 16px;
}

h3 {
    font-size: 22px;
}

p {
    margin-top: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: #a70d26;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #071735;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--white);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(11, 31, 77, 0.06);
    padding: 26px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* ================================
   Forms
================================ */

.form-card {
    background: var(--white);
    border-radius: 22px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
}

.form-control:focus {
    outline: 3px solid rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
}

.form-note {
    font-size: 13px;
    color: var(--muted);
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
}

/* ================================
   Pricing
================================ */

.price-box {
    background: linear-gradient(135deg, var(--primary), #163878);
    color: var(--white);
    border-radius: 22px;
    padding: 28px;
}

.price-box h3,
.price-box h2 {
    color: var(--white);
}

.price-badge {
    display: inline-flex;
    background: var(--gold);
    color: var(--primary);
    font-weight: 900;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

/* ================================
   Footer
================================ */

.site-footer {
    background: var(--primary);
    color: var(--white);
}

.footer-disclaimer-band {
    background: #071735;
    padding: 18px 0;
    color: #dbe4ff;
}

.footer-disclaimer-band p {
    margin: 0;
    font-size: 14px;
}

.footer-grid {
    padding-top: 56px;
    padding-bottom: 44px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1.15fr;
    gap: 28px;
}

.footer-column h3 {
    color: var(--white);
    font-family: var(--body-font);
    font-size: 17px;
    margin-bottom: 14px;
}

.footer-column p,
.footer-column li,
.footer-column a {
    color: #dbe4ff;
    font-size: 14px;
}

.footer-column li {
    margin-bottom: 9px;
}

.footer-column a:hover {
    color: var(--gold);
}

.social-heading {
    margin-top: 22px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #dbe4ff;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

/* ================================
   Quote Form
================================ */

.quote-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.quote-form-header h2 {
    margin-bottom: 10px;
}

.quote-form-header p {
    color: var(--muted);
    margin-bottom: 22px;
}

.quote-form {
    display: grid;
    gap: 14px;
}

.quote-submit-btn {
    width: 100%;
}

.quote-integrity-note {
    background: var(--light);
    border-left: 4px solid var(--gold);
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 4px;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1180px) {
    .header-inner {
        min-height: 92px;
        gap: 14px;
    }

    .site-logo {
        max-width: 310px;
        max-height: 82px;
    }

    .nav-menu a,
    .dropdown-toggle {
        font-size: 14px;
        padding: 10px 7px;
    }

    .nav-dropdown .dropdown-menu {
        min-width: 720px;
        max-width: 860px;
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .help-now-btn {
        padding: 11px 16px;
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1180px) {
    .top-strip-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        position: relative;
        flex-wrap: wrap;
        min-height: 86px;
    }

    .site-logo {
        max-width: 280px;
        max-height: 76px;
    }

    .primary-navigation {
        display: none;
        width: 100%;
        order: 4;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .primary-navigation.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 14px 0;
    }

    .nav-menu a,
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 13px 4px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        left: auto;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        border-radius: 12px;
        margin: 4px 0 10px;
        padding: 8px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Override the more-specific desktop centering rule on mobile. */
    .nav-dropdown:nth-child(3) .dropdown-menu {
        left: auto;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
    }

    .nav-dropdown .dropdown-menu li a {
        padding: 10px 12px;
        font-size: 14px;
        white-space: normal;
    }

    .header-actions {
        margin-left: auto;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 18px;
    }

    .header-inner {
        min-height: 78px;
        gap: 10px;
    }

    .site-logo {
        max-width: 235px;
        max-height: 68px;
    }

    .text-logo {
        display: none;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        order: 3;
        padding-bottom: 12px;
    }

    .help-now-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }

    .quote-form-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-strip {
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
    }

    .top-strip-inner {
        align-items: center;
        gap: 4px;
    }

    .site-brand {
        min-width: 0;
        flex: 1;
    }

    .site-logo {
        max-width: min(210px, 100%);
        max-height: 62px;
    }

    .mobile-menu-toggle {
        flex: 0 0 auto;
    }

    .header-actions {
        gap: 8px;
    }

    .icon-link {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .help-now-btn {
        min-width: 0;
        padding: 10px 12px;
    }

    .primary-navigation {
        max-height: calc(100vh - 210px);
    }
}