/* SLM brand layer (Batch C). Selectors start with `body` so they win over the theme's component CSS.
   Contrast (WCAG AA): cream #FBF7F1 on #3B2A1F 12.8:1 · gold #F2B233 on #3B2A1F 7.3:1 · #3B2A1F on gold 7.3:1
   white on rust #B5522F 5.0:1 · cream on adobe #6B4A32 7.4:1 · #9A4527 on #F3E6D6 5.3:1 · #4A4038 on #F3E6D6 8.2:1 */

:root {
    --slm-sunburst: repeating-linear-gradient(90deg, #A82728 0 24px, #F2B233 24px 48px, #B5522F 48px 72px, #F2B233 72px 96px);
}

/* ---------- Shared buttons for dark bands ---------- */
body .ocf-yard-feature .btn-primary,
body .ocf-section.ocf-cta .ocf-cta__actions .btn-primary {
    background: #F2B233;
    border-color: #F2B233;
    color: #3B2A1F;
}

body .ocf-yard-feature .btn-primary:hover,
body .ocf-section.ocf-cta .ocf-cta__actions .btn-primary:hover {
    background: #F7C661;
    border-color: #F7C661;
    color: #3B2A1F;
}

body .ocf-yard-feature .btn-secondary,
body .ocf-section.ocf-cta .ocf-cta__actions .btn-secondary {
    background: transparent;
    border: 1px solid #FBF7F1;
    color: #FBF7F1;
}

body .ocf-yard-feature .btn-secondary:hover,
body .ocf-section.ocf-cta .ocf-cta__actions .btn-secondary:hover {
    background: rgba(251, 247, 241, .12);
    border-color: #FBF7F1;
    color: #FBF7F1;
}

body .ocf-yard-feature a:focus-visible,
body .ocf-materials-calculator a:focus-visible,
body .ocf-about a:focus-visible,
body .ocf-section.ocf-cta a:focus-visible,
body .site-footer a:focus-visible {
    outline: 2px solid #F2B233;
    outline-offset: 3px;
}

/* ---------- C1: This Month at the Yard (deep brown) ---------- */
body .ocf-yard-feature {
    --ocf-heading: #FBF7F1;
    --ocf-body: #FBF7F1;
    background: #3B2A1F;
    color: #FBF7F1;
}

body .ocf-yard-feature .ocf-yard-feature__eyebrow {
    color: #F2B233;
}

body .ocf-yard-feature .ocf-yard-feature__video-placeholder {
    border: 1px solid rgba(251, 247, 241, .18);
    background: #4A3628;
    color: #FBF7F1;
}

/* ---------- C1: How Much Material (Desert Rust) ---------- */
body .ocf-materials-calculator {
    --ocf-heading: #FFFFFF;
    --ocf-body: #FFFFFF;
    background: #B5522F;
    color: #FFFFFF;
}

body .ocf-materials-calculator .ocf-materials-calculator__eyebrow {
    color: #FFFFFF;
}

body .ocf-materials-calculator .ocf-materials-calculator__table-shell {
    --ocf-heading: #3B2A1F;
    --ocf-body: #4A4038;
    --ocf-bg: #FFFFFF;
    --ocf-border-light: #EADCCB;
    border-color: transparent;
    background: #FFFFFF;
    box-shadow: 0 .75rem 2rem rgba(59, 42, 31, .25);
}

body .ocf-materials-calculator .btn-primary {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #B5522F;
}

body .ocf-materials-calculator .btn-primary:hover {
    background: #FBF7F1;
    border-color: #FBF7F1;
    color: #9A4527;
}

body .ocf-materials-calculator .btn-secondary {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
}

body .ocf-materials-calculator .btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* ---------- C1: About (Adobe Brown) ---------- */
body .ocf-about {
    --about-eyebrow-color: #FBF7F1;
    --about-headline-color: #FBF7F1;
    --about-body-color: #FBF7F1;
    --about-link-color: #FBF7F1;
    --about-check-color: #F2B233;
    --about-check-mark-color: #3B2A1F;
    background: #6B4A32;
    color: #FBF7F1;
}

body .ocf-about .ocf-about__bg-image,
body .ocf-about .ocf-about__shade {
    display: none;
}

body .ocf-about .ocf-about__media,
body .ocf-about .ocf-about__image {
    border-color: rgba(251, 247, 241, .2);
}

/* ---------- C1: Closing CTA (deep brown, no garden photo). `.ocf-section.ocf-cta` beats the theme's [data-ocf-tone="light"] rule. ---------- */
body .ocf-section.ocf-cta {
    --cta-background: #3B2A1F;
    --cta-eyebrow-color: #F2B233;
    --cta-headline-color: #FBF7F1;
    --cta-body-color: #FBF7F1;
    --cta-panel-background: transparent;
    --cta-panel-color: #FBF7F1;
    --cta-panel-border-color: rgba(251, 247, 241, .18);
    background: #3B2A1F;
    color: #FBF7F1;
}

/* The theme colors this eyebrow with --ocf-primary directly, so set gold explicitly. */
body .ocf-section.ocf-cta .ocf-cta__eyebrow {
    color: #F2B233;
}

body .ocf-section.ocf-cta .ocf-cta__image,
body .ocf-section.ocf-cta .ocf-cta__shade {
    display: none;
}

body .ocf-section.ocf-cta .ocf-cta__phone,
body .ocf-section.ocf-cta .ocf-cta__phone-text {
    color: #FBF7F1;
}

/* ---------- C2: warm light sections ---------- */
body .ocf-services,
body .ocf-rock-colors,
body .ocf-testimonials,
body .ocf-faq {
    background: #F3E6D6;
}

body .ocf-pickup-delivery,
body .ocf-projects-products,
body .ocf-service-areas {
    background: #FBF7F1;
}

/* Two light-sand sections in a row: a thin warm line between them. */
body .ocf-projects-products {
    border-top: 1px solid #EADCCB;
}

/* Eyebrows on light backgrounds: dark rust (regular rust is too light for small text on sand). */
body .eyebrow,
body .ocf-services-eyebrow,
body .ocf-eyebrow-link,
body .ocf-service-areas__eyebrow,
body .ocf-faq .eyebrow,
body .ocf-testimonials .eyebrow {
    color: #9A4527;
}

body .ocf-eyebrow-link:hover,
body .ocf-eyebrow-link:focus-visible,
body .ocf-faq .ocf-faq-trigger:hover {
    color: #9A4527;
}

/* White cards with a 4px top border: rust, gold, green, repeating. */
body .ocf-svc-card,
body .ocf-pickup-delivery__card,
body .ocf-testimonial-card {
    border-top: 4px solid #B5522F;
    background: #FFFFFF;
}

body .ocf-svc-card:nth-child(3n + 2),
body .ocf-pickup-delivery__card:nth-child(3n + 2),
body .ocf-testimonial-card:nth-child(3n + 2) {
    border-top-color: #F2B233;
}

body .ocf-svc-card:nth-child(3n),
body .ocf-pickup-delivery__card:nth-child(3n),
body .ocf-testimonial-card:nth-child(3n) {
    border-top-color: #4E7F46;
}

body .ocf-rock-colors__tile {
    background: #FFFFFF;
}

/* Note under the rock color grid (#4A4038 on #F3E6D6 = 8.2:1). */
body .ocf-rock-colors .slm-rock-colors__note {
    max-width: 65ch;
    margin: clamp(.9rem, 2vw, 1.25rem) 0 0;
    color: #4A4038;
    font-size: .875rem;
    font-style: italic;
    line-height: 1.5;
}

/* Gold review stars (each star group has an aria-label with the rating). */
body .ocf-testimonial-stars,
body .ocf-hero .ocf-hero__stars {
    color: #F2B233;
}

/* ---------- Footer: deep brown ---------- */
body .site-footer {
    --ocf-bg: #3B2A1F;
    --ocf-bg-alt: #4A3628;
    --ocf-heading: #F2B233;
    --ocf-body: #FBF7F1;
    --ocf-label: #FBF7F1;
    --ocf-border: rgba(251, 247, 241, .28);
    --ocf-border-light: rgba(251, 247, 241, .16);
    border-top: 0;
    background: #3B2A1F;
    color: #FBF7F1;
}

/* Bigger logo with a faint cream edge so the badge's brown rim reads on the dark footer. */
body .site-footer .footer-logo-img {
    max-height: 5.5rem;
    filter: drop-shadow(0 0 1px rgba(251, 247, 241, .7)) drop-shadow(0 0 10px rgba(251, 247, 241, .18));
}

body .site-footer .footer-heading {
    color: #F2B233;
}

body .site-footer .footer-brand-name,
body .site-footer a,
body .site-footer .footer-social-link {
    color: #FBF7F1;
}

body .site-footer a:hover,
body .site-footer a:focus-visible,
body .site-footer .footer-social-link:hover,
body .site-footer .footer-social-link:focus-visible {
    color: #F2B233;
}

/* ---------- C3: Arizona sunburst divider (decorative) ---------- */
body .ocf-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    height: 6px;
    background: var(--slm-sunburst);
    pointer-events: none;
}

