/* =========================================================
   Deluxe Art Home Improvement — Landing Page
   Mobile-first, modern U.S. contractor style
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #14213d;
    --navy-deep: #0d162a;
    --accent: #fca311;
    --accent-dark: #d98a06;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #f7f7f9;
    --bg-dark: #14213d;
    --text: #1f2937;
    --text-muted: #5b6472;
    --line: #e5e7eb;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, .10);
    --shadow-lg: 0 25px 50px rgba(15, 23, 42, .18);
    --container: 1180px;
    --transition: .25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    line-height: 1.2;
    font-weight: 800;
}

h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: .75rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
h4 { font-size: 1rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }

p { color: var(--text); }

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

.section {
    padding: 4rem 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: .75rem auto 0;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .75rem;
}

.eyebrow.dark { color: var(--accent-dark); }

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

/* ============= BUTTONS ============= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-family: inherit;
    line-height: 1.2;
}

.btn-cta {
    background: var(--accent);
    color: var(--navy);
    box-shadow: 0 8px 18px rgba(252, 163, 17, .35);
}

.btn-cta:hover {
    background: var(--accent-dark);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(252, 163, 17, .45);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .55);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    border-color: var(--white);
}

.btn-lg {
    padding: 1.05rem 1.8rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============= HEADER ============= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--navy);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #000;
    box-shadow: 0 0 0 2px rgba(252, 163, 17, .25);
}

.brand-name strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: .08em;
    font-size: .95rem;
    color: var(--navy);
}

.brand-name em {
    display: block;
    font-style: normal;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.primary-nav {
    display: none;
    gap: 1.75rem;
}

.primary-nav a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--navy);
    position: relative;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: none; }

.nav-toggle {
    display: inline-grid;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 900px) {
    .primary-nav { display: inline-flex; }
    .header-cta { display: inline-flex; }
    .nav-toggle { display: none; }
}

/* Mobile menu */
@media (max-width: 899px) {
    .nav-open .primary-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        padding: 1.25rem;
        gap: 1rem;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }
}

/* ============= HERO ============= */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(13, 22, 42, .92) 0%, rgba(20, 33, 61, .80) 45%, rgba(20, 33, 61, .55) 100%);
    z-index: -1;
}

.hero-inner {
    padding: 5rem 1.25rem 5.5rem;
    max-width: 980px;
}

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

.hero-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.01em;
    margin: .5rem 0 1.25rem;
}

.hero-sub {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    max-width: 740px;
    margin-bottom: 2rem;
}

.hero-sub strong { color: var(--white); }

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 2.5rem;
}

.hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .92rem;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
}

.hero-badges span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--navy);
    font-weight: 800;
    font-size: .78rem;
}

/* ============= SERVICES ============= */
.services { background: var(--bg-soft); }

.grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (min-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

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

.card-img {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e9ecf2;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-flag {
    position: absolute;
    top: .85rem;
    left: .85rem;
    background: var(--accent);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .65rem;
    border-radius: 999px;
}

.card-body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.card-body p {
    color: var(--text-muted);
    font-size: .95rem;
}

.services-foot {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.services-foot strong { color: var(--navy); }

/* ============= WHY ============= */
.why-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 900px) {
    .why-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.why-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.value-grid { gap: 1.25rem; }

.value {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), transform var(--transition);
}

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

.value-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(252, 163, 17, .14);
    color: var(--accent-dark);
    font-size: 1.4rem;
    margin-bottom: .85rem;
}

.value p { color: var(--text-muted); font-size: .95rem; }

/* ============= PROCESS ============= */
.process { background: var(--bg-soft); }

.steps {
    list-style: none;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    counter-reset: step;
}

@media (min-width: 700px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
}

.steps li {
    background: var(--white);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
}

.step-num {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: .05em;
    margin-bottom: .5rem;
}

.steps p { color: var(--text-muted); font-size: .95rem; }

/* ============= ESTIMATE / FORM ============= */
.estimate {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--white);
}

.estimate h2 { color: var(--white); }
.estimate .lead { color: rgba(255, 255, 255, .85); margin: .75rem 0 0; }
.estimate .eyebrow { color: var(--accent); }

