/* =============================================
   MAANUKA — Complete Redesign v3
   ============================================= */


/* ---- Variables ---- */
:root {
  --green:     #5d7a40;
  --green-lt:  #7a9e54;
  --green-bg:  #e8f0de;
  --dark:      #1a1f14;
  --charcoal:  #2d3426;
  --mid:       #4a5240;
  --sand:      #f4f1eb;
  --sand-dk:   #dfd7cb;
  --white:     #ffffff;
  --accent:    #98c445;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease:      cubic-bezier(.4,0,.2,1);
  --nav-h:     72px;
  --r:         10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.09);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.72;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.75rem); font-weight: 400; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.65rem); font-weight: 400; }
strong { font-weight: 600; }

/* ---- Container ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(26,31,20,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 0 40px; height: 100%;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 36px; height: 36px; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; }
.nav__name { font-size: 0.875rem; font-weight: 600; color: white; letter-spacing: 0.04em; }
.nav__tagline { font-size: 0.68rem; color: rgba(255,255,255,0.45); letter-spacing: 0.07em; }

.nav__links { display: flex; align-items: center; gap: 0; }
.nav__links a {
  display: block; padding: 7px 16px;
  font-size: 0.875rem; color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em; border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.nav__links a:hover { color: white; }
.nav__links a.active { color: var(--accent); }

/* CTA link in nav */
.nav__links li:last-child a,
.nav__links a.nav__cta {
  background: var(--green); color: white !important;
  margin-left: 10px; font-weight: 500; padding: 7px 20px;
}
.nav__links li:last-child a:hover,
.nav__links a.nav__cta:hover { background: var(--green-lt); }

/* Nav uses <ul><li><a> pattern */
.nav__links { list-style: none; }
.nav__links li { display: flex; }

/* Mobile toggle */
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: 0.25s;
}

/* Drawer */
.nav__drawer {
  display: none; position: fixed; top: var(--nav-h);
  left: 0; right: 0; z-index: 999;
  background: rgba(26,31,20,0.98); backdrop-filter: blur(10px);
  padding: 20px 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav__drawer.open { display: block; }
.nav__drawer ul { list-style: none; }
.nav__drawer a {
  display: block; padding: 14px 0;
  color: rgba(255,255,255,0.78); font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.nav__drawer a:hover { color: var(--accent); }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--dark);
  padding-top: var(--nav-h); overflow: hidden;
}
.hero--page { height: 100vh; height: 100dvh; }

/* Gradient overlay */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    150deg,
    rgba(26,31,20,0.84) 0%,
    rgba(26,31,20,0.52) 55%,
    rgba(93,122,64,0.20) 100%
  );
}

/* Fallback for old img-based hero (hidden) */
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  max-width: 860px; padding: 32px 32px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--accent); opacity: 0.55;
}
/* Legacy label style */
.hero__label {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.hero__divider { width: 40px; height: 1px; background: rgba(255,255,255,0.4); margin: 0 auto 18px; }
.hero h1 { color: white; margin-bottom: 22px; }
.hero__sub {
  font-size: 1.07rem; line-height: 1.78; opacity: 0.88;
  max-width: 620px; margin: 0 auto 40px;
}
.hero p { font-size: 1.07rem; line-height: 1.78; opacity: 0.88; margin: 0 auto 40px; max-width: 620px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll cue */
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  opacity: 0.55; transition: opacity 0.2s;
  animation: bounceArrow 2.5s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; }
@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--r);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border: 2px solid transparent;
  text-decoration: none; transition: all 0.22s var(--ease);
}
.btn--primary,
.btn--solid {
  background: var(--green); color: white; border-color: var(--green);
}
.btn--primary:hover,
.btn--solid:hover {
  background: var(--green-lt); border-color: var(--green-lt);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(93,122,64,0.35);
}
.btn--outline {
  background: transparent; color: white; border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: white; background: rgba(255,255,255,0.09); transform: translateY(-2px);
}
.btn--light {
  background: rgba(255,255,255,0.12); color: white; border-color: rgba(255,255,255,0.4);
}
.btn--light:hover { background: rgba(255,255,255,0.2); border-color: white; }
.btn--ghost {
  background: transparent; color: var(--green); border-color: var(--green);
}
.btn--ghost:hover { background: var(--green); color: white; }

/* =====================
   SECTIONS
   ===================== */
