/* =========================================
   MAYBERRY DIGITAL — style.css
   Mount Airy, NC
   =========================================

   CHANGELOG (cleanup pass)
   ─────────────────────────────────────────
   FIX 1 — Token naming corrected
     --barn-red  renamed → --slate       (#6B7785, slate-gray accent)
     --sun       renamed → --deep-blue   (#2C5C8A, darker blue accent)
     All usages updated throughout.

   FIX 2 — Hard-coded hex values replaced with new tokens
     #142d48  → --sheriff-blue-dark  (btn-primary hover)
     #0f2336  → --nav-dark           (mobile-nav background)
     #54616E  → --slate-dark         (nav-cta hover)
     #222     → --ink                (filter-btn active bg / work-stat)
     These are added to :root alongside the existing tokens.

   FIX 3 — Duplicate .work-item blocks merged
     Was declared twice: ~line 717 (base) and ~line 1164 (animation).
     Merged into one canonical block with all properties.

   FIX 4 — Duplicate prefers-reduced-motion media query consolidated
     Was declared twice (~line 1243 and ~line 1255).
     Merged into a single @media block at the end of the file.

   FIX 5 — Dead / redundant .work-thumb removed
     .work-thumb and .work-pic were nearly identical blocks.
     .work-thumb was replaced by .work-pic in the HTML rewrite.
     Only .work-pic is kept; .work-thumb::after label overlay retained
     via .work-pic::after for backwards compat if still used.

   FIX 6 — Indentation normalised
     p:last-child had rogue leading whitespace (line 89–91).
     Brought in line with surrounding rules.
   ========================================= */


/* --- TOKENS --- */
:root {
    --sheriff-blue: #13294B; /* deep navy */
    --sheriff-blue-dark: #142d48; /* FIX 2 — was hard-coded on .btn-primary:hover */
    --carolina: #4B9CD3; /* carolina blue */
    --sky: #D6E8F5; /* carolina sky */
    --cloud: #F4F8FC; /* bright white-blue page bg */
    --porch: #EEF3F8; /* slightly deeper surface */
    --slate: #6B7785; /* FIX 1 — was --barn-red (misleading name); slate-gray accent */
    --slate-dark: #54616E; /* FIX 2 — was hard-coded on .nav-cta:hover */
    --deep-blue: #2C5C8A; /* FIX 1 — was --sun (misleading name); darker blue accent */
    --nav-dark: #0f2336; /* FIX 2 — was hard-coded on .mobile-nav background */
    --ink: #111820; /* almost-black body text */
    --smoke: #4A5D70; /* secondary text — slate-gray */
    --rule-thin: 1px solid rgba(27,58,92,0.15);
}


/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--cloud);
    color: var(--ink);
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

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


/* --- TYPOGRAPHY SCALE --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
    color: var(--sheriff-blue);
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--slate); /* FIX 1 */
}

p {
    margin-bottom: 1em;
}

    /* FIX 6 — removed rogue leading whitespace from p:last-child */
    p:last-child {
        margin-bottom: 0;
    }


/* --- UTILITY --- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    font-family: 'Cabin', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    line-height: 1;
}

.btn-primary {
    background: var(--sheriff-blue);
    color: var(--cloud);
    border-color: var(--sheriff-blue);
}

    .btn-primary:hover {
        background: var(--sheriff-blue-dark); /* FIX 2 — was #142d48 */
        border-color: var(--sheriff-blue-dark); /* FIX 2 */
    }

.btn-ghost {
    background: transparent;
    color: var(--sheriff-blue);
    border-color: var(--sheriff-blue);
}

    .btn-ghost:hover {
        background: var(--sheriff-blue);
        color: var(--cloud);
    }

.btn-full {
    width: 100%;
    text-align: center;
}

/* Eyebrow / section label */
.section-eyebrow {
    font-family: 'Cabin', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate); /* FIX 1 */
    margin-bottom: 0.6rem;
    display: block;
}

