/* ============================================================
   Black Canyon Marketing — shared stylesheet
   Edit the palette and fonts in :root below to re-theme the
   whole site at once. Everything else reads from these values.
   ============================================================ */
:root {
    /* ---- Brand palette ---- */
    --rust: #b5582f;

    /* primary terracotta */
    --rust-deep: #9c4727;

    /* darker rust for footer / hovers */
    --rust-soft: #c2673c;

    /* lighter rust for gradients */
    --teal: #1ba3b5;

    /* accent: buttons, eyebrows, checks, stars */
    --teal-deep: #15889a;

    /* teal hover */
    --cream: #f6f2ec;

    /* main page background */
    --beige: #ece4d9;

    /* alternate section background */
    --card: #ffffff;

    /* card background */
    --border: #e7decf;

    /* hairline borders */
    --icon-bg: #ece2d4;

    /* rounded square behind card icons */
    --ink: #2c2722;

    /* dark headings & strong text */
    --muted: #6f665c;

    /* body copy */
    --muted-soft: #8a8073;

    /* captions / quiet labels */
    /* ---- Type ---- */
    --display: "Poppins", system-ui, sans-serif;

    /* headings */
    --body: "Inter", system-ui, sans-serif;

    /* body text */
    /* ---- Shape ---- */
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* ---- Layout ---- */
    --maxw: 1180px;
    --gutter: clamp(20px, 5vw, 56px);
    --shadow: 0 18px 40px -24px rgba(60, 40, 24, 0.45);
    --shadow-soft: 0 10px 28px -20px rgba(60, 40, 24, 0.4);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: 3rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    vertical-align: top;
    resize: horizontal;
    visibility: visible;
    align-self: flex-end;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    line-height: 1.08;
    margin: 0;
    color: var(--rust);
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: 5rem;
}

/* Shared eyebrow label (teal, uppercase) */
.eyebrow {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.9rem;
}

/* Section heading in rust */
.section-title {
    color: var(--rust);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 2.65rem);
}

.lead {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 36rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: wrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn .arrow {
    transition: transform 0.2s ease;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.btn-teal {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 22px -14px rgba(27, 163, 181, 0.9);
    margin-right: 8px;
}

.btn-teal:hover {
    background: var(--teal-deep);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--rust);
    border-color: var(--rust);
}

.btn-outline:hover {
    background: var(--rust);
    color: #fff;
}

/* ---------- Header ---------- */
/* Transparent header sits over the rust hero on every page */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-logo {
    /* My code */
    height: 48px;
    width: auto;
    display: block;
}

.brand svg {
    width: 30px;
    height: 30px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    font-size: 0.97rem;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.nav a.active {
    font-weight: 600;
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
}

/* ---------- Hero (homepage) ---------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;

    /* Warm desert backdrop. Drop in your own photo by adding it as the
     first background layer, e.g.:
     background:
       linear-gradient(...) ,
       url('your-photo.jpg') center/cover; */
    background: url('/images/canyon background.jpeg') center/cover;

    /* linear-gradient(105deg,
      rgba(150, 62, 33, 0.96) 0%,
      rgba(165, 72, 38, 0.82) 42%,
      rgba(180, 92, 52, 0.55) 100%),
    radial-gradient(120% 80% at 80% 10%, #d98a4e 0%, #b35a30 45%, #8f4324 100%); */
}

.hero-dunes {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 60%;
    z-index: 0;
    opacity: 0.0;
}

.hero .container {
    position: 6rem;
    z-index: 1;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.hero-inner {
    max-width: 600px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.6rem;
}

.pill svg {
    width: 15px;
    height: 15px;
    color: var(--teal);
}

.hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}

/* highlighted words in the headline */
.hl {
    background: rgba(255, 255, 255, 0.22);
    padding: 0 0.12em;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-sub {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 33rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ---------- Marquee strip ---------- */
.marquee {
    background: var(--rust-deep);
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.9rem 0;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: inline-flex;
    gap: 2.5rem;
    align-items: center;
    animation: marquee 32s linear infinite;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
}

.marquee .dot {
    color: var(--teal);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- Generic section spacing ---------- */
.section {
    padding-block: clamp(3.5rem, 7vw, 4rem);
}

.section-head {
    max-width: 40rem;
    margin-bottom: 3rem;
}

/* ---------- Service cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--icon-bg);
    color: var(--rust);
    display: grid;
    place-items: center;
    margin-bottom: 1.3rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.card .card-tag {
    color: var(--teal);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

.card p {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
}

/* alternating title colors, matching the original */
.card.alt h3 {
    color: var(--rust);
}

.learn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--rust);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
}

.learn .arrow {
    transition: transform 0.2s ease;
}

.learn:hover .arrow {
    transform: translateX(3px);
}

/* ---------- Why section ---------- */
.why {
    background: var(--beige);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.why-media {
    position: relative;
}

.why-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3.4;

    /* Replace this gradient with your team photo:
     background: url('team.jpg') center/cover; */
    background: linear-gradient(135deg, rgba(180,92,52,0.18), rgba(27,163,181,0.16)),
    repeating-linear-gradient(115deg, #d9cdbb 0 36px, #cfc1ad 36px 72px);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
}

.why-photo .ph-note {
    font-family: var(--display);
    font-weight: 600;
    color: rgba(70, 55, 40, 0.55);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.why-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    grid-area: 1 / 1 / 2 / 2;
}

.float-card {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-30%);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.float-card .fc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--icon-bg);
    color: var(--rust);
    display: grid;
    place-items: center;
}

.float-card .fc-icon svg {
    width: 20px;
    height: 20px;
}

.float-card strong {
    font-family: var(--display);
    font-size: 1rem;
    display: block;
}

.float-card small {
    color: var(--muted);
    font-size: 0.82rem;
}

.why-copy h2 {
    margin-bottom: 1rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
    display: grid;
    gap: 0.95rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--muted);
}

