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

html {
    scrollbar-gutter: stable;
}

/* ===== Tunable settings ===== */
:root {
    /* Light mode brightness: higher = less bright */
    --light-wash: 0.70;

    /* Frosted glass */
    --glass-blur: 18px;
    --glass-fill: 0.10;
    --glass-fill-dark: 0.40;

    /* Cool blue ice tint */
    --ice-rim: rgba(125, 211, 252, 0.55);
    --ice-sheen: rgba(224, 242, 254, 0.35);
    --ice-blue: rgba(56, 189, 248, 0.18);

    /* Type */
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    background-color: #0f172a;
    background-image:
        linear-gradient(
            160deg,
            rgba(224, 242, 254, var(--light-wash)) 0%,
            rgba(186, 230, 253, var(--light-wash)) 40%,
            rgba(125, 211, 252, var(--light-wash)) 100%
        ),
        url("/images/forest.jpg");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.light {
    color: #1e3a5f;
    background-image:
        linear-gradient(
            160deg,
            rgba(224, 242, 254, var(--light-wash)) 0%,
            rgba(186, 230, 253, var(--light-wash)) 40%,
            rgba(125, 211, 252, var(--light-wash)) 100%
        ),
        url("/images/forest.jpg");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.dark {
    color: #e0f2fe;
    background-image:
        linear-gradient(
            160deg,
            rgba(15, 23, 42, 0.72) 0%,
            rgba(30, 41, 59, 0.72) 50%,
            rgba(12, 74, 110, 0.72) 100%
        ),
        url("/images/forest.jpg");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Headline type — Space Grotesk everywhere a heading appears */
h1, h2, h3,
.logo,
.btn {
    font-family: var(--font-display);
}

/* Header — cool blue frosted glass */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: white;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(12, 74, 110, 0.83) 100%
        );
    backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    border-bottom: 1px solid var(--ice-rim);
    box-shadow:
        0 8px 24px rgba(14, 165, 233, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #e0f2fe;
}

.header-phone {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #eab308;
    text-decoration: none;
    transition: color 0.2s;
}

.header-phone:hover {
    color: #facc15;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: #bae6fd;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: #38bdf8;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 1.5rem;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.theme-toggle:focus-visible,
nav a:focus-visible,
.btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Hero — cool blue frosted glass */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, calc(var(--glass-fill) + 0.10)) 0%,
            rgba(186, 230, 253, calc(var(--glass-fill) + 0.06)) 50%,
            rgba(125, 211, 252, calc(var(--glass-fill) + 0.02)) 100%
        );
    backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    border: 1px solid var(--ice-rim);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow:
        0 18px 50px rgba(14, 165, 233, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            var(--ice-sheen) 20%,
            transparent 35%,
            transparent 60%,
            var(--ice-blue) 75%,
            transparent 90%
        );
    opacity: 0.55;
    mix-blend-mode: soft-light;
}

body.dark .hero {
    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.12) 0%,
            rgba(30, 41, 59, var(--glass-fill-dark)) 45%,
            rgba(12, 74, 110, 0.35) 100%
        );
    border-color: rgba(125, 211, 252, 0.30);
}

.hero-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-accent {
    display: block;
    width: 72px;
    height: 5px;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.hero-text h1 {
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: #0c4a6e;
    letter-spacing: -0.02em;
}

body.dark .hero-text h1 {
    color: #e0f2fe;
}

.hero-text p {
    font-size: 1.15rem;
    color: #0369a1;
    margin-bottom: 1.8rem;
}

body.dark .hero-text p {
    color: #7dd3fc;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-hint {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: #0369a1;
    opacity: 0.75;
}

body.dark .hero-hint {
    color: #7dd3fc;
}

/* Yeti carousel arrows */
.yeti-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.yeti-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #0284c7;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(186, 230, 253, 0.35));
    border: 1px solid var(--ice-rim);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.18);
    transition: all 0.2s ease;
}

.yeti-arrow:hover {
    transform: scale(1.1);
    color: #0c4a6e;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.yeti-arrow:active {
    transform: scale(0.95);
}

body.dark .yeti-arrow {
    color: #7dd3fc;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(30, 41, 59, 0.45));
    border-color: rgba(125, 211, 252, 0.30);
}

