/* Home page. Accent #327487 matches the existing site teal. */
:root {
    --home-accent: #327487;
    --home-accent-dark: #22535f;
    --home-tint: #f3f7f8;
    --home-line: #e3eaec;
    --home-ink: #1a1a1a;
    --home-muted: #5f6b6e;
}

/* ---------- Shared bits ---------- */
.home-section--tint { background: var(--home-tint); }
.home-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.home-kicker {
    margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--home-accent);
}
.home-h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 600; color: var(--home-ink); }
.home-link {
    display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600;
    color: var(--home-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.home-link:hover { color: var(--home-accent); }
.home-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
    font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.home-btn--light { background: #fff; color: var(--home-ink); }
.home-btn--light:hover { background: var(--home-tint); color: var(--home-accent-dark); }
.home-btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.7); }
.home-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.home-btn--outline { color: var(--home-ink); border: 1px solid var(--home-ink); }
.home-btn--outline:hover { background: var(--home-ink); color: #fff; }

/* ---------- Hero ---------- */
.home-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #1d2a2e; }
.home-hero__media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(12,22,26,.86) 0%, rgba(12,22,26,.66) 42%, rgba(12,22,26,.12) 78%);
}
.home-hero__inner { display: flex; align-items: center; min-height: clamp(560px, 72vh, 720px); padding-top: 56px; padding-bottom: 56px; }
.home-hero__content { max-width: 640px; }
.home-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px;
    border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; letter-spacing: .02em; color: #fff;
}
.home-hero__title { margin: 0 0 16px; color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; font-weight: 600; }
.home-hero__text { margin: 0 0 26px; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 540px; }

.home-search {
    display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
    padding: 6px 6px 6px 20px; box-shadow: 0 12px 34px rgba(0,0,0,.25); max-width: 600px;
}
.home-search__icon { color: var(--home-muted); font-size: 20px; }
.home-search__input {
    flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important;
    font-size: 17px; color: var(--home-ink); padding: 10px 4px !important; height: auto !important; box-shadow: none !important;
}
.home-search__btn {
    border: 0; border-radius: 999px; background: var(--home-accent); color: #fff; font-weight: 600;
    font-size: 16px; padding: 12px 26px; transition: background .2s;
}
.home-search__btn:hover { background: var(--home-accent-dark); }
.home-search:focus-within { box-shadow: 0 0 0 3px rgba(50,116,135,.45), 0 12px 34px rgba(0,0,0,.25); }

