/* =========================================================
   Larry's Construction — Cartoonish Construction Theme
   Palette: pine, plywood, drywall, safety yellow, caution
   ========================================================= */

:root {
    --wood-dark:   #6f4a26;
    --wood:        #a06a37;
    --wood-light:  #c98944;
    --plywood:     #e6b872;
    --plywood-hi:  #f2cd8c;
    --drywall:     #f4efe6;
    --drywall-sh:  #e3dccd;
    --ink:         #3a2a15;
    --yellow:      #ffc83d;
    --yellow-dk:   #f0aa1e;
    --caution:     #1c1c1c;
    --safety:      #ff7a3c;
    --paper:       #fbf7ee;
    --shadow:      rgba(58, 42, 21, 0.28);
    --radius:      14px;
    --line:        3px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    color: var(--ink);
    background-color: var(--drywall);
    /* drywall speckle */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.02) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(0,0,0,0.02) 0 2px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(0,0,0,0.015) 0 2px, transparent 3px);
    background-size: 60px 60px, 90px 90px, 75px 75px;
    line-height: 1.55;
}

h1, h2, h3, h4, .brand-text strong {
    font-family: 'Luckiest Guy', 'Nunito', cursive;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

img { max-width: 100%; display: block; }
a { color: var(--wood-dark); }

.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.center { text-align: center; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--yellow); color: var(--ink); padding: 10px 16px;
    border: var(--line); border-radius: 0 0 10px 0; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 0.5px;
    padding: 12px 26px;
    border: var(--line);
    border-radius: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 5px 0 var(--ink);
    background: #fff;
    color: var(--ink);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-primary { background: var(--yellow); }
.btn-ghost   { background: var(--drywall); }
.btn-outline { background: #fff; }
.btn-block   { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--wood);
    /* wood plank stripes */
    background-image:
        repeating-linear-gradient(90deg,
            rgba(0,0,0,0.06) 0 2px, transparent 2px 140px),
        linear-gradient(180deg, var(--wood-light), var(--wood));
    border-bottom: 5px solid var(--ink);
    box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge {
    display: grid; place-items: center;
    background: var(--ink); border-radius: 50%; padding: 4px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.5rem; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.brand-text em { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-size: .78rem; letter-spacing: 3px; color: var(--drywall); text-transform: uppercase; }

.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a {
    display: block; padding: 9px 16px; text-decoration: none;
    font-family: 'Luckiest Guy', cursive; letter-spacing: .5px;
    color: var(--drywall); border-radius: 30px; border: 3px solid transparent;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.35);
    transition: background .15s, color .15s, transform .1s;
}
.site-nav a:hover { background: rgba(0,0,0,0.18); transform: translateY(-1px); }
.site-nav a.is-active { background: var(--yellow); color: var(--ink); border-color: var(--ink); text-shadow: none; }

/* burger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: var(--yellow); border: var(--line); border-radius: 10px; }
.nav-burger span { width: 26px; height: 4px; background: var(--ink); border-radius: 3px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        repeating-linear-gradient(45deg, var(--caution) 0 26px, var(--yellow) 26px 52px);
    border-bottom: 6px solid var(--ink);
    padding: 6px 0;
}
.hero-inner {
    background: var(--paper);
    border: var(--line); border-radius: var(--radius);
    margin: 14px auto; padding: 34px;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
    box-shadow: 0 8px 0 var(--shadow);
}
.tape {
    display: inline-block; background: var(--safety); color: #fff;
    padding: 5px 16px; font-weight: 800; font-size: .82rem;
    transform: rotate(-2deg); border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 12px; text-shadow: 3px 3px 0 var(--yellow); }
.wobble { color: var(--safety); display: inline-block; transform: rotate(-3deg); text-shadow: 3px 3px 0 var(--ink); }
.hero p { font-size: 1.12rem; max-width: 46ch; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art img { width: 100%; filter: drop-shadow(0 8px 0 var(--shadow)); }

/* ---------- Section titles ---------- */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-align: center; margin: 0 0 6px; position: relative;
}
.section-title span {
    display: inline-block; position: relative; padding: 0 8px;
}
.section-title span::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
    background: var(--yellow); border-radius: 6px; z-index: -1;
    transform: rotate(-1deg);
}
.section-title--light span { color: var(--drywall); }
.section-title--light span::after { background: var(--safety); }
.section-lead { text-align: center; margin: 4px 0 26px; font-size: 1.05rem; }