body.dark .yeti-arrow:hover {
    color: #e0f2fe;
}

/* Animated Yeti — 400x400 unchanged */
.yeti-wrapper {
    display: inline-block;
    width: 430px !important;
    height: 430px !important;
    cursor: pointer;
    overflow: hidden !important;
    border-radius: 18px;
    transition: transform 0.3s ease;
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.35),
        0 16px 40px rgba(15, 23, 42, 0.2);
}

.yeti-wrapper:hover {
    transform: translateY(-6px) scale(1.03);
}

.yeti-wrapper.clicked {
    animation: yeti-bounce 0.6s ease;
}

@keyframes yeti-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.15) rotate(-5deg); }
    50%  { transform: scale(0.95) rotate(5deg); }
    70%  { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1); }
}

.yeti-img,
.hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 18px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #0ea5e9 100%);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #eab308;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45);
    border-color: #facc15;
    color: #eab308;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Cards + contact cards — cool blue frosted glass */
.card,
.contact-card,
.service-card {
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, calc(var(--glass-fill) + 0.10)) 0%,
            rgba(186, 230, 253, calc(var(--glass-fill) + 0.06)) 50%,
            rgba(125, 211, 252, calc(var(--glass-fill) + 0.02)) 100%
        );
    backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    border: 1px solid var(--ice-rim);
    padding: 2.2rem 2rem 2rem;
    border-radius: 18px;
    box-shadow:
        0 8px 25px rgba(14, 165, 233, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card::before,
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e0f2fe, #7dd3fc, #38bdf8, #e0f2fe);
    border-radius: 18px 18px 0 0;
    z-index: 1;
}

.card::after,
.contact-card::after,
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            var(--ice-sheen) 18%,
            transparent 34%,
            transparent 58%,
            var(--ice-blue) 74%,
            transparent 90%
        );
    opacity: 0.5;
    mix-blend-mode: soft-light;
}

body.dark .card,
body.dark .contact-card,
body.dark .service-card {
    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.12) 0%,
            rgba(30, 41, 59, var(--glass-fill-dark)) 45%,
            rgba(12, 74, 110, 0.35) 100%
        );
    border-color: rgba(125, 211, 252, 0.28);
}

.card:hover,
.contact-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 14px 34px rgba(14, 165, 233, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #0c4a6e;
    letter-spacing: 0.01em;
}

body.dark .card h3 {
    color: #e0f2fe;
}

.card p,
.contact-card p {
    position: relative;
    z-index: 1;
    color: #0369a1;
}

body.dark .card p,
body.dark .contact-card p {
    color: #7dd3fc;
}

.card a,
.contact-card a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card a:hover,
.contact-card a:hover {
    color: #38bdf8;
}

/* Names (e.g. "Dan Fitzpatrick") — blue in light mode, white in dark mode,
   blue accent on hover in both. Explicit rule per state, no cascade guessing. */
.card .team-name,
.contact-card .team-name {
    transition: color 0.2s;
}

body.light .card .team-name,
body.light .contact-card .team-name {
    color: #1e3a5f !important;
}

body.dark .card .team-name,
body.dark .contact-card .team-name {
    color: #e0f2fe !important;
}

body.light .card .team-name:hover,
body.light .contact-card .team-name:hover,
body.dark .card .team-name:hover,
body.dark .contact-card .team-name:hover {
    color: #38bdf8 !important;
}

/* ===== Services section ===== */
.services {
    margin-top: 4.5rem;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 0.75rem;
}

body.dark .eyebrow {
    color: #7dd3fc;
}

.section-head h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0c4a6e;
    margin-bottom: 0.75rem;
}

body.dark .section-head h2 {
    color: #e0f2fe;
}

.section-head p {
    color: #0369a1;
    font-size: 1.05rem;
}

body.dark .section-head p {
    color: #7dd3fc;
}

