/* ============================================================
   Jaco Coetzee Attorneys — style.css
   ONE stylesheet, shared by EVERY page.
   Change a colour here and it changes across the whole site.
   That is the entire reason we keep CSS in its own file.
   ============================================================ */

:root {
  /* Brand colours, straight off your brand sheet */
  --teal:      #1D434E;
  --teal-dark: #14313a;
  --teal-tint: #eaf0f1;
  --gold:      #E1A730;
  --ink:       #000000;
  --body:      #2e3538;
  --muted:     #6b7680;
  --paper:     #ffffff;
  --wash:      #f5f6f6;
  --line:      #dfe3e5;

  /* Type. Calibri is a Microsoft font — it does NOT exist on most
     phones or Macs. Carlito is a free, metric-identical clone, and
     Lato is the closest widely-available web fallback. This stack
     means: use Calibri if the visitor has it, otherwise something
     that looks near-identical. */
  --sans: 'Carlito', 'Calibri', 'Lato', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); }

/* ---------- Reusable layout helpers ---------- */

.wrap {
  max-width: 1080px;   /* stops content stretching on wide monitors */
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section--wash { background: var(--wash); }
.section--teal { background: var(--teal); color: #dfe8ea; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 12px;
}

h1, h2, h3 { color: var(--teal); line-height: 1.25; }
.section--teal h2, .section--teal h3 { color: #fff; }

h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 18px; }
h3 { font-size: 20px; margin: 0 0 10px; }

.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 64ch; }
.section--teal .lede { color: #b9cbd0; }

/* ---------- Top bar & navigation ---------- */

.topbar {
  background: var(--teal);
  color: #cfdde1;
  font-size: 14px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: flex-end;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: #cfdde1; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

.masthead {
  border-bottom: 1px solid var(--line);
  position: sticky;   /* nav stays visible as you scroll */
  top: 0;
  background: #fff;
  z-index: 50;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 62px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a.active { border-bottom-color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: #17323a;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid var(--gold);
}
.btn:hover { background: #cf9724; border-color: #cf9724; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 96px 0 92px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  margin: 0 0 22px;
  max-width: 20ch;
}
.hero p { color: #c2d3d8; max-width: 58ch; font-size: 18px; }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* auto-fit + minmax = columns on a laptop, one column on a phone.
     No extra code needed for mobile. */
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 28px 26px;
}
.card p { margin-bottom: 0; font-size: 16px; }

/* ---------- Numbered pipeline ---------- */

.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step {
  background: rgba(255,255,255,.06);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
}
.step b { display: block; color: var(--gold); font-size: 13px; letter-spacing: .12em; }
.step span { color: #dfe8ea; font-size: 15px; }

/* ---------- Facts strip ---------- */

.facts { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.facts b { display: block; font-size: 30px; color: var(--teal); }
.facts span { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */

.footer-wave { width: 100%; }

footer.site {
  background: var(--teal-dark);
  color: #a9c0c6;
  font-size: 15px;
  padding: 54px 0 34px;
}
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
footer.site a { color: #a9c0c6; text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }

.legal {
  border-top: 1px solid rgba(255,255,255,.13);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #7f9aa2;
}

/* ---------- Team / people ---------- */

.person {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 52px;
}

.person .portrait {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;          /* crops a photo to fill the circle without squashing it */
  border: 4px solid var(--gold);
}

/* Placeholder shown until a real photograph is supplied.
   Delete .initials and use <img class="portrait"> once you have photos. */
.initials {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  letter-spacing: .04em;
  border: 4px solid var(--gold);
}

.person .role {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 6px;
}
.person h3 { font-size: 26px; margin: 0 0 4px; }
.person .quals { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

@media (max-width: 640px) {
  .person { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Contact form ---------- */

.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 600; color: var(--teal); font-size: 15px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 16px;
}
.form textarea { min-height: 140px; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .masthead .wrap { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 18px; }
  .section { padding: 54px 0; }
  .topbar .wrap { justify-content: flex-start; }
}
