/* ================================================================
   CHASSIS.CSS — Fehringer Digital Layout A Shared Stylesheet
   No external dependencies. Mobile-first. CSS custom properties
   for all palette values; set :root vars from PHP config.
   ================================================================ */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
input, button, textarea, select {
    font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* ── BASE ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
                 Helvetica, Arial, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    color: var(--brand-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
a {
    color: var(--brand-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ── FOCUS INDICATORS ───────────────────────────────────────── */
:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ── SKIP LINK ──────────────────────────────────────────────── */
.c-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1.25rem;
    background: var(--brand-primary);
    color: #000;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.15s;
}
.c-skip-link:focus {
    top: 0;
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* ── LAYOUT WRAPPER ─────────────────────────────────────────── */
.c-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.c-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
    line-height: 1;
}
.c-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}
.c-btn--primary {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
}
.c-btn--outline {
    background: transparent;
    color: var(--brand-text);
    border-color: rgba(128, 128, 128, 0.3);
}
.c-btn--outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    opacity: 1;
}
.c-btn--dark {
    background: #000;
    color: #fff;
    border-color: #000;
}
.c-btn--dark:hover {
    opacity: 0.82;
}

/* ── SECTION TYPOGRAPHY ─────────────────────────────────────── */
.c-section-label {
    font-family: monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--brand-primary);
    margin-bottom: 0.625rem;
}
.c-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--brand-heading);
    margin-bottom: 2.5rem;
    line-height: 1.15;
}

/* ================================================================
   HERO
   ================================================================ */
.c-hero {
    padding: 3rem 1.25rem 3.5rem;
}
.c-hero__inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.c-hero__eyebrow {
    font-family: monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}
.c-hero__h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--brand-heading);
    margin-bottom: 1.125rem;
}
.c-hero__tagline {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    max-width: 50ch;
}
.c-hero__body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--brand-text);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 52ch;
}
.c-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.c-hero__photo {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
}

/* Stat grid — 2×2 */
.c-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.c-stat {
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.c-stat__num {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
    font-family: monospace;
}
.c-stat__lbl {
    font-family: monospace;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-text);
    opacity: 0.6;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .c-hero {
        padding: 5rem 2rem 6rem;
    }
    .c-hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
    .c-hero__content {
        flex: 1 1 55%;
    }
    .c-hero__stats {
        flex: 0 0 38%;
        align-self: flex-start;
        margin-top: 1rem;
    }
}

/* ================================================================
   TRUST BAR
   ================================================================ */
.c-trust {
    background: rgba(128, 128, 128, 0.04);
    border-top: 1px solid rgba(128, 128, 128, 0.12);
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    padding: 0.875rem 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.c-trust__inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem 2rem;
}
.c-trust__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-text);
    opacity: 0.65;
    white-space: nowrap;
}
.c-trust__item svg {
    flex-shrink: 0;
    color: var(--brand-primary);
    opacity: 0.9;
}
.c-trust__sep {
    color: var(--brand-text);
    opacity: 0.2;
    font-size: 1rem;
    line-height: 1;
}

/* ================================================================
   SERVICES PREVIEW
   ================================================================ */
.c-services {
    padding: 4rem 1.25rem;
}
.c-services__inner {
    max-width: 1200px;
    margin-inline: auto;
}
.c-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.c-service-card {
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.12);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}
.c-service-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    text-decoration: none;
}
.c-service-card__num {
    font-family: monospace;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}
.c-service-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand-heading);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.c-service-card__body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--brand-text);
    opacity: 0.75;
}
.c-services__footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 600px) {
    .c-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .c-services {
        padding: 5rem 2rem;
    }
    .c-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================================
   CTA BAR
   ================================================================ */
.c-cta-bar {
    background: var(--brand-primary);
    padding: 3rem 1.25rem;
}
.c-cta-bar__inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.c-cta-bar__left {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.c-cta-bar__heading {
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 800;
    color: #000;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.c-cta-bar__sub {
    font-size: 0.9375rem;
    color: #000;
    opacity: 0.65;
    line-height: 1.4;
}
.c-cta-bar__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.c-cta-bar__phone {
    font-family: monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1;
}
.c-cta-bar__phone:hover {
    text-decoration: underline;
}
.c-cta-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .c-cta-bar {
        padding: 4rem 2rem;
    }
    .c-cta-bar__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }
    .c-cta-bar__left {
        flex: 1;
    }
    .c-cta-bar__right {
        align-items: flex-end;
        flex-shrink: 0;
    }
}

/* ================================================================
   ABOUT SNIPPET
   ================================================================ */
.c-about {
    padding: 4rem 1.25rem;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}
.c-about__inner {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}
.c-about__photo-wrap {
    flex-shrink: 0;
}
.c-about__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-primary);
}
.c-about__content {
    flex: 1;
    min-width: 0;
}
.c-about__text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--brand-text);
    opacity: 0.88;
    margin-bottom: 1.5rem;
    max-width: 62ch;
}
.c-about__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-primary);
    text-decoration: none;
    transition: gap 0.2s;
}
.c-about__link:hover {
    gap: 0.625rem;
    text-decoration: none;
}

@media (min-width: 640px) {
    .c-about {
        padding: 5rem 2rem;
    }
    .c-about__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    .c-about__photo {
        width: 160px;
        height: 160px;
    }
}

/* ================================================================
   FOOTER
   ================================================================ */
.c-footer {
    background: rgba(128, 128, 128, 0.04);
    border-top: 1px solid rgba(128, 128, 128, 0.12);
    padding: 3rem 1.25rem 2rem;
}
.c-footer__inner {
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.c-footer__biz-name {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--brand-heading);
    margin-bottom: 0.625rem;
}
.c-footer__contact {
    font-family: monospace;
    font-size: 0.8125rem;
    color: var(--brand-text);
    opacity: 0.55;
    line-height: 2;
}
.c-footer__contact a {
    color: inherit;
    text-decoration: none;
}
.c-footer__contact a:hover {
    opacity: 1;
    color: var(--brand-primary);
}
.c-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
}
.c-footer__nav-link {
    font-family: monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-text);
    opacity: 0.45;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
}
.c-footer__nav-link:hover {
    opacity: 0.9;
    color: var(--brand-primary);
    text-decoration: none;
}
.c-footer__bottom {
    max-width: 1200px;
    margin-inline: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.c-footer__copy,
.c-footer__credit {
    font-family: monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-text);
    opacity: 0.3;
    line-height: 1.6;
}
.c-footer__credit a {
    color: inherit;
    text-decoration: none;
    opacity: 1;
}
.c-footer__credit a:hover {
    opacity: 0.8;
}

@media (min-width: 640px) {
    .c-footer__inner {
        grid-template-columns: auto 1fr;
        gap: 4rem;
    }
    .c-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .c-skip-link,
    .fd-nav,
    .c-cta-bar { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