.section-accent {
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin: 1.4rem auto 0;
    background: linear-gradient(90deg, #7dd3fc, #38bdf8, #0284c7);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

/* Decorative box around the services section head */
.section-head-box {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, calc(var(--glass-fill) + 0.10)) 0%,
            rgba(186, 230, 253, calc(var(--glass-fill) + 0.06)) 50%,
            rgba(125, 211, 252, calc(var(--glass-fill) + 0.02)) 100%
        );
    backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
    border: 1px solid var(--ice-rim);
    border-radius: 24px;
    padding: 2.75rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow:
        0 18px 50px rgba(14, 165, 233, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.section-head-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e0f2fe, #7dd3fc, #38bdf8, #e0f2fe);
    z-index: 1;
}

.section-head-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            var(--ice-sheen) 20%,
            transparent 35%,
            transparent 60%,
            var(--ice-blue) 75%,
            transparent 90%
        );
    opacity: 0.55;
    mix-blend-mode: soft-light;
}

.section-head-box .section-head {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

body.dark .section-head-box {
    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.12) 0%,
            rgba(30, 41, 59, var(--glass-fill-dark)) 45%,
            rgba(12, 74, 110, 0.35) 100%
        );
    border-color: rgba(125, 211, 252, 0.30);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    text-align: left;
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    color: #0284c7;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(125, 211, 252, 0.10));
    border: 1px solid var(--ice-rim);
}

.service-icon svg {
    width: 13px;
    height: 13px;
}

body.dark .service-icon {
    color: #7dd3fc;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #0c4a6e;
}

body.dark .service-card h3 {
    color: #e0f2fe;
}

.service-card p {
    position: relative;
    z-index: 1;
    color: #0369a1;
    font-size: 0.98rem;
}

body.dark .service-card p {
    color: #7dd3fc;
}

/* ===== CTA banner ===== */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    padding: 2.5rem 3rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #0284c7 100%);
    box-shadow: 0 18px 50px rgba(3, 105, 161, 0.28);
}

.cta-text h2 {
    color: #f0f9ff;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.cta-text p {
    color: #bae6fd;
    font-size: 1rem;
}

.cta-banner .btn {
    flex-shrink: 0;
    border-color: #facc15;
}

/* ===== About page ===== */
.about-head {
    margin-top: 1rem;
}

.about-head .btn {
    margin-top: 0.5rem;
}

/* ===== Contact page ===== */
.contact-page {
    max-width: 900px;
    margin: 0 auto;
}

.contact-hero {
    text-align: center;
    margin-bottom: 2.75rem;
}

.contact-hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #0c4a6e;
    margin-bottom: 0.75rem;
}

body.dark .contact-hero h1 {
    color: #e0f2fe;
}

.contact-hero p {
    max-width: 34rem;
    margin: 0 auto;
    color: #0369a1;
    font-size: 1.05rem;
}

body.dark .contact-hero p {
    color: #7dd3fc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
}

.contact-grid .contact-card {
    text-align: center;
}

.contact-label {
    display: block;
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 0.5rem;
}

body.dark .contact-label {
    color: #7dd3fc;
}

.contact-card a {
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-grid .team-name {
    font-size: 1.25rem;
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #0369a1;
    font-size: 0.95rem;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    margin-top: 1rem;
}

footer .footer-sub {
    margin-top: 0.3rem;
    opacity: 0.75;
}

body.dark footer {
    color: #94a3b8;
}

.number {
    color: #eab308;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted rgba(234, 179, 8, 0.7);
}

@media (max-width: 768px) {
    /* Fixed backgrounds are expensive on mobile Safari/Chrome — switch to scroll */
    body,
    body.light,
    body.dark {
        background-attachment: scroll;
    }

    .header-phone {
        display: none;
    }

    .hero {
        flex-direction: column-reverse !important;
        text-align: center !important;
        padding: 1.5rem !important;
        gap: 1.25rem !important;
    }

    .hero-text,
    .hero-image {
        width: 100% !important;
        flex: none !important;
    }

    .hero-accent {
        margin-left: auto;
        margin-right: auto;
    }

    .yeti-carousel {
        gap: 0.5rem;
    }

    .yeti-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .section-head-box {
        padding: 2rem 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem !important;
    }

    /* Square image that fits the phone, not a crushed side strip */
    .yeti-wrapper {
        width: min(350px, 95vw) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .yeti-img,
    .hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        inset: 0 !important;
        border-radius: 18px !important;
    }

    .yeti-wrapper:hover {
        transform: none !important;
    }

    .logo {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.15;
        font-size: 1.4rem;
    }

    .logo-line {
        display: block;
        margin-top: 0.15rem;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .contact-card,
    .service-card,
    .btn {
        transition: none !important;
    }
}
