/* ==========================================================================
   SUMS Pools & Construction — Stylesheet
   Design tokens live at the top as CSS custom properties — change the
   palette or type scale from here without hunting through the file.
   ========================================================================== */

:root{
  /* ---- Colour palette ---- */
  --deep-teal:      #063A4E;   /* primary — headers, footer, nav */
  --deep-teal-2:    #0A4E68;   /* secondary depth / gradients */
  --aqua:           #14A6C7;   /* primary accent — links, buttons, icons */
  --aqua-light:     #6FD4E8;   /* highlights, hover glows */
  --ochre:          #E0A527;   /* Zimbabwean sun/soil accent — CTAs, badges */
  --ochre-dark:     #B9840F;
  --leaf:           #2F8F4E;   /* echoes the SumsPools logo green */
  --paper:          #F5FAFB;   /* page background */
  --paper-2:        #EAF4F6;   /* alt section background */
  --ink:            #122A31;   /* body text */
  --ink-soft:       #4C6870;   /* secondary text */
  --white:          #FFFFFF;
  --line:           #D8E7EA;

  /* ---- Type ---- */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --max-w: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px -12px rgba(6,58,78,0.25);
  --shadow-card: 0 4px 18px -6px rgba(6,58,78,0.18);
  --wave: cubic-bezier(.65,0,.35,1);
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--deep-teal);
  font-weight: 600;
}
p{ margin: 0 0 1em; }
button{ font-family: inherit; }

:focus-visible{
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--font-body);
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:.78rem;
  color: var(--aqua);
  margin-bottom: .9em;
}
.eyebrow::before{
  content:"";
  width: 26px; height: 2px;
  background: var(--ochre);
  display:inline-block;
}

.section{ padding: 84px 0; }
.section--tight{ padding: 56px 0; }
.section--alt{ background: var(--paper-2); }
.section--dark{ background: var(--deep-teal); color: #DCEEF2; }
.section--dark h2, .section--dark h3{ color: var(--white); }

.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }

/* ---------------------------------- Buttons ---------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight:700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .25s var(--wave), box-shadow .25s var(--wave), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ochre);
  color: var(--deep-teal);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(224,165,39,.55); }
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: inherit;
}
.btn-outline:hover{ background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-ghost{
  background: rgba(20,166,199,.1);
  color: var(--deep-teal);
  border-color: rgba(20,166,199,.25);
}
.btn-ghost:hover{ background: rgba(20,166,199,.18); transform: translateY(-3px); }
.btn-block{ width:100%; }

/* ---------------------------------- Header ---------------------------------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 24px;
  gap: 20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:.7em;
}
.brand img{ height: 46px; width:auto; }
.brand-text{ font-family: var(--font-display); font-weight:700; color: var(--deep-teal); font-size:1.05rem; line-height:1.1; }
.brand-text span{ display:block; font-family: var(--font-body); font-weight:600; font-size:.62rem; letter-spacing:.15em; color: var(--aqua); text-transform:uppercase; margin-top:2px;}

.main-nav{
  display:flex;
  align-items:center;
  gap: 6px;
}
.main-nav a{
  padding: 10px 16px;
  font-weight:600;
  font-size:.92rem;
  color: var(--deep-teal);
  border-radius: 999px;
  position:relative;
  transition: background .2s, color .2s;
}
.main-nav a:hover{ background: var(--paper-2); color: var(--aqua); }
.main-nav a.active{ background: var(--deep-teal); color: var(--white); }

.header-cta{ display:flex; align-items:center; gap: 14px; }
.header-phone{ display:flex; align-items:center; gap:.5em; font-weight:700; color: var(--deep-teal); font-size:.92rem; }
.header-phone svg{ width:18px; height:18px; color: var(--ochre); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding: 8px;
}
.nav-toggle span{
  display:block;
  width: 26px; height: 3px;
  background: var(--deep-teal);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s var(--wave), opacity .3s;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------- Hero ---------------------------------- */
.hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--deep-teal) 10%, var(--deep-teal-2) 60%, #0C6885 100%);
  color: var(--white);
  padding: 96px 0 130px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:.6em;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px;
  border-radius: 999px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom: 22px;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  margin-bottom: .35em;
}
.hero h1 em{ color: var(--ochre); font-style: normal; }
.hero p.lead{
  font-size: 1.15rem;
  color: #CDE7EC;
  max-width: 46ch;
  margin-bottom: 2em;
}
.hero-actions{ display:flex; gap: 16px; flex-wrap:wrap; margin-bottom: 40px;}
.hero-stats{
  display:flex;
  gap: 34px;
  flex-wrap:wrap;
}
.hero-stats div strong{
  display:block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--white);
}
.hero-stats div span{ font-size:.82rem; color: #A9CDD5; text-transform:uppercase; letter-spacing:.08em; }

.hero-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  transform: rotate(1.2deg);
  border: 6px solid rgba(255,255,255,.14);
}
.hero-media img{ width:100%; height: 100%; object-fit: contain; aspect-ratio: 4/3.1; }
.hero-badge{
  position:absolute;
  bottom: -22px; left: -22px;
  background: var(--ochre);
  color: var(--deep-teal);
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
  font-family: var(--font-display);
  line-height:1.1;
}
.hero-badge span{ display:block; font-family: var(--font-body); font-weight:600; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; margin-top:3px;}