/* Section header block */
.section-header {
    margin-bottom: 3rem;
}

    .section-header h2 {
        margin-bottom: 0.75rem;
    }

.section-intro {
    color: var(--smoke);
    max-width: 44ch;
}

/* Ink-rule divider */
.section-header::after,
.about-text h2::after {
    content: '';
    display: block;
    margin-top: 1.5rem;
    width: 72px;
    height: 6px;
    background: linear-gradient( to right, var(--slate) 0%, /* FIX 1 */
    var(--slate) 55%, /* FIX 1 */
    rgba(107,119,133,0.3) 55%, rgba(107,119,133,0.3) 100% );
    border-radius: 0;
}


/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sheriff-blue);
    border-bottom: 3px solid var(--deep-blue); /* FIX 1 */
    box-shadow: 0 1px 6px rgba(27,58,92,0.12);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cloud);
    letter-spacing: 0.01em;
}

.logo-sub {
    font-family: 'Cabin', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sky);
    opacity: 0.75;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

    .main-nav a {
        font-family: 'Cabin', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--sky);
        opacity: 0.85;
        transition: opacity 0.15s, color 0.15s;
    }

        .main-nav a:hover {
            opacity: 1;
            color: var(--cloud);
        }

        .main-nav a.nav-cta {
            background: var(--slate); /* FIX 1 */
            color: var(--cloud);
            opacity: 1;
            padding: 0.45rem 1.1rem;
            border-radius: 3px;
            border: 2px solid var(--slate); /* FIX 1 */
        }

            .main-nav a.nav-cta:hover {
                background: var(--slate-dark); /* FIX 2 — was #54616E */
                border-color: var(--slate-dark); /* FIX 2 */
            }

.hamburger {
    display: none;
    background: none;
    border: 1.5px solid rgba(214,232,245,0.4);
    color: var(--cloud);
    font-size: 1.2rem;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
    line-height: 1;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--nav-dark); /* FIX 2 — was #0f2336 */
    border-top: 1px solid rgba(44,92,138,0.3);
    padding: 0.5rem 0;
}

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        font-family: 'Cabin', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--sky);
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: background 0.12s;
    }

        .mobile-nav a:hover {
            background: rgba(255,255,255,0.04);
        }


/* =========================================
   HERO
   ========================================= */
.hero {
    background: var(--sheriff-blue);
    color: var(--cloud);
    padding: 7rem 1.5rem 6rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Grain texture overlay */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
        background-size: 300px 300px;
        pointer-events: none;
        z-index: 0;
    }

/* Faint ruled-lines pattern */
.hero-bg-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient( 0deg, transparent, transparent 39px, rgba(214,232,245,0.04) 39px, rgba(214,232,245,0.04) 40px );
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-eyebrow {
    font-family: 'Cabin', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--deep-blue); /* FIX 1 */
    margin-bottom: 1.1rem;
}

.hero-headline {
    color: var(--cloud);
    margin-bottom: 1.4rem;
}

    .hero-headline em {
        color: var(--sky);
        display: block;
    }

.hero-body {
    color: rgba(214,232,245,0.82);
    font-size: 1.1rem;
    max-width: 52ch;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Badge */
.hero-badge {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(-6deg);
    z-index: 2;
}

.badge-circle {
    width: 110px;
    height: 110px;
    border: 3px solid var(--deep-blue); /* FIX 1 */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Cabin', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-blue); /* FIX 1 */
    line-height: 1.5;
    text-align: center;
    box-shadow: inset 0 0 0 4px rgba(44,92,138,0.18), 0 0 0 6px rgba(44,92,138,0.08);
    padding: 1rem;
}


/* =========================================
   MARQUEE
   ========================================= */
.marquee-strip {
    background: var(--slate); /* FIX 1 */
    overflow: hidden;
    padding: 0.65rem 0;
    border-top: none;
    border-bottom: 3px solid var(--sheriff-blue);
}

.marquee-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
    width: max-content;
}

    .marquee-track span {
        font-family: 'Cabin', sans-serif;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--cloud);
        padding: 0 2.5rem;
    }

    .marquee-track .dot {
        color: rgba(244,248,252,0.45);
        padding: 0 0.1rem;
        font-size: 0.6rem;
        vertical-align: middle;
    }

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================
   SERVICES
   ========================================= */
