/* =========================================================
   ADAPT-Nepal — Design System
   Colors derived from the ADAPT-Nepal logo (leaf-green arcs
   cradling a grey mountain with a green tree).
   ========================================================= */

:root {
  --green: #6BA539;
  --green-dark: #4E7D28;
  --orange: #F58220;
  --orange-dark: #d96e10;
  --grey: #A9A9A9;
  --grey-light: #E8E8E8;
  --charcoal: #3D3D3D;
  --white: #FFFFFF;

  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(61, 61, 61, 0.1);
  --shadow-sm: 0 4px 14px rgba(61, 61, 61, 0.08);
  --header-h: 84px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

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

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { color: #555; }

button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section-pad { padding: 90px 0; }

.section-pad-sm { padding: 60px 0; }

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

.bg-charcoal { background: var(--charcoal); color: var(--white); }
.bg-charcoal p { color: #cfcfcf; }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-head p { margin-top: 14px; }

/* ---------- Leaf / mountain motifs ---------- */
.motif-leaf {
  position: absolute;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.35);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-3px); }

.btn-green-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-green-outline:hover { background: var(--green); color: var(--white); transform: translateY(-3px); }

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(107, 165, 57, 0.35);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-3px); }

.btn-sm { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  z-index: 1060;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), height var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  height: 70px;
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 58px; width: auto; transition: height var(--transition); }
.site-header.scrolled .brand img { height: 46px; }

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

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-email svg { width: 17px; height: 17px; flex: none; }
.btn-email:hover { background: var(--green); color: var(--white); transform: translateY(-2px); }

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 3px;
  background: var(--orange);
  border-radius: 3px;
  transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active { color: var(--green-dark); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f7faf3 0%, #eef6e6 55%, #e7f3e0 100%);
}

.hero-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
}

.hero-text h1 { color: var(--charcoal); margin-bottom: 18px; }
.hero-text .lead { color: #555; font-size: 1.14rem; max-width: 560px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 34px; }

.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: #777; }
.hero-trust span:first-child { font-weight: 700; color: var(--charcoal); }
.hero-trust strong { font-family: var(--font-heading); color: var(--green-dark); font-weight: 700; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 34px rgba(78,125,40,0.18)); }

.hero-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
}
.hero-badge-float .badge-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge-float .badge-icon svg { width: 20px; height: 20px; }
.hero-badge-float small { display: block; font-weight: 400; color: #888; font-size: 0.75rem; margin-top: 2px; }
.badge-top-right { top: -6%; right: 2%; }
.badge-bottom-left { bottom: -4%; left: -4%; }

/* ---------- Secondary page hero (split, compact) ---------- */
.page-hero {
  min-height: 48vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
}
.page-hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.page-hero-visual svg { width: 100%; max-width: 300px; height: auto; margin-left: auto; display: block; }
.page-hero .badge-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-hero .badge-strip span {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
}

/* ---------- Intro strip ---------- */
.intro-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.intro-strip .badge-year {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}
.intro-strip .badge-year .num { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; }
.intro-strip .badge-year .lbl { text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-6px); }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-dark);
}
.stat-num span { color: var(--orange); }
.stat-lbl { margin-top: 6px; font-weight: 600; color: var(--charcoal); font-size: 0.95rem; }

/* ---------- Cards / grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.icon-badge {
  width: 62px; height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
}
.icon-badge svg { width: 30px; height: 30px; }

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

/* ---------- Featured projects carousel ---------- */
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--green); border-radius: 10px; }

.project-card {
  scroll-snap-align: start;
  flex: 0 0 340px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.project-media {
  height: 150px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  position: relative;
}

.project-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.project-body { padding: 22px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-meta { font-size: 0.82rem; color: var(--green-dark); font-weight: 700; margin-bottom: 10px; }
.project-body p { font-size: 0.9rem; }

/* ---------- Partner logos strip ---------- */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.partner-pill {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--charcoal);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.partner-pill:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #eafbe0;
  padding: 70px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 46px; background: var(--white); border-radius: 8px; padding: 4px; }
.footer-brand span { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.site-footer h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; }
.site-footer p, .site-footer a { color: #dcf1d3; font-size: 0.92rem; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a:hover { color: var(--orange); }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-socials svg { width: 17px; height: 17px; color: var(--white); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #cfe9c4;
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--orange); }

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process-step .step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--grey-light);
  -webkit-text-stroke: 1.5px var(--green);
  margin-bottom: 14px;
  display: block;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { display: flex; gap: 16px; padding: 6px 0; }
.why-card .icon-badge { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.why-card .icon-badge svg { width: 24px; height: 24px; }
.why-card h4 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: 0.88rem; }

