/*
Theme Name: MJK Painting Solutions
Theme URI: https://www.mjksolutions.co.za/
Author: MJK Solutions
Description: A focused, responsive WordPress theme for MJK Painting Solutions in Cape Town.
Version: 1.4.0
Text Domain: mjk-painting-solutions
*/

:root {
  --ink: #111412;
  --muted: #5f665f;
  --green: #91ff12;
  --green-dark: #64b800;
  --cream: #f6f5ef;
  --white: #ffffff;
  --line: #dfe3dc;
  --shadow: 0 24px 70px rgba(15, 21, 16, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
h3 { font-size: 1.35rem; }
p { margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 2px solid var(--ink); border-radius: 7px; background: var(--green); color: var(--ink); font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover, .btn:focus { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(145, 255, 18, .24); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; color: var(--white); }
body:not(.home) .site-header { background: #090b09; }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--white); font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 58px; height: 58px; border-radius: 8px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--white); font-size: .92rem; font-weight: 700; text-decoration: none; }

.hero { position: relative; min-height: 820px; display: grid; align-items: end; overflow: hidden; background: #111; color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,5,.93) 0%, rgba(5,8,5,.72) 47%, rgba(5,8,5,.18) 100%), url('assets/cape-town-home-v2.jpg') center/cover no-repeat; }
.hero-inner { position: relative; z-index: 1; padding: 185px 0 105px; }
.hero-copy { max-width: 840px; }
.hero h1 { margin-bottom: 24px; max-width: 900px; }
.hero h1 span { color: var(--green); }
.hero .lead { max-width: 680px; margin-bottom: 32px; color: rgba(255,255,255,.82); font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 46px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.78); font-size: .92rem; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }

.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-bottom: 46px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.service-card .number { color: var(--green-dark); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.service-card p { margin-bottom: 0; color: var(--muted); }

.proof { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; }
.proof-main, .proof-side { overflow: hidden; border-radius: 12px; }
.proof img { width: 100%; height: 100%; object-fit: cover; }
.proof-main { min-height: 540px; }
.proof-side { min-height: 540px; position: relative; }
.proof-note { position: absolute; inset: auto 18px 18px; padding: 22px; border-radius: 9px; background: rgba(17,20,18,.9); color: var(--white); backdrop-filter: blur(10px); }
.proof-note strong { display: block; margin-bottom: 5px; color: var(--green); font-size: 1.1rem; }

.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.logo-panel { min-height: 500px; padding: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); box-shadow: var(--shadow); }
.logo-panel img { width: min(100%, 420px); }
.check-list { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 17px 0; border-top: 1px solid var(--line); font-weight: 700; }
.check-list li::before { content: "✓"; display: inline-grid; width: 26px; height: 26px; place-items: center; margin-right: 12px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: .8rem; }

.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.areas a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .9rem; font-weight: 700; text-decoration: none; }
.areas a:hover, .areas a:focus { border-color: var(--green-dark); background: var(--green); }
.quote { padding: 0 0 100px; background: var(--cream); }
.quote-card { padding: clamp(34px, 7vw, 82px); border-radius: 16px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.quote-card h2 { max-width: 780px; margin-bottom: 18px; }
.quote-card p { max-width: 690px; color: rgba(255,255,255,.72); }
.quote-card .actions { margin-top: 30px; }

.site-footer { padding: 42px 0; background: #090b09; color: rgba(255,255,255,.65); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner a { color: var(--white); }
.whatsapp-float { position: fixed; z-index: 20; right: 22px; bottom: 22px; padding: 14px 18px; border-radius: 999px; background: var(--green); color: var(--ink); font-weight: 900; text-decoration: none; box-shadow: 0 15px 36px rgba(0,0,0,.25); }
.content-page { padding: 140px 0 80px; min-height: 70vh; }
.content-page .entry-content { max-width: 820px; }
.content-page .entry-content h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.content-page .entry-content h2 { margin-top: 2.2em; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.content-page .entry-content h3 { margin-top: 1.8em; }
.content-page .entry-content img { margin: 28px 0; border-radius: 10px; }
.content-page .entry-content a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content-page .entry-content li { margin-bottom: 10px; }
.content-page .wp-block-button__link { display: inline-flex; padding: 13px 20px; border: 2px solid var(--ink); border-radius: 7px; background: var(--green); color: var(--ink); font-weight: 800; text-decoration: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--ink); font-weight: 700; }
.related-section { margin-top: 90px; padding-top: 55px; border-top: 1px solid var(--line); }
.related-section h2 { margin-top: 48px !important; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-grid a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink); font-weight: 800; text-decoration: none !important; }
.related-grid a:hover, .related-grid a:focus { border-color: var(--green-dark); background: var(--green); }
.related-cta { margin-top: 30px; }

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .hero { min-height: 720px; }
  .section { padding: 74px 0; }
  .section-head, .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; }
  .proof { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .proof-main, .proof-side { min-height: 400px; }
  .logo-panel { min-height: 360px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .brand span { display: none; }
  .header-inner { min-height: 76px; }
  .brand img { width: 50px; height: 50px; }
  .nav .btn { min-height: 44px; padding: 8px 13px; font-size: .8rem; }
  .hero-inner { padding: 145px 0 75px; }
  .hero .lead { font-size: 1.05rem; }
  .btn { width: 100%; }
  .trust-row { display: grid; gap: 10px; }
  .quote { padding-bottom: 74px; }
  .whatsapp-float { right: 14px; bottom: 14px; }
}
