/* ============================================================
   Vulindlela Tyre Breakdown Services — Design System
   ============================================================ */
:root {
  --navy:       #2D3270;
  --navy-dark:  #1e2250;
  --navy-900:   #14163a;
  --gold:       #C9A535;
  --gold-light: #e0bc52;
  --wa:         #25D366;
  --wa-dark:    #1da851;
  --ink:        #1b1d2e;
  --body:       #4a4e63;
  --muted:      #7c8094;
  --line:       #e6e8f0;
  --gray-50:    #f7f8fc;
  --gray-100:   #eef0f7;
  --white:      #ffffff;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 6px 24px rgba(20,22,58,0.08);
  --shadow-lg:  0 18px 50px rgba(20,22,58,0.16);
  --shadow-gold:0 8px 24px rgba(201,165,53,0.35);
  --container:  1180px;
  --ease:       0.25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { color: var(--body); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.82); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.text-center { text-align: center; }
.gold { color: var(--gold); }

/* ── Section header ── */
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 0.6rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: 0.97rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-gold    { background: var(--gold); color: var(--navy-dark); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-light); }
.btn-whatsapp{ background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,0.35); }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-navy    { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--gray-50); }
.btn-block   { width: 100%; }
.btn-lg      { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(20,22,58,0.08); }
/* Stacked header: large logo on its own row, menu centered below */
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.brand { flex: 0 0 100%; display: flex; justify-content: center; align-items: center; padding: 1.2rem 0 0.5rem; }
.brand img { height: 280px; width: auto; transition: height var(--ease), padding var(--ease); }
.site-header.scrolled .brand { padding: 0.55rem 0 0.35rem; }
.site-header.scrolled .brand img { height: 70px; }
.nav { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.9rem; padding-bottom: 0.9rem; }
.nav > a:not(.btn) {
  font-weight: 600; font-size: 0.96rem; color: var(--ink); position: relative; padding: 0.25rem 0;
  transition: color var(--ease);
}
.nav > a:not(.btn):not(.nav-phone)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold);
  transition: width var(--ease);
}
.nav > a:not(.btn):hover::after, .nav > a.active::after { width: 100%; }
.nav > a.active { color: var(--navy); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--navy);
  white-space: nowrap;
}
.nav-phone svg { width: 1.05em; height: 1.05em; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--ease); }

/* ── Hero ── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,22,58,0.78), rgba(30,34,80,0.92)),
              url('../images/breakdown.jpg') center/cover no-repeat;
}
.hero::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 80% 20%, rgba(201,165,53,0.18), transparent 45%);
  pointer-events:none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem); max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 .gold { color: var(--gold-light); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.88); margin: 1.3rem 0 2rem; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(201,165,53,0.16); border: 1px solid rgba(201,165,53,0.4);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.5);} 70%{box-shadow:0 0 0 8px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }

/* ── Stat bar ── */
.statbar { background: var(--navy-dark); }
.statbar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 1.8rem 1rem; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.4rem; }

/* ── Page banner (inner pages) ── */
.page-banner {
  background: linear-gradient(180deg, rgba(20,22,58,0.82), rgba(30,34,80,0.95)),
              url('../images/breakdown.jpg') center/cover no-repeat;
  color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin-top: 0.9rem; font-size: 1.08rem; }

/* ── Cards / grids ── */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: var(--gold-light); margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }

/* feature list inside cards */
.feature-list { margin-top: 1rem; display: grid; gap: 0.5rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--body); }
.feature-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }

/* ── Split (image + text) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.split.reverse .split-img { order: 2; }

/* ── Why / icon row ── */
.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-item .icon { flex: none; }

/* ── Steps ── */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy-dark); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }

/* ── Size chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 0.6rem 1.15rem;
  font-weight: 700; color: var(--navy); font-size: 0.95rem;
}

/* ── Locations ── */
.loc-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; transition: var(--ease); }
.loc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.loc-card .prov { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.loc-card h3 { font-size: 1.1rem; margin: 0.25rem 0 0.3rem; }
.loc-card .meta { font-size: 0.9rem; color: var(--muted); }
.loc-card.hq { border-color: var(--gold); background: linear-gradient(180deg,#fffdf5,#fff); }
.loc-card.hq .tag { display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color: var(--navy-dark); background: var(--gold); border-radius:6px; padding:2px 8px; margin-top:0.4rem; }

/* province coverage */
.prov-grid .card { text-align: center; }
.prov-grid .big { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }

/* ── Timeline ── */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2rem; }
.timeline::before { content:''; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item::before { content:''; position:absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); margin-left: 0; }
.tl-item .year { font-weight: 800; color: var(--navy); font-size: 0.95rem; letter-spacing: 0.04em; }
.tl-item h3 { font-size: 1.15rem; margin: 0.15rem 0 0.35rem; }
.tl-item p { font-size: 0.96rem; }

/* ── Values ── */
.value h3 { display:flex; align-items:center; gap:0.6rem; font-size: 1.12rem; }
.value h3 svg { width: 22px; height: 22px; color: var(--gold); }

/* ── Recognition ── */
.rec-card { text-align:center; }
.rec-card .icon { margin-inline:auto; }

/* ── CTA band ── */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color:#fff; border-radius: var(--radius); padding: clamp(2.5rem,5vw,3.5rem); text-align:center; position:relative; overflow:hidden; }
.cta-band::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 85% 15%, rgba(201,165,53,0.2), transparent 50%); }
.cta-band > * { position: relative; z-index:1; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0.7rem auto 1.8rem; }
.cta-band .hero-cta { justify-content: center; }

