/* =========================================================
   SGIGAFRICA — shared stylesheet
   Type: Fraunces (display) + Inter (text)
   Palette: deep indigo night / warm sand / savanna gold
   plus one accent colour per department
   ========================================================= */

:root{
  --ink:        #10192B;
  --ink-2:      #0A1220;
  --sand:       #EFEAE1;
  --sand-2:     #E3DBC8;
  --paper:      #FBF9F4;
  --line:       rgba(16,25,43,.14);
  --line-soft:  rgba(245,241,232,.18);
  --gold:       #D9A441;
  --gold-dark:  #B8842E;
  --text-light: #F5F1E8;

  --c-ict:      #2D6CDF;
  --c-realestate:#B5652D;
  --c-fintech:  #C9971F;
  --c-green:    #1F7A5C;
  --c-manuf:    #4A5560;
  --c-manuf-2:  #E2672A;

  --radius-s: 4px;
  --radius-m: 8px;
  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -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:'Fraunces',Georgia,serif;
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
p{ margin:0 0 1em; max-width:62ch; }
.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 32px;
}
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius:var(--radius-s);
  font-family:'Inter',sans-serif;
  font-weight:600;
  font-size:.95rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-gold{ background:var(--gold); color:var(--ink-2); }
.btn-gold:hover{ background:var(--gold-dark); transform:translateY(-1px); }
.btn-line-light{ border-color:rgba(245,241,232,.55); color:var(--text-light); }
.btn-line-light:hover{ border-color:var(--text-light); background:rgba(245,241,232,.08); }
.btn-line-dark{ border-color:var(--line); color:var(--ink); }
.btn-line-dark:hover{ border-color:var(--ink); background:rgba(16,25,43,.05); }
.btn-solid-accent{ background:var(--accent, var(--gold)); color:#fff; }
.btn-solid-accent:hover{ filter:brightness(.92); transform:translateY(-1px); }

/* ---------- top navigation ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(16,25,43,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
  max-width:var(--maxw); margin:0 auto;
}
.logo{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:1.28rem;
  color:var(--text-light);
  display:flex; align-items:center; gap:10px;
}
.logo-mark{
  width:12px; height:12px; background:var(--gold);
  transform:rotate(45deg);
  flex:0 0 auto;
}
.nav-links{
  display:flex; align-items:center; gap:28px;
}
.nav-links a{
  color:rgba(245,241,232,.82);
  font-size:.92rem;
  font-weight:500;
  padding:6px 0;
  border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  color:var(--text-light);
  border-color:var(--gold);
}
.nav-cta{
  background:var(--gold); color:var(--ink-2) !important;
  padding:9px 18px; border-radius:var(--radius-s); border-bottom:none !important;
  font-weight:600;
}
.nav-cta:hover{ background:var(--gold-dark); }
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:34px; height:34px; position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; position:absolute; left:6px; right:6px; height:2px; background:var(--text-light);
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span{ top:16px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle[aria-expanded="true"] span{ background:transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform:translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform:translateY(-8px) rotate(-45deg); }

@media (max-width:900px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--ink-2);
    flex-direction:column; align-items:flex-start;
    padding:10px 32px 26px;
    gap:4px;
    display:none;
    border-bottom:1px solid var(--line-soft);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding:12px 0; border-bottom:1px solid var(--line-soft); }
  .nav-cta{ margin-top:8px; text-align:center; width:100%; justify-content:center; display:flex; }
}

/* ---------- hero (home) ---------- */
.hero{
  background:
    radial-gradient(ellipse 900px 480px at 82% -10%, rgba(217,164,65,.16), transparent 60%),
    linear-gradient(180deg,var(--ink) 0%, var(--ink-2) 100%);
  color:var(--text-light);
  padding:104px 0 88px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.3rem, 4.4vw, 3.7rem);
  color:var(--text-light);
  max-width:14ch;
}
.hero p.lede{
  color:rgba(245,241,232,.78);
  font-size:1.12rem;
  max-width:46ch;
}
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero-figure{
  position:relative;
  aspect-ratio:1/1;
  border:1px solid rgba(245,241,232,.16);
  display:grid; place-items:center;
}
.hero-figure svg{ width:78%; height:78%; }

