/* =========================================
   Design System — Jason Tarinelli Electrical
   ========================================= */

:root {
    --color-surface: #FAFAF7;
    --color-surface-alt: #F3F1EC;
    --color-ink: #1A1A1D;
    --color-ink-muted: #5C5C60;
    --color-ink-faint: #9C9CA0;
    --color-accent: #B08D57;
    --color-accent-dark: #9A7A48;
    --color-white: #FFFFFF;
    --color-border: rgba(26, 26, 29, 0.06);
    --color-border-md: rgba(26, 26, 29, 0.10);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --transition: 180ms ease;
}

/* =========================================
   Base
   ========================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Typography — clamp-based responsive
   ========================================= */

.hero-heading {
    font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
}

/* =========================================
   Hero
   ========================================= */

.hero-section {
    isolation: isolate;
}

.hero-video-layer {
    z-index: 0;
}

.hero-video-layer video {
    transform: scale(1.02);
    filter: brightness(0.72) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Stronger base so busy panels / light wires never wash out type */
    background:
        linear-gradient(
            115deg,
            rgba(6, 7, 10, 0.94) 0%,
            rgba(6, 7, 10, 0.78) 38%,
            rgba(6, 7, 10, 0.62) 58%,
            rgba(6, 7, 10, 0.72) 100%
        );
}

@media (min-width: 1024px) {
    /* Darker scrim on the copy side so type and CTAs read clearly on busy footage */
    .hero-overlay {
        background:
            linear-gradient(
                105deg,
                rgba(4, 5, 8, 0.9) 0%,
                rgba(4, 5, 8, 0.82) 32%,
                rgba(6, 7, 10, 0.68) 48%,
                rgba(6, 7, 10, 0.52) 62%,
                rgba(6, 7, 10, 0.58) 100%
            );
    }
}

/* Copy column: layout only; contrast comes from hero overlay + title shadow */
.hero-copy-panel {
    max-width: none;
    padding: clamp(0.5rem, 2vw, 0.75rem) 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Editorial stack: eyebrow → rule → headline / body / trust + CTAs */
.hero-copy-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 1.5rem);
    max-width: min(40rem, 100%);
}

.hero-copy-top {
    display: flex;
    flex-direction: column;
    gap: clamp(0.65rem, 2vw, 0.95rem);
}

.hero-rule {
    display: block;
    width: 2.75rem;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(176, 141, 87, 0.15) 100%);
}

.hero-copy-panel h1.hero-heading {
    margin: 0;
    line-height: 1.03;
}

.hero-heading-line {
    display: block;
}

.hero-heading-line + .hero-heading-line {
    margin-top: 0.22em;
}

.hero-heading-line:first-of-type {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Second line: supporting tagline, slightly quieter than the title */
.hero-heading-tagline {
    font-weight: 400;
    font-size: clamp(1.5rem, 3.2vw + 0.4rem, 2.35rem);
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.88);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 3px 18px rgba(0, 0, 0, 0.35);
}

