@font-face {
    font-family: Geist;
    src: url("geist-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    font-family: Geist, "Helvetica Neue", sans-serif;
    color: #18221d;
    background: #f4f5ef;
    font-synthesis: none;
    --muted: #54615a;
    --rule: #dce1d9;
    --surface: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
h1, h2, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid #287650; outline-offset: 4px; }

.site-header,
.login-layout,
.directory-layout {
    width: min(calc(100% - 88px), 1280px);
    margin-inline: auto;
}

.site-header {
    min-height: 91px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
}

.wordmark, .account { display: flex; align-items: center; gap: 12px; }
.wordmark { font-size: 1.02rem; letter-spacing: -.045em; font-weight: 500; white-space: nowrap; }
.wordmark strong { font-weight: 700; }
.brand-mark {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    background: #193228;
}
.brand-mark::before, .brand-mark::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 6px;
    border-radius: 7px;
    background: #d7f29c;
    transform: rotate(-42deg);
}
.brand-mark::before { top: 10px; left: 7px; }
.brand-mark::after { top: 16px; left: 11px; }

.account { font-size: .83rem; }
.account-email { color: var(--muted); overflow-wrap: anywhere; }
.signout {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cbd3c9;
    border-radius: 99px;
    color: #253b2e;
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
}
.signout:hover { background: #e9ede4; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 12px;
    margin-block: clamp(25px, 7vh, 90px) 52px;
}
.hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    border-radius: 29px;
    background: #162820;
    color: #f7faee;
}
.login-hero {
    min-height: clamp(430px, 61vh, 630px);
    padding: clamp(35px, 5.4vw, 82px);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(3.5rem, 7.6vw, 7.3rem);
    line-height: .94;
    letter-spacing: -.062em;
    font-weight: 600;
}
.orbit {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(109deg, #152720 8%, #152720b0 48%, #19312812 100%),
        radial-gradient(ellipse at 78% 8%, #687c42 0%, #384f33 31%, #20362b 55%, #162820 76%);
}
.orbit::before,
.orbit::after,
.orbit i,
.orbit b {
    content: "";
    display: block;
    position: absolute;
    width: 98%;
    height: 90%;
    top: -11%;
    right: -17%;
    border: 1px solid #deedb646;
    border-radius: 50%;
    transform: rotate(-32deg);
}
.orbit::after { top: -5%; right: -18%; }
.orbit i { top: 1%; right: -19%; }
.orbit b { top: 7%; right: -20%; }
.orbit i::after {
    content: "";
    position: absolute;
    top: 72%;
    left: 7.8%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #deefae;
    box-shadow: 0 0 28px 6px #daed9a80;
}
.login-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(27px, 5vw, 73px);
    border: 1px solid var(--rule);
    border-radius: 29px;
    background: var(--surface);
}
.login-copy h2 {
    font-size: clamp(1.85rem, 3vw, 3rem);
    font-weight: 600;
    letter-spacing: -.07em;
    line-height: 1.05;
    margin-bottom: 13px;
}
.login-copy p, .login-error, noscript { font-size: .94rem; line-height: 1.55; }
.login-copy p { max-width: 26ch; color: var(--muted); }
.login-copy strong { font-weight: 600; color: #294936; }
#google-form { margin-top: 27px; max-width: 100%; }
#google-button { min-height: 40px; }
.login-error, noscript { margin-top: 12px; color: #873727; }

.directory-layout { margin-bottom: 44px; }
.directory-hero {
    padding: clamp(24px, 3.8vw, 48px);
    min-height: clamp(175px, 17vw, 220px);
    margin-bottom: 32px;
}
.directory-hero h1 { font-size: clamp(2.7rem, 5.8vw, 5rem); }
.directory-hero p { margin-top: 14px; color: #e1e9d9; line-height: 1.45; }
.directory-hero .orbit::before,
.directory-hero .orbit::after,
.directory-hero .orbit i,
.directory-hero .orbit b { width: 67%; height: 178%; }

.services { display: grid; gap: 30px; }
.business-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 13px;
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1.15;
}
.business-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-grid-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    min-height: 193px;
    padding: 64px 18px 17px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    background: #1a2a24;
    transition: box-shadow 180ms ease, transform 180ms ease;
}
.service-grid-intro .service-card { min-height: clamp(193px, 17vw, 230px); }
.service-image,
.service-card::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.service-image {
    z-index: -2;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 320ms ease;
}
.service-card::before {
    content: "";
    z-index: -1;
    background: linear-gradient(180deg, #10191518 0%, #1019151c 28%, #0b1513b8 64%, #0a1311f5 100%);
}
.service-card:hover {
    box-shadow: 0 9px 22px #233b2933;
    transform: translateY(-2px);
}
.service-card:hover .service-image { transform: scale(1.045); }
.service-card:focus-visible { outline-offset: 3px; }
.arrow {
    position: absolute;
    inset: 12px 12px auto auto;
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid #ffffff60;
    border-radius: 50%;
    background: #0b1515a6;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}
h3 { margin: 0; }
.card-copy {
    background: linear-gradient(180deg, #0a13117a, #0a1311c4);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 0 -5px -4px;
    width: fit-content;
    max-width: calc(100% + 10px);
}
.card-copy h3 {
    font-size: clamp(1.06rem, 1.6vw, 1.35rem);
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 600;
}
.card-copy p { margin-top: 5px; font-size: .83rem; line-height: 1.35; color: #edf3ee; }

@media (max-width: 960px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .site-header, .login-layout, .directory-layout { width: calc(100% - 36px); }
    .site-header { min-height: 72px; }
    .login-layout { grid-template-columns: 1fr; margin-block: 0 32px; }
    .login-hero { min-height: 345px; }
    .login-panel { min-height: 250px; }
    .hero, .login-panel { border-radius: 23px; }
}
@media (max-width: 420px) {
    .account { gap: 7px; align-items: flex-end; flex-direction: column; }
    .account-email { font-size: .71rem; }
    .signout { font-size: .75rem; min-height: 33px; padding: 6px 10px; }
    .login-hero { min-height: 290px; padding: 26px; }
    .hero h1 { font-size: clamp(2.7rem, 13.5vw, 3.5rem); }
    .directory-hero { min-height: 165px; padding: 22px; margin-bottom: 25px; }
    .directory-hero h1 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
    .directory-hero p { font-size: .89rem; margin-top: 13px; }
    .services { gap: 23px; }
    .service-grid { gap: 8px; }
    .service-card, .service-grid-intro .service-card {
        padding: 51px 11px 12px;
        border-radius: 15px;
        min-height: 168px;
    }
    .arrow { width: 28px; height: 28px; inset: 9px 9px auto auto; }
    .card-copy p { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    .service-card, .service-image { transition: none; }
    .service-card:hover, .service-card:hover .service-image { transform: none; }
}
