/* ============================================================
   Uthongathi Plumbing, Civils & Solar
   Palette: water blue #0F73B8 / solar amber #F5A623 / slate base
   ============================================================ */

:root {
  /* Brand accents */
  --color-blue: #0F73B8;
  --color-blue-dark: #0B5A90;
  --color-amber: #F5A623;
  --color-amber-dark: #D98A05;

  /* Structural neutrals */
  --color-slate-deep: #2A2F35;
  --color-slate-mid: #5B6670;

  /* Page + surfaces (light mode) */
  --color-bg: #FFFFFF;
  --color-surface: #F4F6F8;   /* card / panel fill — flips in dark mode */
  --color-border: #DDE3E8;

  /* Text */
  --color-text: #1B1F24;
  --color-text-muted: #5B6670;

  /* Text that sits ON a saturated brand background (hero, footer, nav,
     buttons). This stays light in BOTH themes — separate from surface. */
  --color-on-brand: #FFFFFF;
  --color-on-brand-muted: rgba(255, 255, 255, 0.82);

  /* Effective accent tokens (remapped brighter in dark mode) */
  --accent-blue: var(--color-blue);
  --accent-amber: var(--color-amber);

  --shadow-sm: 0 1px 3px rgba(27, 31, 36, 0.08), 0 1px 2px rgba(27, 31, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 31, 36, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1140px;

  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --color-blue: #3B9BE0;
  --color-blue-dark: #2C82C4;
  --color-amber: #FFB840;
  --color-amber-dark: #E89A1E;

  --color-bg: #1E2329;
  --color-surface: #2A2F35;   /* card fill goes dark */
  --color-border: #3A424B;

  --color-text: #EEF1F3;
  --color-text-muted: #A7B0B8;

  /* on-brand text stays light — NOT remapped to the dark surface */
  --color-on-brand: #FFFFFF;
  --color-on-brand-muted: rgba(255, 255, 255, 0.82);

  --accent-blue: var(--color-blue);
  --accent-amber: var(--color-amber);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--color-text); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--color-surface); }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 60ch; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.8rem; color: var(--accent-blue);
}
.section-head { max-width: 62ch; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--color-text-muted); margin-top: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--amber { background: var(--accent-amber); color: #1B1F24; }
.btn--amber:hover { background: var(--color-amber-dark); }
.btn--blue { background: var(--accent-blue); color: var(--color-on-brand); }
.btn--blue:hover { background: var(--color-blue-dark); }
.btn--ghost { background: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn--ghost:hover { background: var(--accent-blue); color: var(--color-on-brand); }
.btn--on-brand-ghost { background: rgba(255,255,255,0.12); color: var(--color-on-brand); border-color: rgba(255,255,255,0.5); }
.btn--on-brand-ghost:hover { background: rgba(255,255,255,0.22); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; color: var(--color-text); font-size: 1.05rem; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand__name { display: flex; flex-direction: column; }
.brand__name small { font-weight: 500; font-size: 0.68rem; color: var(--color-text-muted); letter-spacing: 0.02em; }
.logo-mark { flex: 0 0 auto; width: 38px; height: 38px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--color-text); padding: 0.5rem 0.7rem; border-radius: 6px; }
.nav a:hover { background: var(--color-surface); text-decoration: none; }
.nav a.active { color: var(--accent-blue); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.theme-toggle:hover { border-color: var(--accent-blue); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.header-call { display: inline-flex; }

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem 1rem; gap: 0.2rem; display: none; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.7rem; }
  .nav-toggle { display: inline-flex; }
  .header-call span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--color-on-brand);
  background: linear-gradient(135deg, rgba(15,115,184,0.94), rgba(11,90,144,0.92)), url('../assets/images/hero-plumber-pipework.jpg') center/cover no-repeat;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.25rem 4rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.hero__badge { font-size: 0.8rem; font-weight: 600; font-family: var(--font-head); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: var(--color-on-brand); padding: 0.35rem 0.7rem; border-radius: 999px; }
.hero h1 { color: var(--color-on-brand); max-width: 18ch; }
.hero__sub { font-size: 1.2rem; color: var(--color-on-brand-muted); margin: 1rem 0 1.75rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__meta { margin-top: 1.5rem; font-size: 0.92rem; color: var(--color-on-brand-muted); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--color-slate-deep); color: #fff; }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.trust-item { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: #fff; }
.trust-item svg { width: 18px; height: 18px; color: var(--accent-amber); flex: 0 0 auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--color-surface); }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(15,115,184,0.1); color: var(--accent-blue); display: inline-flex; align-items: center; justify-content: center; }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--amber { background: rgba(245,166,35,0.15); color: var(--color-amber-dark); }
[data-theme="dark"] .card__icon--amber { color: var(--accent-amber); }
.card h3 { margin-top: 0.2rem; }
.card p { color: var(--color-text-muted); font-size: 0.97rem; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.93rem; color: var(--color-text-muted); }
.card ul li { padding-left: 1.3rem; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-amber); }
.card__link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }

/* ---------- Split / why block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; color: var(--accent-blue); flex: 0 0 auto; margin-top: 2px; }
.feature-list strong { display: block; font-family: var(--font-head); }
.feature-list span { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark)); color: var(--color-on-brand); text-align: center; }
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #14507e, #0d3a5c); }
.cta-band h2 { color: var(--color-on-brand); }
.cta-band p { color: var(--color-on-brand-muted); max-width: 52ch; margin: 0.75rem auto 1.75rem; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Service detail sections ---------- */
.svc { scroll-margin-top: 90px; }
.svc + .svc { margin-top: 3rem; }
.svc__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.svc__head .card__icon { width: 54px; height: 54px; }
.svc__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .svc__grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.svc__grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.svc-jobs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; margin-top: 1rem; }
@media (max-width: 520px) { .svc-jobs { grid-template-columns: 1fr; } }
.svc-jobs li { padding-left: 1.5rem; position: relative; color: var(--color-text); }
.svc-jobs li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-blue); }

/* ---------- Notice / callout ---------- */
.notice {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 4px solid var(--accent-amber); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; font-size: 0.95rem; color: var(--color-text-muted);
}
.notice strong { color: var(--color-text); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); background: var(--color-bg); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 0.85rem 1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
.gallery figcaption span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.contact-methods li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-methods .ci { width: 44px; height: 44px; border-radius: 10px; background: rgba(15,115,184,0.1); color: var(--accent-blue); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-methods .ci svg { width: 22px; height: 22px; }
.contact-methods a { font-weight: 600; }
.contact-methods small { display: block; color: var(--color-text-muted); font-weight: 400; }

.form-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-blue); outline-offset: 0; border-color: var(--accent-blue); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.75rem; }

.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-slate-deep); color: #fff; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.85rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--accent-amber); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; }
.footer-about p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 0.6rem; max-width: 40ch; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; }
.footer-tag { color: var(--accent-amber); font-style: italic; font-size: 0.9rem; margin-top: 0.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Sticky mobile call/WhatsApp bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1rem; }
  .mobile-bar a:hover { text-decoration: none; }
  .mobile-bar .mb-call { background: var(--color-blue); }
  .mobile-bar .mb-wa { background: #25D366; color: #063; }
  .mobile-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 56px; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-hero { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 3rem 0 2.5rem; }
.page-hero .eyebrow { display: block; margin-bottom: 0.5rem; }
.page-hero p { color: var(--color-text-muted); max-width: 60ch; margin-top: 0.6rem; }
