:root {
  --green-900: #14311f;
  --green-800: #1b4a2c;
  --green-700: #256a3d;
  --green-500: #3f9d5f;
  --green-300: #8fce9f;
  --sand: #f3f0e7;
  --sand-dark: #e7e2d3;
  --ink: #1c2620;
  --muted: #5c6b60;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(20, 49, 31, 0.45);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

a { color: inherit; }

img { max-width: 100%; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 240, 231, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 49, 31, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-800);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-700);
  color: var(--sand);
}

.brand-text {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text em { font-style: italic; color: var(--green-700); font-weight: 400; }
.brand-text.small { font-size: 1.15rem; color: var(--sand); }
.brand-text.small em { color: var(--green-300); }

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 10px;
}
.footer-logo { height: 58px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s;
}
.nav a:hover { color: var(--green-700); }
.nav-cta {
  background: var(--green-700);
  color: var(--sand) !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--green-800); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--sand);
  padding: 130px 0 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(63, 157, 95, 0.55), transparent 55%),
    linear-gradient(160deg, var(--green-900), var(--green-700));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(143, 206, 159, 0.4), transparent 30%),
    radial-gradient(circle at 90% 60%, rgba(20, 49, 31, 0.6), transparent 40%);
}
.hero-inner {
  position: relative;
  max-width: 780px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-300);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  letter-spacing: -0.02em;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.15rem;
  max-width: 560px;
  color: rgba(243, 240, 231, 0.85);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-500);
  color: var(--green-900);
}
.btn-primary:hover { background: var(--green-300); }
.btn-ghost {
  border-color: rgba(243, 240, 231, 0.5);
  color: var(--sand);
}
.btn-ghost:hover { border-color: var(--sand); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--sand-dark); }
.section-dark {
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: var(--sand);
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 14px;
}
.section-tag.light { color: var(--green-300); }

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
}

.grid-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p + p { margin-top: 18px; }
.about-copy { color: var(--muted); font-size: 1.08rem; }

.section-head {
  max-width: 620px;
  margin-bottom: 54px;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(20, 49, 31, 0.07);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(20, 49, 31, 0.5);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--green-700);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 1rem; }

/* ---------- Mission / Vision ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.value-card {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(20, 49, 31, 0.07);
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--green-500);
}
.value-num {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  color: var(--green-300);
  display: block;
  margin-bottom: 10px;
}
.value-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { align-items: center; gap: 56px; }
.contact-details { max-width: 620px; }
.contact-intro {
  margin-top: 18px;
  color: rgba(243, 240, 231, 0.82);
  font-size: 1.08rem;
  max-width: 440px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 22px;
}
.contact-list li {
  display: grid;
  gap: 4px;
}
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-300);
}
.contact-list a { text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--green-300); }
.contact-phones { display: flex; gap: 18px; flex-wrap: wrap; }

.contact-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  background: var(--sand);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(243, 240, 231, 0.8);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.back-top { text-decoration: none; color: var(--green-300); font-weight: 500; }
.back-top:hover { color: var(--sand); }

/* ---------- Section head with action ---------- */
.section-head.with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section-head.with-action .section-sub { margin-bottom: 0; }

.btn-outline {
  border-color: var(--green-700);
  color: var(--green-800);
  white-space: nowrap;
}
.btn-outline:hover { background: var(--green-700); color: var(--sand); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--sand);
  padding: 96px 0 72px;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}
.page-hero .hero-lead { margin-top: 16px; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filters button {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 49, 31, 0.15);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.filters button:hover { border-color: var(--green-700); color: var(--green-700); }
.filters button.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--sand);
}

/* ---------- Project grid & cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(20, 49, 31, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 52px -26px rgba(20, 49, 31, 0.55);
}
.project-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(20, 49, 31, 0.6);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 999px;
}
.cat-Communal     { background: rgba(27, 74, 44, 0.72); }
.cat-Residential  { background: rgba(20, 82, 74, 0.72); }
.cat-Private      { background: rgba(58, 74, 31, 0.75); }
.cat-Restaurant   { background: rgba(107, 58, 31, 0.75); }
.cat-GreenWall    { background: rgba(15, 90, 45, 0.72); }
.cat-MossWall     { background: rgba(75, 90, 25, 0.75); }
.cat-GardenDesign { background: rgba(19, 70, 80, 0.72); }

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  flex: 1;
}
.project-card-body h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}
.project-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-700);
}
.project-summary { color: var(--muted); font-size: 0.98rem; }
.project-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-700);
}

/* ---------- Project detail ---------- */
.detail-hero {
  position: relative;
  color: var(--sand);
  padding: 80px 0 56px;
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
}
.back-link {
  display: inline-block;
  color: var(--green-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.back-link:hover { color: var(--sand); }
.detail-hero .project-cat {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}
.detail-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 800px;
}
.detail-meta {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.detail-meta li {
  display: grid;
  gap: 4px;
  font-size: 1.02rem;
}
.detail-meta span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-300);
}

.detail-body {
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gallery-item {
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sand-dark);
  aspect-ratio: 4 / 3;
}
.gallery-item.gallery-lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.detail-copy {
  position: sticky;
  top: 96px;
}
.detail-copy p { color: var(--muted); font-size: 1.06rem; }
.detail-copy p + p { margin-top: 16px; }
.detail-cta { margin-top: 28px; }

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 24px 84px;
  border-top: 1px solid rgba(20, 49, 31, 0.1);
}
.detail-nav a {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  max-width: 48%;
}
.detail-nav .nav-next { text-align: right; }
.detail-nav span { font-size: 0.85rem; color: var(--green-700); font-weight: 600; }
.detail-nav strong { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem; }
.detail-nav a:hover strong { color: var(--green-700); }

.detail-missing { padding: 120px 24px; text-align: center; }
.detail-missing h1 { font-size: 2rem; margin-bottom: 12px; }
.detail-missing a { color: var(--green-700); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(15, 30, 20, 0.92);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: 0;
  color: var(--sand);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; gap: 40px; }
  .detail-copy { position: static; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--sand);
    border-bottom: 1px solid rgba(20,49,31,0.1);
    padding: 8px 0;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 24px; }
  .nav-cta { border-radius: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2, .cards, .values-grid, .project-grid { grid-template-columns: 1fr; }
  .cards { gap: 18px; }
  .section { padding: 68px 0; }
  .hero { padding: 96px 0 84px; }
  .contact-grid { gap: 40px; }

  .section-head.with-action { flex-direction: column; align-items: flex-start; gap: 18px; }
  .detail-meta { gap: 22px; }
  .detail-nav { flex-direction: column; }
  .detail-nav a, .detail-nav .nav-next { max-width: 100%; text-align: left; }
}
