/* SR Bingham Group Holdings (Pty) Ltd - Corporate Responsive Styles */

:root{
  --bg: #050D1F;
  --panel: #071A39;
  --panel-2:#0F2A57;
  --text: #E5E7EB;
  --muted:#A6B0C3;
  --border: rgba(31, 74, 138, 0.35);
  --accent: #2DD4BF;
  --accent-2:#3B82F6;
  --focus: rgba(45, 212, 191, 0.35);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 14px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(45, 212, 191, .16), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(59, 130, 246, .14), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.6;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, textarea{
  font: inherit;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:#0B1B3A;
  border:1px solid var(--border);
  border-radius:12px;
  z-index:9999;
}

.container{
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Header / Nav */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  border-bottom: 1px solid rgba(31, 74, 138, 0.25);
  background: rgba(5, 13, 31, 0.65);
  backdrop-filter: blur(10px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  position: relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand img{
  width: 200px;
}
.brand-name{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 14px;
  color:var(--muted);
}

.nav-toggle{
  display:none;
  appearance:none;
  border:1px solid var(--border);
  background: rgba(7, 26, 57, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding:10px 12px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  font-weight: 600;
  color: rgba(229, 231, 235, 0.9);
  font-size: 14px;
  padding: 10px 8px;
  border-radius: 12px;
}
.nav a:hover{
  background: rgba(31, 74, 138, 0.18);
}
.nav a:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.header-cta{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 26, 57, 0.7);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.55);
}
.btn:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn-primary{
  border-color: rgba(45, 212, 191, 0.55);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(59, 130, 246, 0.18));
}
.btn-ghost{
  background: transparent;
}

/* Main Sections */
main{
  padding: 24px 0 60px;
}

.hero{
  padding: 34px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items:center;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border:1px solid var(--border);
  background: rgba(7, 26, 57, 0.6);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(229, 231, 235, 0.9);
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, var(--accent) 35%, var(--accent-2) 100%);
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.10);
}

.hero h1{
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
}

.hero p{
  margin: 0;
  color: rgba(229, 231, 235, 0.9);
  font-size: 16px;
  max-width: 64ch;
}

.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-visual{
  border:1px solid var(--border);
  background: rgba(7, 26, 57, 0.45);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.section{
  padding: 56px 0;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-title h2{
  margin:0;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
}
.section-title p{
  margin:0;
  color: var(--muted);
  max-width: 60ch;
}

.grid-3{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 26, 57, 0.45);
  padding: 18px;
}
.card h3{
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.card p{
  margin:0;
  color: rgba(229,231,235,.86);
}
.card .card-media{
  border-radius: 16px;
  border:1px solid rgba(31, 74, 138, 0.35);
  overflow:hidden;
  background: rgba(5, 13, 31, 0.6);
}
.card .card-media img{
  width:100%;
}

ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(229,231,235,.9);
}
li{
  margin: 8px 0;
}

.pill-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(7, 26, 57, 0.35);
  font-weight: 700;
  font-size: 13px;
  color: rgba(229,231,235,.92);
}
.pill strong{
  color: #FFFFFF;
}

.split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.split-media{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 26, 57, 0.45);
  overflow:hidden;
  box-shadow: var(--shadow);
}

/* Projects */
.project-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.project-meta{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.map-frame{
  width:100%;
  height: 340px;
  border:0;
  border-radius: var(--radius);
  overflow:hidden;
}
.tag{
  border:1px solid var(--border);
  background: rgba(7, 26, 57, 0.35);
  border-radius: 999px;
  padding:8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(229,231,235,.9);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
form{
  display:grid;
  gap: 12px;
}
label{
  font-weight: 700;
  font-size: 13px;
  color: rgba(229,231,235,.92);
}
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(7, 26, 57, 0.35);
  color: var(--text);
}
input::placeholder, textarea::placeholder{ color: rgba(166,176,195,.72); }
textarea{
  min-height: 150px;
  resize: vertical;
}
.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  align-items:center;
}
.form-note{
  color: var(--muted);
  font-size: 13px;
}
.error{
  display:none;
  border:1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: rgba(254, 202, 202, 0.95);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
}
.error[aria-hidden="false"]{ display:block; }

/* Footer */
.site-footer{
  border-top: 1px solid rgba(31, 74, 138, 0.25);
  padding: 28px 0 40px;
  color: rgba(229,231,235,.86);
}
.footer-inner{
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.footer-brand{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.footer-brand img{
  width: 160px;
  margin-top: 4px;
}
.footer-links{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.footer-links a{
  color: rgba(229,231,235,.86);
  font-weight: 700;
  font-size: 13px;
}
.footer-links a:hover{
  color: #FFFFFF;
}
.fineprint{
  color: rgba(166,176,195,.85);
  font-size: 12px;
}

/* Reveal on scroll */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

section[id]{
  scroll-margin-top: 96px; /* Sticky header offset */
}

@media (min-width: 700px){
  .grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid{ grid-template-columns: 1.2fr 0.8fr; }
  .hero-grid{ grid-template-columns: 1fr 1fr; }
  .split{ grid-template-columns: 0.9fr 1.1fr; }
  .footer-grid{ grid-template-columns: 1.2fr 0.8fr; }
}

@media (max-width: 699px){
  .nav-toggle{ display:inline-flex; }
  .header-cta .btn-ghost{ display:none; }
  .nav{
    position:absolute;
    left: -16px;
    right: -16px;
    top: calc(100% + 10px);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding: 12px 16px 14px;
    background: rgba(5, 13, 31, 0.98);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border: 1px solid rgba(31, 74, 138, 0.25);
    box-shadow: var(--shadow);
  }
  .nav[hidden]{ display:none; }
  .nav a{
    width:100%;
    padding: 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ transition: none; }
  .btn{ transition:none; }
}