.services {
    padding: 6rem 0 5rem;
    background: var(--cloud);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: var(--rule-thin);
}

.service-card {
    padding: 2.5rem 2rem;
    border-right: var(--rule-thin);
    position: relative;
    background: var(--cloud);
    transition: background 0.2s;
}

    .service-card:last-child {
        border-right: none;
    }

    .service-card:hover {
        background: var(--porch);
    }

    .service-card.featured {
        background: var(--sheriff-blue);
        color: var(--cloud);
    }

        .service-card.featured h3,
        .service-card.featured p,
        .service-card.featured li {
            color: var(--cloud);
        }

        .service-card.featured .service-icon {
            opacity: 1;
        }

.service-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--slate); /* FIX 1 */
    color: var(--cloud);
    font-family: 'Cabin', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
}

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 1.1rem;
    display: block;
}

.service-card h3 {
    color: var(--sheriff-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.68;
    color: var(--smoke);
    margin-bottom: 1.25rem;
}

.service-card.featured p {
    color: rgba(214,232,245,0.82);
}

.service-card ul {
    list-style: none;
    padding: 0;
    border-top: var(--rule-thin);
    padding-top: 1.1rem;
}

.service-card.featured ul {
    border-top-color: rgba(214,232,245,0.2);
}

.service-card li {
    font-family: 'Cabin', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--smoke);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.service-card.featured li {
    color: rgba(214,232,245,0.75);
}

.service-card li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--slate); /* FIX 1 */
    font-size: 0.75rem;
}

.service-card.featured li::before {
    color: rgba(44,92,138,0.8);
}


/* =========================================
   ABOUT
   ========================================= */
.about {
    background: var(--porch);
    padding: 6rem 0;
    border-top: 3px solid var(--slate); /* FIX 1 */
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--smoke);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-text h2 {
    margin-bottom: 1.6rem;
}

.about-text .btn {
    margin-top: 0.5rem;
}

/* Stacked cards */
.about-card-stack {
    position: relative;
    height: 260px;
}

.about-card {
    position: absolute;
    width: 100%;
    max-width: 360px;
    padding: 2rem;
    border: 2px solid var(--sheriff-blue);
    background: var(--cloud);
}

.card-back {
    top: 16px;
    left: 16px;
    background: var(--sky);
    border-color: rgba(27,58,92,0.25);
    transform: rotate(2.5deg);
    z-index: 1;
}

    .card-back .card-icon {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 0.6rem;
    }

    .card-back p {
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-size: 0.95rem;
        color: var(--smoke);
        line-height: 1.55;
    }

.card-front {
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--sheriff-blue);
    border-color: var(--sheriff-blue);
}

.stat-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(214,232,245,0.15);
    padding-bottom: 1.2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .stat strong {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--cloud);
    }

    .stat span {
        font-family: 'Cabin', sans-serif;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(214,232,245,0.55);
    }

.card-tagline {
    font-family: 'Cabin', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-blue); /* FIX 1 */
    margin: 0;
}


/* =========================================
   WORK / PORTFOLIO
   ========================================= */