.hero-copy-mid {
    padding-top: clamp(0.85rem, 2.5vw, 1.25rem);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-copy-mid .hero-lede {
    margin: 0;
    max-width: 38rem;
    line-height: 1.65;
    text-wrap: pretty;
}

.hero-content-wrap {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
}

.hero-copy-bottom {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.35rem);
    padding-top: clamp(0.85rem, 2.5vw, 1.2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* —— Mobile hero: frosted action panel + stacked CTAs —— */
@media (max-width: 1023px) {
    .hero-copy-layout {
        gap: clamp(1.1rem, 4vw, 1.45rem);
        max-width: 100%;
    }

    .hero-copy-mid {
        padding-top: 1rem;
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .hero-copy-mid .hero-lede {
        line-height: 1.62;
    }

    .hero-heading-tagline {
        font-style: italic;
        letter-spacing: 0.04em;
    }

    .hero-copy-bottom {
        border-top: none;
        padding-top: 0.35rem;
        gap: 0;
    }

    .hero-actions-panel {
        display: flex;
        flex-direction: column;
        gap: 1.15rem;
        padding: 1.2rem 1.1rem 1.25rem;
        background: rgba(12, 13, 16, 0.55);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius-lg);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    }

    .hero-trust-row {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        max-width: none;
        padding: 0;
        border: none;
    }

    .hero-trust-row li {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.65rem 0;
        margin: 0;
        font-size: 0.8125rem;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.88);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero-trust-row li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-trust-row li:first-child {
        padding-top: 0;
    }

    .hero-trust-dot {
        flex-shrink: 0;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--color-accent);
        opacity: 0.9;
        box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
    }

    .hero-cta-stack {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-cta-phone {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-cta-quote {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-text-link--footer {
        display: block;
        text-align: center;
        padding-top: 0.15rem;
    }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
    .hero-actions-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* —— Desktop / large tablet: flat layout, horizontal trust + row CTAs —— */
@media (min-width: 1024px) {
    .hero-copy-layout {
        gap: 1.35rem;
        max-width: min(42rem, 100%);
    }

    .hero-copy-top {
        gap: 0.85rem;
    }

    .hero-copy-mid {
        padding-top: 1.35rem;
        border-top-color: rgba(255, 255, 255, 0.16);
    }

    .hero-copy-mid .hero-lede {
        font-size: 1.0625rem;
        line-height: 1.68;
        color: rgba(255, 255, 255, 0.96);
        text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
    }

    .hero-copy-panel .hero-eyebrow {
        color: rgba(255, 255, 255, 0.92);
    }

    .hero-heading-tagline {
        color: rgba(255, 255, 255, 0.93);
    }

    .hero-actions-panel {
        display: contents;
    }

    .hero-copy-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-top: 1.5rem;
        gap: 1.65rem;
    }

    .hero-copy-panel .hero-trust {
        color: rgba(255, 255, 255, 0.94);
    }

    .hero-trust-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        margin: 0;
        max-width: 100%;
        border-left: 3px solid var(--color-accent);
        padding: 0.5rem 0 0.5rem 1.15rem;
    }

    .hero-trust-row li {
        display: flex;
        align-items: center;
        padding: 0.25rem 0;
        margin: 0;
        font-size: 0.8125rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        line-height: 1.3;
    }

    .hero-trust-row li:not(:first-child) {
        padding-left: 1.15rem;
        margin-left: 1.15rem;
        border-left: 1px solid rgba(176, 141, 87, 0.55);
    }

    .hero-trust-dot {
        display: none;
    }

    .hero-cta-stack {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 1.25rem;
    }

    .hero-cta-phone {
        width: auto;
        justify-content: center;
        min-height: 48px;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        background: rgba(255, 255, 255, 0.96);
        color: var(--color-ink);
        border: 1px solid rgba(255, 255, 255, 0.98);
        font-weight: 600;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    }

    .hero-cta-phone:hover {
        background: #fff;
        color: var(--color-ink);
        border-color: #fff;
    }

    @media (prefers-reduced-motion: no-preference) {
        .hero-cta-phone:hover {
            transform: translateY(-1px);
        }
    }

    /* Secondary CTA: pill outline — reads as a button, not faint link text */
    .hero-text-link.hero-text-link--footer {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 1.4rem;
        border: 1px solid rgba(255, 255, 255, 0.48);
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: rgba(255, 255, 255, 0.96);
        text-decoration: none;
        text-underline-offset: unset;
        font-weight: 500;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
        transition:
            background var(--transition),
            border-color var(--transition),
            color var(--transition),
            box-shadow var(--transition);
    }

    .hero-text-link.hero-text-link--footer:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.65);
        color: #fff;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .hero-quote-card {
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.06),
            0 28px 56px rgba(0, 0, 0, 0.14),
            0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    }
}

.hero-copy-panel .hero-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.hero-copy-panel .hero-lede {
    color: rgba(255, 255, 255, 0.9);
}

.hero-copy-panel .hero-trust {
    color: rgba(255, 255, 255, 0.82);
}

.hero-title-shadow {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-text-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition), text-decoration-color var(--transition);
}

.hero-text-link:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.65);
}

/* Phone CTA: readable on darkened hero video */
.btn-hero-phone {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-trust {
    list-style: none;
    margin: 0;
}

.hero-quote-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    padding: 28px 24px 26px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    max-width: 420px;
}

@media (min-width: 1024px) {
    .hero-quote-card {
        padding: 32px 28px 30px;
        max-width: none;
    }
}

.hero-card-brand {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.hero-quote-form .form-label {
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.hero-quote-form .form-input {
    padding: 12px 14px;
    min-height: 44px;
    font-size: 0.9375rem;
}

.hero-quote-form .form-textarea {
    min-height: 88px;
    padding-top: 12px;
}

/* =========================================
   About
   ========================================= */

.about-header {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.about-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 0.75rem;
}

.about-header h2 {
    margin: 0;
    letter-spacing: -0.02em;
}

.about-header-rule {
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.about-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
        gap: clamp(2.5rem, 4vw, 4rem);
    }
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.about-block {
    position: relative;
    padding-left: 0;
}

@media (min-width: 768px) {
    .about-block {
        padding-left: 1.25rem;
        border-left: 2px solid rgba(176, 141, 87, 0.35);
    }
}

.about-block-title {
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.about-block-body p {
    margin: 0;
    max-width: 42rem;
}

.about-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem 1rem;
    }
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.about-stat:hover {
    border-color: var(--color-border-md);
    box-shadow: var(--shadow-sm);
}

.about-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-ink-faint);
}