@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-figure{ max-width:280px; margin:0 auto; }
}

/* ---------- department hero (sub pages) ---------- */
.dept-hero{
  color:var(--text-light);
  background:linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 72%);
  padding:88px 0 72px;
  border-bottom:5px solid var(--accent);
  position:relative;
}
.dept-tag{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:600; font-size:.85rem;
  color:var(--accent);
  margin-bottom:18px;
}
.dept-tag::before{
  content:''; width:26px; height:2px; background:var(--accent);
}
.dept-hero h1{ color:var(--text-light); font-size:clamp(2.1rem,4vw,3.2rem); max-width:16ch; }
.dept-hero p.lede{ color:rgba(245,241,232,.78); font-size:1.08rem; max-width:52ch; }
.dept-hero-figure{ width:100%; }

/* ---------- generic section rhythm ---------- */
.section{ padding:88px 0; }
.section-tight{ padding:64px 0; }
.section-alt{ background:var(--sand); }
.section-dark{ background:var(--ink); color:var(--text-light); }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:32px;
  margin-bottom:44px; flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(1.7rem,2.6vw,2.3rem); max-width:16ch; }
.section-head p{ color:#4c5468; }
.section-dark .section-head p{ color:rgba(245,241,232,.72); }
.kicker{
  font-weight:600; font-size:.85rem; color:var(--gold-dark);
  margin-bottom:10px; display:block;
}
.section-dark .kicker{ color:var(--gold); }

/* ---------- department grid (home) ---------- */
.dept-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border:1px solid var(--line);
}
.dept-card{
  padding:34px 26px;
  border-right:1px solid var(--line);
  background:var(--paper);
  transition:background-color .2s ease, color .2s ease;
  display:flex; flex-direction:column; min-height:300px;
}
.dept-card:last-child{ border-right:none; }
.dept-card .dept-icon{ width:40px; height:40px; margin-bottom:22px; }
.dept-card h3{ font-size:1.15rem; margin-bottom:10px; }
.dept-card p{ font-size:.92rem; color:#4c5468; margin-bottom:auto; }
.dept-card .go{
  margin-top:22px; font-weight:600; font-size:.88rem;
  padding-top:16px; border-top:1px solid var(--line);
}
.dept-card:hover{ background:var(--accent); color:#fff; }
.dept-card:hover p{ color:rgba(255,255,255,.85); }
.dept-card:hover .go{ border-color:rgba(255,255,255,.35); }
.dept-card:hover svg *{ stroke:#fff !important; }

@media (max-width:1000px){
  .dept-grid{ grid-template-columns:repeat(2,1fr); }
  .dept-card{ border-bottom:1px solid var(--line); min-height:auto; }
  .dept-card:nth-child(2n){ border-right:none; }
}
@media (max-width:560px){
  .dept-grid{ grid-template-columns:1fr; }
}

/* ---------- about / stats ---------- */
.about-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:start;
}
.stat-list{ display:grid; grid-template-columns:1fr 1fr; gap:28px 32px; }
.stat-list div{ border-top:1px solid var(--line); padding-top:14px; }
.stat-num{ font-family:'Fraunces',serif; font-size:2.3rem; display:block; color:var(--ink); }
.stat-label{ font-size:.88rem; color:#4c5468; }
@media (max-width:860px){ .about-grid{ grid-template-columns:1fr; } }

/* ---------- presence ---------- */
.presence-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.presence-cell{ background:var(--paper); padding:22px 20px; }
.presence-cell .region{ font-weight:600; font-size:.8rem; color:var(--gold-dark); margin-bottom:8px; display:block; }
.presence-cell li{ font-size:.94rem; padding:4px 0; color:#33394a; }
@media (max-width:860px){ .presence-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .presence-grid{ grid-template-columns:1fr; } }

/* ---------- news ---------- */
.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.news-card{ background:var(--paper); padding:28px; display:flex; flex-direction:column; }
.news-date{ font-size:.82rem; font-weight:600; color:var(--gold-dark); margin-bottom:14px; }
.news-card h3{ font-size:1.12rem; margin-bottom:10px; }
.news-card p{ font-size:.93rem; color:#4c5468; }
.news-card .read{ margin-top:auto; font-weight:600; font-size:.88rem; padding-top:14px; }
@media (max-width:860px){ .news-grid{ grid-template-columns:1fr; } }

/* ---------- services / list blocks (department pages) ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.service-card{ background:var(--paper); padding:30px 26px; }
.service-card .num{ font-family:'Fraunces',serif; font-size:1rem; color:var(--accent); margin-bottom:14px; display:block; }
.service-card h3{ font-size:1.08rem; margin-bottom:8px; }
.service-card p{ font-size:.92rem; color:#4c5468; margin:0; }
@media (max-width:860px){ .service-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .service-grid{ grid-template-columns:1fr; } }

.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.pillar h3{ font-size:1.05rem; margin-bottom:8px; }
.pillar p{ font-size:.94rem; color:#4c5468; }
.pillar .rule{ width:34px; height:3px; background:var(--accent); margin-bottom:18px; }
@media (max-width:760px){ .pillars{ grid-template-columns:1fr; } }

.dept-stats{ display:flex; gap:48px; flex-wrap:wrap; border-top:1px solid var(--line-soft); padding-top:32px; margin-top:12px; }
.dept-stats .stat-num{ color:var(--text-light); }
.dept-stats .stat-label{ color:rgba(245,241,232,.68); }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--accent, var(--gold));
  color:#fff;
  padding:56px 0;
}
.cta-banner .container{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cta-banner h2{ color:#fff; font-size:1.7rem; margin:0; max-width:22ch; }
.cta-banner .btn{ background:#fff; color:var(--ink-2); }
.cta-banner .btn:hover{ background:rgba(255,255,255,.85); }

/* ---------- contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
.contact-info dl{ margin:26px 0 0; }
.contact-info dt{ font-size:.82rem; color:var(--gold); font-weight:600; margin-top:22px; }
.contact-info dd{ margin:6px 0 0; font-size:1.02rem; color:var(--text-light); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.86rem; font-weight:600; margin-bottom:6px; color:rgba(245,241,232,.85); }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border-radius:var(--radius-s);
  border:1px solid rgba(245,241,232,.28);
  background:rgba(245,241,232,.06);
  color:var(--text-light);
  font-family:'Inter',sans-serif; font-size:.96rem;
}
.field input::placeholder, .field textarea::placeholder{ color:rgba(245,241,232,.4); }
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--gold); outline-offset:2px; border-color:transparent; }
.field textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:.84rem; color:rgba(245,241,232,.55); margin-top:14px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink-2); color:rgba(245,241,232,.75); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; padding-bottom:44px; border-bottom:1px solid var(--line-soft); }
.footer-brand .logo{ margin-bottom:14px; }
.footer-brand p{ font-size:.9rem; color:rgba(245,241,232,.6); max-width:32ch; }
.footer-col h4{ font-family:'Inter',sans-serif; font-size:.85rem; font-weight:600; color:var(--text-light); margin-bottom:14px; }
.footer-col a{ display:block; font-size:.9rem; padding:5px 0; color:rgba(245,241,232,.68); }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:24px; flex-wrap:wrap; font-size:.84rem; color:rgba(245,241,232,.5); }
.social{ display:flex; gap:14px; }
.social a{ padding:0; color:rgba(245,241,232,.6); font-size:.84rem; }
.social a:hover{ color:var(--gold); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