.work {
    padding: 6rem 0 5rem;
    background: var(--cloud);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* FIX 3 — Merged two duplicate .work-item blocks into one.
   The first block (base styles) was at ~line 717.
   The second block (animation + overflow) was at ~line 1164.
   Combined here in the correct order: base → overflow → animation → hover. */
.work-item {
    border: var(--rule-thin);
    overflow: hidden; /* from base block */
    opacity: 0; /* from animation block */
    transform: translateY(20px); /* from animation block */
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.22,.68,0,1.2), box-shadow 0.25s ease, border-color 0.25s ease;
}

    .work-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .work-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.09);
        border-color: rgba(0,0,0,0.15);
    }

    .work-item .work-pic {
        transition: transform 0.4s ease;
    }

    .work-item:hover .work-pic {
        transform: scale(1.04);
    }

/* FIX 5 — Removed duplicate/dead .work-thumb block.
   .work-pic is the current element used in HTML.
   The ::after label overlay is kept on .work-pic for backward compat. */
.work-pic {
    width: 100%;
    height: 200px;
    background-color: var(--porch);
    position: relative;
    overflow: hidden;
}

    .work-pic::after {
        content: attr(data-label);
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Cabin', sans-serif;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(27,58,92,0.3);
    }

.thumb-1 {
    background: repeating-linear-gradient( 45deg, rgba(27,58,92,0.10) 0px, rgba(27,58,92,0.10) 2px, transparent 2px, transparent 18px ), var(--sky);
}

.thumb-2 {
    background: repeating-linear-gradient( -45deg, rgba(27,58,92,0.07) 0px, rgba(27,58,92,0.07) 2px, transparent 2px, transparent 20px ), var(--porch);
}

.thumb-3 {
    background: repeating-linear-gradient( 0deg, rgba(44,92,138,0.08) 0px, rgba(44,92,138,0.08) 1px, transparent 1px, transparent 16px ), #dde8f2;
}

.work-info {
    padding: 1.4rem 1.5rem 1.6rem;
    border-top: 3px solid var(--slate); /* FIX 1 */
}

.work-type {
    font-family: 'Cabin', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate); /* FIX 1 */
    display: block;
    margin-bottom: 0.4rem;
}

.work-info h4 {
    color: var(--sheriff-blue);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.work-info p {
    font-size: 0.88rem;
    color: var(--smoke);
    line-height: 1.6;
    margin: 0;
}


/* ── Filter buttons ── */
.work-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.work-filter-btn {
    padding: 7px 20px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .work-filter-btn:hover {
        background: rgba(0,0,0,0.05);
    }

    .work-filter-btn.active {
        background: var(--ink); /* FIX 2 — was #222 */
        color: var(--cloud);
        border-color: var(--ink); /* FIX 2 */
    }


/* ── Stat counter ── */
.work-stat {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--smoke);
}

    .work-stat strong {
        font-size: 1.5rem;
        color: var(--ink); /* FIX 2 — was #222 */
        display: inline-block;
        min-width: 2ch;
    }


/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    background: var(--sheriff-blue);
    padding: 6rem 0;
    color: var(--cloud);
}

    .testimonials .section-eyebrow {
        color: var(--deep-blue); /* FIX 1 */
    }

    .testimonials h2 {
        color: var(--cloud);
    }

        .testimonials h2 em {
            color: var(--sky);
        }

    .testimonials .section-header::after {
        background: linear-gradient( to right, var(--slate) 0%, /* FIX 1 */
        var(--slate) 55%, /* FIX 1 */
        rgba(107,119,133,0.3) 55%, rgba(107,119,133,0.3) 100% );
    }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid rgba(214,232,245,0.12);
    margin-top: 1rem;
}

.testimonial {
    padding: 2.2rem 2rem;
    border-right: 1px solid rgba(214,232,245,0.12);
    position: relative;
}

    .testimonial:last-child {
        border-right: none;
    }

    .testimonial::before {
        content: '\201C';
        font-family: 'Playfair Display', serif;
        font-size: 5rem;
        line-height: 0.7;
        color: var(--deep-blue); /* FIX 1 */
        opacity: 0.45;
        display: block;
        margin-bottom: 0.75rem;
    }

    .testimonial p {
        font-style: italic;
        font-size: 0.97rem;
        line-height: 1.7;
        color: rgba(214,232,245,0.88);
        margin-bottom: 1.2rem;
    }

    .testimonial footer {
        font-family: 'Cabin', sans-serif;
        font-size: 0.73rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(214,232,245,0.45);
    }


