/* ============================================================
   API NECTAR — component styles, loaded after style.css.
   Sections: navbar, footer, hero, services-snapshot, featured-gallery,
   about, cta-strip, page-services, page-gallery, page-contact, generic.
   ============================================================ */

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: transparent;
    transition: background-color var(--t-mid), padding var(--t-mid), box-shadow var(--t-mid);
}
.navbar.scrolled {
    background: var(--ivory);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--line);
}
.navbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.navbar__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.navbar__wordmark {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ivory);
    letter-spacing: -0.01em;
}
.navbar.scrolled .navbar__wordmark { color: var(--pine); }
body:not(.home) .navbar:not(.scrolled) .navbar__wordmark { color: var(--pine); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ivory);
    transition: color var(--t-fast);
}
.navbar.scrolled .nav-links a,
body:not(.home) .navbar:not(.scrolled) .nav-links a {
    color: var(--pine);
}
.nav-links a:hover { color: var(--honey); }
.navbar.scrolled .nav-links a:hover { color: var(--honey-deep); }

.navbar__phone { font-variant-numeric: tabular-nums; }
.navbar__cta { padding: 10px 20px; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 1100;
}
.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ivory);
    border-radius: 2px;
    transition: transform var(--t-mid), opacity var(--t-mid), background-color var(--t-fast);
}
.navbar.scrolled .mobile-menu-btn span,
body:not(.home) .navbar:not(.scrolled) .mobile-menu-btn span {
    background: var(--pine);
}

@media (max-width: 880px) {
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--ivory);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        padding: 60px 32px;
        gap: 22px;
        box-shadow: var(--shadow-lg);
        transition: right var(--t-mid);
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--pine); font-size: 18px; }
    .nav-links li { width: 100%; }
    .navbar__cta { width: 100%; text-align: center; }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Footer ===== */
.footer {
    background: var(--pine);
    color: var(--ivory);
    padding: 72px 0 32px;
    margin-top: 80px;
}
.footer h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--honey);
    margin-bottom: 14px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.6fr;
    gap: 48px;
    align-items: start;
}
.footer__wordmark {
    font-family: 'Roboto Slab', Georgia, serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--ivory);
    margin-bottom: 8px;
}
.footer__tagline {
    color: var(--sage-soft);
    font-size: 15px;
    max-width: 32ch;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a, .footer__contact li {
    color: var(--ivory);
    font-size: 15px;
    opacity: 0.92;
}
.footer ul a:hover { color: var(--honey); opacity: 1; }
.footer__badges {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}
.footer__badge img {
    background: var(--ivory);
    padding: 8px;
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
    display: block;
}
.footer__badge-caption {
    color: var(--sage-soft);
    font-size: 13px;
    margin-top: 8px;
}
.footer__bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(250, 246, 236, 0.12);
    text-align: center;
    color: rgba(250, 246, 236, 0.55);
    font-size: 13px;
}
@media (max-width: 880px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__brand, .footer__badges { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: var(--ivory);
    background-size: cover;
    background-position: center;
    background-color: var(--pine);
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        rgba(23, 48, 40, 0.28) 0%,
        rgba(23, 48, 40, 0.15) 35%,
        rgba(23, 48, 40, 0.85) 100%
    );
}
.hero__content {
    position: relative;
    z-index: 1;
    padding: 140px 0 90px;
    max-width: 880px;
}
.hero__eyebrow { color: var(--honey); }
.hero__headline {
    color: var(--ivory);
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.08;
    text-wrap: balance;
    margin-bottom: 22px;
    max-width: 18ch;
}
.hero__sub {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--ivory);
    opacity: 0.92;
    max-width: 52ch;
    margin-bottom: 36px;
}
.hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero__scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 28px; height: 44px;
    border: 2px solid rgba(250, 246, 236, 0.6);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    border-radius: 2px;
    background: var(--ivory);
    animation: hero-scroll 1.6s ease-in-out infinite;
}
@keyframes hero-scroll {
    0%   { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}
@media (max-width: 600px) {
    .hero { min-height: 78vh; }
    .hero__scroll { display: none; }
}

/* ===== Section header (shared) ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-header h2 { color: var(--pine); }
.section-header > p:last-of-type:not(.eyebrow) {
    margin-top: 12px;
    color: var(--charcoal);
    opacity: 0.75;
    font-size: 17px;
}

/* ===== Services snapshot ===== */
.services-snapshot { background: var(--ivory); }
.services-snapshot__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--ivory-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    color: var(--pine);
    transition: transform var(--t-fast), box-shadow var(--t-mid), border-color var(--t-fast), background-color var(--t-fast);
    min-height: 200px;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--honey);
    background: #fff;
}
.service-card__title {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--pine);
}
.service-card__summary {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--charcoal);
    flex: 1;
    margin-bottom: 14px;
}
.service-card__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--honey-deep);
    letter-spacing: 0.02em;
}
.services-snapshot__cta { text-align: center; margin-top: 48px; }
@media (max-width: 1024px) { .services-snapshot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .services-snapshot__grid { grid-template-columns: 1fr; } }

