/* DMD Construction Service, LLC - site styles
   Palette: cream base with a vivid orange-red primary accent, sampled
   from DMD's own published brand color (#FD5521). This file started as
   a copy of the multi-tenant stylesheet built for GNG Tech Services
   LLC's own site (which themed each portfolio example differently via a
   body class) - see .pf-dmd-construction below, which is now the site's
   only theme rather than one of several. */

:root {
    --color-bg: #070c16;
    --color-bg-alt: #0b1220;
    --color-panel: #101a2e;
    --color-panel-2: #142238;
    --color-border: #1f2c44;
    --color-text: #e6edf5;
    --color-muted: #93a1b8;
    --color-accent: #d4af37; /* gold */
    --color-accent-light: #f2d475; /* gold highlight */
    --color-accent-dark: #a3811f; /* deep gold */
    --color-silver: #c9ced6; /* sterling silver */
    --color-silver-dark: #9aa3ad; /* deeper silver */

    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --max-width: 1160px;
    --radius: 14px;
    --radius-sm: 8px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent) 55%, var(--color-accent-dark));
    color: #241c05;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark) 70%);
}

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

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: flex;
    align-items: center;
    /* var(--color-bg-alt), not a hardcoded color, so the header follows
     .pf-dmd-construction's own light cream theme below rather than
     GNG's original dark navy. */
    background: var(--color-bg-alt);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent) 25%, var(--color-silver) 50%, var(--color-accent) 75%, transparent);
    opacity: 0.7;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    height: 32px;
    width: auto;
}

/* Text wordmark used in place of an image logo (see web/templates/chrome.templ)
   until DMD supplies real logo files. */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

.brand-word-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent);
}

.brand-word-sub {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-muted);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.is-active {
    color: var(--color-text);
    border-color: var(--color-accent);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
}

.lang-switch a.lang-link {
    color: var(--color-muted);
    padding: 4px 7px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.lang-switch a.lang-link:hover {
    color: var(--color-text);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--color-border);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.12;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    color: var(--color-accent);
}

.hero-lede {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 52ch;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stats .stat-value {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--color-accent);
    font-weight: 700;
}

.hero-stats > div:nth-child(2) .stat-value {
    color: var(--color-silver);
}

.hero-stats .stat-label {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.hero-art {
    display: flex;
    justify-content: center;
}

.hero-art img {
    width: 100%;
    max-width: 460px;
}

/* ---------- Section framing ---------- */

.section {
    padding: 88px 0;
    border-bottom: 1px solid var(--color-border);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 12px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.section-head p {
    color: var(--color-muted);
    margin: 0;
}

/* ---------- About (synced from Facebook) ---------- */

.about-cover {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: -56px;
}

.about-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
}

.about-avatar {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-bg-alt);
    background: var(--color-bg-alt);
}

.about-copy .section-kicker,
.about-copy h2 {
    margin-left: 0;
}

.about-copy h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.about-text {
    color: var(--color-muted);
    white-space: pre-line;
    margin: 0;
}