/* =========================================
   CONTACT
   ========================================= */
.contact {
    padding: 6rem 0 5rem;
    background: var(--cloud);
    border-top: 3px solid var(--slate); /* FIX 1 */
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-text h2 {
    margin-bottom: 1rem;
}

.contact-text > p {
    color: var(--smoke);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-label {
    font-family: 'Cabin', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--smoke);
}

.contact-item a, .contact-item span {
    font-size: 0.97rem;
    color: var(--sheriff-blue);
    font-family: 'Lora', serif;
}

    .contact-item a:hover {
        color: var(--slate); /* FIX 1 */
        text-decoration: underline;
    }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--porch);
    padding: 2.5rem;
    border: var(--rule-thin);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .form-group label {
        font-family: 'Cabin', sans-serif;
        font-size: 0.73rem;
        font-weight: 600;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--sheriff-blue);
    }

    .form-group input,
    .form-group textarea {
        font-family: 'Lora', serif;
        font-size: 0.95rem;
        color: var(--ink);
        background: var(--cloud);
        border: 1.5px solid rgba(27,58,92,0.22);
        border-radius: 0;
        padding: 0.7rem 0.9rem;
        transition: border-color 0.15s, box-shadow 0.15s;
        width: 100%;
        outline: none;
        line-height: 1.5;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(74,93,112,0.45);
            font-style: italic;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--sheriff-blue);
            box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
        }

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


/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--ink);
    padding: 2.5rem 0;
    border-top: 3px solid var(--slate); /* FIX 1 */
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .footer-logo .logo-icon {
        font-size: 1.25rem;
    }

    .footer-logo strong {
        font-family: 'Playfair Display', serif;
        font-size: 1rem;
        color: var(--cloud);
        display: block;
        line-height: 1.2;
    }

    .footer-logo span {
        font-family: 'Cabin', sans-serif;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(214,232,245,0.4);
    }

.footer-copy {
    font-family: 'Cabin', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(214,232,245,0.4);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 1.8rem;
}

    .footer-nav a {
        font-family: 'Cabin', sans-serif;
        font-size: 0.73rem;
        font-weight: 600;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: rgba(214,232,245,0.55);
        transition: color 0.15s;
    }

        .footer-nav a:hover {
            color: var(--cloud);
        }


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .services-grid,
    .work-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none;
        border-bottom: var(--rule-thin);
    }

        .service-card:last-child {
            border-bottom: none;
        }

    .testimonial {
        border-right: none;
        border-bottom: 1px solid rgba(214,232,245,0.12);
    }

        .testimonial:last-child {
            border-bottom: none;
        }

    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-card-stack {
        height: auto;
        min-height: 220px;
        margin-top: 1rem;
    }

    .card-back {
        position: relative;
        top: auto;
        left: auto;
        transform: rotate(0);
        margin-bottom: -1rem;
    }

    .card-front {
        position: relative;
        top: auto;
        left: auto;
    }

    .hero-badge {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 4.5rem 1.25rem 4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn {
            text-align: center;
        }

    .contact-form {
        padding: 1.75rem 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .services-grid {
        border: none;
    }

    .service-card {
        border: var(--rule-thin);
        margin-bottom: 0.75rem;
    }
}


/* =========================================
   REDUCED MOTION
   FIX 4 — Two separate @media prefers-reduced-motion blocks merged
   into one canonical block here at end of file.
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    /* Marquee */
    .marquee-track {
        animation: none;
    }

    /* Work grid animations */
    .work-item,
    .work-item .work-pic {
        transition: none;
        opacity: 1;
        transform: none;
    }

    /* Global transition kill */
    * {
        transition-duration: 0.01ms !important;
    }
}