/* ===== Featured gallery ===== */
.featured-gallery { background: var(--ivory-warm); }
.featured-gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}
.featured-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    grid-column: span 2;
    grid-row: span 1;
    margin: 0;
}
.featured-gallery__item--lead {
    grid-column: span 4;
    grid-row: span 2;
}
.featured-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-mid);
}
.featured-gallery__item:hover img { transform: scale(1.04); }
.featured-gallery__item figcaption {
    position: absolute;
    left: 12px; bottom: 12px;
    padding: 6px 10px;
    background: rgba(23, 48, 40, 0.78);
    color: var(--ivory);
    font-size: 12px;
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
}
.featured-gallery__empty {
    text-align: center;
    color: var(--charcoal);
    opacity: 0.65;
    font-style: italic;
}
.featured-gallery__cta { text-align: center; margin-top: 48px; }
@media (max-width: 880px) {
    .featured-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .featured-gallery__item, .featured-gallery__item--lead {
        grid-column: span 1; grid-row: span 1;
    }
}

/* ===== About ===== */
.about { background: var(--ivory); }
.about__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 72px;
    align-items: start;
}
.about__text h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    margin-bottom: 22px;
    max-width: 22ch;
}
.about__body {
    font-size: 17px;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 18px;
}
.about__signature {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 16px;
    color: var(--pine);
    font-weight: 500;
}
.about__trust {
    background: var(--ivory-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.about__portrait {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--ivory);
    box-shadow: var(--shadow-sm);
}
.about__badge { margin-bottom: 22px; }
.about__badge:last-child { margin-bottom: 0; }
.about__badge--secondary {
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.about__badge-link { display: inline-block; margin-bottom: 12px; }
.about__badge-link img {
    background: white;
    padding: 6px;
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}
.about__badge-grade {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    color: var(--pine);
    font-size: 15px;
    margin-bottom: 6px;
}
.about__badge-caption {
    font-size: 13.5px;
    color: var(--charcoal);
    opacity: 0.75;
    line-height: 1.5;
}
@media (max-width: 880px) {
    .about__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== CTA strip ===== */
.cta-strip {
    background: var(--pine);
    color: var(--ivory);
    padding: 64px 0;
}
.cta-strip__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-strip__copy { flex: 1; min-width: 280px; }
.cta-strip__heading {
    color: var(--ivory);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 8px;
}
.cta-strip__body {
    color: var(--sage-soft);
    font-size: 16px;
    max-width: 50ch;
}
.cta-strip__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-strip__phone {
    color: var(--ivory);
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-bottom: 2px solid var(--honey);
    padding-bottom: 2px;
}
.cta-strip__phone:hover { color: var(--honey); }

/* ===== Generic page ===== */
.generic-page { padding: 140px 0 80px; background: var(--ivory); }
.generic-page__inner { max-width: 760px; margin: 0 auto; }
.generic-page__header { margin-bottom: 32px; }
.generic-page__body p { margin-bottom: 16px; line-height: 1.7; }

/* ===== Services page ===== */
.page-services {
    background: var(--ivory);
    padding-top: clamp(120px, 14vw, 160px);
}

.services-detail__item {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}
.services-detail__item:last-child { border-bottom: none; }
.services-detail__item--alt {
    background: var(--ivory-warm);
}
.services-detail__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
}
.services-detail__photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ivory-warm);
    margin: 0;
}
.services-detail__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.services-detail__photo--empty {
    background: linear-gradient(135deg, var(--sage-soft), var(--ivory-warm));
}
.services-detail__head h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-top: 4px;
}
.services-detail__long {
    font-size: 17px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 22px;
}
.services-detail__jobs-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--honey-deep);
    margin-bottom: 10px;
}
.services-detail__jobs {
    list-style: none;
    margin-bottom: 22px;
}
.services-detail__jobs li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 15.5px;
    color: var(--charcoal);
}
.services-detail__jobs li::before {
    content: "";
    position: absolute;
    left: 0; top: 14px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sage);
}
.services-detail__cta {
    font-weight: 600;
    color: var(--honey-deep);
}
.services-detail__cta:hover { color: var(--pine); }

