/* ============================================================
   Crazy Monkey Construction — Shared Stylesheet
   Premium remodeling contractor. Charcoal + gold + cream.
   ============================================================ */

:root {
  --ink: #14120d;
  --ink-2: #211e16;
  --charcoal: #2a2722;
  --gold: #e3a52b;
  --gold-deep: #c8881a;
  --cream: #faf7f0;
  --cream-2: #f1ebdd;
  --sand: #e9e0cd;
  --text: #2c2823;
  --muted: #6f675a;
  --line: #e2d9c6;
  --white: #ffffff;
  --green: #25503a;
  --shadow-sm: 0 2px 10px rgba(20, 18, 13, 0.06);
  --shadow: 0 10px 40px rgba(20, 18, 13, 0.10);
  --shadow-lg: 0 30px 80px rgba(20, 18, 13, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p { color: var(--text); }
section { position: relative; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(227,165,43,.32); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(227,165,43,.42); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--charcoal); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 14, 10, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 165, 43, 0.18);
}
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--cream); line-height: 1.05; }
.brand-name small { display: block; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: "Sora", sans-serif; font-weight: 500; font-size: 0.95rem; color: rgba(250,247,240,.82); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1rem; color: var(--cream); display: flex; align-items: center; gap: 7px; }
.nav-phone span { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.4px; background: var(--cream); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--cream); overflow: hidden;
  background: linear-gradient(180deg, #1a1711 0%, #14120d 100%);
}
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .42; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(20,18,13,.92) 0%, rgba(20,18,13,.55) 55%, rgba(20,18,13,.25) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(70px, 11vw, 130px) 0 clamp(60px, 9vw, 110px); }
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero h1 .hl { color: var(--gold); }
.hero-sub { font-size: 1.22rem; color: rgba(250,247,240,.82); max-width: 52ch; margin: 24px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(250,247,240,.16); }
.hero-trust .ht { }
.hero-trust .ht b { font-family: "Sora", sans-serif; font-size: 1.7rem; color: var(--gold); display: block; line-height: 1; }
.hero-trust .ht span { font-size: 0.86rem; color: rgba(250,247,240,.7); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: var(--cream); }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; padding-top: 22px; padding-bottom: 22px; }
.trustbar .item { display: flex; align-items: center; gap: 12px; font-family: "Sora", sans-serif; font-weight: 500; font-size: 0.95rem; }
.trustbar .item svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--ink); color: var(--cream); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark .lead { color: rgba(250,247,240,.72); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .28s ease, box-shadow .28s ease; box-shadow: var(--shadow-sm);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card .thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--sand); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .body { padding: 26px 26px 30px; }
.svc-card .body h3 { margin-bottom: 10px; }
.svc-card .body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 16px; }
.svc-card .more { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px; transition: gap .2s; }
.svc-card:hover .more { gap: 12px; }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--sand); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; color: var(--gold-deep); }
.feature-list h4 { font-family: "Sora", sans-serif; font-size: 1.05rem; margin-bottom: 2px; color: var(--ink); }
.feature-list p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat b { font-family: "Sora", sans-serif; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold); display: block; line-height: 1; }
.stat span { font-size: 0.92rem; color: rgba(250,247,240,.72); margin-top: 8px; display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step .num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--sand); line-height: 1; }
.step h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .g {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--sand);
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.gallery-grid .g.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-grid .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid .g:hover img { transform: scale(1.07); }
.gallery-grid .g .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px;
  background: linear-gradient(0deg, rgba(20,18,13,.82), transparent);
  color: var(--cream); font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.95rem;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery-grid .g:hover .cap { opacity: 1; transform: translateY(0); }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tst {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.tst .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.tst p { font-size: 1.02rem; color: var(--charcoal); margin-bottom: 22px; }
.tst .who { display: flex; align-items: center; gap: 12px; }
.tst .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: "Sora", sans-serif; font-weight: 700; }
.tst .who b { font-family: "Sora", sans-serif; font-size: 0.98rem; color: var(--ink); display: block; }
.tst .who span { font-size: 0.84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--gold) 0%, var(--gold-deep) 100%); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 64px); text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: var(--ink); }
.cta-band p { font-size: 1.12rem; color: rgba(20,18,13,.78); max-width: 56ch; margin: 14px auto 30px; }
.cta-band .btn-dark { box-shadow: 0 10px 30px rgba(20,18,13,.25); }