/* ---------- Testimonial / quote ---------- */
.quote-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-block .quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--green);
  opacity: 0.25;
  line-height: 1;
}
.quote-block p.quote-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.5;
  margin: -20px 0 20px;
}
.quote-block .quote-author { color: var(--green-dark); font-weight: 700; font-size: 0.9rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; border-left: 3px solid var(--grey-light); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -43px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--green);
}
.timeline-item .t-year { font-family: var(--font-heading); font-weight: 700; color: var(--green-dark); font-size: 0.95rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { transition: transform var(--transition); color: var(--green); flex: none; margin-left: 14px; }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; font-size: 0.92rem; color: #555; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
}
.newsletter-box h3 { color: var(--white); margin-bottom: 8px; }
.newsletter-box p { color: #eafbe0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: 50px;
  border: none;
  min-width: 250px;
  font-family: var(--font-body);
}

/* ---------- Anchor scroll offset for deep-linked sections ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(78,125,40,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; padding-top: 46px; padding-bottom: 46px; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #eafbe0; }
.breadcrumb { font-size: 0.85rem; color: #dff3d3; margin-top: 10px; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Objective / feature icon cards ---------- */
.obj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.obj-card {
  display: flex; gap: 18px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.obj-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.obj-num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grey-light);
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.obj-card p { font-size: 0.93rem; margin: 0; }

/* ---------- Info box (registration) ---------- */
.info-box {
  background: var(--white);
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  padding: 30px;
}
.info-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin-top: 14px; }
.info-box dt { font-weight: 700; color: var(--green-dark); }
.info-box dd { color: #555; }

/* ---------- Vision / Mission ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--orange);
}
.vm-card:nth-child(2) { border-top-color: var(--green); }
.vm-card h3 { margin-bottom: 12px; }

/* ---------- Team ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--white);
  border: 2px solid var(--grey-light);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 50px;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  border: 4px solid var(--grey-light);
}

.team-card h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 4px; }
.team-role { color: var(--orange); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.team-meta { font-size: 0.82rem; color: #666; margin-bottom: 8px; }
.team-expertise { font-size: 0.82rem; color: #555; border-top: 1px solid var(--grey-light); padding-top: 10px; margin-top: 10px; }

.resource-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.resource-tags span {
  background: var(--grey-light);
  color: var(--charcoal);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Services page detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-detail:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.service-detail .icon-badge { width: 90px; height: 90px; margin: 0; border-radius: 20px; }
.service-detail .icon-badge svg { width: 42px; height: 42px; }

/* ---------- Projects filter ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.filter-btn {
  background: var(--white);
  border: 2px solid var(--grey);
  color: var(--charcoal);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.projects-grid .project-card { flex: none; width: 100%; }
.projects-grid .project-card.hide { display: none; }

.project-body .project-desc { font-size: 0.88rem; margin-top: 10px; }
.project-body dl { margin-top: 10px; font-size: 0.82rem; }
.project-body dl div { display: flex; justify-content: space-between; padding: 3px 0; border-top: 1px dashed var(--grey-light); }
.project-body dl div span:first-child { color: #888; }
.project-body dl div span:last-child { font-weight: 700; color: var(--charcoal); text-align: right; }

/* ---------- Resources ---------- */
.resource-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.resource-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.resource-card .icon-badge { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.resource-card .dl-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--green-dark); font-size: 0.85rem; }
.resource-card .dl-link:hover { color: var(--orange); }
.coming-soon-badge {
  display: inline-block;
  background: var(--grey-light);
  color: #777;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
}
.contact-info-card .icon-badge { flex: none; margin: 0; }
.contact-info-card h4 { margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { font-size: 0.92rem; }
.contact-info-card a:hover { color: var(--orange); }

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

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; color: var(--charcoal); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fbfbfb;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.error-msg { color: #d9412e; font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #d9412e; }
.form-group.error .error-msg { display: block; }

.form-success {
  display: none;
  background: #eaf6e3;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.show { display: block; }
.form-success.error { background: #fdecea; border-color: #d9412e; color: #d9412e; }

.contact-form button[type="submit"]:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.office-hours { margin-top: 26px; }
.office-hours table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.office-hours td { padding: 8px 0; border-bottom: 1px solid var(--grey-light); font-size: 0.9rem; }
.office-hours td:last-child { text-align: right; font-weight: 700; color: var(--green-dark); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .obj-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; order: -1; }
  .page-hero-split { grid-template-columns: 1fr; text-align: center; }
  .page-hero-visual svg { margin: 0 auto; }
  .page-hero .badge-strip { justify-content: center; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: 110px 34px 30px;
    z-index: 1050;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 26px; }
  .nav-toggle { display: flex; }
  .btn-email span { display: none; }
  .btn-email { padding: 11px; }
  .btn-email svg { width: 19px; height: 19px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; text-align: left; }
  .service-detail .icon-badge { width: 62px; height: 62px; }
  .service-detail .icon-badge svg { width: 30px; height: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom .legal-links { justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-badge-float { display: none; }
  .newsletter-box { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 26px 20px; }
  .info-box { padding: 20px; }
  .info-box dl { grid-template-columns: 1fr; gap: 2px 0; }
  .info-box dt { margin-top: 10px; }
  .newsletter-box { padding: 30px 22px; }
  .service-detail { padding: 22px 18px; }
  .container { padding: 0 18px; }
}

/* Nav overlay when mobile menu open */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 1040;
}
.nav-overlay.show { opacity: 1; visibility: visible; }
