/* ==========================================================================
   BethLOG Engineering — stylesheet
   Palette sampled directly from the company logo (gear mark, Ghana flag
   colors): deep forest green, gold, red, warm cream ground.
   ========================================================================== */

:root {
  --red: #d81b1b;
  --red-dark: #a91414;
  --green: #2e4a1c;
  --green-deep: #1f3212;
  --green-mid: #4d7133;
  --gold: #c6a636;
  --gold-light: #e0c265;
  --cream: #fffcf5;
  --cream-dim: #f6f1e4;
  --gray-200: #e4ddc8;
  --gray-600: #5c5848;
  --gray-900: #241f14;
  --radius: 2px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Source Sans 3", serif;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--gray-600); }

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 0.9em;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); }

.btn {
  display: inline-block;
  padding: 0 30px;
  height: 50px;
  line-height: 50px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-gold { background: transparent; border-color: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold); color: #fff; }

.btn-navy { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn-navy:hover { background: var(--red); border-color: var(--red); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-deep);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  border-bottom: 2px solid var(--gold);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; gap: 8px; }
.topbar-links { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-links a:hover { color: var(--gold-light); }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a { color: rgba(255,255,255,0.6); display: flex; }
.topbar-social a:hover { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 58px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--green-deep);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--gold);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--gray-200); }
  .nav-cta .btn-primary { display: none; }
  .topbar-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 150px 0 130px;
  background-size: cover;
  background-position: center;
  background-color: var(--green-deep);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31,50,18,0.94) 0%, rgba(31,50,18,0.5) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 0.4em; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 520px; font-family: "Source Sans 3", sans-serif; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  color: #fff;
  padding: 80px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--green-deep);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(31,50,18,0.86);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; font-family: "Source Sans 3", sans-serif; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--cream-dim); }
.section-navy { background: var(--green-deep); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.7); }

.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  padding: 36px 30px;
  transition: background 0.2s ease;
}
.card:hover { background: #fff; }
.card .icon-badge {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-weight: 700; font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 18px;
  width: 40px;
}

.industry-card {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.industry-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,50,18,0) 25%, rgba(31,50,18,0.94) 100%);
}
.industry-card .industry-body { position: relative; padding: 26px; z-index: 1; }
.industry-card h3 { color: #fff; margin-bottom: 6px; font-size: 1.2rem; }
.industry-card p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.92rem; font-family: "Source Sans 3", sans-serif; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.stat { border-left: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; }
.stat:first-child { border-left: none; }
.stat .stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
}
.stat .stat-label { color: rgba(255,255,255,0.65); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); } .stat:first-child { border-top: none; } }

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid var(--gray-200);
}
.split-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.split-media .split-content { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; background: var(--cream-dim); }
.split-list { list-style: none; margin: 24px 0 0; padding: 0; }
.split-list li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--gray-200); }
.split-list li:first-child { border-top: none; }
.split-list .num { font-family: "Playfair Display", serif; color: var(--gold); font-weight: 700; font-size: 1rem; flex-shrink: 0; width: 24px; }
.split-list h4 { margin: 0 0 3px; font-size: 1rem; }
.split-list p { margin: 0; font-size: 0.88rem; }
@media (max-width: 860px) {
  .split-media { grid-template-columns: 1fr; }
  .split-media img { min-height: 260px; }
}

.photo-banner {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.photo-banner .container { position: relative; z-index: 1; }
.photo-banner h3 { color: #fff; font-size: 1.4rem; max-width: 480px; margin: 0; }

.project-card {
  border: 1px solid var(--gray-200);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.project-card img { height: 220px; width: 100%; object-fit: cover; }
.project-card .project-body { padding: 26px; border-top: 2px solid var(--gold); }

.cta-band {
  background: var(--green-deep);
  color: #fff;
  border-radius: 0;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 3px solid var(--gold);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; font-family: "Source Sans 3", sans-serif; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 52px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.contact-info-item .icon-badge {
  flex-shrink: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 1px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}
.contact-info-item .icon-badge svg { display: block; margin: 0 auto; }
.contact-info-item > div:last-child { flex: 1 1 200px; min-width: 0; }
.contact-info-item h4 { margin-bottom: 4px; }
.contact-info-item p { margin: 0; word-break: break-word; }

form.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.85rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 4px;
}
.form-note.success { background: #eaf3e2; color: #2e4a1c; }
.form-note.error { background: #fbe8e8; color: #a91414; }

.map-embed { border-radius: 0; overflow: hidden; border: 1px solid var(--gray-200); margin-top: 44px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.68); padding: 68px 0 24px; border-top: 3px solid var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 46px; width: auto; }
.site-footer p { color: rgba(255,255,255,0.68); }

.site-footer h4 { color: var(--gold-light); font-size: 0.82rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; font-family: "Source Sans 3", sans-serif; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .footer-contact li { display: flex; gap: 10px; align-items: flex-start; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
