/* ---------------------------------------------------
   Tokens
   Paper, ink, and a deep North Shore green.
--------------------------------------------------- */
:root{
    color-scheme:light;
    --paper:#F6F7F4;
    --surface:#FFFFFF;
    --tint:#E7EEEA;
    --rule:#D3DCD7;
    --ink:#17221E;
    --muted:#55645D;
    --green:#1F5A47;
    --green-hover:#174536;
    --on-green:#FFFFFF;
    --error:#A2312B;

    --font-display:'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
    --font-body:'Public Sans', system-ui, sans-serif;

    --r-sm:6px;
    --r-md:10px;
    --header-h:68px;
}

@media (prefers-color-scheme: dark){
    :root{
        color-scheme:dark;
        --paper:#121815;
        --surface:#19211D;
        --tint:#1A2420;
        --rule:#2C3833;
        --ink:#E5ECE8;
        --muted:#9AAAA2;
        --green:#7CC3A4;
        --green-hover:#9AD3BA;
        --on-green:#0E1A15;
        --error:#F08A84;
    }
}

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

*{ margin:0; padding:0; }

html{
    scroll-behavior:smooth;
    scroll-padding-top:calc(var(--header-h) + 16px);
    -webkit-text-size-adjust:100%;
}

body{
    font-family:var(--font-body);
    font-size:17px;
    line-height:1.6;
    background:var(--paper);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
    font-family:var(--font-display);
    font-weight:700;
    line-height:1.12;
    letter-spacing:-0.01em;
}

a{ color:var(--green); }
a:hover{ color:var(--green-hover); }

ul,ol{ list-style:none; }

.container{
    width:min(1160px, 100% - 48px);
    margin-inline:auto;
}

.skip-link{
    position:absolute;
    left:-9999px;
    top:12px;
    background:var(--green);
    color:var(--on-green);
    padding:10px 18px;
    border-radius:var(--r-sm);
    font-weight:600;
    z-index:2000;
}
.skip-link:focus{ left:12px; }

:focus-visible{
    outline:3px solid var(--green);
    outline-offset:3px;
    border-radius:2px;
}

.icon{
    width:22px;
    height:22px;
    flex:none;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ---------------------------------------------------
   Buttons and links
--------------------------------------------------- */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:12px 24px;
    border-radius:var(--r-sm);
    font:600 16px/1.2 var(--font-body);
    text-decoration:none;
    border:2px solid transparent;
    cursor:pointer;
    transition:background-color .15s ease;
}

.btn-primary{
    background:var(--green);
    color:var(--on-green);
}
.btn-primary:hover{
    background:var(--green-hover);
    color:var(--on-green);
}

.text-link{
    font-weight:500;
    text-underline-offset:3px;
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--rule);
}

.header-inner{
    height:var(--header-h);
    display:flex;
    align-items:center;
    gap:32px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:var(--font-display);
    font-weight:700;
    font-size:19px;
    color:var(--ink);
    text-decoration:none;
    margin-right:auto;
}
.brand:hover{ color:var(--ink); }

.brand-mark{
    width:26px;
    height:26px;
    fill:none;
    stroke:var(--green);
    stroke-width:2;
    stroke-linecap:round;
}

.site-nav{
    display:flex;
    gap:28px;
}

.site-nav a{
    color:var(--muted);
    text-decoration:none;
    font-size:15px;
    font-weight:500;
}
.site-nav a:hover{ color:var(--ink); }

.header-call{
    font-weight:600;
    font-size:15px;
    text-decoration:none;
    padding:8px 14px;
    border:1.5px solid var(--green);
    border-radius:var(--r-sm);
    font-variant-numeric:tabular-nums;
}

.nav-toggle{
    display:none;
    width:44px;
    height:44px;
    background:none;
    border:1px solid var(--rule);
    border-radius:var(--r-sm);
    cursor:pointer;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
}

