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

:root {
  --cream:   #f5f2ed;
  --cream2:  #ede9e2;
  --stone:   #d6cfc4;
  --charcoal:#1c1c1c;
  --dark:    #111111;
  --mid:     #5a5349;
  --light:   #9b9087;
  --green:   #2d7a3a;
  --green2:  #3a9e4f;
  --greenp:  #e8f4eb;
  --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(246,244,240,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.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 */
.logo-tile, .footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: url('assets/badge-logo.jpg') center / 150% 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(--green2); }

/* ═══════════════ 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(--green2); }

/* ═══════════════ ECO BANNER ══ */
.eco-banner {
  background: #1a2e1e;
  border-top: 1px solid #2a4430;
  border-bottom: 1px solid #2a4430;
  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: #7ecb8a;
  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: #1a2e1e;
  border-top: 1px solid #2a4430;
  border-bottom: 1px solid #2a4430;
  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);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: var(--r);
  overflow: hidden;
}

/* Centre orphan tile when 13 items in a 4-col grid (13 mod 4 = 1) */
.services-grid .svc:last-child:nth-child(4n+1) {
  grid-column: 2 / 4;
}

.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, #4CAF50);
  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);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  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-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
.m-full { grid-column: 1 / -1; }

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

.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(--green2);
}
.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(--green2); }
.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: 80px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 20px; }
.contact-info > p {
  font-size: 15px;
  color: var(--mid);
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }

.ci { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { font-size: 20px; width: 36px; flex-shrink: 0; margin-top: 2px; }
.ci-lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--light); margin-bottom: 4px; }
.ci a, .ci span { font-size: 15px; color: var(--charcoal); font-weight: 500; }
.ci a:hover { color: var(--green); }

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

/* Form */
.contact-form-wrap { position: relative; }

.contact-form {
  background: #fff;
  border-radius: var(--r);
  padding: 40px 36px;
  box-shadow: 0 2px 40px rgba(0,0,0,.07);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.fg {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.fg label { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--mid); text-transform: uppercase; }

.fg input, .fg select, .fg textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--stone);
  border-radius: var(--rS);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--green);
  background: #fff;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--light);
  margin-top: 14px;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 36px;
  background: #fff;
  border-radius: var(--r);
  text-align: center;
  box-shadow: 0 2px 40px rgba(0,0,0,.07);
}
.form-success.visible { display: flex; }

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--greenp);
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--mid); }

/* ═══════════════ 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(--green2); }
.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; }
  .nav-burger { display: flex; }

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

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .svc:last-child:nth-child(4n+1) { grid-column: auto; }
  .services-grid .svc:last-child:nth-child(2n+1) { grid-column: span 2; }

  .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-grid { grid-template-columns: 1fr; gap: 48px; }

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

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

  .masonry {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .m-wide { grid-column: span 2; }
  .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; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }

  .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 { grid-template-columns: 1fr; }
  .services-grid .svc:last-child:nth-child(2n+1) { grid-column: auto; }

  .masonry { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .m-wide, .m-tall { grid-column: span 1; grid-row: span 1; }
}
