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

body {
    font-family: 'Inter', sans-serif;
    background: #f8f8ff;
    color: #12064a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 3rem;
    position: relative;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #12064a;
    text-decoration: none;
    white-space: nowrap;
}

/* Native <details> Menu */
.menu-details {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    list-style: none;
}

.menu-toggle::-webkit-details-marker {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #12064a;
    transition: all 0.3s ease;
}

/* Animate hamburger when menu is open */
.menu-details[open] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-details[open] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-details[open] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: #12064a;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-details {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #f8f8ff;
        border-bottom: 1px solid #e5e7eb;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-details[open] .nav-menu {
        max-height: 500px;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .header-cta {
        margin: 1rem 1.5rem;
        display: block;
        text-align: center;
    }
}

/* Homepage hero */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(147, 197, 253, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(196, 181, 253, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 80%, rgba(167, 243, 208, 0.2) 0%, transparent 50%),
        #f0f4ff;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 1.2rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #12064a;
    margin-bottom: 1.4rem;
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    background: #1d4ed8;
}

.cta-secondary {
    font-size: 0.95rem;
    font-weight: 500;
    color: #12064a;
    text-decoration: none;
    border-bottom: 1px solid #12064a;
    padding-bottom: 1px;
}

/* Homepage information strip */
.info-strip {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.info-item {
    flex: 1 1 220px;
    text-align: center;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.info-strip {
    gap: 2rem;
}

.info-value {
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 600;
    color: #12064a;
}

.info-value a {
    color: #2563eb;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Page content */
.page-content {
    flex: 1;
    width: min(760px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.page-content h1 {
    margin-bottom: 1rem;
}

.page-intro {
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 2rem;
    color: #4b5563;
    font-style: normal;
    line-height: 1.8;
}

.contact-details a {
    color: #2563eb;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #12064a;
    background: #fff;
    font: inherit;
}

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

.sms-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.55;
}

.sms-consent input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
}

.form-legal {
    color: #4b5563;
    font-size: 0.9rem;
}

.form-legal a {
    color: #2563eb;
}

.form-submit {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.2rem;
    font-size: 0.78rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

.footer-nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.78rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1.2rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #f8f8ff;
        border-bottom: 1px solid #e5e7eb;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    .header-cta {
        margin: 1rem 1.5rem;
        display: block;
        text-align: center;
    }

    .info-strip {
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .hero {
        padding: 4rem 1.25rem;
    }

    .page-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.95rem;
    }

    .header-cta {
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .hero {
        padding: 3rem 1.25rem;
    }

    .cta-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Navigation fix: additive overrides; all original styles above are preserved. */
.site-navigation { display: flex; align-items: center; }
@media (min-width: 769px) {
    .site-navigation .nav-menu { display: flex; position: static; max-height: none; overflow: visible; }
    .site-navigation .menu-toggle { display: none; }
}
@media (max-width: 768px) {
    .site-navigation .menu-toggle { display: flex; }
    .site-navigation .nav-menu {
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
    }
    .site-navigation .nav-menu.is-open {
        visibility: visible;
        max-height: 500px;
        overflow-y: auto;
    }
    .site-navigation .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .site-navigation .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
    .site-navigation .menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Footer refinements: centered copyright and legal navigation on separate rows. */
.footer-content {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
    text-align: center;
}
.footer-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1.25rem;
}
.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.25rem;
}
.footer-nav a:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}