.nav-toggle span{
    display:block;
    width:18px;
    height:2px;
    background:var(--ink);
    transition:transform .2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child{ transform:translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ transform:translateY(-4px) rotate(-45deg); }

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero{
    padding:88px 0 96px;
}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr);
    gap:72px;
    align-items:end;
}

.hero h1{
    font-size:clamp(2.4rem, 4.6vw, 3.6rem);
    max-width:16ch;
    margin-bottom:24px;
}

.hero-lead{
    font-size:19px;
    color:var(--muted);
    max-width:54ch;
}

/* The one loud element: the phone number. */
.hero-phone{
    margin-top:44px;
    padding-top:22px;
    border-top:2px solid var(--ink);
    max-width:max-content;
}

.hero-phone-label{
    display:block;
    font-size:15px;
    font-weight:600;
    color:var(--muted);
    margin-bottom:2px;
}

.hero-phone-number{
    display:block;
    font-family:var(--font-display);
    font-weight:700;
    font-size:clamp(2.6rem, 7vw, 4.75rem);
    line-height:1;
    letter-spacing:-0.025em;
    font-variant-numeric:tabular-nums;
    color:var(--green);
    text-decoration:none;
    white-space:nowrap;
}
.hero-phone-number:hover{
    color:var(--green-hover);
    text-decoration:underline;
    text-decoration-thickness:3px;
    text-underline-offset:8px;
}

.hero-actions{
    margin-top:32px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:14px 26px;
}

.hero-facts{
    background:var(--surface);
    border:1px solid var(--rule);
    border-radius:var(--r-md);
    padding:8px 28px;
}

.hero-facts dl > div{
    padding:18px 0;
    border-bottom:1px solid var(--rule);
}
.hero-facts dl > div:last-child{ border-bottom:none; }

.hero-facts dt{
    font-size:14px;
    font-weight:600;
    color:var(--muted);
    margin-bottom:2px;
}

.hero-facts dd{
    font-size:16px;
    font-weight:500;
}

/* ---------------------------------------------------
   Sections
--------------------------------------------------- */
.section{
    padding:96px 0;
    border-top:1px solid var(--rule);
}

.section-tint{
    background:var(--tint);
}

.section-head{
    margin-bottom:48px;
    max-width:60ch;
}

.section-head h2{
    font-size:clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom:12px;
}

.section-head p{
    color:var(--muted);
    font-size:18px;
}

/* Services */
.service-groups{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
}

.group-title{
    font-size:15px;
    font-family:var(--font-body);
    font-weight:600;
    color:var(--muted);
    letter-spacing:0;
    padding-bottom:12px;
    border-bottom:2px solid var(--ink);
}

.service-list li{
    display:flex;
    gap:18px;
    padding:22px 0;
    border-bottom:1px solid var(--rule);
}

.service-list .icon{
    color:var(--green);
    margin-top:2px;
}

.service-list h4{
    font-size:19px;
    margin-bottom:4px;
}

.service-list p{
    color:var(--muted);
    font-size:16px;
    max-width:48ch;
}

.problems{
    margin-top:72px;
}

.problems h3{
    font-size:22px;
    margin-bottom:20px;
}

.problem-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.problem-list li{
    font-size:15px;
    padding:8px 16px;
    border:1px solid var(--rule);
    border-radius:999px;
    background:var(--surface);
}

/* How it works */
.steps{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:32px;
    counter-reset:step;
}

.steps li{
    counter-increment:step;
    position:relative;
    padding-top:64px;
}

.steps li::before{
    content:counter(step);
    position:absolute;
    top:0;
    left:0;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--green);
    color:var(--on-green);
    font-family:var(--font-display);
    font-weight:700;
    font-size:19px;
    z-index:1;
}

/* connecting line between steps */
.steps li:not(:last-child)::after{
    content:"";
    position:absolute;
    top:21px;
    left:44px;
    right:-32px;
    height:2px;
    background:var(--rule);
}

