/* ==========================================================================
   QueensGiant — Homepage Layout Refinements
   HOMEPAGE ONLY. These rules assume the home template's structure:
   a dark photographic hero, six service cards, six tombstones.
   Do NOT link this from any other template — .hero, .services-grid and
   .service-card mean different things elsewhere.
   ========================================================================== */


/* 1. HERO CTA — was navy-on-navy. Navy text on the accent, not white:
      white on the accent fails WCAG AA. */
.hero .btn-primary {
    background: var(--bronze);
    border-color: var(--bronze);
    color: #0A1F44;
    font-weight: 600;
}

.hero .btn-primary:hover {
    background: var(--bronze-dark);
    border-color: var(--bronze-dark);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
}

/* 1b. HERO SECONDARY — navy text on a navy hero: invisible as shipped. */
.hero .btn-secondary {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.hero .btn-secondary:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #0A1F44;
}


/* 2. SERVICES GRID — six cards in two even rows of three on desktop. */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    flex: 0 1 calc(33.333% - 1.34rem);
    min-width: 280px;
    padding: 2.25rem;
}

.service-title {
    font-size: 1.6rem;
}


/* 3. VERTICAL RHYTHM — large dead bands between sections. */
.services {
    padding: 5rem 3rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

.quote-section {
    margin: 3.5rem 0;
    padding: 4.5rem 3rem;
}

.transactions-section {
    padding: 4.5rem 3rem;
}

.tombstone-title {
    margin-bottom: 1rem;
}

.tombstone-details {
    padding: 1rem 0;
    margin-bottom: 1rem;
}


/* 4. HERO STAT CARDS — headline size caused ugly wrapping. */
.stat-number {
    font-size: 2rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.stat {
    padding: 1.6rem;
}

.stat-label {
    font-size: 0.85rem;
    line-height: 1.5;
}


/* 5. RESPONSIVE — the template's 1024px rule targets grid-template-columns,
      which no longer applies now that .services-grid is flex. */
@media (max-width: 1024px) {
    .service-card {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 0 1 100%;
        padding: 2rem;
    }

    .services {
        padding: 3.5rem 1.5rem;
    }

    .stat-number {
        font-size: 1.85rem;
    }
}

/* 6. CREDENTIAL STRIP (1.90): sits between the hero and the transactions.
      A deeper cream band so it reads as its own line of credentials. */
.qg-credentials {
    background: #EFEAE0;
    border-bottom: 1px solid rgba(10, 31, 68, 0.08);
    padding: 1.4rem 3rem;
}

.qg-credentials-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.qg-cred {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.35rem 2.25rem;
    color: #0A1F44;
    text-decoration: none;
}

.qg-cred + .qg-cred { border-left: 1px solid rgba(10, 31, 68, 0.15); }

.qg-cred img { width: 52px; height: auto; flex-shrink: 0; }

.qg-cred-text { display: flex; flex-direction: column; line-height: 1.35; }

.qg-cred-main { font-size: 0.92rem; font-weight: 500; color: #0A1F44; }

.qg-cred-sub { font-size: 0.8rem; color: #4A5568; }

a.qg-cred:hover .qg-cred-main { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
    .qg-credentials { padding: 1.25rem 1.5rem; }
    .qg-credentials-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
    .qg-cred { padding: 0; }
    .qg-cred + .qg-cred { border-left: 0; }
}
