/* ============================================================
   JMK Contracting, concept homepage.
   Design read: local general contractor / renovation business,
   Durban KZN, trust-first audience (property admins, hospitals,
   schools, commercial, private homes). Structural, daylight,
   credibility-driven language, not a SaaS or tourism aesthetic.
   Vanilla HTML/CSS/JS, no build step.
   Dials: variance 6, motion 4, density 4. One accent (JMK's real
   brand green), one radius family (6px controls, 10px cards, pill
   only for small tags), light theme locked across every section.
   This is a concept pitch, not the live site, see footer notice.
   ============================================================ */

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

:root {
  --ink-950: #15171b;
  --ink-900: #1c1f24;
  --ink-800: #262a31;
  --ink-700: #3a3f47;

  --paper: #f7f6f2;
  --paper-dim: #efece4;
  --paper-line: rgba(21,23,27,0.12);

  --white: #ffffff;
  --text: #1c1f24;
  --text-dim: #565c66;
  --text-faint: #8a8f97;

  --green: #4f9b34;
  --green-dark: #3a7526;
  --green-tint: rgba(79,155,52,0.12);
  --green-ink: #0e1a08;

  --r-control: 6px;
  --r-card: 10px;
  --r-pill: 999px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Public Sans', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink-950);
}
h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--green); }

section { padding: 108px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head p { font-size: 16px; max-width: 480px; margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-control);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-spring), background 0.25s ease, box-shadow 0.3s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(79,155,52,0.28); }
.btn-ghost { background: var(--white); color: var(--ink-950); border: 1px solid var(--paper-line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-on-photo { background: rgba(255,255,255,0.95); color: var(--ink-950); }
.btn-on-photo:hover { background: var(--white); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,242,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-dim); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--ink-950); }
.nav-cta-wrap { display: flex; align-items: center; gap: 14px; }
.nav .btn-primary { padding: 10px 18px; font-size: 14px; }
.nav-phone { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-950); }
.nav-phone i { color: var(--green); }
.nav-toggle { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--ink-950);
  transition: transform 0.35s var(--ease-spring), opacity 0.25s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg); }
.nav-toggle.active span::after { transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
  padding: 0 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-mobile.active { opacity: 1; pointer-events: auto; }
.nav-mobile a { font-family: var(--font-display); font-size: 28px; font-weight: 600; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('https://jmkcontracting.co.za/wp-content/uploads/2024/08/pool-deck-homepage-wp.webp');
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21,23,27,0.88) 0%, rgba(21,23,27,0.35) 45%, rgba(21,23,27,0.15) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 64px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.hero-badge i { color: var(--green); font-size: 15px; }
.hero-content { max-width: 760px; }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 18px;
}
.hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Credibility strip ---------- */
.strip { background: var(--ink-950); padding: 56px 0; }
.strip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.strip-item { border-left: 2px solid var(--green); padding-left: 20px; }
.strip-item .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.strip-item .label { font-size: 14px; color: rgba(255,255,255,0.6); }
@media (max-width: 768px) { .strip-row { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Trusted-by logo wall ---------- */
.trusted { background: var(--paper); padding: 72px 0; text-align: center; }
.trusted-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 34px; }
.trusted-logos { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.trusted-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.55; transition: opacity 0.3s ease, filter 0.3s ease; }
.trusted-logos img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-group {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-card);
  padding: 30px 28px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}