.section { padding: 88px 0; }
.section--tight { padding: 44px 0; }
.section--sand { background: var(--sand); }
.section--green-bg { background: var(--green-bg); }
.section--dark { background: var(--dark); color: white; }
.section--dark h2,
.section--dark h3 { color: white; }

/* Eyebrow label */
.section-label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.section--dark .section-label { color: var(--accent); }

/* Accent divider */
.divider {
  width: 44px; height: 2px; background: var(--green);
  border-radius: 2px; margin-bottom: 28px;
}

/* =====================
   GRIDS
   ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* =====================
   CARDS
   ===================== */
.card {
  background: white; border: 1px solid var(--sand-dk);
  border-radius: var(--r); padding: 36px 32px;
  transition: all 0.25s var(--ease);
}
.card:hover { border-color: rgba(93,122,64,0.28); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}

/* =====================
   ETHOS GRID
   ===================== */
.ethos-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.ethos-cell {
  background: white; border: 1px solid var(--sand-dk);
  border-radius: var(--r); padding: 36px 24px 32px;
  text-align: center; transition: all 0.25s var(--ease);
}
.ethos-cell:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(93,122,64,0.28); }
.ethos-cell img {
  width: 68px; height: 68px;
  object-fit: contain; margin: 0 auto 20px;
}
.ethos-cell strong {
  display: block; font-size: 1.1rem;
  font-family: var(--font-head); font-weight: 500;
  color: var(--dark); margin-bottom: 12px;
}
.ethos-cell p { font-size: 0.875rem; color: var(--mid); line-height: 1.65; margin: 0; }

/* =====================
   SERVICE OFFERINGS
   ===================== */
.offering {
  padding: 32px 0; border-bottom: 1px solid var(--sand-dk);
}
.offering:last-child { border-bottom: none; }
.offering h3 { font-size: 1.3rem; margin-bottom: 16px; }
.offering ul { display: flex; flex-direction: column; gap: 6px; }
.offering ul li {
  font-size: 0.9rem; color: var(--mid);
  padding-left: 18px; position: relative; line-height: 1.55;
}
.offering ul li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--green); font-size: 0.8em; top: 1px;
}

/* Tags */
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; background: var(--green-bg); color: var(--green);
  padding: 4px 12px; border-radius: 100px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* =====================
   WORK ITEMS
   ===================== */
.work-item {
  background: white; border: 1px solid var(--sand-dk);
  border-radius: var(--r); margin-bottom: 16px;
  transition: border-color 0.2s;
}
.work-item:hover { border-color: rgba(93,122,64,0.3); }
.work-item.hidden { display: none; }

.work-meta {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  padding: 28px 32px 0; margin-bottom: 8px;
}
.work-item > h3 {
  padding: 0 32px 12px;
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.3; color: var(--dark);
}
.work-item > .tags { padding: 0 32px 20px; }

.work-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--sand-dk); border-radius: var(--r);
  padding: 7px 18px; font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 500; color: var(--green); cursor: pointer;
  margin: 0 32px 28px; transition: all 0.2s;
}
.work-toggle:hover { background: var(--green); color: white; border-color: var(--green); }
.work-toggle .arrow { display: inline-block; transition: transform 0.25s var(--ease); font-style: normal; }
.work-toggle.open .arrow { transform: rotate(90deg); }

.work-expandable { display: none; border-top: 1px solid var(--sand-dk); padding: 32px; }
.work-expandable.open { display: block; }

.block-label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
  margin: 22px 0 8px;
}
.block-label:first-child { margin-top: 0; }
.work-text p { font-size: 0.91rem; color: var(--charcoal); line-height: 1.73; }

.work-detail-block strong {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  margin: 22px 0 10px;
}
.work-detail-block strong:first-child { margin-top: 0; }
.work-detail-block ul { display: flex; flex-direction: column; gap: 7px; }
.work-detail-block ul li {
  font-size: 0.88rem; color: var(--mid);
  padding-left: 18px; position: relative; line-height: 1.58;
}
.work-detail-block ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-size: 0.78em; top: 3px;
}

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border: 1.5px solid var(--sand-dk); border-radius: 100px;
  background: white; color: var(--mid); cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: white; }

/* =====================
   TEAM BIOS
   ===================== */
.team-bio {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 56px; margin-bottom: 80px; align-items: start;
}
.team-bio:last-child { margin-bottom: 0; }

