/* ============================================================
   Tharwa — extra components for inner pages
   Built on the tokens in style.css and the patterns in about.css
   ============================================================ */

/* Banner backgrounds per page (same overlay as About Us) */
.inner-banner--services { background-image: url('../images/fleet-trucks.webp'); }
.inner-banner--divisions { background-image: url('../images/pumps-pipes.webp'); background-color: var(--color-navy); }
.inner-banner--clients { background-image: url('../images/about-strip.webp'); }
.inner-banner--contact { background-image: url('../images/housing-towers.webp'); }

/* Grid variants */
.policies-grid--2 { grid-template-columns: repeat(2, 1fr); }
.policies-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Split row: text + photo */
.split-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.split-row--reverse .split-text { order: 2; }
.split-text p {
    font-size: 15px;
    color: rgba(31, 42, 68, 0.82);
    line-height: 1.75;
}
.split-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #f5d78e 0%, #c76f04 100%) 1;
    box-shadow: 0 6px 28px rgba(26, 24, 20, 0.12);
}
.split-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.split-thumbs img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 12px rgba(26, 24, 20, 0.08);
}

/* Photo strip */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #fff;
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #f5d78e 0%, #c76f04 100%) 1;
    box-shadow: 0 2px 12px rgba(26, 24, 20, 0.06);
}

/* Tag list (product ranges) */
.tag-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-list li {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-navy);
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-gold);
    padding: 0.4rem 0.75rem;
}

/* Stats with long codes (UIE / NCAGE / JCCS) */
.overview-stats-row--codes .stat-number {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    letter-spacing: 0.02em;
    word-break: break-all;
}

/* Related services */
.related-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    background: var(--color-sand);
    box-shadow: 0 2px 12px rgba(26, 24, 20, 0.06);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-navy);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s, color 0.2s;
}
.related-link:hover {
    color: var(--color-gold-dark);
    box-shadow: 0 6px 24px rgba(26, 24, 20, 0.11);
    transform: translateY(-2px);
}
.related-link .policy-icon { width: 36px; height: 36px; }

/* CTA band */
.cta-band {
    background: var(--color-navy);
    padding: 3rem 0;
    position: relative;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5d78e 0%, #c76f04 100%);
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-band-title {
    font-family: var(--font-display, 'Georgia', serif);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}
.cta-band-text {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 640px;
    line-height: 1.7;
}
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }

/* Buttons */
.btn-gold,
.btn-outline-light-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.4rem;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-gold {
    background: linear-gradient(135deg, #f7a745 0%, #c76f04 100%);
    color: #fff;
}
.btn-gold:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(199, 111, 4, 0.35); }
.btn-gold:disabled { opacity: 0.6; transform: none; }
.btn-outline-light-gold { border: 1px solid rgba(210, 164, 85, 0.6); color: var(--color-gold); }
.btn-outline-light-gold:hover { background: rgba(210, 164, 85, 0.15); color: #fff; }

/* Contact */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.contact-card {
    background: var(--color-sand);
    padding: 1.5rem;
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #f5d78e 0%, #c76f04 100%) 1;
    box-shadow: 0 2px 12px rgba(26, 24, 20, 0.06);
}
.contact-card .policy-title { margin: 0.9rem 0 0.5rem; }
.contact-card p { font-size: 14px; color: rgba(31, 42, 68, 0.82); line-height: 1.75; margin: 0; }
.contact-card a { color: var(--color-navy); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--color-gold-dark); }

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
}
.quote-form {
    background: var(--color-sand);
    padding: 1.75rem;
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #f5d78e 0%, #c76f04 100%) 1;
    box-shadow: 0 2px 16px rgba(26, 24, 20, 0.07);
}
.quote-form label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-bottom: 0.35rem;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    font-size: 14.5px;
    color: var(--color-ink);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 0.65rem 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(210, 164, 85, 0.2);
}
.form-status { font-size: 13.5px; font-weight: 600; color: var(--color-navy); }
.form-status.is-ok { color: #2e7d32; }
.form-status.is-err { color: #b3261e; }
.map-wrap {
    min-height: 380px;
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #f5d78e 0%, #c76f04 100%) 1;
    box-shadow: 0 2px 16px rgba(26, 24, 20, 0.07);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Homepage: clickable nav cards */
.nav-card--link { position: relative; cursor: pointer; }
.nav-card--link:hover .nav-card-title { color: var(--color-gold-dark); }

/* Responsive */
@media (max-width: 1199px) {
    .policies-grid--4, .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .related-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .split-row, .contact-layout { grid-template-columns: 1fr; gap: 1.75rem; }
    .split-row--reverse .split-text { order: 0; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
    .policies-grid--2, .policies-grid--4, .contact-cards, .related-row { grid-template-columns: 1fr; }
    .page-section { padding: 3rem 0; }
}

/* Agency credit in the footer bottom bar */
.footer-credit a { color: inherit; font-weight: 600; text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: var(--color-gold); }

/* Inner pages: header logo ~20% smaller than the homepage's */
.inner-header .header-logo { max-height: 150px; }
@media (max-width: 991px) { .inner-header .header-logo { max-height: 120px; } }
@media (max-width: 767px) { .inner-header .header-logo { max-height: 96px; } }
@media (max-width: 567px) { .inner-header .header-logo { max-height: 80px; } }
