/* =====================================================================
   Adcock Excavating — public site styles
   Palette: warm browns + near-black, warm amber CTA.
   Type: Barlow Condensed (headings) + Barlow (body).
   ===================================================================== */

:root {
    /* Browns / neutrals */
    --brown-900: #1d150e;   /* header bg, hero */
    --brown-800: #281c12;   /* footer bg */
    --brown-700: #523825;
    --brown-600: #6f4a2f;   /* primary saddle brown */
    --brown-500: #8a623f;
    --ink:       #17120d;   /* near-black text */
    --muted:     #6a5a48;   /* secondary text on light */

    /* Tans / paper */
    --tan-200:   #e7dccb;
    --tan-100:   #f2ece1;   /* tinted section bg */
    --tan-50:    #faf6ef;   /* warm paper */
    --paper:     #ffffff;
    --line:      #e4dac9;   /* borders on light */

    /* Accent (amber) */
    --accent:     #d98324;
    --accent-600: #bf6c14;
    --accent-ink: #20140a;  /* dark text on amber */

    /* System */
    --container: 1120px;
    --radius:    6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px rgba(23,18,13,.06), 0 2px 8px rgba(23,18,13,.05);
    --shadow-md: 0 10px 28px rgba(23,18,13,.12);
    --ease:      200ms cubic-bezier(.4, 0, .2, 1);

    --z-header: 50;
    --z-nav:    40;
    --z-skip:   100;
}

/* ---- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 160px; }

body {
    font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;          /* ~17px */
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brown-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4 {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    line-height: 1.1;
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* Accessibility helpers */
.skip-link {
    position: absolute; left: 8px; top: -50px; z-index: var(--z-skip);
    background: var(--accent); color: var(--accent-ink);
    padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
    transition: top var(--ease);
}
.skip-link:focus { top: 8px; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600; font-size: 1.0625rem;
    text-transform: uppercase; letter-spacing: .04em;
    line-height: 1; text-decoration: none; cursor: pointer;
    padding: .85rem 1.4rem; border: 2px solid transparent;
    border-radius: var(--radius);
    transition: background-color var(--ease), color var(--ease),
                border-color var(--ease), box-shadow var(--ease);
}
.btn-lg { font-size: 1.2rem; padding: 1.05rem 1.8rem; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-600); color: #fff; }

.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---- Header / nav ------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: box-shadow var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.35); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 148px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }

/* Transparent PNG logo — sits directly on the dark bars, no badge. */
.brand-img { height: 128px; width: auto; display: block; }
.footer-logo { height: 92px; width: auto; display: block; margin-bottom: .85rem; }

.brand-mark { color: var(--accent); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: "Barlow Condensed", sans-serif; font-weight: 700;
    font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em;
    color: #fff;
}
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan-200); }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.7rem); list-style: none; padding: 0; }
.primary-nav a:not(.btn) {
    font-family: "Barlow Condensed", sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem;
    color: var(--tan-100); text-decoration: none; padding: .4rem 0;
    border-bottom: 2px solid transparent; transition: color var(--ease), border-color var(--ease);
}
.primary-nav a:not(.btn):hover { color: #fff; }
.primary-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

.btn-phone { padding: .6rem 1rem; }
.btn-phone svg { flex: none; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: transparent; border: 0; padding: 10px;
}
.nav-toggle-bar { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Generic block rhythm ---------------------------------------- */
.block { padding-block: clamp(2.5rem, 5.5vw, 4.5rem); }
.block-heading { padding-bottom: 0; }
.block-heading + * { padding-top: clamp(1rem, 2.5vw, 1.5rem); }

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    text-transform: uppercase; letter-spacing: .01em;
    position: relative; padding-bottom: .6rem;
}
.section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 64px; height: 4px; background: var(--accent); border-radius: 2px;
}
.block-heading.is-center { text-align: center; }
.block-heading.is-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* ---- Prose -------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1rem; }
.prose p { color: #2a2118; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose strong { color: var(--ink); }

/* ---- Hero --------------------------------------------------------- */
.block-hero {
    position: relative; padding: 0; isolation: isolate;
    color: #fff; overflow: hidden;
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(217,131,36,.14), transparent 50%),
        linear-gradient(160deg, #1c140d 0%, #2b1d12 55%, #3a2716 100%);
    border-bottom: 4px solid var(--accent);
}
.block-hero.has-image { background-size: cover; background-position: center; }
.block-hero::before {       /* subtle industrial hatch */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px);
}
.hero-inner {
    padding-block: clamp(4rem, 12vw, 8rem);
    max-width: 880px;
}
.hero-title {
    color: #fff; text-transform: uppercase;
    font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: .005em;
}
.hero-subhead {
    margin-top: 1rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    color: var(--tan-200); font-weight: 500; max-width: 46ch;
}
.hero-cta { margin-top: 2rem; }

