/* =============================================
     Base / Reset
     ============================================= */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
}

* {
    box-sizing: border-box;
}

/* Typography & Fonts */
@font-face {
    font-family: "Nunito";
    src: url('/static/font/NunitoSans.ttf') format('truetype');
}

* {
    font-family: 'Nunito', sans-serif;
}

/* Design Tokens */
:root {
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-border: #fff;
    --color-light-blue: #f0f8ff;
    --color-dark-blue: #064273;
    --color-sand: #f8f8df;
    /* used for active links on dark bg */
    /* Typography scale */
    --font-size-base: clamp(16px, 1.05vw + 12px, 19px);
    --font-size-sm: clamp(14px, 0.8vw + 11px, 16px);
    --font-size-lg: clamp(18px, 1.1vw + 14px, 22px);
    --font-size-h2: clamp(26px, 1.6vw + 20px, 38px);
    --line-height-base: 1.55;
    --line-height-tight: 1.25;
}

.color-dark {
    color: var(--color-text-dark);
}

.bg-light-blue {
    background-color: var(--color-light-blue);
}

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

.bg-sand {
    background-color: var(--color-sand);
}

/* Elements */
a {
    text-decoration: none;
    color: inherit;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Components: Logo */
a.logo {
    max-width: 200px;
}

/* Layout: Header */
header {
    position: absolute;
    inset: 0 0 auto 0;
    /* top full-width */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 22px 24px;
    color: var(--color-text-light);
}

/* Static light header variant for interior pages */
.page-header {
    position: relative;
    inset: auto;
    color: var(--color-text-dark);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.page-header nav a {
    color: var(--color-text-dark);
}

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

header nav img {
    height: 72px;
}

header nav a {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    position: relative;
    padding: 6px 6px;
    border-radius: 6px;
    transition: color .2s ease, background-color .2s ease;
}

header nav .links {
    display: flex;
    gap: 1.3em;
}

header nav .links a {
    font-size: var(--font-size-lg);
}

/* Smooth underline animation instead of border jump */
header nav .links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

header nav .links a:hover::after,
header nav .links a:focus::after,
header nav .links a.active::after {
    transform: scaleX(1);
}

/* Subtle hover background for better affordance on dark header */
header nav .links a:hover,
header nav .links a:focus {
    background-color: rgba(255, 255, 255, .08);
    outline: none;
}

header nav .links a.active {
    /* background-color: rgba(255,255,255,.08); */
    outline: none;
}

.max-w-sm {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {

    /* Stack header content and place links under the logo */
    header nav {
        flex-direction: vertical;
        align-items: stretch;
        gap: 8px;
    }

    header nav .links {
        flex-direction: column;
        /* keep links in a column */
        flex-wrap: nowrap;
        align-items: flex-end;
        /* right-align items */
        justify-content: flex-start;
        text-align: right;
        gap: 8px;
    }

    header nav .links a {
        display: inline-block;
        padding: 8px 4px;
    }

    /* Make underline animate from the right edge on mobile */
    header nav .links a::after {
        transform-origin: right;
    }
}

/* A11y utility: visually hidden but accessible to screen readers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: block;
    background-size: cover;
    background-position: center;
}

.hero.small {
    height: 50vh;
}



.hero>* {
    color: var(--color-text-light);
    text-align: center;
}

.hero .overlay {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .hero.small .overlay {
        justify-content: flex-end;
    }
}

.hero .overlay img {
    margin-bottom: 20px;
}

.hero .overlay span {
    margin-bottom: 5px;
}

.hero h1 {
    font-size: clamp(2.8em, 3.2vw, 4em);
    font-weight: 400;

    margin: 0px 0px 20px 0px;
}

.hero h3 {
    font-weight: 500;
    margin: 0;
}

h3 {
    font-size: clamp(1.3em, 1.8vw, 2em);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Contact page intro tweaks (scoped) */
.contact-intro {
    text-align: left;
    max-width: 400px;
}
.contact-intro h1 {
    margin: 0 0 8px;
}
.contact-intro p {
    margin: 4px 0;
    line-height: 1.5;
}
.contact-intro p:first-of-type {
    margin-top: 6px;
    margin-bottom: 10px;
}
.contact-intro p strong {
    display: block;
    margin: 30px 0 4px;
}
.contact-intro p + p {
    /* tighten spacing for phone and email lines */
    margin: 2px 0;
}
.contact-intro a {
    color: var(--color-dark-blue);
}
.contact-intro a:hover,
.contact-intro a:focus {
    text-decoration: underline;
}

/* Intro Section Columns */
.intro {
    max-width: 1100px;
    margin: 0 auto;
}

.intro h2 {
    text-align: center;
    margin: 20px 0 30px;
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
}

.intro p {
    max-width: 800px;
    text-align: center;
}

/* Meet page bio tweaks (scoped) */
.intro.bio .col p {
    text-align: left;
}

.intro.bio .col .button {
    align-self: flex-start;
}

/* Bio layout: image under H2 on mobile, text left on desktop */
.intro.bio .columns {
    align-items: center;
}

.intro.bio .bio-photo {
    order: 0;
}

.intro.bio .bio-copy {
    order: 1;
}

@media (min-width: 769px) {
    .intro.bio .columns {
        gap: 40px;
        align-items: flex-start;
    }

    .intro.bio .bio-photo {
        order: 1;
    }

    .intro.bio .bio-copy {
        order: 0;
    }

    .intro.bio .bio-copy {
        max-width: 700px;
    }

    .intro.bio .bio-copy p {
        max-width: 64ch;
        text-align: left;
    }

    .intro.bio .bio-photo img {
        display: block;
    }
}

.tagline {
    padding: 60px 20px;
    margin-top: 30px;
}

.tagline .col {
    width: unset;
}

.tagline p {
    max-width: 500px;
    text-align: center;
}

.tagline img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}



.columns {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
}

/* Mobile stacked: center contents */
@media (max-width: 768px) {
    .columns .col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .columns .col p {
        /*  text-align: left; */
        width: 100%;
    }

    .columns .col img,
    .intro .col .hours {
        align-self: center;
    }
}

.columns p {
    line-height: 1.55;
    margin: 0 0 1em;
}

@media (min-width: 769px) {
    .columns {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        align-items: center;
    }

    .columns .col {
        padding: 0 10px;
    }

    .columns h2 {
        font-size: calc(var(--font-size-h2) * 1.05);
    }
}

/* Hours Component */
.hours {
    margin-top: 40px;
    background: #fafafa;
    padding: 24px 28px 28px;
}

.hours h3 {
    margin: 0 0 16px;
    font-size: var(--font-size-lg);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-list .days {
    font-weight: 600;
    color: #222;
}

.hours-list .time {
    font-family: monospace;
    font-size: .95rem;
    color: #555;
}

.hours-list li.closed .time {
    color: #b40000;
    font-weight: 600;
}

@media (min-width: 769px) {
    .hours {
        margin-top: 60px;
    }
}

/* Footer */
.site-footer {
    background: #111;
    color: #ddd;
    font-size: var(--font-size-sm);
}

.site-footer a.logo {
    display: inline-block;
    font-size: clamp(20px, 0.9vw + 16px, 24px);
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.site-footer a {
    color: #fff;
}

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

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.footer-contact {
    margin: 0;
    color: #cfd6dc;
    font-size: 1.02rem;
    line-height: 1.6;
}

.footer-contact .phone {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.15rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Make phone numbers clearly interactive when linked */
.footer-contact .phone a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, .28);
}

.footer-contact .phone a:hover,
.footer-contact .phone a:focus {
    border-bottom-color: #fff;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-weight: 500;
    letter-spacing: .5px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 16px 24px 24px;
    text-align: center;
    background: #0c0c0c;
}

@media (min-width: 700px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    /* Let the brand area breathe so the logo text can run on fewer lines */
    .footer-brand {
        max-width: 640px;
        flex: 1 1 auto;
    }

    .footer-nav ul {
        flex-direction: row;
        gap: 28px;
    }
}

/* Buttons */
button,
.button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: #283442;
    color: #fafeff;
    font-size: 1.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    text-decoration: none;
    max-width: 300px;
}

.button:hover,
.button:focus {
    background: #082b68;
    text-decoration: none;
}

.button:active {
    background: #041633;
    transform: translateY(1px);
}

.button.step-inside {
    margin-top: 12px;
}

.button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f5f9fc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

form input {
    padding: 12px 14px;
    border: 1px solid #064273;
    font-size: 1em;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form textarea {
    min-height: 120px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #064273;
    font-size: 1em;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-list {
    margin-bottom: 40px;
}

.category-list .service-heading {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-flow: wrap;
    margin-bottom: 20px;
}

.category-list .service-heading p:nth-of-type(2) {
    margin-left: 10px;
    margin-right: 10px;
}

.category-list p strong {
    font-size: 1.25em;
    display: block;
    margin-top: 2em;
    color: #2a3d66;
}


.vh-100 {
    height: 100vh;
}

main#contact {
    padding-top: 30px;
}