/* ============================================================================
 * N-HOME A/V — SHARED BRAND SYSTEM
 * ----------------------------------------------------------------------------
 * One source of truth for palette, type, and the chrome that wraps every page
 * (site nav + footer). Derived from the Home Show 2026 theme, which is now the
 * house style: warm cream, charcoal, Cormorant Garamond display over DM Sans.
 *
 * Load order matters. brand.css comes FIRST, before any page-level <style>, so
 * a page can still override a component when it genuinely needs to. Pages must
 * NOT redefine the --tokens below; that is what caused the six-different-blues
 * problem this file exists to fix.
 * ========================================================================== */

:root {
    /* --- Surfaces: warm light, warm dark. Never pure white or pure black. --- */
    --cream:            #F7F4EF;
    --cream-dark:       #EDEAE3;
    --charcoal:         #18181B;
    --charcoal-2:       #232329;
    --charcoal-3:       #2D2D35;
    --charcoal-border:  rgba(255, 255, 255, 0.08);

    /* --- Ink (on cream) --- */
    --ink:              #1A1917;
    --ink-mid:          #3D3A35;
    --ink-light:        #7A756C;

    /* --- Text (on charcoal) --- */
    --white-text:       #F0EDE8;
    --white-dim:        rgba(240, 237, 232, 0.55);
    --white-faint:      rgba(240, 237, 232, 0.32);

    /* --- Accent. One blue. Only one. --- */
    --blue:             #467FF7;
    --blue-light:       #6B96F8;
    --blue-dark:        #3568D4;
    --blue-dim:         rgba(70, 127, 247, 0.12);

    /* --- Secondary accent, used sparingly for warmth --- */
    --brass:            #B89A5E;

    /* --- Status --- */
    --success:          #4ADE80;
    --warning:          #E8A33D;
    --danger:           #E5644E;

    /* --- Type --- */
    --font-display: 'Cormorant Garamond', 'DM Serif Display', Georgia, serif;
    --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* --- Geometry: tight radii. This brand is architectural, not bubbly. --- */
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 10px;

    --header-h: 72px;
    --max-w: 1200px;
}

/* ---------------------------------------------------------------------------
 * BASE
 * ------------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--white-text);
    background: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* Italic display emphasis — the signature move of this brand. */
h1 em, h2 em, .display em {
    font-style: italic;
    color: var(--blue-light);
    font-weight: 500;
}

a { color: inherit; }

img, video { max-width: 100%; }

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------------------
 * ACCESSIBILITY
 * ------------------------------------------------------------------------ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus {
    left: 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * SITE HEADER + NAV
 * Shared chrome. Previously each page invented its own.
 * ------------------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(16px, 4vw, 40px);
    background: rgba(24, 24, 27, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--charcoal-border);
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-header__logo img {
    height: 30px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 30px);
    margin-left: auto;
}
.site-nav a {
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--white-dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--white-text);
}
.site-nav a[aria-current="page"] {
    box-shadow: 0 2px 0 var(--blue);
}

.site-header__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.site-header__cta:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

/* Nav collapses to the CTA alone on small screens — the CTA is what matters. */
@media (max-width: 860px) {
    .site-nav { display: none; }
}

/* ---------------------------------------------------------------------------
 * SITE FOOTER
 * ------------------------------------------------------------------------ */

.site-footer {
    background: var(--charcoal);
    border-top: 1px solid var(--charcoal-border);
    padding: 56px clamp(16px, 4vw, 40px) 40px;
    text-align: center;
}
.site-footer__logo img {
    height: 30px;
    width: auto;
    opacity: 0.85;
    margin-bottom: 22px;
}
.site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-bottom: 20px;
}
.site-footer__contact a {
    color: var(--blue-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}
.site-footer__contact a:hover { text-decoration: underline; }

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--charcoal-border);
}
.site-footer__nav a {
    font-size: 0.86rem;
    color: var(--white-dim);
    text-decoration: none;
}
.site-footer__nav a:hover { color: var(--white-text); }

.site-footer__meta {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--white-faint);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------------
 * SHARED PRIMITIVES
 * ------------------------------------------------------------------------ */

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--ghost {
    background: transparent;
    color: var(--white-text);
    box-shadow: inset 0 0 0 1px var(--charcoal-border);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* Brand wordmarks — replaces the four dead partner logo files with type.
   Honest, dependency-free, and consistent with the editorial theme. */
.brandmark-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 5vw, 56px);
}
.brandmark {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white-dim);
    white-space: nowrap;
}
.brandmark img { height: 34px; width: auto; opacity: 0.75; display: block; }

/* ---------------------------------------------------------------------------
 * REVIEWS
 * One component for all three pages. Quotes are reproduced verbatim from the
 * Thumbtack profile -- never trim a real review in a way that changes what the
 * customer said. The earlier markup put a job type ("TV Mount Installation")
 * in the reviewer-name slot next to an unrelated avatar initial, which read as
 * a person who did not exist; job and source now sit in their own fields.
 * ------------------------------------------------------------------------ */

.reviews {
    background: var(--charcoal-2);
    padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px);
}
.reviews__inner { max-width: var(--max-w); margin: 0 auto; }

.reviews h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 600;
    line-height: 1.08;
    color: var(--white-text);
    margin: 0 0 18px;
}

.reviews__intro {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--white-dim);
    max-width: 62ch;
    margin: 14px 0 0;
}

.reviews__note {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--white-dim);
    max-width: 62ch;
    margin: 0 0 40px;
}
.reviews__intro + .reviews__note { margin-top: 14px; }
.reviews__note a { color: var(--blue-light); text-decoration: none; font-weight: 500; }
.reviews__note a:hover { text-decoration: underline; }

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
}

.review {
    margin: 0;
    background: var(--charcoal);
    border: 1px solid var(--charcoal-border);
    border-radius: var(--r-md);
    padding: clamp(22px, 2.4vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review__stars {
    color: var(--brass);
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    line-height: 1;
}

.review__quote {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--white-text);
}
.review__quote::before { content: '\201C'; }
.review__quote::after  { content: '\201D'; }

.review__meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--charcoal-border);
}

.review__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue-dim);
    color: var(--blue-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.review__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.review__job {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--white-text);
}

.review__source {
    font-size: 0.78rem;
    color: var(--white-dim);
    text-decoration: none;
}
a.review__source:hover { color: var(--blue-light); text-decoration: underline; }
