/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Palette sampled from the GreenSet leaf mark ──
     leaf gradient runs #6EA760 (stem) → #9BBE64 → #C2CD64 (tip)
     on a #D8E1C2 sage field. Neutrals are tuned to that sage
     rather than the old warm cream so the mark sits in its own family. */

  /* Neutrals */
  --cream:   #F7F7F1;   /* page base */
  --cream2:  #EDF0E4;   /* alternating band */
  --sage:    #D8E1C2;   /* the logo's own field colour */
  --stone:   #C9D2B4;   /* borders, rules */
  --charcoal:#1A1F16;   /* body text */
  --dark:    #16290F;   /* deep forest — tab bar, process, footer */
  --mid:     #555C4C;
  --light:   #949B88;

  /* Greens straight off the mark — decorative use only, too light for text */
  --leaf:    #6EA760;
  --leaf-mid:#9BBE64;
  --lime:    #C2CD64;

  /* Darkened from the leaf hue (108°) to clear WCAG AA on --cream */
  --green:   #396D2C;   /* 5.75:1 — links, eyebrows, small text */
  --green2:  #4E8C3C;   /* hover */
  --forest:  #24401C;   /* band borders */
  --greenp:  #EAF0DC;   /* pale tint — hover fills */

  --r: 14px;
  --rS: 8px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { line-height: 1.15; font-weight: 600; }
h1 em, h2 em { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--charcoal);
}

.section-header { margin-bottom: 36px; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

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

.btn-white { background: #fff; color: var(--charcoal); }
.btn-white:hover { background: var(--cream); }

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════ NAV ══ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,247,241,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  font-size: 17px;
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo strong { color: var(--green); }

/* Badge logo tile — leaf mark on the logo's own sage field */
.logo-tile, .footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--sage) url('assets/logo-mark.png') center / 68% no-repeat;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--mid);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--charcoal); }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.nav-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.38);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-socials a:hover {
  color: var(--charcoal);
  background: rgba(0,0,0,.06);
}

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--green2) !important; transform: translateY(-1px); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 32px 20px;
  gap: 4px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.nav-mobile a {
  color: var(--mid);
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 500;
  transition: color .2s;
}
.nav-mobile a:last-child { border-bottom: none; color: var(--green); font-weight: 700; }
.nav-mobile.open { display: flex; }

/* ═══════════════ HERO ══ */
#hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.05) 40%,
    rgba(0,0,0,.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
  display: block;
}

.hero-title {
  font-size: clamp(42px, 6.5vw, 82px);
  font-weight: 700;
  color: #fff;
  line-height: 1.07;
  margin-bottom: 20px;
}
.hero-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════ TAB BAR ══ */
#tab-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.tab-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-inner::-webkit-scrollbar { display: none; }

.tab {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.tab:hover { color: rgba(255,255,255,.8); }
.tab.active { color: #fff; border-bottom-color: var(--lime); }

/* ═══════════════ TAB SECTIONS ══ */
.tab-section { display: none; }
.tab-section.active { display: block; }

/* Tab Hero */
.tab-hero {
  position: relative;
  height: 50vh;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.tab-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.35) 60%,
    rgba(0,0,0,.1) 100%
  );
}

.tab-hero-text {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.tab-hero-text h2 {
  font-size: clamp(32px, 5vw, 60px);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 560px;
}

.tab-hero-text p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.tab-hero-text .eyebrow { color: var(--lime); }

/* ═══════════════ ECO BANNER ══ */
.eco-banner {
  background: var(--dark);
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--forest);
  padding: 28px 0;
}

.eco-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.eco-icon {
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.eco-banner strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.eco-banner p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 760px;
}

/* ═══════════════ ECO TICKER ══ */
.eco-ticker {
  background: var(--dark);
  border-top: 1px solid var(--forest);
  border-bottom: 1px solid var(--forest);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.eco-ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 28s linear infinite;
}

.eco-ticker-track span {
  display: inline-block;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .01em;
  border-right: 1px solid rgba(255,255,255,.12);
}
.eco-ticker-track span:last-child { border-right: none; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════ SERVICES ══ */
.services-section {
  padding: 70px 0 60px;
  background: var(--cream);
}

/* Same 12-column principle as the portfolio wall: tiles carry their own
   width and every row is composed to sum to exactly 12, so the panel is
   flush with no orphan tile stranded in a half-empty row. The widest
   tiles hold the longest service descriptions. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  border-radius: var(--r);
  overflow: hidden;
}

.s-3  { grid-column: span 3; }
.s-4  { grid-column: span 4; }
.s-6  { grid-column: span 6; }
.s-12 { grid-column: span 12; }

.svc {
  padding: 34px 30px;
  background: #fff;
  transition: background .2s;
}
.svc:hover { background: var(--greenp); }

.svc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c, var(--leaf));
  margin-bottom: 14px;
}

.svc h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.svc p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}

/* ═══════════════ PORTFOLIO / MASONRY ══ */
.portfolio-section {
  padding: 60px 0 80px;
  background: var(--cream2);
}

/* 12-column brick wall: tiles vary in width, every row sums to exactly 12,
   so the grid is always flush with no holes. `dense` is belt-and-braces —
   if a row ever fails to fill, it pulls a later tile up rather than
   leaving a gap. Row height is uniform, which is what makes it read as
   brickwork rather than a ragged mosaic. */
.masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(190px, 21vw, 290px);
  grid-auto-flow: dense;
  gap: 10px;
}

