/* Double S Construction Unlimited, Inc. - dsnam.com (2026 redesign) */

:root {
    --brand: #7a3414;
    --brand-strong: #5e260c;
    --brand-soft: #f6ebe3;
    --accent: #d98b2b;
    --ink: #22180f;
    --text: #3b3029;
    --muted: #6d6158;
    --line: #e7dfd7;
    --bg: #fbf8f5;
    --surface: #ffffff;
    --surface-2: #f4efe9;
    --dark: #24170f;
    --dark-text: #efe6de;
    --dark-muted: #c2b3a7;
    --ok: #2f7a3f;
    --err: #b3261e;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(34, 24, 15, .06), 0 8px 24px rgba(34, 24, 15, .07);
    --wrap: 1180px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #e2955f;
        --brand-strong: #f0ae7e;
        --brand-soft: #3a2519;
        --ink: #f5ede6;
        --text: #ddd2c9;
        --muted: #ab9d92;
        --line: #3b2f27;
        --bg: #17110d;
        --surface: #211912;
        --surface-2: #2a2018;
        --dark: #0f0a07;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font: 400 1rem/1.65 var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 6px; }

.eyebrow {
    display: inline-block;
    font: 700 .78rem/1 var(--font);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .8em 1.35em;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 600 .98rem/1.1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
    .btn-primary, .btn-primary:hover { color: #1a100a; }
}
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #3b1a09; }
.btn-light:hover { background: #f6ebe3; color: #3b1a09; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
    .brand .logo-light { display: none; }
    .brand .logo-dark { display: block; }
}

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .97rem;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav a:hover { background: var(--surface-2); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .spacer { flex: 1; }
.nav .nav-phone { color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav .btn { margin-left: 6px; padding: .65em 1.1em; font-size: .92rem; border-radius: 999px; }
.nav .btn-primary { color: #fff; }
@media (prefers-color-scheme: dark) { .nav .btn-primary { color: #1a100a; } }

.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    color: var(--ink);
    cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
    .nav .nav-phone { display: none; }
}
@media (max-width: 860px) {
    .menu-toggle { display: inline-grid; place-items: center; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 18px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px; }
    .nav .spacer { display: none; }
    .nav .nav-phone { display: block; }
    .nav .btn { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--brand); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand); }

.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 460px; }
.mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(20, 12, 7, .72);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .hero { padding: 44px 0 56px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
    .mosaic { height: 340px; }
}
@media (max-width: 520px) {
    .mosaic { height: 260px; gap: 8px; }
    .mosaic figcaption { display: none; }
}

/* ---------- Stats band ---------- */
.band { background: var(--dark); color: var(--dark-text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.stat strong { display: block; font: 800 1.6rem/1.2 var(--font-head); color: #fff; }
.stat span { color: var(--dark-muted); font-size: .93rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-img { aspect-ratio: 730 / 380; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-body .more::after { content: "→"; transition: transform .15s; }
a.card { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: inherit; }
a.card:hover .more::after { transform: translateX(3px); }

.icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 16px;
}
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font: 800 .85rem/1 var(--font-head);
    color: var(--brand);
    letter-spacing: .08em;
    display: block;
    margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 730 / 380; object-fit: cover; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split.reverse > :first-child { order: 0; }
}

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(135deg, #5e260c, #7a3414 55%, #9a4a1f);
    color: #f8ece2;
    border-radius: 20px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: #f0dccd; margin: 0; max-width: 60ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Page header ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Services page ---------- */
.subnav {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
    flex: none;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.subnav a:hover, .subnav a.active { border-color: var(--brand); color: var(--brand); }

.svc { padding: 72px 0; border-bottom: 1px solid var(--line); }
.svc:nth-of-type(even) { background: var(--surface-2); }
.svc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 40px; }
.svc-intro img { border-radius: var(--radius); width: 100%; aspect-ratio: 730 / 380; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) { .svc-intro { grid-template-columns: 1fr; gap: 24px; } }

.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail h3 { display: flex; align-items: center; gap: 10px; }
.detail h3 svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.detail p { color: var(--muted); }
.detail p:last-child, .detail ul:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 22px; color: var(--text); font-size: .95rem; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.ticks.cols { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
@media (max-width: 620px) { .ticks.cols { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .9rem; }

.note {
    border-left: 4px solid var(--accent);
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}

/* ---------- About ---------- */
.roles { columns: 3 240px; column-gap: 22px; }
.role { break-inside: avoid; margin-bottom: 22px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.logos .logo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    height: 112px;
    width: 200px;
    display: grid;
    place-items: center;
    padding: 14px 20px;
}
.logos img { max-height: 64px; width: auto; object-fit: contain; }
.logos .logo.tall { padding: 6px 10px; }
.logos .logo.tall img { max-height: 100px; }
@media (max-width: 560px) {
    .logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .logos .logo { width: auto; height: 92px; padding: 10px 12px; }
    .logos .logo:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
    .logos img { max-height: 52px; }
    .logos .logo.tall { padding: 4px 6px; }
    .logos .logo.tall img { max-height: 84px; }
}

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px 18px; } }

fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend { font: 800 1.2rem/1.2 var(--font-head); color: var(--ink); margin-bottom: 6px; padding: 0; }
fieldset > .muted { margin-bottom: 18px; }

label, .label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--err); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--err); }
input[type="file"] { font: inherit; font-size: .95rem; color: var(--text); max-width: 100%; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
@media (max-width: 760px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .check-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .94rem; color: var(--text); margin: 0; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.check-group-title { grid-column: 1 / -1; font: 700 .78rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.check-group-title:first-child { margin-top: 0; }

.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.states .check { justify-content: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--bg); }
.states .check input { margin-top: 2px; }

.yn { display: grid; gap: 4px; }
.yn-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.yn-row:last-child { border-bottom: 0; }
.yn-row .q { font-weight: 500; color: var(--text); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg label { margin: 0; padding: 7px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (prefers-color-scheme: dark) { .seg label:has(input:checked) { color: #1a100a; } }
@media (max-width: 560px) { .yn-row { grid-template-columns: 1fr; gap: 8px; } }

.affirm { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .88rem; color: var(--muted); }

.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.form-status.err { display: block; background: color-mix(in srgb, var(--err) 10%, var(--surface)); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
@media (prefers-color-scheme: dark) {
    .form-status.ok { color: #7fd18f; }
    .form-status.err { color: #f2a19b; }
}
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon-tile { margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { text-decoration: none; }

/* ---------- Legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 64px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .86rem; }
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font: 800 5rem/1 var(--font-head); color: var(--brand); }
