/* =========================
   Base Reset & Typography
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-neon: #9acd32; /* neon green */
  --bg-panel: #ffffff;
  --bg-panel-alt: #f4ffe0;
  --bg-dark: #111111;
  --text-main: #101010;
  --text-muted: #404040;
  --accent-soft: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-neon); /* neon green across whole page */
}

/* =========================
   Layout Shell / Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(154, 205, 50, 0.92); /* neon w/ blur */
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-africa {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 15%, #ffffff, #9acd32 50%, #6c9a22 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 12px 22px rgba(0, 0, 0, 0.25);
}

.logo-text {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

/* =========================
   Navigation
   ========================= */

.main-nav {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.7rem; /* smaller menu words */
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #000;
  position: relative;
  padding-bottom: 2px;
}

/* ACTIVE PAGE (any page) */
.nav-links a.nav-current {
  font-weight: 700;
  color: #000000;
}

/* underline base + hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #000000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  transition: width 0.16s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ACTIVE underline always visible */
.nav-links a.nav-current::after {
  width: 100%;
}

/* Highlight PROJECTS link via class (always pill) */
.nav-links a.nav-projects {
  padding: 0.28rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #000000;
  color: #9acd32;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
}

/* Hamburger button */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #000000;
  border-radius: 999px;
  margin: 4px 0;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Sections & Panel Containers
   ========================= */

.section {
  padding: 3.5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 2.2rem;
  border: 2px solid var(--accent-soft);
}

.section-alt .section-inner {
  background: var(--bg-panel-alt);
}

.section-dark .section-inner {
  background: #000000;
  color: #fdfdfd;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Titles */

.section-header {
  margin-bottom: 2.2rem;
}

.section-header h1,
.section-header h2 {
  font-family: "Poppins", system-ui, sans-serif;
  margin: 0 0 0.7rem;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
}

.section-header h1 {
  font-size: 2.4rem;
}

.section-header .section-subtitle {
  margin: 0.2rem 0;
  max-width: 46rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Centered headers for non-home pages */
.section-header-center {
  text-align: center;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Hero (Home)
   ========================= */

.hero {
  padding-top: 3rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.7rem 2.4rem;
  border: 2px solid var(--accent-soft);
}

.hero-copy .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #000000;
  margin: 0 0 0.7rem;
}

.hero-copy h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.3rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
}

.hero-badges span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.05rem;
  background: #000000;
  color: #9acd32;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* HERO IMAGES – 4 images: top, two middle, bottom */

.hero-image-wrapper {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  grid-template-rows: auto auto auto;
  gap: 0.8rem;
}

.hero-image-wrapper img:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
  border-radius: 1.6rem;
  height: 300px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.hero-image-wrapper img:nth-child(2),
.hero-image-wrapper img:nth-child(3) {
  border-radius: 1.2rem;
  height: 140px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper img:nth-child(4) {
  grid-column: 1 / span 2;
  grid-row: 3;
  border-radius: 1.6rem;
  height: 230px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* =========================
   Buttons
   ========================= */

.btn {
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.7rem;
  border: 2px solid #000;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, color 0.12s ease-out;
}

.btn-primary {
  background: #000000;
  color: #9acd32;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.btn-accent {
  background: #ffffff;
  color: #000000;
}

.btn-accent:hover {
  background: #f5f5f5;
}

.btn-light {
  background: #ffffff;
  color: #000000;
}

.btn-light:hover {
  background: #f0f0f0;
}

/* =========================
   "Why We Build With Earthbags"
   ========================= */

.section-alt .section-inner {
  background: var(--bg-panel-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.why-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* =========================
   Builder Section (Home)
   ========================= */

.builder-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.builder-text p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}

.builder-text a {
  color: #000000;
  text-decoration: underline;
}

.builder-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.builder-photo-frame {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--accent-soft);
}

.builder-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.builder-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Builder page IG inline handle */

.builder-ig-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  margin-left: 0.25rem;
}

.builder-ig-inline .handle-text {
  text-decoration: underline;
}

.builder-ig-inline:hover .handle-text {
  opacity: 0.8;
}

.ig-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

/* =========================
   Projects Gallery
   ========================= */

.projects-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.project-item {
  border-radius: 1.4rem;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

/* Big images + zoom on hover */
.project-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.18s ease-out;
}

.project-item:hover img {
  transform: scale(1.04);
}

.project-item figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================
   Services Cards
   ========================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card-body {
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.card-price {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: #000000;
}

.card-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================
   Process Page
   ========================= */

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  margin-bottom: 1.6rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.22);
}

.process-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.process-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.process-note {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.85);
  color: #9acd32;
  font-size: 0.95rem;
}

/* =========================
   Workshops Page
   ========================= */

.workshops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.workshop-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.workshop-calendar {
  border-radius: 1.2rem;
  background: #000000;
  color: #9acd32;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calendar-month {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.calendar-year {
  font-size: 0.85rem;
  opacity: 0.8;
}

.calendar-body {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.calendar-placeholder {
  display: block;
}

.card-content p {
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* =========================
   Contact Page Box
   ========================= */

.section-dark .section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.ready-inner {
  max-width: 760px;
  margin: 0 auto;
}

.ready-box {
  background: #000000;
  border-radius: 1.6rem;
  padding: 2.2rem 1.9rem;
  border: 2px solid #9acd32;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.ready-box h2 {
  margin: 0 0 1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.9rem;
  text-align: center;
}

.ready-text-large {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1rem;
  text-align: center;
}

.ready-text-small {
  font-size: 0.93rem;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.ready-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* =========================
   Modal (Contact Form)
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.6rem;
  padding: 1.9rem 1.8rem 1.8rem;
  position: relative;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  border: 2px solid #000;
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.55rem;
}

.modal-subtitle {
  margin: 0 0 1.3rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================
   Contact Form
   ========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

input,
select,
textarea {
  border-radius: 0.9rem;
  border: 2px solid var(--accent-soft);
  padding: 0.6rem 0.8rem;
  font-size: 0.93rem;
  font-family: inherit;
  background: #fdfdfd;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #000;
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: #000;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image-wrapper {
    order: -1;
  }

  .builder-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-photo {
    height: 230px;
  }

  .workshop-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1.1rem;
  }

  .nav-toggle {
    display: block;
  }

  /* MOBILE NAV BEHAVIOR */
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(154, 205, 50, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: none;
  }

  .main-nav.nav-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.4rem 1.3rem;
    gap: 0.7rem;
  }

  .section {
    padding-inline: 1.1rem;
  }

  .section-inner,
  .hero-inner {
    padding: 1.8rem 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .hero-image-wrapper img:nth-child(1) {
    height: 240px;
  }

  .hero-image-wrapper img:nth-child(2),
  .hero-image-wrapper img:nth-child(3) {
    height: 130px;
  }

  .hero-image-wrapper img:nth-child(4) {
    height: 210px;
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .workshop-card {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding-inline: 1rem;
  }

  .hero-inner {
    padding-inline: 1.4rem;
  }

  .section-header h1,
  .section-header h2 {
    font-size: 1.9rem;
  }

  .projects-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}