/* Homepage — professional layout (scoped to .page-home) */

.page-home {
    --home-navy: #0f2744;
    --home-navy-light: #1a3a5c;
    --home-burgundy: #7c2d3e;
    --home-burgundy-hover: #962f44;
    --home-gold: #b8860b;
    --home-text: #1e293b;
    --home-muted: #64748b;
    --home-border: #e2e8f0;
    --home-surface: #f8fafc;
    --home-white: #ffffff;
    --home-radius: 12px;
    --home-shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
    --home-max: 1140px;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--home-text);
}

/* Header */
.page-home .image-header {
    height: auto;
    min-height: 0;
    background: var(--home-white);
    box-shadow: 0 1px 0 var(--home-border);
    animation: none;
}

.page-home .image-header::before,
.page-home .image-header::after {
    display: none;
}

.page-home .header-overlay {
    background: transparent;
    width: 100%;
}

.page-home .header-content {
    max-width: var(--home-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    align-items: center;
}

.page-home .logo-section {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.page-home .site-logo {
    max-height: 56px;
    width: auto;
}

.page-home .business-info {
    display: block;
    text-align: left;
}

.page-home .business-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--home-muted);
    line-height: 1.5;
}

.page-home .header-nav ul li a {
    color: var(--home-navy) !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem !important;
    border-radius: 6px;
}

.page-home .header-nav ul li a:hover {
    background: var(--home-surface) !important;
    color: var(--home-burgundy) !important;
}

.page-home .menu-toggle {
    background: var(--home-navy) !important;
    border-radius: 8px !important;
}

.page-home .mobile-menu-dropdown {
    background: var(--home-white) !important;
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.12) !important;
    border-bottom: 1px solid var(--home-border);
}

.page-home .mobile-menu-links li a {
    color: var(--home-navy) !important;
    background: var(--home-surface) !important;
    border: 1px solid var(--home-border) !important;
    text-shadow: none !important;
    font-weight: 500;
}

/* Hero */
.page-home .home-hero {
    background: linear-gradient(160deg, var(--home-navy) 0%, var(--home-navy-light) 55%, #243f5e 100%);
    padding: 4rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.page-home .home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(184, 134, 11, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 255, 255, 0.04), transparent);
    pointer-events: none;
}

.page-home .home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.page-home .home-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-gold);
    margin-bottom: 1rem;
}

.page-home .home-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--home-white);
    margin: 0 0 1.25rem;
    text-shadow: none;
}

.page-home .home-hero__lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 32rem;
    margin: 0 0 2rem;
}

.page-home .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-home .home-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-home .home-hero__visual img {
    max-width: 220px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

.page-home .btn-primary {
    background: var(--home-burgundy);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(124, 45, 62, 0.35);
    min-width: auto;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 8px;
}

.page-home .btn-primary:hover {
    background: var(--home-burgundy-hover);
    transform: translateY(-1px);
}

.page-home .btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: none;
    min-width: auto;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 8px;
}

.page-home .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.page-home .btn-outline {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--home-navy);
    background: var(--home-white);
    border: 1.5px solid var(--home-border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.page-home .btn-outline:hover {
    border-color: var(--home-navy);
    color: var(--home-burgundy);
}

/* Trust bar */
.page-home .home-trust {
    background: var(--home-white);
    border-bottom: 1px solid var(--home-border);
    padding: 0;
}

.page-home .home-trust__inner {
    max-width: var(--home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.page-home .home-trust__item {
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-right: 1px solid var(--home-border);
}

.page-home .home-trust__item:last-child {
    border-right: none;
}

.page-home .home-trust__value {
    display: block;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--home-navy);
    margin-bottom: 0.25rem;
}

.page-home .home-trust__label {
    font-size: 0.8125rem;
    color: var(--home-muted);
    line-height: 1.4;
}

/* Section utilities */
.page-home .home-section {
    padding: 4.5rem 1.5rem;
}

.page-home .home-section--alt {
    background: var(--home-surface);
}

.page-home .home-container {
    max-width: var(--home-max);
    margin: 0 auto;
}

.page-home .home-section__header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.page-home .home-section__header h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--home-navy);
    margin: 0 0 0.75rem;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
}

.page-home .home-section__header h2::before,
.page-home .home-section__header h2::after {
    display: none !important;
}