.steps h3{
    font-size:20px;
    margin-bottom:6px;
}

.steps p{
    color:var(--muted);
    font-size:16px;
}

/* About */
.about-grid{
    display:grid;
    grid-template-columns:300px minmax(0, 1fr);
    gap:72px;
    align-items:start;
}

.portrait{
    width:100%;
    aspect-ratio:4 / 5;
    border-radius:var(--r-md);
    object-fit:cover;
    background:var(--green);
    color:var(--on-green);
    display:grid;
    place-items:center;
    font-family:var(--font-display);
    font-weight:700;
    font-size:120px;
    line-height:1;
    position:sticky;
    top:calc(var(--header-h) + 32px);
}

.about-copy{ max-width:64ch; }

.about-copy h2{
    font-size:clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom:20px;
}

.about-copy p{
    margin-bottom:18px;
    color:var(--muted);
    font-size:18px;
}

.about-copy h3{
    font-size:20px;
    margin:40px 0 14px;
}

.skill-list li{
    padding:12px 0 12px 28px;
    border-bottom:1px solid var(--rule);
    position:relative;
}

.skill-list li::before{
    content:"";
    position:absolute;
    left:2px;
    top:20px;
    width:12px;
    height:7px;
    border:solid var(--green);
    border-width:0 0 2px 2px;
    transform:rotate(-45deg);
}

/* FAQ */
.faq-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.6fr);
    gap:64px;
    align-items:start;
}

.faq-list details{
    border-bottom:1px solid var(--rule);
}
.faq-list details:first-child{ border-top:1px solid var(--rule); }

.faq-list summary{
    list-style:none;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:22px 0;
    font-weight:600;
    font-size:18px;
}
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary:hover{ color:var(--green); }

.faq-list summary::after{
    content:"";
    flex:none;
    width:10px;
    height:10px;
    border:solid currentColor;
    border-width:0 2px 2px 0;
    transform:rotate(45deg) translate(-3px, -3px);
    transition:transform .2s ease;
}

.faq-list details[open] summary::after{
    transform:rotate(-135deg) translate(-3px, -3px);
}

.faq-list details p{
    color:var(--muted);
    padding:0 0 24px;
    max-width:64ch;
}

/* Contact */
.contact-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr);
    gap:72px;
    align-items:start;
}

.contact-direct h2{
    font-size:clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom:12px;
}

.contact-direct > p{
    color:var(--muted);
    font-size:18px;
    max-width:44ch;
    margin-bottom:32px;
}

.contact-methods li{
    display:flex;
    gap:16px;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid var(--rule);
}
.contact-methods li:first-child{ border-top:1px solid var(--rule); }

.contact-methods .icon{ color:var(--green); }

.contact-methods span{
    display:block;
    font-size:14px;
    color:var(--muted);
}

.contact-methods a{
    font-weight:600;
    font-size:19px;
    text-decoration:none;
    overflow-wrap:anywhere;
}
.contact-methods a:hover{ text-decoration:underline; }

.request-form{
    background:var(--surface);
    border:1px solid var(--rule);
    border-radius:var(--r-md);
    padding:36px;
    display:flex;
    flex-direction:column;
}

.request-form h3{
    font-size:22px;
    margin-bottom:6px;
}

.form-note{
    color:var(--muted);
    font-size:15px;
    margin-bottom:24px;
}

.request-form label{
    font-weight:600;
    font-size:15px;
    margin-bottom:6px;
}

.request-form input,
.request-form select,
.request-form textarea{
    font:inherit;
    font-size:16px;
    color:var(--ink);
    background:var(--paper);
    border:1.5px solid var(--rule);
    border-radius:var(--r-sm);
    padding:11px 14px;
    margin-bottom:18px;
    width:100%;
}

.request-form textarea{ resize:vertical; }

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus{
    border-color:var(--green);
    outline:none;
    box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
}