@media (max-width: 640px) {
    .about-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ---------- Featured / highlights ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.icon-badge svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.feature-card p {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ---------- Services ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: linear-gradient(180deg, var(--color-panel-2), var(--color-panel));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.service-card .icon-badge {
    background: rgba(201, 206, 214, 0.14);
    color: var(--color-silver);
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 0 0 12px;
}

.service-card p {
    color: var(--color-muted);
    margin: 0 0 20px;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--color-text);
}

.service-list li::before {
    content: "\2192";
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-size: 0.78rem;
}

/* ---------- Contact ---------- */

.contact-info {
    max-width: 480px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 16px;
}

.contact-info > p {
    color: var(--color-muted);
    margin: 0 0 28px;
    max-width: 46ch;
}

.contact-detail-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail-list .icon-badge {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-bottom: 0;
}

.contact-detail-list .detail-label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.contact-detail-list .detail-value {
    font-weight: 600;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(212, 175, 55, 0.08);
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

input,
textarea {
    width: 100%;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 12px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--color-accent);
}

.form-status.is-error {
    background: rgba(242, 100, 65, 0.1);
    border: 1px solid rgba(242, 100, 65, 0.35);
    color: #f26441;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 40px 0;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.footer-brand img {
    height: 24px;
    width: 24px;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-credit {
    width: 100%;
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.footer-credit a {
    color: var(--color-muted);
    text-decoration: underline;
}

.footer-credit a:hover {
    color: var(--color-accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-art {
        order: -1;
    }

    .hero-art img {
        max-width: 320px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-alt);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px 28px;
        gap: 20px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 0.15s ease,
            transform 0.15s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav .nav-links {
        flex-direction: column;
        gap: 16px;
    }

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

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Portfolio ---------- */

.demo-banner {
    background: rgba(212, 175, 55, 0.12);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--color-accent-light);
    font-size: 0.85rem;
    padding: 10px 0;
}

.demo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.demo-banner-inner a {
    color: var(--color-accent-light);
    font-weight: 600;
    white-space: nowrap;
}

.demo-banner-inner a:hover {
    text-decoration: underline;
}

.portfolio-hero .section-head {
    margin-bottom: 32px;
}

.portfolio-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.portfolio-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-muted);
    pointer-events: none;
}

.portfolio-search input {
    padding-left: 46px;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.portfolio-industry-head {
    margin-bottom: 20px;
}

.portfolio-industry-head h2 {
    margin: 0 0 6px;
}

.portfolio-industry-head p {
    color: var(--color-muted);
    margin: 0;
    max-width: 70ch;
}

.portfolio-industry.is-hidden {
    display: none;
}

.portfolio-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card {
    display: block;
    background: linear-gradient(180deg, var(--color-panel-2), var(--color-panel));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.portfolio-card-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.portfolio-card-soon {
    color: var(--color-muted);
}

.portfolio-card-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.2s ease;
}

.portfolio-card-link:hover .portfolio-card-image {
    transform: scale(1.04);
}

.portfolio-card-body {
    padding: 28px;
}

.portfolio-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
}

.portfolio-badge svg {
    width: 8px;
    height: 8px;
}

.portfolio-badge-live {
    color: #6be675;
    border-color: rgba(107, 230, 117, 0.35);
    background: rgba(107, 230, 117, 0.08);
}

.portfolio-badge-ai {
    color: var(--color-accent);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.1);
}

.portfolio-badge-soon {
    color: var(--color-muted);
}

.portfolio-card h3 {
    margin: 0 0 6px;
}

.portfolio-card-tagline {
    color: var(--color-accent-light);
    font-weight: 600;
    margin: 0 0 10px;
}

.portfolio-card p {
    color: var(--color-muted);
    margin: 0 0 10px;
}

.portfolio-card-cta {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-empty {
    text-align: center;
    color: var(--color-muted);
    margin-top: 32px;
}

.portfolio-empty a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ---------- Portfolio example page ---------- */

.portfolio-example-hero .container {
    grid-template-columns: 1fr;
    max-width: 760px;
    text-align: center;
}

.portfolio-example-hero .hero-actions,
.portfolio-example-hero .hero-stats {
    justify-content: center;
}

.portfolio-example-hero .hero-lede {
    max-width: none;
}

/* Hero photo layer: pages opt in by setting --pf-hero-image (inline,
   via the asset() helper so it gets a hashed/cached URL) on the hero
   section itself. Falls back to "none" so .portfolio-example-hero stays
   a plain gradient for examples that don't set it. */
.portfolio-example-hero {
    background-image: linear-gradient(180deg, rgba(7, 12, 22, 0.82) 0%, rgba(7, 12, 22, 0.93) 55%, var(--color-bg) 100%), var(--pf-hero-image, none);
    background-size: cover;
    background-position:
        center,
        center 38%;
    background-repeat: no-repeat;
}

/* Construction & Logistics example ("Suncoast Heavy Haul") - accent
   palette sampled directly from its own hero photo (a heavy-haul truck
   hauling a Cat D9R dozer on a lowboy trailer, see
   web/static/img/portfolio/construction-logistics-hero.jpg via
   ImageMagick's -unique-colors quantization). Deliberately kept apart
   from the sitewide --color-accent gold (a muted terracotta/rust and an
   olive-khaki, not "gold with a tint") so this page reads as its own
   business rather than a reskin:
     --cl-rust   <- image's dozer undercarriage/dirt tone (#92684f), the
                    primary accent here (eyebrow, hero highlight)
     --cl-amber  <- image's dusty, desaturated equipment-yellow (#b1a05a),
                    kept intentionally duller/olive than the site's gold
     --cl-steel  <- image's overcast-sky/cab-shadow blue-grey (#6b7389) */
.pf-construction-logistics {
    --cl-rust: #92684f;
    --cl-rust-light: #d99a6e;
    --cl-amber: #b1a05a;
    --cl-amber-light: #cfc189;
    --cl-steel: #6b7389;
    --cl-steel-light: #97989d;
}

.pf-construction-logistics .eyebrow {
    color: var(--cl-rust-light);
    background: rgba(217, 154, 110, 0.12);
    border-color: rgba(217, 154, 110, 0.4);
}

.pf-construction-logistics .hero h1 .accent {
    color: var(--cl-rust-light);
}

.pf-construction-logistics .hero-stats > div:nth-child(2) .stat-value {
    color: var(--cl-steel-light);
}

.pf-construction-logistics .hero-stats > div:nth-child(3) .stat-value {
    color: var(--cl-amber-light);
}

.pf-construction-logistics .portfolio-badge-ai {
    color: var(--cl-amber-light);
    border-color: rgba(177, 160, 90, 0.4);
    background: rgba(177, 160, 90, 0.12);
}

.why-section {
    background: var(--color-bg-alt);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
}

.why-card .portfolio-badge {
    margin-bottom: 14px;
}

.why-card h3 {
    margin: 0 0 10px;
}

.why-card p {
    color: var(--color-muted);
    margin: 0;
}

.why-before {
    border-color: rgba(242, 100, 65, 0.3);
}

.why-after {
    border-color: rgba(212, 175, 55, 0.3);
}

.pf-construction-logistics .why-before {
    border-color: rgba(146, 104, 79, 0.4); /* --cl-rust */
}

.pf-construction-logistics .why-after {
    border-color: rgba(177, 160, 90, 0.4); /* --cl-amber */
}

/* DMD Construction Service example - a light, warm-toned theme built to
   sit closer to DMD's real site (dmdconstructionservice.com, a Wix
   build) than GNG's usual dark navy/gold look: a cream background, a
   vivid orange-red primary accent sampled from DMD's own published brand
   color (#FD5521, with #ff8044/#df3131 as its light/dark steps - found
   in the page's own CSS, not guessed), and a serif display font (Libre
   Baskerville, loaded only on this page - see the templ file's <head>)
   echoing the serif/sans heading-and-body pairing on their real site.
   Every color variable below is redeclared here (not just accent-related
   ones), so every shared component that already reads var(--color-*)
   - header/footer text, cards, buttons, the chat widget - automatically
   re-themes for this one page without touching those shared rules. */
.pf-dmd-construction {
    --color-bg: #fdf6ee;
    --color-bg-alt: #fbe9da;
    --color-panel: #ffffff;
    --color-panel-2: #fffaf3;
    --color-border: #ecdfd0;
    --color-text: #2b1c12;
    --color-muted: #7a6a5a;
    --color-accent: #fd5521;
    --color-accent-light: #ff8044;
    --color-accent-dark: #df3131;

    --dmd-clay: #8a5a34;
    --dmd-moss: #4b6b3a;
    --dmd-stone: #5c6066;
}

.pf-dmd-construction h1,
.pf-dmd-construction h2,
.pf-dmd-construction h3,
.pf-dmd-construction .founder-quote p {
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

.pf-dmd-construction .eyebrow {
    background: rgba(253, 85, 33, 0.1);
    border-color: rgba(253, 85, 33, 0.35);
}

.pf-dmd-construction .hero-stats > div:nth-child(2) .stat-value {
    color: var(--dmd-moss);
}

.pf-dmd-construction .hero-stats > div:nth-child(3) .stat-value {
    color: var(--dmd-stone);
}

.pf-dmd-construction .service-card .icon-badge {
    background: rgba(253, 85, 33, 0.1);
    color: var(--color-accent-dark);
}

.pf-dmd-construction .why-before {
    border-color: rgba(138, 90, 52, 0.35); /* --dmd-clay */
}

.pf-dmd-construction .why-after {
    border-color: rgba(253, 85, 33, 0.4); /* --color-accent */
}

.pf-dmd-construction .form-status.is-success {
    background: rgba(253, 85, 33, 0.08);
    border-color: rgba(253, 85, 33, 0.35);
}

.pf-dmd-construction .quote-summary {
    border-color: rgba(253, 85, 33, 0.35);
}

/* .dmd-hero: show the real jobsite photo as-is - no dark gradient
   overlay dimming it (that's what .portfolio-example-hero normally
   layers on top of --pf-hero-image; this replaces that for this page).
   Instead, the actual hero copy sits in its own solid card (see
   .dmd-hero-panel below), so text contrast is guaranteed by a real
   background color instead of depending on what's in the photo. */
.dmd-hero {
    background-image: var(--pf-hero-image, none);
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.dmd-hero-panel {
    max-width: 660px;
    margin: 0 auto;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 44px;
    box-shadow: 0 24px 60px rgba(20, 12, 4, 0.35);
}

@media (max-width: 640px) {
    .dmd-hero-panel {
        padding: 32px 24px;
    }
}

/* ---------- Order Materials (DMD example) ---------- */

.materials-section {
    background: var(--color-bg-alt);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.material-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.material-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.material-card-body p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 20px;
}

.material-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.material-price {
    display: flex;
    flex-direction: column;
}

.material-price-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.material-price-unit {
    font-size: 0.76rem;
    color: var(--color-muted);
}

.materials-note {
    text-align: center;
}

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

/* ---------- Founder note ---------- */

.founder-section {
    background: var(--color-bg-alt);
}

.founder-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 36px;
}

.founder-quote p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0 0 20px;
    font-style: italic;
}

.founder-byline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.founder-name {
    font-weight: 600;
}

.founder-title {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ---------- Quote chat widget ---------- */

.quote-chat {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.quote-chat-window {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 4px 12px;
    margin-bottom: 16px;
    /* Soft top/bottom fade instead of an abrupt clip when a bubble is
     scrolled halfway out of view. */
    mask-image: linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent);

    /* Firefox: slim, theme-matching scrollbar. */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

/* Chrome/Safari/Edge: slim, theme-matching scrollbar (Firefox uses the
   scrollbar-width/scrollbar-color properties above instead). */
.quote-chat-window::-webkit-scrollbar {
    width: 8px;
}

.quote-chat-window::-webkit-scrollbar-track {
    background: transparent;
}

.quote-chat-window::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 999px;
}

.quote-chat-window::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted);
}

.chat-bubble {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat-bubble-assistant {
    align-self: flex-start;
    background: var(--color-panel-2);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 2px;
}

.chat-bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent) 70%);
    color: #241c05;
    border-bottom-right-radius: 2px;
}