/* Ripple / wave divider — the site's signature motif, echoing water */
.wave-divider{
  position: relative;
  width: 100%;
  overflow:hidden;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg{ width: 100%; height: 90px; display:block; }
.wave-divider.flip{ transform: rotate(180deg); margin-top:0; margin-bottom:-2px;}

.ripple-line{
  width: 120px;
  height: 14px;
  margin: 10px 0 26px;
}
.ripple-line path{
  fill:none;
  stroke: var(--ochre);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-ripple 1.4s var(--wave) forwards .3s;
}
@keyframes draw-ripple{ to{ stroke-dashoffset: 0; } }

/* ---------------------------------- Page hero (inner pages) ---------------------------------- */
.page-hero{
  position:relative;
  background: linear-gradient(150deg, var(--deep-teal) 0%, var(--deep-teal-2) 70%, #0C6885 100%);
  color: var(--white);
  padding: 76px 0 110px;
  overflow:hidden;
}
.page-hero h1{ color:var(--white); font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom:.3em; }
.page-hero p{ color:#CDE7EC; max-width: 58ch; font-size: 1.05rem; }
.breadcrumb{ font-size:.85rem; color:#A9CDD5; margin-bottom: 18px; }
.breadcrumb a{ color:#A9CDD5; }
.breadcrumb a:hover{ color: var(--ochre); }

/* ---------------------------------- Cards / Grids ---------------------------------- */
.grid{ display:grid; gap: 28px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform .35s var(--wave), box-shadow .35s var(--wave);
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(6,58,78,.28); }

.icon-tile{
  width: 56px; height:56px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(140deg, var(--aqua), var(--deep-teal-2));
  color: var(--white);
  margin-bottom: 20px;
}
.icon-tile svg{ width: 28px; height: 28px; }
.icon-tile.ochre{ background: linear-gradient(140deg, var(--ochre), var(--ochre-dark)); color: var(--deep-teal);}
.icon-tile.leaf{ background: linear-gradient(140deg, var(--leaf), #1F6B37); }

.card h3{ font-size: 1.2rem; margin-bottom:.4em; }
.card p{ color: var(--ink-soft); font-size:.96rem; margin-bottom:0; }

/* Feature list ticks (Why choose us) */
.check-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 16px 28px; }
.check-item{ display:flex; align-items:flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.check-item svg{ flex:none; width:22px; height:22px; color: var(--leaf); margin-top:2px; }
.check-item strong{ display:block; font-family: var(--font-display); font-weight:600; color: var(--deep-teal); }
.check-item span{ font-size:.88rem; color: var(--ink-soft); }

/* Values pills */
.pill-row{ display:flex; flex-wrap:wrap; gap: 12px; }
.pill{
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight:700;
  font-size:.9rem;
  color: var(--deep-teal);
  box-shadow: var(--shadow-card);
  display:flex; align-items:center; gap:.5em;
}
.pill::before{ content:"●"; color: var(--ochre); font-size:.6rem; }

/* Process timeline (numbered — legitimate here, 9 real sequential steps) */
.process{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.process-step{
  position:relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.process-step::before{
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight:700;
  color: var(--aqua-light);
  -webkit-text-stroke: 1.5px var(--aqua);
  display:block;
  margin-bottom: 10px;
}
.process-step h4{ margin-bottom:.3em; font-size: 1.05rem; }
.process-step p{ color: var(--ink-soft); font-size:.9rem; margin:0; }

/* Stats band */
.stats-band{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  text-align:center;
}
.stat strong{ display:block; font-family: var(--font-display); font-size: 2.4rem; color: var(--ochre); }
.stat span{ color:#A9CDD5; text-transform:uppercase; font-size:.78rem; letter-spacing:.09em; }

/* Services preview / detail */
.service-row{
  display:grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child{ border-bottom:none; }
.service-row .num{ font-family: var(--font-display); color: var(--aqua-light); -webkit-text-stroke: 1px var(--aqua); font-size:1.3rem; }
.service-row h3{ font-size: 1.15rem; margin-bottom:.25em; }
.service-row p{ color: var(--ink-soft); margin:0; }

/* Project gallery */
.gallery-sheet{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-sheet img{ width:100%; }
.gallery-sheet figcaption{ padding: 16px 20px; font-size:.85rem; color: var(--ink-soft); }

/* Testimonial / reference cards */
.ref-table{ width:100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-card); }
.ref-table th, .ref-table td{ padding: 14px 20px; text-align:left; font-size:.94rem; }
.ref-table thead th{ background: var(--deep-teal); color: var(--white); font-weight:700; letter-spacing:.03em; }
.ref-table tbody tr:nth-child(odd){ background: var(--paper-2); }
.ref-table tbody td:first-child{ font-weight:700; color: var(--deep-teal); }

.quote-card{
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 28px;
  position:relative;
}
.quote-card .mark{ font-family: var(--font-display); font-size: 3rem; color: var(--aqua-light); line-height:0; display:block; margin-bottom: 10px; }
.avatar-badge{
  width: 46px; height:46px;
  border-radius:50%;
  background: linear-gradient(140deg, var(--deep-teal), var(--aqua));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-weight:700;
}
.quote-foot{ display:flex; align-items:center; gap: 12px; margin-top: 18px; }
.quote-foot strong{ display:block; color: var(--deep-teal); font-size:.94rem; }
.quote-foot span{ font-size:.8rem; color: var(--ink-soft); }

/* CTA banner */
.cta-banner{
  background: linear-gradient(120deg, var(--ochre), var(--ochre-dark));
  border-radius: 24px;
  padding: 52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 30px;
  flex-wrap:wrap;
  color: var(--deep-teal);
}
.cta-banner h2{ color: var(--deep-teal); margin-bottom:.2em; }
.cta-banner p{ margin:0; color: rgba(6,58,78,.8); }

/* ---------------------------------- Forms ---------------------------------- */
.form-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ display:flex; flex-direction:column; gap: 8px; margin-bottom: 20px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-weight:700; font-size:.88rem; color: var(--deep-teal); }
.form-field input, .form-field select, .form-field textarea{
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: .95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(20,166,199,.15);
}
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size:.8rem; color: var(--ink-soft); margin-top: 6px; }
.form-status{
  display:none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight:600;
  font-size:.92rem;
  margin-bottom: 20px;
}
.form-status.show{ display:block; }
.form-status.success{ background:#E4F5EA; color:#1F6B37; border:1px solid #BEE6CC; }
.form-status.error{ background:#FBEAEA; color:#A32B2B; border:1px solid #F3C6C6; }

/* Contact page layout */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items:start; }
.contact-info-card{
  background: var(--deep-teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3{ color: var(--white); }
.contact-line{ display:flex; gap: 14px; align-items:flex-start; margin-bottom: 22px; }
.contact-line svg{ width:22px; height:22px; color: var(--ochre); flex:none; margin-top:3px;}
.contact-line strong{ display:block; font-size:.95rem; }
.contact-line span{ font-size:.88rem; color:#B9DEE5; }
.map-wrap{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); margin-top: 28px;}
.map-wrap iframe{ width:100%; height: 320px; border:0; display:block; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer{ background: #052A38; color: #A9CDD5; padding-top: 64px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08);}
.footer-brand{ display:flex; align-items:center; gap:.7em; margin-bottom: 16px; }
.footer-brand img{ height: 40px; background:#fff; border-radius:8px; padding:4px; }
.footer-brand span{ font-family: var(--font-display); color:#fff; font-weight:700; }
.site-footer h4{ color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom: 18px; }
.site-footer a:hover{ color: var(--ochre); }
.footer-links li{ margin-bottom: 10px; font-size:.9rem; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 22px 0; font-size:.82rem; flex-wrap:wrap; gap:10px;}
.footer-bottom a{ color:#A9CDD5; }

/* ---------------------------------- Scroll reveal ---------------------------------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s var(--wave), transform .7s var(--wave); }
.reveal.in{ opacity:1; transform:none; }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }
.reveal-delay-4{ transition-delay: .32s; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .ripple-line path{ animation:none; stroke-dashoffset:0; }
  *{ animation-duration: .01ms !important; transition-duration:.01ms !important; }
}

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ order:-1; transform:none; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .process{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .stats-band{ grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
}

@media (max-width: 760px){
  .main-nav, .header-cta .btn, .header-phone{ display:none; }
  .nav-toggle{ display:block; }
  .main-nav.open{
    display:flex;
    position:absolute;
    top: 100%; left:0; right:0;
    background: var(--white);
    flex-direction:column;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-card);
    gap:2px;
  }
  .main-nav.open a{ padding: 12px 10px; }
  .grid-4, .grid-3, .grid-2, .check-grid, .process, .form-grid{ grid-template-columns: 1fr; }
  .stats-band{ grid-template-columns: repeat(2,1fr); }
  .cta-banner{ padding: 34px 26px; flex-direction:column; align-items:flex-start; }
  .section{ padding: 60px 0; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 30px 20px;}
}

@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 70px 0 100px; }
}
