/* ==========================================================================
   Africa Singatha Construction - Site Stylesheet
   Brand: dark construction brown, golden yellow, burnt & bright orange
   ========================================================================== */

:root {
  --brown: #612811;
  --brown-dark: #451c0c;
  --gold: #FAB83A;
  --burnt: #BF4E27;
  --bright: #D65327;
  --bright2: #E05826;
  --white: #FFFFFF;
  --light: #F3F3F1;
  --charcoal: #111111;
  --grey-mid: #6b6560;
  --border-soft: #e3ddd3;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --max-w: 1180px;
  --gap: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brown);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 22px; text-transform: none; }
h4 { font-size: 18px; text-transform: none; }

p { max-width: 68ch; margin: 0 0 16px; }
p.lead { font-size: 19px; color: #3a3a3a; }

ul.plain { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--brown);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--brown-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: #e6a52b; border-color: #e6a52b; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--brown); }
.btn-brown {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}
.btn-brown:hover { background: var(--brown-dark); border-color: var(--brown-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--brown);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 3px solid var(--gold);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 48px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
}
.brand-text strong { display: block; color: var(--gold); font-size: 18px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 15px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-head);
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 14px 14px;
  border-bottom: 3px solid transparent;
}
.main-nav a.nav-link:hover,
.main-nav a.nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.main-nav .has-dropdown > a.nav-link::after {
  content: " \25BE";
  font-size: 11px;
}
.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--white);
  border-top: 3px solid var(--gold);
  min-width: 300px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  padding: 8px 0;
  max-height: 70vh;
  overflow-y: auto;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  display: block;
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--charcoal);
  font-size: 14.5px;
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--light); border-left-color: var(--burnt); color: var(--brown); }
.dropdown a.dropdown-all { font-weight: 700; border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 12px; color: var(--burnt); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-phone {
  color: var(--white);
  font-size: 14px;
}
.header-phone strong { display: block; color: var(--gold); font-size: 15px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--brown);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-cover.jpg");
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 24px 100px;
  position: relative;
  z-index: 2;
}
.hero-text-panel {
  background: rgba(69, 28, 12, 0.86);
  border-left: 4px solid var(--gold);
  padding: 32px 36px;
  max-width: 640px;
}
.hero .eyebrow {
  color: var(--gold);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 10px;
}
.hero h1 { color: var(--white); max-width: 22ch; }
.hero h2.hero-sub {
  color: var(--gold);
  text-transform: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 24px);
  max-width: 40ch;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}
