/* ===========================================================
   Kiva Builder & Handyman — premium teal/cream theme
   =========================================================== */

:root {
    --ink: #16201e;
    --ink-soft: #4d5b57;
    --cream: #f4f1ea;
    --cream-2: #ece7db;
    --card: #ffffff;
    --teal: #0f6e66;
    --teal-deep: #0a4d47;
    --teal-bright: #1a9085;
    --line: #e2dccf;
    --shadow: 0 18px 50px rgba(22, 32, 30, 0.08);
    --shadow-sm: 0 8px 24px rgba(22, 32, 30, 0.07);
    --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

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

.accent { color: var(--teal); font-style: italic; }

/* ---------- shared bits ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 6%; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 110, 102, 0.15);
}
.eyebrow.on-dark { color: #e9b977; }
.eyebrow.on-dark::before { background: #e9b977; box-shadow: 0 0 0 4px rgba(233, 185, 119, 0.18); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
    color: #fff;
    box-shadow: 0 12px 26px rgba(15, 110, 102, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(15, 110, 102, 0.4); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- navigation ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 241, 234, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 12px; }
.badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--ink);
    color: #e9d8a6;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.5rem;
}
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.3rem; line-height: 1; }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: border-color 0.2s, background 0.2s;
}
.phone-pill:hover { border-color: var(--teal); background: #fff; }
.phone-pill svg { color: var(--teal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(5rem, 8vw, 7rem);
}
/* parallax wallpaper layer — taller than the hero so it can shift on scroll */
.hero-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    height: 140%;
    background: url('images/hero-bg.jpg') center / cover no-repeat;
    will-change: transform;
    z-index: 0;
}
/* soft cream wash keeps the dark hero copy legible over the photo */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244,241,234,0.86), rgba(244,241,234,0.78));
    z-index: 1;
    pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.3rem);
    margin-bottom: 1.4rem;
}
.hero p.lead {
    font-size: 1.14rem;
    color: var(--ink-soft);
    max-width: 34ch;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero side panel */
.hero-panel {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.hero-panel h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.hero-panel .sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.panel-list { list-style: none; display: grid; gap: 0.85rem; }
.panel-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.98rem; }
.panel-list svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.panel-tag {
    position: absolute;
    top: -16px;
    right: 22px;
    background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(15, 110, 102, 0.35);
}

/* ---------- stats strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin-top: -2.5rem;
}
.stat { text-align: center; }
.stat .num { font-family: 'Fraunces', serif; font-size: 2.3rem; color: #e9b977; line-height: 1; }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.4rem; }

/* ---------- generic section ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 620px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}
.service {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service .ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--cream-2);
    color: var(--teal);
    display: grid; place-items: center;
    margin-bottom: 1.1rem;
}
.service h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- why choose (split) ---------- */
.why { background: var(--cream-2); }
.why-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.frame-cluster { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background:
        repeating-linear-gradient(45deg, rgba(15,110,102,0.05) 0 2px, transparent 2px 13px),
        linear-gradient(160deg, #fbfaf6, #ece6d8);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
}
.frame.tall { grid-row: span 2; aspect-ratio: auto; }
.frame .frame-title { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink); }
.frame .frame-note { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.frame .ph-ico { color: var(--teal); opacity: 0.5; margin-bottom: 0.7rem; }
.frame::before, .frame::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid rgba(15,110,102,0.6);
}
.frame::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.frame::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.check-list { list-style: none; display: grid; gap: 1.05rem; margin-top: 0.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 1.04rem; }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

/* ---------- projects ---------- */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.proj { display: block; }
.proj .frame { aspect-ratio: 4 / 3; margin-bottom: 1rem; transition: transform 0.3s ease; }
.proj:hover .frame { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-meta { display: flex; align-items: center; justify-content: space-between; }
.proj-meta h3 { font-size: 1.3rem; }
.proj-meta .tag { font-size: 0.9rem; color: var(--ink-soft); }
.proj-meta .arr { color: var(--teal); transition: transform 0.25s; }
.proj:hover .proj-meta .arr { transform: translateX(5px); }

/* ---------- reviews ---------- */
.reviews { background: var(--cream-2); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.review {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
}
.stars { color: #e0a338; letter-spacing: 3px; margin-bottom: 1rem; font-size: 1.05rem; }
.review p { font-size: 1.02rem; margin-bottom: 1.5rem; }
.review .who { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.review .who strong { display: block; font-size: 1.02rem; }
.review .who span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- dark CTA band ---------- */
.cta-band {
    background: linear-gradient(150deg, #15211f, #0c1816);
    color: #fff;
    border-radius: 26px;
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 1.08rem; max-width: 40ch; }
.cta-actions { display: grid; gap: 14px; }

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}
.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
}
.contact-card .ico {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--cream-2); color: var(--teal);
    display: grid; place-items: center; margin-bottom: 0.9rem;
}
.contact-card .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card .v { font-size: 1.12rem; font-weight: 600; }
.contact-card.highlight { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,110,102,0.08); }

form .field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
form label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
form input, form select, form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--card);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15,110,102,0.12);
}
form textarea { min-height: 150px; resize: vertical; }
form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.72);
    padding: 3rem 0 2rem;
}
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    justify-content: space-between; align-items: center;
}
.footer-inner .brand-name { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: #e9b977; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.88rem; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
    .hero-grid, .why-grid, .cta-band, .contact-grid { grid-template-columns: 1fr; }
    .hero p.lead { max-width: none; }
    .why-grid .frame-cluster { order: -1; }
    .cta-actions { justify-items: start; }
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .phone-pill span { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; margin-top: 1.5rem; }
    .form-row, form .row { grid-template-columns: 1fr; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 6% 1.2rem;
    }
    .nav-links.open li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
}
