/* ==========================================================================
   Taurus Speciality Solutions (Pty) Ltd - Official Web Stylesheet
   Design System: Deep Slate Navy (#192a35), Earth Gold (#c59b27 / #947243),
   Crisp White, Clean Architectural Lines.
   ========================================================================== */

:root {
  --navy-darkest: #101d26;
  --navy-dark: #192a35;
  --navy-mid: #223746;
  --navy-light: #2c4456;
  --gold-accent: #c59b27;
  --gold-hover: #d9ab2c;
  --gold-muted: #947243;
  --gold-soft: rgba(197, 155, 39, 0.12);
  --text-main: #1d2931;
  --text-muted: #5a6e7b;
  --text-light: #8fa1ae;
  --bg-light: #f5f8fa;
  --bg-tinted: #edf2f6;
  --white: #ffffff;
  --border-light: #e1e7ec;
  --border-dark: #2a4151;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
  --max-w: 1200px;
  --radius: 6px;
  --transition: all 0.22s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-hover);
}

h1, h2, h3, h4 {
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Top Header & Navigation Bar
   ========================================================================== */
.topbar {
  background: var(--navy-darkest);
  color: var(--text-light);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border-dark);
  padding: 6px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar .status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.topbar .status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold-accent);
}

.header {
  background: var(--navy-dark);
  border-bottom: 2px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(16, 29, 38, 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.wordmark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.wordmark strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.1;
}

.wordmark span {
  display: block;
  font-size: 0.65rem;
  color: var(--gold-accent);
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: #cbd7df;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-accent);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--white);
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  background: var(--gold-accent);
  color: var(--navy-darkest);
  border: 1px solid var(--gold-accent);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy-darkest);
  transform: translateY(-1px);
}

.btn.sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

.btn.light {
  background: var(--white);
  color: var(--navy-dark);
  border-color: var(--white);
}

.btn.light:hover {
  background: var(--bg-light);
  color: var(--navy-dark);
}

.btn.outline {
  background: transparent;
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn.outline:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-muted);
  margin-top: 10px;
}

.arrow-link:hover {
  color: var(--gold-accent);
  transform: translateX(3px);
}

/* ==========================================================================
   Hero & Page Header
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy-dark) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  border-bottom: 3px solid var(--gold-accent);
}

.hero-content {
  max-width: 860px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.15rem;
  color: #cfdbe2;
  margin-bottom: 26px;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-light);
  border-top: 1px solid var(--border-dark);
  padding-top: 18px;
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-note span::before {
  content: "✓";
  color: var(--gold-accent);
  font-weight: bold;
}

.page-head {
  background: var(--navy-dark);
  color: var(--white);
  padding: 50px 0 45px;
  border-bottom: 1px solid var(--border-dark);
}

.page-head h1 {
  color: var(--white);
  margin: 10px 0 14px;
}

.page-head p {
  font-size: 1.08rem;
  color: #cfdbe2;
  max-width: 780px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-accent);
}

/* ==========================================================================
   Trust Bar & Credential Strips
   ========================================================================== */
.trust {
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.trust-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.trust-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dark);
  line-height: 1.35;
}

.trust strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-dark);
}

.trust small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.metric-bar {
  background: var(--navy-darkest);
  border-bottom: 1px solid var(--border-dark);
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-accent);
}

.metric-bar-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section {
  padding: 60px 0;
}

.section.tinted {
  background: var(--bg-light);
}

.section.dark {
  background: var(--navy-darkest);
  color: var(--white);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section.dark p {
  color: #a4b7c4;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 6px 0 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 720px;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.four-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.photo {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(16, 29, 38, 0.1);
  border: 1px solid var(--border-light);
}

.check-list {
  list-style: none;
  margin: 18px 0 24px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-accent);
  font-weight: 800;
}

/* Service & Sector Cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 29, 38, 0.05);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(16, 29, 38, 0.12);
  border-color: var(--gold-accent);
}

.service-card figure {
  height: 220px;
  overflow: hidden;
  background: var(--navy-darkest);
}

.service-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .pad {
  padding: 22px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.sector-card:hover {
  border-color: var(--gold-accent);
  transform: translateY(-2px);
}

.sector-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

.sector-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.sector-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Detail Grid (About / Capabilities) */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.detail {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
}

.detail:hover {
  border-color: var(--gold-accent);
}

.detail .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.detail h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.detail p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Feature boxes in Dark mode */
.feature {
  background: var(--navy-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 22px;
}

.feature .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.feature h3 {
  color: var(--white);
  margin-bottom: 8px;
}

/* Regional People / Offices */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.person {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 14px rgba(16, 29, 38, 0.04);
}

.person h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.office-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.person p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Callout Strip */
.callout {
  background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-left: 4px solid var(--gold-accent);
}

.callout h3 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.callout p {
  color: #cfdbe2;
  font-size: 0.95rem;
}

/* Notices */
.notice {
  background: var(--bg-tinted);
  border-left: 3px solid var(--gold-accent);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Projects & Gallery
   ========================================================================== */
.project-mini {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.project-mini:hover {
  transform: translateY(-3px);
  border-color: var(--gold-accent);
}

.project-fig {
  position: relative;
  height: 200px;
  background: var(--navy-darkest);
}

.project-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-fig .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 29, 38, 0.88);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  backdrop-filter: blur(4px);
}

.story-grid figure {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.story-grid figure img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.story-grid figcaption {
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.story-grid figcaption span {
  color: var(--gold-accent);
  font-family: var(--font-mono);
  margin-right: 6px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  background: var(--bg-tinted);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy-dark);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}

.gallery-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery button {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery button:hover {
  transform: translateY(-2px);
  border-color: var(--gold-accent);
  box-shadow: 0 6px 18px rgba(16, 29, 38, 0.1);
}

.gallery button img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.gallery button label {
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 29, 38, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox figure {
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox figure img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox figcaption {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   Downloads & Documents
   ========================================================================== */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.download-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(16, 29, 38, 0.05);
}

.doc-icon {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-accent);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  margin-bottom: 14px;
}

.download-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* ==========================================================================
   Contact Layout & Form
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.contact-card a {
  font-weight: 700;
  color: var(--gold-muted);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--gold-accent);
}

.form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 6px 20px rgba(16, 29, 38, 0.05);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-stack);
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--white);
  transition: var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 0.95rem;
}

.form small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

.muted {
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-darkest);
  color: var(--text-light);
  border-top: 3px solid var(--gold-accent);
  padding: 50px 0 24px;
  font-size: 0.88rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-main h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-main a {
  display: block;
  color: #a4b7c4;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.footer-main a:hover {
  color: var(--gold-accent);
}

.footer-main p {
  color: #a4b7c4;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-darkest);
    border-bottom: 2px solid var(--border-dark);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .header-cta {
    display: none;
  }
}