/* ---- Cards -------------------------------------------------------- */
.block-cards { background: var(--tan-100); }
.cards { display: grid; gap: 1.25rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    display: flex; flex-direction: column; gap: .6rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.5rem;
    box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
a.card.is-link { cursor: pointer; }
a.card.is-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.card-media img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--tan-100); color: var(--brown-600);
}
.card-title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .01em; }
.card-text { color: var(--muted); font-size: .98rem; }
.card-cta {
    margin-top: auto; display: inline-flex; align-items: center; gap: .35rem;
    font-family: "Barlow Condensed", sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; color: var(--accent-600);
}
a.card.is-link:hover .card-cta { gap: .6rem; }

/* Logo strip variant — full logos, not cropped */
.logo-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem; text-decoration: none; color: var(--ink);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
a.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.logo-card-img { display: flex; align-items: center; justify-content: center; height: 96px; width: 100%; }
.logo-card-img img { max-height: 96px; max-width: 100%; width: auto; object-fit: contain; }
.logo-card-caption {
    font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; font-size: .9rem; color: var(--muted); text-align: center;
}

/* ---- Image / image+text ------------------------------------------ */
.figure figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.figure img { border-radius: var(--radius-lg); width: 100%; }
.figure-center { text-align: center; }

.imgtext { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.imgtext-right { direction: rtl; }
.imgtext-right > * { direction: ltr; }
.imgtext-media img { border-radius: var(--radius-lg); width: 100%; }

/* Zoomable images (click to expand) */
.zoom-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom-trigger img { display: block; width: 100%; border-radius: var(--radius-lg); transition: opacity var(--ease); }
.zoom-trigger:hover img { opacity: .92; }
.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88);
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,.6); }
.lightbox-close {
    position: absolute; top: .75rem; right: 1.25rem; width: 48px; height: 48px;
    font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer;
}
.img-placeholder {
    display: grid; place-items: center; aspect-ratio: 4 / 3;
    background: var(--tan-100); border: 1px dashed var(--tan-200);
    border-radius: var(--radius-lg); color: var(--muted); font-weight: 600;
}

/* ---- CTA band ----------------------------------------------------- */
.block-cta {
    background:
        radial-gradient(100% 120% at 85% 0%, rgba(217,131,36,.16), transparent 55%),
        linear-gradient(150deg, #241a12, #3a2716);
    color: #fff;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1.25rem;
}
.cta-text {
    font-family: "Barlow Condensed", sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .02em;
    font-size: clamp(1.4rem, 3.2vw, 2.1rem); color: #fff; margin: 0;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.block-cta .btn-outline { color: #fff; }
.block-cta .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---- Forms -------------------------------------------------------- */
.form-wrap { max-width: 720px; }
.form-intro { color: var(--muted); margin-bottom: 1.25rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
    font-family: "Barlow Condensed", sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; color: var(--ink);
}
.req { color: var(--accent-600); }
.field input, .field textarea {
    font: inherit; color: var(--ink); background: var(--paper);
    border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: .7rem .85rem; width: 100%; transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217,131,36,.2);
}
.field textarea { resize: vertical; }

/* Honeypot: hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 1rem 1.15rem; border: 1px solid; }
.alert-success { background: #edf7ed; border-color: #bcdfbc; color: #1f5b27; }
.alert-error { background: #fcefec; border-color: #f1c4b8; color: #8a2c17; }
.alert-error ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---- Footer ------------------------------------------------------- */
.site-footer { background: #000; color: var(--tan-100); margin-top: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem;
    padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand {
    font-family: "Barlow Condensed", sans-serif; font-weight: 700;
    font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; color: #fff;
    display: block; margin-bottom: .5rem;
}
.footer-about p { color: var(--tan-200); }
.footer-area { margin-top: .6rem; font-weight: 600; color: var(--accent); }
.footer-title {
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em;
    color: #fff; margin-bottom: .75rem;
}
.footer-col p { color: var(--tan-200); }
.footer-col p + p { margin-top: .3rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--tan-100); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-bar { background: rgba(0,0,0,.3); }
.footer-bar-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap; padding-block: 1rem; font-size: .9rem; color: var(--tan-200);
}
.footer-bar-links { display: flex; gap: 1.25rem; }

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-nav);
        flex-direction: column; align-items: stretch; gap: .25rem;
        background: #000; padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.25rem;
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 16px 30px rgba(0,0,0,.4); display: none;
    }
    .site-header.nav-open .primary-nav { display: flex; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
    .primary-nav a:not(.btn) { display: block; padding: .85rem 0; }
    .btn-phone { margin-top: .75rem; justify-content: center; }
}

@media (max-width: 680px) {
    .brand-img { height: 84px; }
    .header-inner { min-height: 104px; }
    .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
    .imgtext, .imgtext-right { grid-template-columns: 1fr; direction: ltr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- Motion preferences ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