.estimate-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .estimate-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}

.estimate-bullets {
    list-style: none;
    margin: 1.75rem 0;
    display: grid;
    gap: .65rem;
}

.estimate-bullets li {
    color: rgba(255, 255, 255, .92);
    font-size: 1rem;
}

.estimate-bullets strong {
    color: var(--accent);
    margin-right: .5rem;
}

.estimate-contact {
    margin-top: 2rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    color: #ffffff;
    font-size: 1rem;
}

.estimate-contact p {
    margin-bottom: .45rem;
    line-height: 1.55;
    color: #ffffff;
}
.estimate-contact p:last-child { margin-bottom: 0; }
.estimate-contact p strong {
    display: block;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    letter-spacing: .02em;
    margin-bottom: .4rem;
}
.estimate-contact a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.estimate-contact a:hover { color: var(--white); }

.estimate-form {
    background: var(--white);
    color: var(--text);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
    .estimate-form { padding: 2.5rem; }
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }

.field-row {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.field-row .field { margin-bottom: 1.1rem; }

@media (min-width: 600px) {
    .field-row { grid-template-columns: 1fr 1fr; }
    .field-row .field.flex-2 { grid-column: span 1; }
}

.field label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--navy);
    margin-bottom: .4rem;
}

.req { color: var(--accent-dark); }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select {
    font-family: inherit;
    font-size: 1rem;
    padding: .8rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%2314213d' d='M5 8l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 18px;
    padding-right: 2.4rem;
}

.field input:focus,
.field select:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(252, 163, 17, .18);
}

.field.invalid input,
.field.invalid select {
    border-color: #d93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .12);
}

/* ----- Multi-select dropdown ----- */
.multi-select {
    position: relative;
}

.multi-trigger {
    width: 100%;
    text-align: left;
    padding: .8rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.3;
}

.multi-trigger:hover { border-color: #c8cdd6; }

.multi-trigger:focus,
.multi-select[data-open="true"] > .multi-trigger {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(252, 163, 17, .18);
}

.multi-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-value.placeholder { color: #94a3b8; }

.multi-caret {
    color: var(--navy);
    font-size: 1rem;
    transition: transform .2s ease;
    flex-shrink: 0;
}

.multi-select[data-open="true"] .multi-caret { transform: rotate(180deg); }

.multi-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-height: 280px;
    overflow-y: auto;
    padding: .35rem;
    z-index: 20;
}

.multi-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: .93rem;
    color: var(--text);
    line-height: 1.3;
    user-select: none;
}

.multi-option:hover { background: rgba(252, 163, 17, .1); }
.multi-option:has(input:checked) { background: rgba(252, 163, 17, .14); font-weight: 600; }

.multi-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    accent-color: var(--accent-dark);
    flex-shrink: 0;
    cursor: pointer;
}

.consent { margin-top: .5rem; }

.checkbox {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    margin-top: .2rem;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    accent-color: var(--accent-dark);
    flex-shrink: 0;
    cursor: pointer;
}

.consent.invalid .checkbox span { color: #b3261e; }

.form-fineprint {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.form-fineprint a {
    color: var(--accent-dark);
    text-decoration: underline;
}

.form-success {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: #e8f7ee;
    color: #146c2e;
    border-left: 4px solid #2da14b;
    border-radius: 8px;
    font-size: .95rem;
}

/* ============= FOOTER ============= */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .8);
    padding: 3rem 0 1.5rem;
}

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

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.site-footer h4 {
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: .55rem;
    font-size: .92rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .8);
}

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

.brand-footer .brand-logo { box-shadow: 0 0 0 2px rgba(252, 163, 17, .45); }
.brand-footer .brand-name strong { color: var(--white); }
.brand-footer .brand-name em { color: rgba(255, 255, 255, .65); }

.footer-blurb {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
    max-width: 320px;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    font-size: .82rem;
}

.footer-bottom p { color: #ffffff; margin-bottom: .35rem; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-bottom p strong { color: var(--accent); letter-spacing: .02em; }

.footer-ein {
    margin-top: .75rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: .04em;
}

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