.hero p.lead { color: #f4e9dd; max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-diamonds {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 480px;
  height: 480px;
  z-index: 1;
  opacity: 0.5;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--brown) 0%, var(--brown) 55%, var(--burnt) 100%);
  padding: 64px 24px 56px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  color: var(--gold);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 8px;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p.lead { color: #f4e9dd; margin-bottom: 0; }

/* Photo variant used on pages with a real background photo (e.g. About) */
.page-hero.has-photo {
  background: var(--brown);
  padding: 0;
}
.page-hero.has-photo .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  z-index: 0;
}
.page-hero.has-photo .container {
  padding-top: 64px;
  padding-bottom: 56px;
}
.page-hero .hero-text-panel {
  background: rgba(69, 28, 12, 0.86);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  max-width: 640px;
}
.page-hero .hero-text-panel h1,
.page-hero .hero-text-panel p.lead,
.page-hero .hero-text-panel .eyebrow,
.page-hero .hero-text-panel .breadcrumb { margin-bottom: 10px; }
.page-hero .hero-text-panel .breadcrumb { margin-top: 14px; margin-bottom: 0; }
.breadcrumb {
  font-size: 13px;
  color: #e9d3ba;
  margin-top: 14px;
}
.breadcrumb a { color: var(--gold); }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--brown); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-header { max-width: 720px; margin-bottom: 36px; }
.section-header .kicker {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

/* ---- Grids ---- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Cards (sharp-edged, brand accent bar, no shadows/rounding) ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--burnt);
  padding: 26px 24px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.service-tile {
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}
.service-tile img { height: 190px; width: 100%; object-fit: cover; }
.content-photo { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.service-tile-body { padding: 20px; border-top: 4px solid var(--gold); flex: 1; display: flex; flex-direction: column; }
.service-tile-body h3 { font-size: 19px; margin-bottom: 8px; }
.service-tile-body p { font-size: 15px; flex: 1; }
.service-tile-body .tile-link {
  margin-top: 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--burnt);
  border-bottom: 2px solid var(--burnt);
  align-self: flex-start;
}

.stat-block {
  text-align: left;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}
.stat-block .num {
  font-family: var(--font-head);
  font-size: 42px;
  color: var(--brown);
  display: block;
}
.stat-block.on-dark .num { color: var(--gold); }
.stat-block.on-dark { border-left-color: var(--gold); color: var(--white); }
.stat-block span.label { font-size: 14px; color: var(--grey-mid); text-transform: uppercase; letter-spacing: 0.4px; }
.stat-block.on-dark span.label { color: #e9d3ba; }

.icon-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.icon-list li:last-child { border-bottom: none; }
.icon-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--burnt);
  font-weight: 700;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(100deg, var(--burnt), var(--bright2));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #fdeadb; margin: 0 auto 24px; }

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.trust-item { font-family: var(--font-head); text-transform: uppercase; font-size: 14px; color: var(--brown); letter-spacing: 0.3px; }
.trust-item span { color: var(--burnt); }

/* ---- Gallery ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3px;
  background: var(--white);
  border: 2px solid var(--brown);
  color: var(--brown);
  padding: 9px 16px;
  cursor: pointer;
}
.filter-btn:hover { background: var(--light); }
.filter-btn.active { background: var(--brown); color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border: 1px solid var(--border-soft); }
a.gallery-item { transition: opacity .15s ease; }
a.gallery-item:hover { opacity: 0.88; }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(17,17,17,0.78);
  color: var(--white);
  font-size: 13px;
  padding: 8px 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.gallery-item.is-hidden { display: none; }

/* ---- FAQ Accordion ---- */
.accordion { border-top: 1px solid var(--border-soft); }
.accordion-item { border-bottom: 1px solid var(--border-soft); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger .plus {
  font-size: 22px;
  color: var(--burnt);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.accordion-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
}
.accordion-panel-inner { padding: 0 4px 20px; color: #3a3a3a; }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--brown);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9c0b3;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--burnt);
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
textarea { min-height: 140px; resize: vertical; }
.required-mark { color: var(--burnt); }
.form-msg { padding: 14px 16px; margin-top: 18px; font-size: 15px; display: none; }
.form-msg.success { display: block; background: #eaf3e6; border: 1px solid #7fa86b; color: #34521f; }
.form-msg.error { display: block; background: #fbe8e3; border: 1px solid var(--bright); color: #7a2c10; }

/* ---- Contact info blocks ---- */
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-info-list .label {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  color: var(--burnt);
  display: block;
  margin-bottom: 3px;
}
.map-embed { border: 1px solid var(--border-soft); width: 100%; height: 320px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--brown-dark);
  color: #e9dccb;
  padding: 56px 0 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #6d4326;
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-brand img { height: 54px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--gold); }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact-list li:nth-child(4),
.footer-contact-list li:nth-child(5),
.footer-contact-list li:nth-child(6) {
  padding-left: 26px;
  font-size: 14px;
  color: #c3ac8d;
}
.ficon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
  display: inline-flex;
}
.footer-bottom {
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #c3ac8d;
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Service / content page layout ---- */
.content-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.sidebar-card { background: var(--light); border-top: 4px solid var(--gold); padding: 24px; }
.sidebar-card h3 { font-size: 17px; }
.sidebar-service-list li { border-bottom: 1px solid var(--border-soft); }
.sidebar-service-list a { display: block; padding: 9px 0; font-size: 14.5px; }
.sidebar-service-list a:hover { color: var(--burnt); }
.sidebar-service-list a.active { color: var(--burnt); font-weight: 700; }

.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 30px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--border-soft); font-size: 15px; }
.spec-table th { background: var(--brown); color: var(--white); font-family: var(--font-head); text-transform: uppercase; font-size: 13.5px; }
.spec-table tr:nth-child(even) td { background: var(--light); }

.credential-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.credential-badge {
  border: 2px solid var(--brown);
  padding: 10px 18px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 13px;
  color: var(--brown);
}

/* ---- Diamond decoration ---- */
.diamond-deco {
  position: absolute;
  border: 1px dashed rgba(255,255,255,0.35);
  transform: rotate(45deg);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-columns { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .header-phone { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--brown);
    border-top: 2px solid var(--gold);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a.nav-link { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .dropdown { position: static; box-shadow: none; border-top: none; min-width: auto; background: var(--brown-dark); display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 20px 64px; }
  h1 { font-size: 32px; }
}