.request-form [aria-invalid="true"]{ border-color:var(--error); }

.form-error{
    color:var(--error);
    font-size:15px;
    font-weight:500;
    margin:-4px 0 16px;
}

.request-form .btn{ align-self:flex-start; }

/* Footer */
.site-footer{
    border-top:1px solid var(--rule);
    padding:48px 0;
    font-size:15px;
    color:var(--muted);
}

.footer-inner{
    display:grid;
    grid-template-columns:1fr auto;
    gap:16px 48px;
}

.footer-name{
    font-family:var(--font-display);
    font-weight:700;
    font-size:18px;
    color:var(--ink);
    margin-bottom:4px;
}

.footer-contact{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
}

.footer-contact a{ text-decoration:none; font-weight:500; }

.footer-copyright{
    grid-column:1 / -1;
    font-size:13px;
    padding-top:16px;
    border-top:1px solid var(--rule);
}

/* Mobile call bar */
.call-bar{ display:none; }

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width:980px){
    .hero-grid,
    .service-groups,
    .faq-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }
    .hero-grid{ gap:48px; }
    .faq-grid{ gap:0; }

    .steps{ grid-template-columns:1fr 1fr; row-gap:44px; }
    .steps li:nth-child(2)::after{ display:none; }

    .about-grid{ grid-template-columns:200px minmax(0, 1fr); gap:44px; }
    .portrait{ font-size:84px; }
}

@media (max-width:820px){
    .site-nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        flex-direction:column;
        gap:0;
        padding:8px 24px 16px;
        background:var(--paper);
        border-bottom:1px solid var(--rule);
        visibility:hidden;
        opacity:0;
        transform:translateY(-8px);
        transition:opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    }

    .site-nav.is-open{
        visibility:visible;
        opacity:1;
        transform:none;
        transition:opacity .15s ease, transform .15s ease;
    }

    .site-nav a{
        padding:14px 0;
        font-size:17px;
        border-bottom:1px solid var(--rule);
    }
    .site-nav a:last-child{ border-bottom:none; }

    .nav-toggle{ display:flex; }
    .header-inner{ gap:12px; }
}

@media (max-width:640px){
    body{ font-size:16px; padding-bottom:72px; }

    .container{ width:min(1160px, 100% - 40px); }

    .header-call{ display:none; }

    .hero{ padding:56px 0 64px; }
    .hero-lead{ font-size:17px; }
    .hero-facts{ padding:4px 20px; }

    .section{ padding:64px 0; }

    .steps{ grid-template-columns:1fr; row-gap:28px; }
    .steps li{ padding:0 0 0 64px; min-height:44px; }
    .steps li::after{ display:none; }
    .steps li:not(:last-child)::after{
        display:block;
        top:52px;
        bottom:-20px;
        left:21px;
        right:auto;
        width:2px;
        height:auto;
    }

    .about-grid{ grid-template-columns:1fr; gap:32px; }
    .portrait{ position:static; width:140px; font-size:64px; }

    .contact-methods a{ font-size:16px; }

    .request-form{ padding:24px 20px; }
    .request-form .btn{ align-self:stretch; }

    .footer-inner{ grid-template-columns:1fr; }
    .footer-contact{ align-items:flex-start; }

    .call-bar{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:900;
        padding:10px 16px calc(10px + env(safe-area-inset-bottom));
        background:var(--paper);
        border-top:1px solid var(--rule);
    }

    .call-bar a{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        min-height:48px;
        border-radius:var(--r-sm);
        font-weight:600;
        text-decoration:none;
        border:1.5px solid var(--green);
    }

    .call-bar a:first-child{
        background:var(--green);
        color:var(--on-green);
    }
}

@media (prefers-reduced-motion:reduce){
    html{ scroll-behavior:auto; }
    *,
    *::before,
    *::after{
        transition:none !important;
    }
}