.team-photo {
  width: 100%; max-width: 260px;
  aspect-ratio: 1; object-fit: cover; object-position: top center;
  border-radius: var(--r);
}
.team-bio__name {
  font-family: var(--font-head); font-size: 1.55rem;
  font-weight: 400; color: var(--dark); margin: 16px 0 4px;
}
.team-bio__role {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 20px;
}
.team-bio__edu li {
  font-size: 0.85rem; font-weight: 500; color: var(--charcoal);
  padding: 10px 0; border-bottom: 1px solid var(--sand-dk); line-height: 1.45;
}
.team-bio__edu li:first-child { border-top: 1px solid var(--sand-dk); }
.team-bio__edu li span {
  display: block; font-weight: 400; color: var(--mid); font-size: 0.8rem; margin-top: 2px;
}
.team-bio p { font-size: 0.92rem; line-height: 1.76; }

/* Testimonials */
.testimonials { display: flex; flex-direction: column; gap: 16px; }
.testimonial-block {
  border-left: 3px solid var(--green-bg); padding: 14px 0 14px 20px;
  transition: border-color 0.2s;
}
.testimonial-block:hover { border-color: var(--green); }
.testimonial-block blockquote {
  font-style: italic; font-size: 0.9rem; color: var(--charcoal);
  line-height: 1.72; margin-bottom: 8px;
}
.testimonial-block cite {
  font-size: 0.78rem; font-weight: 600; color: var(--green);
  font-style: normal; letter-spacing: 0.04em;
}

/* =====================
   CONTACT
   ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start; }
.contact-aside .lead {
  font-family: var(--font-head); font-size: 1.45rem;
  line-height: 1.4; color: var(--dark); margin-bottom: 16px;
}
.contact-detail { margin-top: 28px; }
.contact-detail__item {
  padding: 14px 0; border-bottom: 1px solid var(--sand-dk);
  font-size: 0.88rem; color: var(--mid); line-height: 1.65;
}
.contact-detail__item:first-child { border-top: 1px solid var(--sand-dk); }
.contact-detail__item strong {
  display: block; font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 3px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.84rem; font-weight: 500;
  color: var(--charcoal); margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--sand-dk); border-radius: var(--r);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--charcoal);
  background: white; transition: border-color 0.2s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(93,122,64,0.10);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none; text-align: center;
  padding: 52px 28px; background: var(--green-bg); border-radius: var(--r);
}
.form-success .check { font-size: 2.5rem; margin-bottom: 16px; }

/* =====================
   UN BADGE
   ===================== */
.badge-un {
  display: flex; align-items: center; gap: 22px;
  max-width: 700px; margin: 0 auto;
  background: var(--sand); border-radius: var(--r); padding: 24px 28px;
}
.badge-un img { width: 54px; height: auto; flex-shrink: 0; }
.badge-un div { font-size: 0.9rem; color: var(--mid); line-height: 1.65; }
.badge-un strong { display: block; color: var(--charcoal); margin-bottom: 4px; font-size: 0.95rem; }

/* =====================
   FOOTER
   ===================== */
.footer { background: var(--dark); padding: 60px 0 28px; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; margin-bottom: 40px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 34px; height: 34px; object-fit: contain; }
.footer__name { font-size: 0.9rem; font-weight: 600; color: white; }
.footer__tagline { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer__nav a {
  font-size: 0.875rem; color: rgba(255,255,255,0.52);
  padding: 4px 10px; border-radius: 4px; transition: color 0.2s;
}
.footer__nav a:hover { color: var(--accent); }
.footer__copy {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px; font-size: 0.78rem;
  color: rgba(255,255,255,0.28); text-align: center;
}

/* =====================
   FADE-IN ANIMATION
   ===================== */
.fade-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .ethos-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .team-bio { grid-template-columns: 1fr; }
  .team-photo { max-width: 220px; }
  .hero--page { height: 100vh; height: 100dvh; }
  .hero h1 { font-size: 2rem; }
  .footer__inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 540px) {
  .hero { height: 100vh; height: 100dvh; }
  .hero--page { height: 100vh; height: 100dvh; }
  .hero h1 { font-size: 1.75rem; }
  .hero__sub, .hero p { font-size: 0.95rem; }
  .ethos-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 288px; justify-content: center; }
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .work-meta,
  .work-item > h3,
  .work-item > .tags { padding-left: 20px; padding-right: 20px; }
  .work-toggle { margin: 0 20px 24px; }
  .work-expandable { padding: 24px 20px; }
}