.check {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(27, 163, 181, 0.14);
    color: var(--teal);
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.check svg {
    width: 14px;
    height: 14px;
}

/* ---------- Testimonial ---------- */
.testimonial {
    text-align: center;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
}

.stars svg {
    width: 22px;
    height: 22px;
}

.quote {
    font-family: var(--display);
    font-weight: 700;
    color: var(--rust);
    font-size: clamp(1.5rem, 3.3vw, 2.2rem);
    line-height: 1.28;
    max-width: 46rem;
    margin: 0 auto 1.4rem;
}

.attribution {
    color: var(--muted);
    font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: radial-gradient(120% 140% at 80% 0%, var(--rust-soft) 0%, var(--rust) 55%, var(--rust-deep) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    text-align: center;
    padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
    margin-top: 30px;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.cta-band p {
    color: rgba(255,255,255,0.9);
    max-width: 32rem;
    margin: 0 auto 1.8rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--rust-deep);
    color: rgba(255, 255, 255, 0.82);
    padding-block: 3.5rem 2.5rem;
    margin-top: clamp(.1rem, .1vw, .1rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand .brand {
    margin-bottom: 1rem;
}

.footer-brand .brand svg {
    width: 34px;
    height: 34px;
}

.footer-brand .brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    place-items: center;
    vertical-align: middle;
    visibility: visible;
    resize: both;
    background-image: url('images/BCMLogo.svg');
}

.footer-brand .brand-badge svg {
    width: 22px;
    height: 22px;
    background-image: url('images/BCMLogo.svg');
    background-size: auto;
}

.footer-brand p {
    font-size: 0.92rem;
    max-width: 24rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.footer-col a,
.footer-col li {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #fff;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-line svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
    flex: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ---------- Inner-page hero (Services / About / Contact) ---------- */
.page-hero {
    position: relative;
    color: #fff;
    background: linear-gradient(105deg, rgba(150,62,33,0.96), rgba(178,90,50,0.7)),
    radial-gradient(120% 120% at 85% 0%, #d98a4e, #b35a30 55%, #8f4324);
    padding-top: 9rem;
    padding-bottom: 4rem;
}

.page-hero .eyebrow {
    color: rgba(255,255,255,0.85);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    max-width: 38rem;
}

/* Simple contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--body);
    font-size: 0.97rem;
    background: #fff;
    color: var(--ink);
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--teal);
    border-color: transparent;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    min-height: 1.2em;
}

.form-status.success {
    color: var(--teal-deep);
}

.form-status.error {
    color: var(--rust);
}

.contact-info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-info-card .contact-line {
    color: var(--muted);
    margin-bottom: 1rem;
}

.contact-info-card .contact-line svg {
    color: var(--rust);
}

/* Scaffold note for unfinished pages */
.scaffold-note {
    background: rgba(27,163,181,0.08);
    border: 1px dashed var(--teal);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.scaffold-note strong {
    color: var(--ink);
    font-family: var(--display);
}

/* ---------- Accessibility: focus + reduced motion ---------- */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    * {
        scroll-behavior: auto;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-media {
        margin-bottom: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: var(--gutter);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        background: var(--rust-deep);
        padding: 1.2rem 1.5rem;
        border-radius: 14px;
        box-shadow: var(--shadow);
        display: none;
        min-width: 200px;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}