.service-group:hover { border-color: var(--green); transform: translateY(-3px); }
.service-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--ink-950);
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
}
.service-group-title i { color: var(--green); font-size: 20px; }
.service-list { display: flex; flex-direction: column; gap: 13px; }
.service-list li {
  font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  padding-left: 18px; position: relative;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
@media (max-width: 860px) { .service-groups { grid-template-columns: 1fr; } }

/* ---------- Featured work (masonry) ---------- */
.work { background: var(--paper); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}
.work-tile {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--ink-900);
}
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.work-tile:hover img { transform: scale(1.06); }
.work-tile-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,17,21,0.85) 100%); }
.work-tile-label { position: absolute; left: 20px; bottom: 18px; right: 20px; z-index: 2; }
.work-tile-label .tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 700; margin-bottom: 4px; display: block; }
.work-tile-label h3 { color: var(--white); font-size: 1.15rem; }
.work-a { grid-column: span 2; grid-row: span 2; }
.work-b { grid-column: span 2; grid-row: span 1; }
.work-c { grid-column: span 1; grid-row: span 1; }
.work-d { grid-column: span 1; grid-row: span 1; }
.work-e { grid-column: span 2; grid-row: span 1; }
.work-f { grid-column: span 1; grid-row: span 1; }
.work-g { grid-column: span 1; grid-row: span 1; }
.work-h { grid-column: span 4; grid-row: span 1; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-tile { aspect-ratio: 4/3; grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ---------- Why choose ---------- */
.why { background: var(--white); }
.why-list { display: flex; flex-direction: column; }
.why-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--paper-line);
}
.why-item:last-child { border-bottom: 1px solid var(--paper-line); }
.why-item .why-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--paper-line); }
.why-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-item p { max-width: 520px; }
@media (max-width: 640px) { .why-item { grid-template-columns: 50px 1fr; } .why-item .why-num { font-size: 1.5rem; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--ink-950); }
.reviews .section-head h2, .reviews .section-head .eyebrow { color: var(--white); }
.reviews .eyebrow { color: var(--green); }
.review-stage { position: relative; max-width: 680px; display: grid; }
.review-slide {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.review-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.review-quote { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; color: var(--white); line-height: 1.5; margin-bottom: 20px; }
.review-attr { display: flex; align-items: center; gap: 10px; }
.review-stars { color: var(--green); font-size: 14px; letter-spacing: 2px; }
.review-name { font-size: 14.5px; font-weight: 700; color: var(--white); }
.review-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.review-dots { display: flex; gap: 8px; }
.review-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); transition: all 0.35s var(--ease-out); }
.review-dot.active { background: var(--green); width: 22px; border-radius: var(--r-pill); }
.review-arrows { display: flex; gap: 8px; margin-left: auto; }
.review-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); color: var(--white);
  display: flex; align-items: center; justify-content: center; transition: border-color 0.25s ease, color 0.25s ease;
}
.review-arrow:hover { border-color: var(--green); color: var(--green); }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.contact-info p { max-width: 380px; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; font-weight: 600; }
.contact-detail i { color: var(--green); font-size: 18px; }
.contact-form {
  background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--r-card);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-control);
  background: var(--paper); border: 1px solid var(--paper-line);
  color: var(--text); font-family: var(--font-body); font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 90px; }
.contact-submit { width: 100%; justify-content: center; margin-top: 6px; }
.contact-note { margin-top: 14px; font-size: 13px; color: var(--text-faint); text-align: center; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Closer ---------- */
.closer { background: var(--green); text-align: center; }
.closer h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); max-width: 700px; margin: 0 auto 20px; }
.closer p { color: rgba(255,255,255,0.85); max-width: 460px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { background: var(--ink-950); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand img { height: 26px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13.5px; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--green); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; transition: border-color 0.25s ease, color 0.25s ease;
}
.social-row a:hover { border-color: var(--green); color: var(--green); }
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0 26px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
}
.footer-copyright p { font-size: 12.5px; color: rgba(255,255,255,0.4); }
.footer-copyright .notice { color: rgba(255,255,255,0.65); font-weight: 600; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Concept watermark badge (persistent, protects the design) ---------- */
.concept-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(21,23,27,0.88);
  color: rgba(255,255,255,0.9);
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.concept-badge i { color: var(--green); font-size: 13px; }
@media (max-width: 640px) { .concept-badge { left: 10px; bottom: 10px; font-size: 11px; padding: 8px 12px; } }

/* ---------- Reveal utility ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in-view { opacity: 1; transform: translateY(0); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