.about-stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-ink);
    line-height: 1.25;
}

.about-stat-value--wrap {
    font-size: 0.9375rem;
    line-height: 1.35;
}

.about-figure-wrap {
    margin: 0;
}

.about-figure {
    position: relative;
    border-radius: calc(var(--radius-lg) + 4px);
    padding: 3px;
    background: linear-gradient(
        145deg,
        rgba(176, 141, 87, 0.45) 0%,
        rgba(176, 141, 87, 0.12) 40%,
        rgba(26, 26, 29, 0.08) 100%
    );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.about-figure::after {
    content: '';
    position: absolute;
    width: 4rem;
    height: 4rem;
    border-top: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    top: 1rem;
    right: 1rem;
    opacity: 0.5;
    pointer-events: none;
    border-radius: 0 4px 0 0;
}

.about-figure-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-ink);
}

.about-figure-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .about-figure:hover .about-figure-img {
        transform: scale(1.03);
    }
}

@media (max-width: 767px) {
    .about-figure::after {
        display: none;
    }
}

.about-why {
    margin-top: clamp(3rem, 8vw, 5rem);
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    border-top: 1px solid var(--color-border-md);
}

.about-why-head {
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.about-why-head h3 {
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}

.about-why-rule {
    display: block;
    width: 2.5rem;
    height: 2px;
    margin: 0 auto;
    background: var(--color-accent);
    border-radius: 1px;
    opacity: 0.85;
}

.about-why-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .about-why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.about-why-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem 1.6rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.about-why-card:hover {
    border-color: rgba(176, 141, 87, 0.25);
    box-shadow: var(--shadow-md);
}

.about-why-accent {
    width: 2.25rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-why-card-title {
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.about-why-card-text {
    margin: 0;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--color-ink);
    border: 1px solid var(--color-border-md);
}

.btn-ghost:hover {
    border-color: var(--color-ink);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Navigation — Mobile-first
   ========================================= */

.nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 24px 20px 32px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 220ms ease, opacity 180ms ease;
    z-index: 40;
    box-shadow: var(--shadow-md);
}

.nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-ink-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--color-ink);
    background: rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .nav-menu {
        position: static;
        transform: none;
        opacity: 1;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.8125rem;
        letter-spacing: 0.02em;
        min-height: auto;
    }
}

/* Hamburger Toggle */
.nav-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--color-ink);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================
   Services section
   ========================================= */

.services-header {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.services-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 0.75rem;
}

.services-header h2 {
    margin: 0;
    letter-spacing: -0.02em;
}

.services-header-rule {
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.services-carousel-wrap {
    align-items: stretch;
}

/* =========================================
   Service Cards
   ========================================= */

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    padding: 1.5rem 1.35rem 1.6rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) + 2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition:
        box-shadow var(--transition),
        border-color var(--transition),
        transform var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        rgba(176, 141, 87, 0.35) 55%,
        transparent 100%
    );
    opacity: 0.85;
    pointer-events: none;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(176, 141, 87, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card:hover {
        transform: translateY(-2px);
    }
}

.service-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.service-card-index {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.2rem 0.45rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--color-accent-dark);
    border: 1px solid rgba(176, 141, 87, 0.45);
    border-radius: var(--radius-sm);
    background: rgba(176, 141, 87, 0.06);
}

.service-card-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(176, 141, 87, 0.35) 0%,
        var(--color-border) 100%
    );
    min-width: 1rem;
}

.service-card-title {
    margin: 0 0 0.65rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.service-card-desc {
    margin: 0;
    flex-grow: 1;
    max-width: 32rem;
}

/* =========================================
   Album Cards
   ========================================= */

.album-card {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}

.album-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.album-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.album-card:hover .album-image img {
    transform: scale(1.03);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity var(--transition);
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-count {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* =========================================
   Carousel — Mobile Scroll-Snap
   ========================================= */

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 88vw;
    scroll-snap-align: start;
    min-width: 0;
}

@media (min-width: 640px) {
    .carousel-item {
        flex: 0 0 72vw;
    }
}

@media (min-width: 768px) {
    .carousel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow: visible;
        scroll-snap-type: none;
        gap: 24px;
    }

    .carousel-item {
        flex: none;
    }
}

@media (min-width: 1024px) {
    #services-carousel {
        grid-template-columns: repeat(3, 1fr);
    }

    #projects-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   Pagination Dots
   ========================================= */

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border-md);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.is-active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .carousel-dots {
        display: none;
    }
}