.page-home .home-section__header p {
    margin: 0;
    color: var(--home-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-style: normal;
}

/* Services grid */
.page-home .home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.page-home .home-service-card {
    background: var(--home-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 1.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.page-home .home-service-card:hover {
    box-shadow: var(--home-shadow);
    border-color: #cbd5e1;
}

.page-home .home-service-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 39, 68, 0.06);
    border-radius: 10px;
    margin-bottom: 1rem;
    color: var(--home-navy);
}

.page-home .home-service-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--home-navy);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.page-home .home-service-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--home-muted);
    line-height: 1.55;
}

/* Why us */
.page-home .home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.page-home .home-why-item h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--home-navy);
    margin: 0 0 0.5rem;
}

.page-home .home-why-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--home-muted);
    line-height: 1.6;
}

.page-home .home-why-item::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    background: var(--home-gold);
    margin-bottom: 1rem;
    border-radius: 2px;
}

/* Reviews */
.page-home .testimonials-section {
    background: var(--home-surface);
    padding: 4.5rem 1.5rem;
}

.page-home .testimonials-section::before {
    display: none;
}

.page-home .testimonials-section h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--home-navy);
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-home .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: var(--home-max);
    margin: 0 auto;
}

.page-home .review-card {
    background: var(--home-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    padding: 1.5rem;
    color: var(--home-text);
}

.page-home .review-rating {
    color: var(--home-gold);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.page-home .review-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--home-text);
    margin-bottom: 1rem;
}

.page-home .review-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--home-muted);
}

/* Resources */
.page-home .home-resources {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.page-home .home-resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--home-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    text-decoration: none;
    color: var(--home-navy);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .home-resource-link:hover {
    border-color: var(--home-navy-light);
    box-shadow: var(--home-shadow);
    color: var(--home-burgundy);
}

.page-home .home-resource-link svg {
    flex-shrink: 0;
    color: var(--home-burgundy);
}

/* CTA */
.page-home .cta-section {
    background: var(--home-navy);
    padding: 4rem 1.5rem;
    animation: none;
    background-size: auto;
}

.page-home .cta-section::before {
    display: none;
}

.page-home .cta-section h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: white;
    margin-bottom: 0.75rem;
}

.page-home .cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.page-home .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.page-home .cta-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.page-home .home-footer {
    background: #0a1f36;
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 1.5rem 2rem;
    font-size: 0.875rem;
}

.page-home .home-footer__inner {
    max-width: var(--home-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.page-home .home-footer__brand img {
    max-height: 48px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.page-home .home-footer__brand p {
    margin: 0;
    line-height: 1.6;
    max-width: 20rem;
}

.page-home .home-footer h4 {
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
}

.page-home .home-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-home .home-footer ul li {
    margin-bottom: 0.5rem;
}

.page-home .home-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-home .home-footer a:hover {
    color: white;
}

.page-home .home-footer__bottom {
    max-width: var(--home-max);
    margin: 0 auto;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Hide legacy homepage pieces */
.page-home .hero-section,
.page-home .services-section,
.page-home .quicklinksbar {
    display: none !important;
}

/* Mobile */
@media (max-width: 900px) {
    .page-home .home-services-grid,
    .page-home .home-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .home-resources {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-home .home-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.page-home .home-section__cta {
    text-align: center;
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .page-home .image-header {
        height: auto !important;
        min-height: 0 !important;
    }

    .page-home .business-info {
        display: none !important;
    }

    .page-home .home-hero {
        padding: 2.5rem 1.25rem 3rem;
    }

    .page-home .home-hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .page-home .home-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .page-home .home-hero__actions {
        justify-content: center;
    }

    .page-home .home-hero__visual img {
        max-width: 160px;
    }

    .page-home .home-trust__inner {
        grid-template-columns: 1fr;
    }

    .page-home .home-trust__item {
        border-right: none;
        border-bottom: 1px solid var(--home-border);
        padding: 1.25rem;
    }

    .page-home .home-trust__item:last-child {
        border-bottom: none;
    }

    .page-home .home-services-grid,
    .page-home .home-why-grid,
    .page-home .reviews-grid {
        grid-template-columns: 1fr;
    }

    .page-home .home-resources {
        grid-template-columns: 1fr;
    }

    .page-home .home-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-home .home-section {
        padding: 3rem 1.25rem;
    }

    .page-home .testimonials-section {
        padding: 3rem 1.25rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .page-home .cta-section {
        padding: 3rem 1.25rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .page-home .mobile-menu-dropdown {
        top: 88px !important;
    }
}

@media (max-width: 480px) {
    .page-home .home-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .page-home .home-hero__actions .btn-primary,
    .page-home .home-hero__actions .btn-secondary,
    .page-home .cta-actions .btn-primary,
    .page-home .cta-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