.home-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 28px; }
.home-hero__chips-label { font-size: 14px; color: rgba(255,255,255,.75); margin-right: 2px; }
.home-hero__chips a {
    font-size: 14px; color: #fff; text-decoration: none; padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35); transition: background .2s, border-color .2s;
}
.home-hero__chips a:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Perks strip ---------- */
.home-perks { border-bottom: 1px solid var(--home-line); background: #fff; }
.home-perks__list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-perks__item { display: flex; align-items: flex-start; gap: 14px; }
.home-perks__icon {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--home-tint);
    color: var(--home-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.home-perks__title { margin: 0 0 2px; font-size: 17px; font-weight: 600; color: var(--home-ink); line-height: 1.3; }
.home-perks__text { margin: 0; font-size: 15px; color: var(--home-muted); line-height: 1.4; }

/* ---------- Category tiles ---------- */
.home-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-cat__card {
    position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; border-radius: 14px; background: #e4ecee;
}
.home-cat__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.home-cat__card:hover img { transform: scale(1.05); }
.home-cat__card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,20,24,.78) 100%);
}
.home-cat__label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
.home-cat__title { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.home-cat__count { display: block; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.85); }
.home-cat__links { margin: 10px 2px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.home-cat__links a { color: var(--home-muted); text-decoration: none; }
.home-cat__links a:hover { color: var(--home-accent); text-decoration: underline; }

/* ---------- Featured tabs ---------- */
.home-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-tab {
    border: 1px solid var(--home-line); background: #fff; color: var(--home-ink); border-radius: 999px;
    padding: 9px 20px; font-size: 16px; font-weight: 500; transition: all .2s;
}
.home-tab:hover { border-color: var(--home-ink); }
.home-tab.active { background: var(--home-ink); border-color: var(--home-ink); color: #fff; }
.home-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.home-products .card-product { background: #fff; border-radius: 12px; overflow: hidden; height: 100%; }
.home-products .card-product .pc-info { padding: 14px 16px 16px; }
.home-more { text-align: center; margin-top: 36px; }

/* ---------- Projects ---------- */
.home-projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-project {
    border: 1px solid var(--home-line); border-radius: 14px; padding: 26px 24px 20px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.home-project:hover { border-color: #c9d8dc; box-shadow: 0 10px 28px rgba(22,48,56,.07); }
.home-project__icon {
    width: 48px; height: 48px; border-radius: 12px; background: var(--home-tint); color: var(--home-accent);
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.home-project__title { margin: 0 0 6px; font-size: 22px; font-weight: 600; color: var(--home-ink); }
.home-project__text { margin: 0 0 14px; font-size: 15px; color: var(--home-muted); line-height: 1.45; }
.home-project__links { list-style: none; margin: 0; padding: 0; }
.home-project__links li + li { border-top: 1px solid var(--home-line); }
.home-project__links a {
    display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 16px;
    color: var(--home-ink); text-decoration: none;
}
.home-project__links a .icon { font-size: 13px; color: var(--home-muted); transition: transform .2s; }
.home-project__links a:hover { color: var(--home-accent); }
.home-project__links a:hover .icon { transform: translateX(3px); color: var(--home-accent); }

/* ---------- Visit ---------- */
.home-visit {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff;
    border-radius: 18px; overflow: hidden; border: 1px solid var(--home-line);
}
.home-visit + .home-visit { margin-top: 24px; }
.home-visit__media { position: relative; min-height: 380px; background: #e4ecee; }
.home-visit__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-visit__media.is-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-visit__map-btn {
    position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
    border: 0; border-radius: 999px; background: #fff; color: var(--home-ink); font-weight: 600; font-size: 15px;
    padding: 10px 18px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.home-visit__map-btn:hover { color: var(--home-accent); }
.home-visit__body { padding: 44px 44px 40px; }
.home-visit__intro { margin: 12px 0 22px; font-size: 17px; color: var(--home-muted); line-height: 1.55; }
.home-visit__details { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.home-visit__details li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--home-ink); }
.home-visit__details .icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--home-tint); color: var(--home-accent);
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.home-visit__details a { color: var(--home-ink); text-decoration: none; padding-top: 6px; }
.home-visit__details span { padding-top: 6px; }
.home-visit__details a:hover { color: var(--home-accent); }
.home-visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.home-faq-wrap > section { padding-top: 72px; }

/* ---------- Mobile quick-action bar ---------- */
.home-mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .home-perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-cats, .home-products, .home-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-cats { gap: 18px; }
}
@media (max-width: 991px) {
    .home-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-visit { grid-template-columns: 1fr; }
    .home-visit__media { min-height: 260px; }
    .home-visit__body { padding: 30px 26px; }
}
@media (max-width: 767px) {
    .home-hero::before { background: linear-gradient(180deg, rgba(12,22,26,.55) 0%, rgba(12,22,26,.78) 55%, rgba(12,22,26,.9) 100%); }
    .home-hero__inner { min-height: 0; padding-top: 40px; padding-bottom: 36px; }
    .home-hero__eyebrow { font-size: 13px; }
    .home-hero__text { font-size: 17px; margin-bottom: 20px; }
    .home-search { padding-left: 16px; }
    .home-search__input { font-size: 16px; }
    .home-search__btn { padding: 11px 18px; }
    .home-hero__chips { margin: 14px 0 22px; }
    .home-hero__actions .home-btn { flex: 1 1 auto; justify-content: center; }
    .home-perks__list { grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 18px 0; }
    .home-perks__item { gap: 10px; }
    .home-perks__icon { width: 36px; height: 36px; font-size: 16px; }
    .home-perks__title { font-size: 15px; }
    .home-perks__text { font-size: 13px; }
    .home-head { margin-bottom: 20px; }
    .home-cats, .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .home-products { gap: 22px 12px; }
    .home-cat__card { border-radius: 12px; aspect-ratio: 4 / 5; }
    .home-cat__label { left: 12px; right: 12px; bottom: 12px; }
    .home-cat__title { font-size: 16px; }
    .home-cat__count { font-size: 13px; }
    .home-cat__links { display: none; }
    .home-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .home-tab { white-space: nowrap; padding: 8px 16px; font-size: 15px; }
    .home-projects { grid-template-columns: 1fr; gap: 14px; }
    .home-project { padding: 18px 18px 18px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
    .home-project__icon { width: 40px; height: 40px; font-size: 18px; margin: 0; border-radius: 10px; }
    .home-project__title { font-size: 19px; margin: 0; }
    .home-project__text { grid-column: 1 / -1; margin: 8px 0 12px; font-size: 14px; }
    .home-project__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
    .home-project__links li + li { border-top: 0; }
    .home-project__links a { padding: 6px 12px; border: 1px solid var(--home-line); border-radius: 999px; font-size: 14px; }
    .home-project__links a .icon { display: none; }
    .home-visit__media { min-height: 220px; }
    .home-visit__actions .tf-btn, .home-visit__actions .home-btn { flex: 1 1 100%; justify-content: center; }

    .home-mobile-bar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0;
        z-index: 1040; background: #fff; border-top: 1px solid var(--home-line);
        box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom);
    }
    .home-mobile-bar a {
        display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px;
        font-size: 12px; font-weight: 600; color: var(--home-ink); text-decoration: none;
    }
    .home-mobile-bar a .icon { font-size: 20px; color: var(--home-accent); }
    body { padding-bottom: 64px; }
    #goTop { bottom: 80px !important; }
}