/* =========================================
   Lightbox
   ========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
}

.lightbox.is-open {
    pointer-events: auto;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-shrink: 0;
}

.lightbox-close {
    color: white;
    opacity: 0.7;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity var(--transition), background var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
    padding: 0 16px;
}

.lightbox-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    padding: 0 48px;
    min-height: 0;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    opacity: 0.6;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: opacity var(--transition), background var(--transition);
    z-index: 2;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev-btn {
    left: 8px;
}

.lightbox-next-btn {
    right: 8px;
}

@media (min-width: 768px) {
    .lightbox-prev-btn {
        left: 24px;
    }
    .lightbox-next-btn {
        right: 24px;
    }
    .lightbox-image-wrap {
        padding: 0 72px;
    }
}

.lightbox-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px 20px 24px;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: none;
    flex-shrink: 0;
}

.lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    flex: 0 0 56px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.4;
    transition: opacity var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.lightbox-thumb:hover {
    opacity: 0.7;
}

.lightbox-thumb.is-active {
    opacity: 1;
    border-color: var(--color-accent);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Contact
   ========================================= */

.contact-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.contact-header {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.contact-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 0.75rem;
}

.contact-header h2 {
    margin: 0;
    letter-spacing: -0.02em;
}

.contact-header-rule {
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.contact-layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
    }
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-aside-kicker {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-ink-faint);
    text-align: center;
}

@media (min-width: 1024px) {
    .contact-aside-kicker {
        text-align: left;
    }
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem 1.1rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) + 2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        rgba(176, 141, 87, 0.35) 50%,
        transparent 100%
    );
    opacity: 0.9;
    pointer-events: none;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(176, 141, 87, 0.2);
}

.contact-info-card .contact-info-label {
    margin-bottom: 0.55rem;
}

.contact-info-card .contact-info-value {
    flex-grow: 1;
}

.contact-panel {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) + 2px);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, var(--shadow-sm);
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        rgba(176, 141, 87, 0.35) 50%,
        transparent 100%
    );
    opacity: 0.9;
    pointer-events: none;
}

.contact-info-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-ink-faint);
    margin-bottom: 0.4rem;
}

.contact-info-value {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-ink-muted);
    line-height: 1.5;
}

a.contact-info-value {
    text-decoration: none;
    transition: color var(--transition);
}

a.contact-info-value:hover {
    color: var(--color-accent-dark);
}

.contact-info-value--phone {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    line-height: 1.2;
}

.contact-info-value--multiline {
    line-height: 1.55;
}

.contact-info-value--break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-social {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .contact-social-links {
        justify-content: flex-start;
    }
}

.contact-social-btn.social-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    border-color: var(--color-border);
}

.contact-social-btn.social-icon:hover {
    background: var(--color-white);
}

.contact-form-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.contact-form-title {
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.contact-form-head-line {
    display: block;
    width: 2.5rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    opacity: 0.85;
}

.contact-form-fields {
    margin: 0;
}

.contact-form-success {
    margin-top: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(176, 141, 87, 0.1);
    border: 1px solid rgba(176, 141, 87, 0.22);
}

.contact-form-success p {
    margin: 0;
}

.contact-form-success p + p {
    margin-top: 0.5rem;
}

/* =========================================
   Form
   ========================================= */

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--color-ink);
    background: var(--color-white);
    border: 1px solid var(--color-border-md);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 48px;
}

.form-input::placeholder {
    color: var(--color-ink-faint);
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

/* =========================================
   Social Icons
   ========================================= */

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border-md);
    color: var(--color-ink-muted);
    transition: color var(--transition), border-color var(--transition);
}

.social-icon:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* =========================================
   Terms
   ========================================= */

.terms-section {
    background: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
}

.terms-header {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.terms-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 0.75rem;
}

.terms-header h2 {
    margin: 0;
    letter-spacing: -0.02em;
}

.terms-header-rule {
    display: block;
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.terms-panels {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .terms-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        align-items: stretch;
    }
}

.terms-panel {
    position: relative;
    margin: 0;
    padding: 1.5rem 1.35rem 1.6rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) + 2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.terms-panel:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(176, 141, 87, 0.18);
}

.terms-panel-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-accent) 0%,
        rgba(176, 141, 87, 0.35) 55%,
        transparent 100%
    );
    opacity: 0.9;
    pointer-events: none;
}

.terms-panel-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-ink-muted);
}

@media (min-width: 768px) {
    .terms-panel-text {
        font-size: 0.9375rem;
    }
}

.terms-link {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(176, 141, 87, 0.45);
    transition: color var(--transition), text-decoration-color var(--transition);
}

.terms-link:hover {
    color: var(--color-ink);
    text-decoration-color: var(--color-accent);
}

/* =========================================
   Footer
   ========================================= */

/* Natural-color logo; brightness-0 + invert was turning the artwork into a flat gray block */
.footer-brand-logo {
    display: block;
    max-height: 3rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.footer-brand-text p {
    margin: 0;
}

/* =========================================
   Scroll Reveal Animation
   ========================================= */

.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Utility
   ========================================= */

body.no-scroll {
    overflow: hidden;
}