/* ---------- Featured block ---------- */
.feature-block { padding: 54px 0; }
.feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.work-card {
    position: relative; padding: 0; border: var(--line); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; background: #fff;
    box-shadow: 0 6px 0 var(--shadow); transition: transform .14s;
    font-family: inherit;
}
.work-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.work-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.work-card-label {
    display: flex; flex-direction: column; text-align: left;
    padding: 10px 14px; background: var(--paper); border-top: 3px solid var(--ink);
}
.work-card-label strong { font-family: 'Luckiest Guy', cursive; font-weight: 400; }
.work-card-label em { font-style: normal; font-size: .8rem; color: var(--wood); font-weight: 800; }

/* Notice / cork board (sidebar) */
.notice-board {
    position: relative;
    background: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 28px);
    border: var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: 0 6px 0 var(--shadow);
}
.notice-board h2, .notice-board h3 { margin-top: 0; }
.notice-board h2 { font-size: 1.8rem; }
.pin { position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff8a8a, #d33); border: 2px solid var(--ink);
    box-shadow: 0 3px 4px rgba(0,0,0,0.3); }
.pin-left  { left: 22px; }
.pin-right { right: 22px; background: radial-gradient(circle at 35% 30%, #8ab6ff, #2f6fd6); }

.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 9px; }
.check-list li::before {
    content: "✔"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; background: var(--yellow); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 5px; font-size: .72rem;
    display: grid; place-items: center; font-weight: 800;
}

/* ---------- Services strip (home) ---------- */
.services-strip {
    padding: 56px 0; border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
    background: var(--wood);
    background-image:
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 3px, transparent 3px 120px),
        linear-gradient(180deg, var(--wood-light), var(--wood-dark));
}
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
.strip-card {
    background: var(--paper); border: var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-align: center; box-shadow: 0 6px 0 var(--shadow);
    transition: transform .14s;
}
.strip-card:hover { transform: translateY(-4px) rotate(.5deg); }
.strip-card h3 { margin: 12px 0 8px; font-size: 1.3rem; }
.strip-card p { margin: 0; font-size: .96rem; }
.svc-icon { filter: drop-shadow(0 3px 0 var(--shadow)); }

/* ---------- Carousel ---------- */
.carousel-section { padding: 56px 0; }
.carousel { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory; padding: 10px 4px 18px; flex: 1;
    scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar { height: 10px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 10px; border: 2px solid var(--ink); }
.carousel-slide {
    flex: 0 0 clamp(220px, 28vw, 300px); scroll-snap-align: start;
    border: var(--line); border-radius: var(--radius); overflow: hidden;
    background: #fff; cursor: pointer; box-shadow: 0 6px 0 var(--shadow);
    padding: 0; transition: transform .14s; position: relative; font-family: inherit;
}
.carousel-slide:hover { transform: translateY(-4px); }
.carousel-slide img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.carousel-cap {
    display: block; padding: 8px 12px; text-align: left; font-weight: 800;
    background: var(--paper); border-top: 3px solid var(--ink); font-size: .92rem;
}
.carousel-btn {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
    border: var(--line); background: var(--yellow); cursor: pointer;
    font-size: 1.2rem; box-shadow: 0 4px 0 var(--ink); transition: transform .1s;
}
.carousel-btn:hover { transform: translateY(-2px); }
.carousel-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- Page banner ---------- */
.page-banner {
    background:
        repeating-linear-gradient(45deg, var(--caution) 0 26px, var(--yellow) 26px 52px);
    border-bottom: 6px solid var(--ink); padding: 8px 0;
}
.page-banner .wrap {
    background: var(--paper); border: var(--line); border-radius: var(--radius);
    margin: 14px auto; padding: 28px 30px; text-align: center; box-shadow: 0 6px 0 var(--shadow);
}
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; text-shadow: 3px 3px 0 var(--yellow); }
.page-sub { margin: 8px 0 0; font-size: 1.08rem; }