body .site-footer::before {
    content: "";
    display: block;
    height: 6px;
    background: var(--slm-sunburst);
}

/* ---------- Header: keep the phone, menu labels and quote button on one line (fits down to 981px, where the mobile menu takes over) ---------- */
body .nav-phone,
body .nav-phone span,
body .nav-link,
body .nav-dropdown-trigger,
body .nav-cta {
    white-space: nowrap;
}

/* ---------- Header with the 6-item menu (Services … Contact), measured 2026-10-09 ----------
   With the Pricing/Calculators pills: ≥1320px full menu + "(623) 536-3261" · 1120–1319px full menu + phone icon
   (aria-label "Call (623) 536-3261") · ≤1119px menu button. The logo never shrinks. */
body .nav-logo {
    flex-shrink: 0;
}

@media (min-width: 1120px) and (max-width: 1319px) {
    body .nav-phone span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}

/* The theme switches to the menu button at 980px; repeat its phone-menu rules up to 1119px. */
@media (min-width: 981px) and (max-width: 1119px) {
    body .nav-logo .nav-logo-img { max-height: var(--ocf-nav-logo-height-mobile); }
    body .nav-links,
    body .nav-phone,
    body .nav-divider,
    body .nav-cta { display: none; }
    body .nav-mobile-btn { display: inline-flex; }
    body .mobile-menu {
        max-height: calc(100vh - var(--wp-admin-bar-offset, 0px) - var(--wp-admin-bar-gap, 0px) - 4rem);
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
    body .mobile-menu.is-open { display: block; }
    body .nav-inner { min-height: 4rem; }
}

/* ---------- Pricing + Calculators stand out (2026-10-09) ---------- */
:root {
    --slm-icon-tag: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.6%2013.4%2013.4%2020.6a2%202%200%200%201-2.8%200L3%2013V3h10l7.6%207.6a2%202%200%200%201%200%202.8z%22/%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%227.5%22%20r%3D%221.5%22/%3E%3C/svg%3E");
    --slm-icon-calc: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%2214%22%20height%3D%2220%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M8%206h8M8%2011h.01M12%2011h.01M16%2011h.01M8%2015h.01M12%2015h.01M16%2015h.01M8%2019h.01M12%2019h.01M16%2019h.01%22/%3E%3C/svg%3E");
}

/* Desktop menu: outlined pills. #9A4527 on #FBF7F1 = 6.0:1; hover white on #B5522F = 5.0:1. */
body .nav-links a.nav-link[href$="/pricing-guide/"],
body .nav-links a.nav-link[href$="/calculators/"] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border: 1.5px solid #B5522F;
    border-radius: 999px;
    color: #9A4527;
    font-size: .9375rem;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease;
}

