/* =========================================================
   JW Custom Painting LLC — trust-forward contractor theme
   ========================================================= */
:root {
    --navy: #13233a;
    --navy-2: #0d1a2c;
    --ink: #1c2733;
    --body: #475569;
    --line: #e2e0d8;
    --paper: #ffffff;
    --paper-2: #f5f3ee;
    --accent: #e0851a;      /* warm amber */
    --accent-dk: #c06d0d;
    --steel: #2f6fae;
    --ok: #1f9d57;
    --err: #c23b3b;

    --shadow: 0 14px 44px rgba(15, 26, 44, .16);
    --shadow-sm: 0 6px 20px rgba(15, 26, 44, .10);
    --head: "Oswald", "Arial Narrow", sans-serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
    --radius: 12px;
    --header-h: 74px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.08; margin: 0; text-transform: uppercase; letter-spacing: .01em; }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .85em 1.6em; border-radius: 8px; font-family: var(--head); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(15,26,44,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.16rem; text-transform: uppercase; }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--body); }
.nav-menu { display: flex; align-items: center; gap: 1.4rem; }
.nav-menu a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-menu a:not(.nav-cta):not(.nav-call):hover { color: var(--accent-dk); text-decoration: none; }
.nav-call { color: var(--navy) !important; font-family: var(--head); }
.nav-cta { background: var(--accent); color: #fff !important; padding: .55em 1.1em; border-radius: 7px; font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; }
.nav-cta:hover { background: var(--accent-dk); text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; top: -30%; width: 50%; height: 160%; background: radial-gradient(closest-side, rgba(224,133,26,.18), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hero-seal { width: clamp(100px, 13vw, 150px); aspect-ratio: 1; background: #fff; border-radius: 50%; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); margin-bottom: 1.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 0 0 1.1rem; font-weight: 700; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d7e0ec; max-width: 46ch; margin: 0 0 1.8rem; }
.hero .lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin: 0; padding: 0; font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: .92rem; color: #cdd8e6; }
.hero-trust li { white-space: nowrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; }
.hero-badge { position: absolute; bottom: 14px; left: -10px; background: var(--accent); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; padding: .45em 1em; border-radius: 6px; box-shadow: var(--shadow-sm); }

/* sections */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--accent-dk); margin: 0 0 .6rem; font-family: var(--sans); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .8rem; color: var(--navy); }
.section-intro { color: var(--body); max-width: 58ch; font-size: 1.06rem; margin: 0 0 2rem; }

/* services */
.svc-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.svc-grid li { display: flex; align-items: center; gap: .8rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; font-weight: 600; font-size: 1.02rem; transition: transform .15s, box-shadow .2s, border-color .2s; }
.svc-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.svc-ico { font-size: 1.5rem; line-height: 1; }
.svc-grid li.featured { background: #fff; border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow-sm); }
.svc-badge { margin-left: auto; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; background: var(--accent); color: #fff; padding: .3em .7em; border-radius: 6px; white-space: nowrap; }

/* work gallery */
.work { background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery .gx { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.gallery .gx img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery .gx:hover img { transform: scale(1.05); }
.gx-tag { position: absolute; top: 10px; left: 10px; background: rgba(19,35,58,.85); color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; padding: .3em .7em; border-radius: 5px; }
.work-vid-title { font-size: 1.4rem; color: var(--navy); margin: 2.8rem 0 1.2rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.video { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); background: #000; }
.video video { display: block; width: 100%; height: auto; border: 0; background: #000; }
/* iframe fallback (no iframes currently): keep a 16:9 frame */
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* mission */
.mission { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.mission-eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.mission-text { font-family: var(--head); font-weight: 500; text-transform: none; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.35; max-width: 26ch; margin: 0 auto; max-width: 60ch; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.why-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm); }
.why-num { font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--accent); line-height: 1; display: block; }
.why-ico { font-size: 2.3rem; display: block; line-height: 1; margin-bottom: .2rem; }
.why-card h3 { font-size: 1.3rem; margin: .4rem 0 .5rem; color: var(--navy); }
.why-card p { margin: 0; color: var(--body); font-size: .97rem; }

/* areas */
.areas { background: var(--paper-2); }
.area-list { list-style: none; padding: 0; margin: 1.5rem 0 1.2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.area-list li { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; padding: .6rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); }
.area-note { color: var(--body); }

/* about */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-lead { font-family: var(--head); text-transform: none; font-size: 1.4rem; color: var(--navy); margin: 1rem 0; }
.about-body p { color: var(--body); }
.about-body .btn { margin-top: 1.2rem; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; width: 100%; }

/* contact */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-eyebrow { color: var(--accent); }
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-intro p { color: #d7e0ec; }
.contact-methods { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.contact-methods li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; }
.contact-methods li span:first-child { font-size: 1.5rem; grid-row: span 2; }
.contact-methods li a, .contact-methods li > span:nth-child(2) { color: #fff; font-weight: 600; font-size: 1.1rem; }
.contact-methods li a:hover { color: var(--accent); text-decoration: none; }
.contact-methods small { color: #9fb0c4; }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.field .opt { color: var(--body); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,133,26,.15); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: .4rem 0 1rem; min-height: 65px; }
.form-status { margin: .8rem 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-fineprint { font-size: .82rem; color: var(--body); margin: .8rem 0 0; }

/* footer */
.site-footer { background: var(--navy-2); color: #c6d2e0; padding: 3rem 0 1.6rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-logo { height: 64px; width: auto; background: #fff; border-radius: 10px; padding: 6px; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; display: block; }
.footer-brand .brand-sub { color: #9fb0c4; font-size: .85rem; text-transform: none; letter-spacing: 0; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .7rem; letter-spacing: .05em; }
.footer-col a, .footer-col span { display: block; color: #c6d2e0; margin-bottom: .35rem; font-size: .94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #9fb0c4; }
.footer-legal a { color: #c6d2e0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(8,14,24,.93); padding: 4vh 2vw; }
.lightbox.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.6); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .2s; }
.lb-close { top: 18px; right: 20px; width: 48px; height: 48px; font-size: 2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.4rem; }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }

/* responsive */
@media (max-width: 900px) {
    .hero-grid, .about-inner, .contact-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; max-width: 520px; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 6vw 1.4rem; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s; visibility: hidden; }
    .nav-menu.open { transform: translateY(0); visibility: visible; }
    .nav-menu a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
    .nav-cta, .nav-call { text-align: center; margin-top: .6rem; border-bottom: 0 !important; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}