.m-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
}
.m-item img { transition: transform .5s ease; }
.m-item:hover img { transform: scale(1.04); }

.m-3  { grid-column: span 3; }
.m-4  { grid-column: span 4; }
.m-5  { grid-column: span 5; }
.m-6  { grid-column: span 6; }
.m-7  { grid-column: span 7; }
.m-8  { grid-column: span 8; }
.m-12 { grid-column: span 12; }

.m-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.m-item:hover .m-label { opacity: 1; transform: none; }

.m-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lime);
}
.m-name {
  font-size: 13px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

.m-placeholder {
  border-radius: var(--r);
  background: var(--cream);
  border: 2px dashed var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.m-placeholder span {
  font-size: 13px;
  color: var(--light);
  font-style: italic;
}

/* ═══════════════ PROCESS ══ */
.process-section {
  padding: 80px 0;
  background: var(--dark);
}

.process-section .eyebrow { color: var(--lime); }
.process-section .section-title { color: #fff; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.process-step {
  padding: 36px 30px 34px;
  background: rgba(255,255,255,.04);
  transition: background .2s;
}
.process-step:first-child { border-radius: var(--r) 0 0 var(--r); }
.process-step:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.process-step:hover { background: rgba(255,255,255,.07); }

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: rgba(255,255,255,.1);
  line-height: 1;
  margin-bottom: 18px;
}

.process-step h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

.process-step p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* ═══════════════ CONTACT ══ */
#contact {
  padding: 88px 0 92px;
  background: var(--cream2);
  border-top: 1px solid var(--stone);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-head { max-width: 620px; }
.contact-head .section-title { margin-bottom: 18px; }
.contact-head > p {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.75;
}

/* Two contact cards, side by side on desktop, stacked on mobile */
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 720px;
  margin: 40px 0 34px;
}

.ci {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.ci-primary {
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ci-primary:hover {
  border-color: var(--leaf);
  box-shadow: 0 10px 28px rgba(36,64,28,.10);
  transform: translateY(-2px);
}
.ci-primary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.ci-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--greenp);
  color: var(--green);
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-body { display: flex; flex-direction: column; min-width: 0; }

.ci-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 5px;
}

.ci-val {
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.contact-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-coverage {
  font-size: 14px;
  color: var(--mid);
}

.socials { display: flex; gap: 10px; }
.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: #fff;
  color: var(--mid);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.social-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.social-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ═══════════════ FOOTER ══ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.footer-name { font-size: 16px; font-weight: 600; color: #fff; }
.footer-name strong { color: var(--lime); }
.footer-tag { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 2px; }

.footer-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-tabs button {
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  color: rgba(255,255,255,.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.footer-tabs button:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.25);
  margin-left: auto;
  white-space: nowrap;
}

/* ═══════════════ RESPONSIVE ══ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-socials { display: none; }
  /* Drop the CTA pill on mobile — the burger menu carries the call link,
     so the bar stays logo + burger and nothing else. */
  .nav-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }

.hero-title { font-size: clamp(36px, 9vw, 60px); }
  .hero-title em { font-size: clamp(38px, 9.5vw, 64px); }

  .services-grid > .svc { grid-column: span 6; }
  .services-grid > .svc:last-child:nth-child(odd) { grid-column: span 12; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:first-child { border-radius: var(--r) 0 0 0 !important; }
  .process-step:nth-child(2) { border-radius: 0 var(--r) 0 0 !important; }
  .process-step:nth-child(3) { border-radius: 0 0 0 var(--r) !important; }
  .process-step:last-child   { border-radius: 0 0 var(--r) 0 !important; }

  .contact-details { grid-template-columns: 1fr; }

  .footer-copy { margin-left: 0; }
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .tab-inner { padding: 0 20px; }

  /* Two up. Spans are overridden wholesale so the varied desktop widths
     can't leave a half-empty row; if the count is odd the last tile
     stretches full width to close the wall off flush. */
  .masonry { grid-auto-rows: 200px; }
  .masonry > .m-item { grid-column: span 6; }
  .masonry > .m-item:last-child:nth-child(odd) { grid-column: span 12; }
  .m-label { opacity: 1; transform: none; }

  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-radius: 0 !important; }
  .process-step:first-child { border-radius: var(--r) var(--r) 0 0 !important; }
  .process-step:last-child  { border-radius: 0 0 var(--r) var(--r) !important; }

  #contact { padding: 64px 0 68px; }
  .ci-primary { padding: 18px 20px; }
  .ci-val { font-size: 16px; }

  .hero-content { padding: 0 20px 60px; }
  .tab-hero-text { padding: 0 20px; }
  .hero-scroll-hint { display: none; }

  .footer-copy { display: none; }
  .footer-inner { gap: 24px; }
}

@media (max-width: 480px) {
  .services-grid > .svc,
  .services-grid > .svc:last-child:nth-child(odd) { grid-column: span 12; }

  /* Single column — one tile per row, so it stays flush by definition. */
  .masonry { grid-auto-rows: 240px; }
  .masonry > .m-item,
  .masonry > .m-item:last-child:nth-child(odd) { grid-column: span 12; }
}