.chat-bubble-error {
    align-self: center;
    background: rgba(242, 100, 65, 0.1);
    border: 1px solid rgba(242, 100, 65, 0.35);
    color: #f26441;
}

.chat-bubble-typing {
    align-self: flex-start;
    background: var(--color-panel-2);
    border: 1px solid var(--color-border);
    display: flex;
    gap: 4px;
    padding: 14px 16px;
}

.chat-bubble-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-muted);
    animation: chat-typing-bounce 1s infinite ease-in-out;
}

.chat-bubble-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-bubble-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chat-typing-bounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.quote-chat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-chat-form textarea {
    width: 100%;
    min-height: 96px;
    max-height: 240px;
    resize: none;
}

/* Turnstile's widget renders at a semi-fixed width (and can grow taller
   if it ever needs to show a real challenge instead of resolving
   invisibly), so it gets its own row below the textarea instead of
   sharing a flex row with it -- keeps the textarea from getting squeezed
   whenever the widget is visible. */
.quote-chat-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.quote-summary {
    background: var(--color-bg-alt);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.quote-summary h3 {
    margin: 0 0 10px;
    color: var(--color-accent);
}

.quote-summary-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.quote-summary-list li {
    font-size: 0.88rem;
}

.quote-summary-list .quote-summary-label {
    display: block;
    color: var(--color-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.quote-summary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.quote-summary.is-sent {
    border-color: rgba(107, 230, 117, 0.35);
}

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

    .quote-summary-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quote-chat-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-chat-form-actions button {
        width: 100%;
    }
}