/* ---------- Services full ---------- */
.services-full { padding: 52px 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
    background: var(--paper); border: var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: 0 6px 0 var(--shadow); transition: transform .14s;
}
.svc-card:hover { transform: translateY(-4px); }
.svc-card-top {
    width: 84px; height: 84px; display: grid; place-items: center;
    background: var(--yellow); border: var(--line); border-radius: 18px;
    margin-bottom: 14px; box-shadow: 0 4px 0 var(--shadow);
}
.svc-card h2 { font-size: 1.4rem; margin: 4px 0 8px; }
.svc-card p { margin: 0; }

.cta-band {
    margin-top: 44px; text-align: center;
    background: var(--wood); color: var(--paper);
    background-image:
        repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 3px, transparent 3px 120px),
        linear-gradient(180deg, var(--wood-light), var(--wood-dark));
    border: var(--line); border-radius: var(--radius);
    padding: 34px; box-shadow: 0 7px 0 var(--shadow);
}
.cta-band h2 { font-size: 2rem; margin: 0 0 8px; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); }
.cta-band p { margin: 0 0 18px; }

/* ---------- Gallery ---------- */
.gallery-section { padding: 46px 0 60px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.filter-chip {
    font-family: 'Luckiest Guy', cursive; letter-spacing: .5px;
    padding: 8px 18px; border: var(--line); border-radius: 30px; cursor: pointer;
    background: #fff; box-shadow: 0 4px 0 var(--ink); transition: transform .1s;
}
.filter-chip:hover { transform: translateY(-2px); }
.filter-chip.is-active { background: var(--yellow); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative; padding: 0; border: var(--line); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; background: #fff; box-shadow: 0 6px 0 var(--shadow);
    transition: transform .14s; font-family: inherit;
}
.gallery-item:hover { transform: translateY(-4px) rotate(-.5deg); }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; text-align: left;
    padding: 22px 14px 10px; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    opacity: 0; transition: opacity .18s;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-overlay strong { font-family: 'Luckiest Guy', cursive; font-weight: 400; }
.gallery-overlay em { font-style: normal; font-size: .8rem; }
.gallery-item.is-hidden { display: none; }

/* ---------- About ---------- */
.about-section { padding: 52px 0; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; margin-bottom: 44px; }
.about-copy .section-title { text-align: left; }
.about-copy .section-title span::after { left: 8px; right: auto; width: 60%; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.stat {
    flex: 1 1 120px; background: var(--yellow); border: var(--line); border-radius: var(--radius);
    padding: 16px; text-align: center; box-shadow: 0 5px 0 var(--shadow);
}
.stat-num { display: block; font-family: 'Luckiest Guy', cursive; font-size: 1.9rem; }
.stat-label { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.crew-card {
    background: var(--paper); border: var(--line); border-radius: var(--radius);
    padding: 22px 16px; text-align: center; box-shadow: 0 6px 0 var(--shadow);
    transition: transform .14s;
}
.crew-card:hover { transform: translateY(-4px) rotate(.5deg); }
.crew-avatar { display: grid; place-items: center; margin-bottom: 8px; }
.crew-card h3 { font-size: 1.1rem; margin: 6px 0 2px; }
.crew-card p { margin: 0; font-size: .88rem; color: var(--wood); font-weight: 800; }

/* ---------- Contact ---------- */
.contact-section { padding: 50px 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }

.clipboard {
    position: relative; background: var(--plywood);
    background-image:
        repeating-linear-gradient(100deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 60px),
        repeating-linear-gradient(8deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 40px);
    border: var(--line); border-radius: var(--radius);
    padding: 40px 26px 26px; box-shadow: 0 7px 0 var(--shadow);
}
.clip {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 26px; background: #b9bcc0; border: var(--line); border-radius: 8px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}
.clip::after {
    content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 16px; border: var(--line); border-bottom: none;
    border-radius: 12px 12px 0 0; background: #d4d7da;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-weight: 800; margin-bottom: 5px; }
.field input, .field textarea {
    font-family: inherit; font-size: 1rem; padding: 11px 13px;
    border: var(--line); border-radius: 10px; background: var(--paper);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--safety); outline-offset: 1px; }
.field-err { color: #c02626; font-size: .84rem; font-weight: 800; margin-top: 4px; }
.hp { position: absolute; left: -5000px; }

.alert { border: var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: #d8f3d1; }
.alert-error   { background: #ffd9d3; }

.info-list { list-style: none; padding: 0; margin: 14px 0; }
.info-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.info-list li span { flex: 0 0 auto; }
.info-note { font-style: italic; font-size: .92rem; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 20px; }
.footer-planks {
    height: 16px;
    background: repeating-linear-gradient(45deg, var(--caution) 0 22px, var(--yellow) 22px 44px);
    border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink);
}
.footer-inner {
    display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 30px;
    padding: 40px 0 30px;
    color: var(--paper);
}
.site-footer .footer-inner { }
.site-footer {
    background: var(--wood-dark);
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.10) 0 3px, transparent 3px 46px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 8px);
}
.footer-brand { color: var(--yellow); font-size: 1.7rem; margin: 0 0 10px; text-shadow: 2px 2px 0 var(--ink); }
.footer-col h4 { color: var(--yellow); margin: 0 0 12px; font-size: 1.2rem; }
.footer-col p { margin: 0; opacity: .92; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 8px; }
.footer-links a { color: var(--paper); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }

.footer-bar { background: var(--ink); color: var(--drywall); }
.footer-bar-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 0; font-size: .9rem; flex-wrap: wrap;
}
.designed-by a { color: var(--yellow); font-weight: 800; text-decoration: none; }
.designed-by a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 500;
    display: none; align-items: center; justify-content: center;
    background: rgba(20, 12, 4, 0.86); padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(900px, 92vw); text-align: center; }
.lightbox-figure img {
    max-height: 78vh; width: auto; margin: 0 auto;
    border: 5px solid var(--paper); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
#lightbox-caption { color: var(--paper); margin-top: 14px; font-weight: 700; font-size: 1.05rem; }
.lightbox-close {
    position: absolute; top: 18px; right: 24px; width: 50px; height: 50px;
    border-radius: 50%; border: var(--line); background: var(--yellow);
    font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--ink);
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; border-radius: 50%; border: var(--line);
    background: var(--yellow); font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 4px 0 var(--ink);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:active, .lightbox-nav:active { transform: translateY(2px); }
.lightbox-nav.lightbox-prev:active, .lightbox-nav.lightbox-next:active { transform: translateY(calc(-50% + 2px)); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-burger { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--wood-dark); border-bottom: 5px solid var(--ink);
        max-height: 0; overflow: hidden; transition: max-height .25s ease;
    }
    .nav-toggle:checked ~ .site-nav { max-height: 420px; }
    .site-nav ul { flex-direction: column; padding: 12px; gap: 4px; }
    .site-nav a { text-align: center; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { max-width: 380px; margin: 0 auto; }
    .feature-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .strip-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
    .crew-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .work-grid, .strip-grid, .svc-grid, .crew-grid, .footer-inner, .field-row { grid-template-columns: 1fr; }
    .hero-inner { padding: 22px; }
    .footer-bar-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