body .nav-links a.nav-link[href$="/pricing-guide/"]:hover,
body .nav-links a.nav-link[href$="/pricing-guide/"]:focus-visible,
body .nav-links a.nav-link[href$="/calculators/"]:hover,
body .nav-links a.nav-link[href$="/calculators/"]:focus-visible {
    background: #B5522F;
    color: #FFFFFF;
}

body .nav-links a.nav-link[href$="/pricing-guide/"]::before,
body .nav-links a.nav-link[href$="/calculators/"]::before,
body .slm-mobile-quick a::before {
    content: "";
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    background: currentColor;
    -webkit-mask: var(--slm-icon-tag) center / contain no-repeat;
    mask: var(--slm-icon-tag) center / contain no-repeat;
}

body .nav-links a.nav-link[href$="/calculators/"]::before,
body .slm-mobile-quick a[href$="/calculators/"]::before {
    -webkit-mask-image: var(--slm-icon-calc);
    mask-image: var(--slm-icon-calc);
}

/* Phone menu: two buttons side by side at the top; the plain duplicates below are hidden. White on #B5522F = 5.0:1. */
body .slm-mobile-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin: 0 0 .5rem;
}

body .slm-mobile-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 3rem;
    padding: .5rem;
    border-radius: .5rem;
    background: #B5522F;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

body .slm-mobile-quick a:hover,
body .slm-mobile-quick a:focus-visible {
    background: #9A4527;
    color: #FFFFFF;
}

body .mobile-menu-inner a.mobile-link[href$="/pricing-guide/"],
body .mobile-menu-inner a.mobile-link[href$="/calculators/"] {
    display: none;
}

/* Hero: small "See Prices · Material Calculator" line under the buttons. Cream on the dark hero shade / #3B2A1F band. */
body .ocf-hero .slm-hero-links {
    margin: .9rem 0 0;
    color: #FBF7F1;
    font-size: .9375rem;
    font-weight: 600;
}

body .ocf-hero .slm-hero-links a {
    color: #FBF7F1;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

body .ocf-hero .slm-hero-links a:hover,
body .ocf-hero .slm-hero-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .2em;
}

body .ocf-hero .slm-hero-links a:focus-visible {
    outline: 2px solid #F2B233;
    outline-offset: 2px;
}

body .ocf-hero .slm-hero-links__sep {
    margin: 0 .5rem;
    opacity: .7;
}

@media (max-width: 767px) {
    body .ocf-hero .slm-hero-links {
        order: 2;
        margin-top: .75rem;
    }
}