/* ── Footer ── */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { height: 80px; width: auto; margin-bottom: 1.2rem; filter: drop-shadow(0 0 2px #9ca3af) drop-shadow(0 0 2px #9ca3af); }
.footer p { color: rgba(255,255,255,0.62); font-size: 0.92rem; }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color var(--ease); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { display: grid; gap: 0.7rem; }
.footer-contact div { display:flex; gap:0.6rem; align-items:flex-start; }
.footer-contact svg { width:18px;height:18px;color:var(--gold);flex:none;margin-top:3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ── WhatsApp Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 1.2rem;
  background: rgba(15,16,40,0.6); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: grid; animation: fade .2s ease; }
@keyframes fade { from{opacity:0} to{opacity:1} }
.modal {
  background: #fff; border-radius: var(--radius); width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  padding: 2rem 1.9rem 1.8rem; position: relative; box-shadow: var(--shadow-lg); animation: pop .25s ease;
}
@keyframes pop { from{transform:translateY(14px) scale(.98); opacity:0} to{transform:none; opacity:1} }
.modal h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.modal > p { font-size: 0.95rem; margin-bottom: 1.3rem; }
.modal-close { position: absolute; top: 0.9rem; right: 1rem; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.97rem; color: var(--ink); background: var(--gray-50); transition: var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(45,50,112,0.1); }
.field textarea { resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c8094' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}

/* ── Contact page ── */
.split.top { align-items: start; }
.contact-card { padding: 2.2rem 2rem; }
.contact-card h3 { margin-bottom: 1.3rem; }
.contact-info-list { display: grid; gap: 1.3rem; margin: 1.4rem 0 2rem; }
.contact-info-list .row { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info-list .icon { width: 44px; height: 44px; flex: none; margin: 0; }
.contact-info-list .icon svg { width: 22px; height: 22px; }
.contact-info-list strong { display: block; color: var(--ink); font-size: 0.95rem; }
.contact-info-list a, .contact-info-list span { color: var(--body); font-size: 0.96rem; }
.contact-info-list a:hover { color: var(--navy); }
.notice {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow);
}
.notice h4 { color: #fff; font-size: 1.15rem; margin-bottom: 0.4rem; }
.notice p { color: rgba(255,255,255,0.8); font-size: 0.94rem; margin-bottom: 1.1rem; }
.notice .hero-cta { gap: 0.7rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-alert { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.93rem; font-weight: 600; }
.form-alert.ok  { background: #e8f8ee; color: #1b9d54; border: 1px solid #b8ebcb; }
.form-alert.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.geo-row { margin-top: 0.55rem; }
.geo-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  background: var(--gray-50); border: 1.5px solid var(--line); color: var(--navy);
  font-family: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.6rem 0.95rem; border-radius: 10px;
  transition: var(--ease);
}
.geo-btn:hover { border-color: var(--navy); background: #fff; }
.geo-btn:disabled { opacity: 0.6; cursor: default; }
.geo-btn svg { width: 1.05em; height: 1.05em; flex: none; }
.geo-status { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.geo-status.ok  { color: #1b9d54; font-weight: 600; }
.geo-status.err { color: #c0392b; }

.modal-note { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.modal-note a { color: var(--navy); font-weight: 700; }

/* ── Floating WhatsApp button ── */
.fab {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.2rem; border: 0; border-radius: 100px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45); transition: transform var(--ease), background var(--ease);
}
.fab:hover { transform: translateY(-3px); background: var(--wa-dark); }
.fab svg { width: 24px; height: 24px; }
.fab .fab-text { display: inline; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .statbar .container { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* Revert to a compact single-row bar: logo left, hamburger right */
  .header-inner { flex-wrap: nowrap; justify-content: space-between; height: 78px; }
  .brand { flex: 0 0 auto; justify-content: flex-start; padding: 0; }
  .brand img, .site-header.scrolled .brand img { height: 56px; }
  .nav {
    flex: initial; position: fixed; inset: 78px 0 auto 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform var(--ease); z-index: 99;
  }
  .nav.open { transform: none; }
  .nav > a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.9rem; }
  .nav-phone { justify-content: flex-start; }
  .site-header.menu-open .nav-toggle span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .fab .fab-text { display: none; }
  .fab { padding: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