/* ---------- Forms ---------- */
.lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.lead-form h3 { margin-bottom: 6px; }
.lead-form .sub { color: var(--muted); font-size: 0.96rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: "Sora", sans-serif; font-weight: 500; font-size: 0.86rem; color: var(--charcoal); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: var(--cream); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,165,43,.16); background: #fff; }
.field textarea { resize: vertical; min-height: 90px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-ok { background: #eef6ef; border: 1px solid #cfe6d2; color: #1f5130; padding: 16px; border-radius: 12px; font-size: 0.96rem; display: none; }
.form-ok.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,247,240,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-name { color: var(--cream); }
.site-footer h4 { font-family: "Sora", sans-serif; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 11px; }
.site-footer a { color: rgba(250,247,240,.72); font-size: 0.95rem; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-about p { font-size: 0.95rem; margin: 16px 0; max-width: 34ch; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.95rem; margin-bottom: 11px; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(250,247,240,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(250,247,240,.08); border: 1px solid rgba(250,247,240,.14); border-radius: 100px; padding: 7px 14px; font-family: "Sora", sans-serif; font-size: 0.78rem; color: var(--cream); }
.badge svg { color: var(--gold); }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--ink); color: var(--cream); padding: clamp(54px, 8vw, 86px) 0 clamp(44px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(227,165,43,.22), transparent 70%); }
.page-hero h1 { color: var(--cream); position: relative; z-index: 2; }
.page-hero p { color: rgba(250,247,240,.75); max-width: 56ch; margin-top: 14px; position: relative; z-index: 2; }
.crumbs { font-family: "Sora", sans-serif; font-size: 0.84rem; color: var(--gold); margin-bottom: 16px; position: relative; z-index: 2; }
.crumbs a { color: rgba(250,247,240,.6); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Service detail list ---------- */
.svc-detail { display: grid; gap: 30px; }
.svc-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.svc-row:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.svc-row:nth-child(even) .media { order: 2; }
.svc-row .media { aspect-ratio: 4/3; background: var(--sand); }
.svc-row .media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row .body { padding: 34px 40px; }
.svc-row .body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.svc-row .body p { color: var(--muted); margin-bottom: 16px; }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-row .tags span { font-size: 0.82rem; background: var(--cream-2); color: var(--charcoal); padding: 6px 13px; border-radius: 100px; font-family: "Sora", sans-serif; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info .ci { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .ci .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci b { font-family: "Sora", sans-serif; display: block; color: var(--ink); margin-bottom: 2px; }
.contact-info .ci a, .contact-info .ci span { color: var(--muted); }
.hours { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.hours h4 { font-family: "Sora", sans-serif; margin-bottom: 12px; color: var(--ink); }
.hours .hr { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.hours .hr:last-child { border: none; }
.hours .hr span:last-child { color: var(--muted); }

/* ---------- Landing page specifics ---------- */
.lp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.lp-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.lp-badges .b { display: inline-flex; align-items: center; gap: 8px; font-family: "Sora", sans-serif; font-size: 0.88rem; color: rgba(250,247,240,.92); background: rgba(250,247,240,.07); border: 1px solid rgba(250,247,240,.16); padding: 8px 15px; border-radius: 100px; }
.lp-badges .b svg { color: var(--gold); }
.lp-list { list-style: none; display: grid; gap: 13px; margin: 24px 0 0; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(250,247,240,.9); }
.lp-list li svg { color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.lp-sticky-cta { display: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
/* Reveal is a progressive enhancement: only hidden once JS confirms support.
   Without JS (or if the observer never fires) content stays fully visible. */
html.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .svc-grid, .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .lp-hero { grid-template-columns: 1fr; gap: 36px; }
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav-phone span.lbl { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px; background: rgba(16,14,10,.97);
    border-bottom: 1px solid rgba(227,165,43,.18); padding: 16px 24px 24px;
  }
  .site-header.open .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(250,247,240,.1); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .nav-phone { display: none; }
  .nav-cta { gap: 10px; }
  .svc-grid, .tst-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid .g.wide { grid-column: span 1; aspect-ratio: 1/1; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .lp-sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--ink); padding: 12px 16px; gap: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.2);
  }
  .lp-sticky-cta .btn { flex: 1; justify-content: center; }
}
