/* ===========================
   Webesabi Engineering — Styles
   =========================== */

:root {
  --green: #128a0f;
  --green-dark: #0b5c09;
  --green-darker: #093f07;
  --black: #14171a;
  --charcoal: #23272b;
  --white: #ffffff;
  --off-white: #f6f8f6;
  --gray: #6b7570;
  --gray-light: #e7ece7;
  --amber: #f5a623;

  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(10, 30, 10, 0.12);
  --shadow-sm: 0 4px 14px rgba(10, 30, 10, 0.1);
  --container: 1180px;
}

* { 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.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--black);
  color: #d7ddd7;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--green {
  background: linear-gradient(135deg, var(--green-darker), var(--green));
  color: #eafbea;
}
.section--green h2 { color: var(--white); }
.section--off { background: var(--off-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--amber);
  display: inline-block;
  border-radius: 2px;
}
.section--dark .eyebrow, .section--green .eyebrow { color: var(--amber); }

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

.lead {
  font-size: 1.08rem;
  color: var(--gray);
}
.section--dark .lead, .section--green .lead { color: #cfe6cf; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gray-light);
  backdrop-filter: blur(6px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 52px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--green); background: var(--off-white); }
.nav-links a.active { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--black);
  color: #cfd6cf;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd6cf; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-rc { color: var(--amber); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,30,7,.88) 10%, rgba(9,30,7,.55) 55%, rgba(9,30,7,.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}
.hero-content .eyebrow { color: var(--amber); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: .4em;
}
.hero h1 em {
  font-style: normal;
  color: #6bdf68;
}
.hero p.lead { color: #e4f2e3; max-width: 540px; }
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat {
  padding: 10px 34px 10px 0;
  border-right: 1px solid rgba(255,255,255,.25);
  margin-right: 34px;
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.hero-stats .label {
  font-size: .8rem;
  color: #cfe6cf;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  padding: 150px 0 70px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9,30,7,.88), rgba(9,30,7,.78));
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .9rem;
  color: #d9ecd8;
}
.breadcrumb a:hover { color: var(--amber); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(18,138,15,.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--gray); font-size: .95rem; margin-bottom: 0; }

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media .float-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--green);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media .float-card .num { font-size: 2.2rem; font-weight: 700; font-family: var(--font-head); }
.split-media .float-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.check-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Values / why choose ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}
.value-grid .service-icon { margin-left: auto; margin-right: auto; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--gray); font-size: .92rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.team-card {
  background: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
}
.team-card .photo {
  height: 190px;
  background: var(--green-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.4rem;
  font-family: var(--font-head);
  font-weight: 700;
}
.team-card h4 { margin: 18px 0 2px; }
.team-card .role { color: var(--green); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Projects / Gallery ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card .thumb {
  height: 240px;
  overflow: hidden;
  position: relative;
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .thumb img { transform: scale(1.08); }
.project-card .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
}
.project-card .body { padding: 22px 24px; }
.project-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.project-card .meta {
  color: var(--gray);
  font-size: .85rem;
  margin-bottom: 0;
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 18px;
}
.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform .4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,14,8,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--green); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: #d9ecd8;
  font-size: .9rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-darker), var(--green));
  border-radius: var(--radius);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #d9f2d8; margin-bottom: 0; }

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-card {
  position: relative;
  padding: 30px 22px;
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius);
}
.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(18,138,15,.15);
  display: block;
  margin-bottom: 8px;
}
.process-card h3 { font-size: 1.05rem; }
.process-card p { color: var(--gray); font-size: .9rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 50px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-light);
}
.contact-info-card:last-child { border-bottom: none; }
.contact-info-card .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(18,138,15,.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-card p { color: var(--gray); margin-bottom: 2px; font-size: .93rem; }

.form-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18,138,15,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--gray);
  display: none;
}
.form-note.show { display: block; color: var(--green-dark); font-weight: 600; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Offices ---------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.office-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 30px;
}
.office-card .tag2 {
  display: inline-block;
  background: rgba(18,138,15,.1);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.office-card h3 { font-size: 1.1rem; }
.office-card p { color: var(--gray); font-size: .93rem; }

/* ---------- Testimonial ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.testi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px;
}
.testi-card p { color: #dfeadf; font-style: italic; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white); font-family: var(--font-head);
}
.testi-card .name { font-weight: 700; color: var(--white); font-size: .92rem; }
.testi-card .role { font-size: .8rem; color: #b9d3b8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #b7c0b7;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 46px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 6px; }
.footer-brand p { color: #97a397; font-size: .9rem; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.social-row a:hover { background: var(--green); }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #b7c0b7; font-size: .9rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-col p { color: #b7c0b7; font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: .82rem;
  color: #8a958a;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-rc {
  display: inline-block;
  background: rgba(255,255,255,.12);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--amber);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2 260px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 14px 24px 20px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--gray-light);
  }
  .topbar-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 30px; }
  .hero { min-height: 92vh; }
  .hero-stats .stat { padding-right: 20px; margin-right: 20px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  .gallery-grid { columns: 1 100%; }
  .page-header { padding: 130px 0 56px; }
}