/* On even rows (alt background), reverse the photo/text order. */
.services-detail__item--alt .services-detail__inner {
    direction: rtl;
}
.services-detail__item--alt .services-detail__inner > * {
    direction: ltr;
}
@media (max-width: 880px) {
    .services-detail__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        direction: ltr !important;
    }
}

/* ===== Gallery page ===== */
.page-gallery {
    background: var(--ivory);
    padding-top: clamp(120px, 14vw, 160px);
}
.page-gallery__empty {
    text-align: center;
    color: var(--charcoal);
    opacity: 0.6;
    font-style: italic;
    padding: 60px 0;
}
.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}
.gallery-filters__chip {
    background: transparent;
    color: var(--pine);
    border: 1.5px solid var(--line);
    padding: 8px 18px;
    border-radius: 999px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.gallery-filters__chip:hover {
    border-color: var(--honey);
    color: var(--honey-deep);
}
.gallery-filters__chip--active {
    background: var(--pine);
    color: var(--ivory);
    border-color: var(--pine);
}
.gallery-filters__chip--active:hover {
    background: var(--pine-soft);
    color: var(--ivory);
}

.gallery-grid {
    column-count: 3;
    column-gap: 14px;
}
@media (max-width: 880px) { .gallery-grid { column-count: 2; } }
@media (max-width: 520px) { .gallery-grid { column-count: 1; } }

.gallery-grid__item {
    display: block;
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--ivory-warm);
    transition: opacity var(--t-mid);
}
.gallery-grid__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--t-mid);
}
.gallery-grid__item:hover img { transform: scale(1.03); }
.gallery-grid__caption {
    position: absolute;
    left: 12px; bottom: 12px;
    background: rgba(23, 48, 40, 0.78);
    color: var(--ivory);
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    backdrop-filter: blur(6px);
}
.gallery-grid__item.is-hidden {
    display: none;
}

/* ===== Contact page ===== */
.page-contact {
    background: var(--ivory);
    padding-top: clamp(120px, 14vw, 160px);
}
.page-contact__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.page-contact__info {
    background: var(--ivory-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.page-contact__row { margin-bottom: 22px; }
.page-contact__row h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--honey-deep);
    margin-bottom: 6px;
}
.page-contact__phone {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--pine);
}
.page-contact__phone:hover { color: var(--honey-deep); }
.page-contact__sitewise {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.page-contact__form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    min-height: 320px;
}
.page-contact__form-placeholder {
    text-align: center;
    padding: 60px 24px;
    color: var(--charcoal);
}
.page-contact__form-placeholder p { margin-bottom: 12px; }
.page-contact__form-placeholder strong { color: var(--pine); font-family: 'Roboto Slab', serif; }

@media (max-width: 880px) {
    .page-contact__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== FAQ accordion ===== */
.faq { background: var(--ivory-warm); }
.faq__inner { max-width: 820px; }
.faq__header { margin-bottom: 40px; }
.faq__list {
    border-top: 1px solid var(--line);
}
.faq__item {
    border-bottom: 1px solid var(--line);
}
.faq__q {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 700;
    color: var(--pine);
    transition: color var(--t-fast);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--honey-deep); }
.faq__chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--pine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400;
    transition: transform var(--t-mid), background var(--t-fast);
}
.faq__item[open] .faq__chevron {
    transform: rotate(45deg);
    background: var(--honey);
}
.faq__a {
    padding: 0 0 24px;
    color: var(--charcoal);
    font-size: 16px;
    line-height: 1.7;
    max-width: 60ch;
}
