/* Foundations */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7.5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

button,
a {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--color-sage-dark);
    outline-offset: 5px;
}

[tabindex="-1"]:focus:not(:focus-visible) {
    outline: none;
}

h1,
h2,
h3,
p,
figure,
blockquote {
    margin: 0;
}

h1,
h2 {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 500;
    font-optical-sizing: auto;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

h1 {
    font-size: var(--text-h1);
    line-height: 1.12;
}

h2 {
    font-size: var(--text-h2);
    line-height: 1.18;
}

h3 {
    color: var(--color-navy);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

strong {
    font-weight: 600;
}

.container {
    width: min(calc(100% - var(--page-gutter) * 2), var(--content-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--space-section);
}

.eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-sage-dark);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button {
    display: inline-flex;
    min-height: 3.75rem;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.button:hover {
    background: var(--color-navy-deep);
    box-shadow: var(--shadow-soft);
}

.button-centered-label {
    display: inline-grid;
    max-width: 100%;
    /* Equal outer columns keep the label centered beside the phone icon. */
    grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
}

.text-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-navy);
    font-weight: 500;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1.25rem;
    transform: translateY(-160%);
    border: 2px solid var(--color-navy);
    background: var(--color-white);
    color: var(--color-navy);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header and progressive mobile navigation */
.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-white);
}

.header-inner {
    display: flex;
    min-height: 6.25rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-navy);
    text-decoration: none;
}

.brand img {
    width: 3.75rem;
    height: 3.85rem;
    object-fit: contain;
}

.brand-name {
    min-width: 0;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.06em;
    overflow-wrap: anywhere;
}

.brand-support {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-sage-dark);
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.primary-navigation {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
}

.primary-navigation > a:not(.button) {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding-block: 0.5rem;
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.primary-navigation > a:not(.button):hover {
    text-decoration: underline;
}

.primary-navigation > a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--color-terracotta);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5em;
}

.button-small {
    min-height: 3rem;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
}

.menu-toggle {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-white);
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.menu-toggle[hidden] {
    display: none;
}

.menu-lines {
    position: relative;
    flex: 0 0 1rem;
    width: 1rem;
    height: 0.625rem;
}

.menu-lines::before,
.menu-lines::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    content: "";
}

.menu-lines::before {
    top: 0;
}

.menu-lines::after {
    bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-lines::before,
.menu-toggle[aria-expanded="true"] .menu-lines::after {
    top: 50%;
    bottom: auto;
}

.menu-toggle[aria-expanded="true"] .menu-lines::before {
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-lines::after {
    transform: translateY(-50%) rotate(-45deg);
}

.navigation-ready .primary-navigation {
    display: none;
}

.navigation-ready .primary-navigation.is-open {
    display: flex;
    max-height: calc(100svh - 6.25rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding-block: 0.75rem;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}

.primary-navigation.is-open > a:not(.button) {
    min-height: 3.25rem;
}

.primary-navigation.is-open .nav-call {
    margin-top: 0.5rem;
}

/* Global footer */
.site-footer {
    padding-block: 3.5rem 2rem;
    background: var(--color-navy-deep);
    color: #d1dde5;
    font-size: 1rem;
}

.site-footer :focus-visible {
    outline-color: #d1dfc5;
}

.footer-main {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.site-footer .brand {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.site-footer .brand img {
    padding: 0.2rem;
    border-radius: 50%;
    background: var(--color-white);
}

.site-footer .brand-support {
    color: #c5d3bc;
}

.footer-description {
    margin-top: 0.6rem;
    font-size: 0.9375rem;
}

.site-footer h2 {
    margin-bottom: 0.75rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0;
}

.footer-navigation a,
.footer-contact a {
    display: flex;
    width: fit-content;
    min-height: 2.75rem;
    align-items: center;
    text-decoration: none;
}

.footer-navigation a:hover,
.footer-contact a:hover {
    text-decoration: underline;
}

.footer-contact address {
    font-style: normal;
}

.footer-phone {
    color: var(--color-white);
    font-size: 1.35rem;
    font-weight: 500;
}

.footer-contact address p {
    margin-top: 0.8rem;
}

.license {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-block: 1.5rem 1rem;
    border-top: 1px solid #425868;
    font-size: 0.875rem;
}

.footer-credit a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: var(--color-peach);
    font-weight: 600;
    vertical-align: middle;
}

.trademark-notice {
    max-width: 66rem;
    color: #b6c7d2;
    font-size: 0.8125rem;
    line-height: 1.75;
}

@media (min-width: 40rem) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 64rem) {
    .header-inner {
        flex-wrap: nowrap;
    }

    .navigation-ready .menu-toggle {
        display: none;
    }

    .primary-navigation,
    .navigation-ready .primary-navigation,
    .navigation-ready .primary-navigation.is-open {
        display: flex;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 0;
        border: 0;
    }

    .primary-navigation.is-open .nav-call {
        margin-top: 0;
    }

    .footer-main {
        grid-template-columns: 1.3fr 0.65fr 1fr;
        gap: 4rem;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}

/* A shared customer photo with the leaf overlapping its lower-right corner. */
.customer-photo {
    position: relative;
    width: min(calc(100% - 3rem), 22rem);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.customer-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 76%;
    border-radius: 1rem;
}

.customer-photo-leaf {
    position: absolute;
    right: 0;
    bottom: -1rem;
    width: 6rem;
    height: 6.2rem;
    transform: translate(50%, 50%);
    color: var(--color-sage);
    fill: currentColor;
}
