:root {
    --blue-primary: #0A3D73;
    --blue-dark: #06284F;
    --white: #FFFFFF;
    --bg-body: #F4F6F8;
    --orange-accent: #FF6B35;
    --orange-hover: #E85D2A;
    --text-dark: #333333;
    --text-light: #F4F6F8;
    --border-color: #E0E5EA;

    --font-family: ui-condensed, 'Arial Narrow', Arial, sans-serif;
    --radius-soft: 8px;
    --spacing-tenpt: 10px;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Color utility classes */
.bg-blue-primary {
    background-color: var(--blue-primary) !important;
}

.text-blue-primary {
    color: var(--blue-primary) !important;
}

.bg-blue-dark {
    background-color: var(--blue-dark) !important;
}

/* Corporate text color alias (used in templates as text-corporate-blue) */
.text-corporate-blue {
    color: var(--blue-primary) !important;
}

/* Alias used across templates */
.bg-corporate-blue {
    background-color: var(--blue-primary) !important;
}

/* Primary background alias (used as .bg-primary in templates) */
.bg-primary {
    background-color: var(--blue-primary) !important;
}

/* Accent background (used as .bg-accent) */
.bg-accent {
    background-color: var(--orange-accent) !important;
    color: var(--white);
}

/* Light gray background utility */
.bg-light-gray {
    background-color: var(--bg-body) !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-tenpt) * 2);
}

/* Grid Requirements */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: calc(var(--spacing-tenpt) * 2);
    }

    .md\:grid-cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: calc(var(--spacing-tenpt) * 2);
    }

    .md\:grid-cols-4 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: calc(var(--spacing-tenpt) * 2);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: calc(var(--spacing-tenpt) * 2);
    }

    .lg\:grid-cols-3 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: calc(var(--spacing-tenpt) * 2);
    }

    .lg\:grid-cols-4 {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: calc(var(--spacing-tenpt) * 2);
    }
}

/* Required Element Attributes */
img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-soft);
}

input,
select,
textarea {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    padding: var(--spacing-tenpt);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--blue-primary);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-tenpt);
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-link svg {
    width: 40px;
    height: 40px;
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.nav-list {
    list-style: none;
    display: flex;
    gap: calc(var(--spacing-tenpt) * 2);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--orange-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-tenpt) * 1.5);
}

.cta-button {
    background-color: var(--orange-accent);
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-tenpt) calc(var(--spacing-tenpt) * 2);
    border-radius: var(--radius-soft);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--orange-hover);
}

@media (max-width: 1023px) {
    .cta-button {
        display: none;
    }
}

.burger-menu {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: block;
    padding: var(--spacing-tenpt);
}

/* Button utilities */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--radius-soft);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease, transform 0.08s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--blue-primary);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--blue-dark);
    transform: translateY(-1px);
    outline: none;
}

@media (min-width: 1024px) {
    .burger-menu {
        display: none;
    }
}

.burger-menu svg {
    width: 28px;
    height: 28px;
}

/* Mobile Bottom Sheet Styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.overlay.active {
    display: block;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    color: var(--text-dark);
    z-index: 102;
    padding: calc(var(--spacing-tenpt) * 2);
    border-top-left-radius: calc(var(--radius-soft) * 2);
    border-top-right-radius: calc(var(--radius-soft) * 2);
    transition: bottom 0.3s ease-in-out;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.bottom-sheet.open {
    bottom: 0;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-tenpt);
    margin-bottom: calc(var(--spacing-tenpt) * 2);
}

.sheet-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-tenpt);
    color: var(--text-dark);
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 calc(var(--spacing-tenpt) * 2) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-tenpt);
}

.mobile-nav-link {
    display: block;
    padding: var(--spacing-tenpt);
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-soft);
    background-color: var(--bg-body);
}

.mobile-cta {
    display: block;
    text-align: center;
}

/* Footer Styles */
.site-footer {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: calc(var(--spacing-tenpt) * 4) 0 calc(var(--spacing-tenpt) * 2) 0;
    margin-top: calc(var(--spacing-tenpt) * 4);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-tenpt) * 4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: calc(var(--spacing-tenpt) * 4);
    margin-bottom: calc(var(--spacing-tenpt) * 2);
}

.footer-brand,
.footer-contact,
.footer-legal {
    flex: 1 1 250px;
}

.brand-name-footer {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-tenpt);
    color: var(--white);
}

.tagline {
    color: #A0B4CB;
    margin: 0;
}

.footer-heading {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: calc(var(--spacing-tenpt) * 2);
    color: var(--orange-accent);
}

.contact-list,
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-tenpt);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-tenpt);
    color: #A0B4CB;
}

.contact-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--orange-accent);
    margin-top: 2px;
}

.footer-link {
    color: #A0B4CB;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--orange-accent);
}

.footer-bottom {
    text-align: center;
    color: #A0B4CB;
    font-size: 0.9rem;
}

/* footer extras */
.footer__extras {
    margin-top: 16px;
}

.footer__extrasInner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.footer-social__icon {
    display: block;
}

.footer__poemWrap {
    max-width: 520px;
}

.footer-poem {
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1.35;
}

/* --- injected by logo step --- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.brand-logo {
    width: 28px;
    height: 28px;
    display: inline-block;
    flex: 0 0 auto
}

.brand-logo * {
    vector-effect: non-scaling-stroke
}

/* --- /injected by logo step --- */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-light-grey);
    border-radius: 4px;
    margin-bottom: 0;
    margin-right: 8px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.brand-name {
    font-size: 1rem;
}

/* Active link visual style (use class "activ_link" on the current page's anchor) */
.nav-link.activ_link,
.mobile-nav-link.activ_link {
    color: var(--orange-accent);
    font-weight: 800;
    display: inline-block;
    position: relative;
}

.nav-link.activ_link::after,
.mobile-nav-link.activ_link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    bottom: -8px;
    background: var(--orange-accent);
    border-radius: 2px;
    opacity: 0.95;
}

p,
a,
li,
label {
    font-size: 1.2rem;
}

.text-lg {
    font-size: 1.3rem;
}

.gap-41 {
    gap: 41px;
}

/* Small screen adjustments — make long legal/policy content fit clearly on narrow devices (<=420px) */
@media (max-width: 420px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Reduce base type size for dense legal text */
    main, article, .prose {
        font-size: 15px;
        line-height: 1.45;
    }

    /* Tighter headings */
    article h1, .prose h1 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }
    article h2, .prose h2 {
        font-size: 1.05rem;
        margin-top: 0.6rem;
        margin-bottom: 0.35rem;
    }

    /* Reduce paddings used by large utility classes so content uses available width */
    article {
        padding: 12px !important;
        margin: 0;
    }

    /* Lists and paragraphs wrap better */
    p, li {
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .prose ol, .prose ul {
        padding-left: 1.1rem;
    }

    /* Images and media scale to container */
    img, .prose img {
        max-width: 100%;
        height: auto;
    }

    /* Make tables horizontally scrollable instead of overflowing */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer compacting */
    .footer-container {
        gap: 12px;
        padding-bottom: 12px;
    }
    .footer-brand, .footer-contact, .footer-legal {
        flex: 1 1 100%;
    }

    /* Slightly reduce legal/contact list size */
    .legal-list li, .contact-list li {
        font-size: 0.95rem;
    }

    /* Brand compact */
    .brand-name {
        font-size: 0.95rem;
    }
}
