/* ===================== TOKENS & RESET ===================== */
:root {
  --green-900: #0d281e;
  --green-800: #14352a;
  --green-700: #1b4332;
  --green-600: #245741;
  --green-500: #2f6b50;
  --gold: #c9a227;
  --gold-light: #e0c368;
  --gold-dark: #a9871c;
  --cream: #f7f5ef;
  --cream-2: #efece2;
  --ink: #1b1b18;
  --muted: #6d7269;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 45px -20px rgba(13, 40, 30, .35);
  --shadow-lg: 0 30px 70px -25px rgba(13, 40, 30, .55);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: 'Jost', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.accent-text { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green-900); box-shadow: 0 12px 30px -12px rgba(201,162,39,.7); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--green-800); color: var(--cream); }
.btn-dark:hover { background: var(--green-700); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn:disabled:hover { transform: none; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(247,245,239,.92);
  backdrop-filter: blur(12px);
  padding: .65rem 0;
  box-shadow: 0 1px 0 rgba(13,40,30,.08), 0 10px 30px -18px rgba(13,40,30,.4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; fill: var(--gold); }
.brand-mark svg .accent { fill: var(--green-600); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 600; letter-spacing: .16em; font-size: 1.02rem; color: var(--white); }
.brand-sub { font-family: var(--font-head); font-weight: 300; letter-spacing: .38em; font-size: .58rem; color: var(--gold-light); margin-top: 3px; }

.site-header.scrolled .brand-name { color: var(--green-800); }
.site-header.scrolled .brand-sub { color: var(--gold-dark); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: rgba(255,255,255,.9); position: relative; transition: color .3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--green-800); }
.nav .nav-cta {
  background: var(--gold); color: var(--green-900); padding: .55rem 1.3rem; border-radius: 100px;
  font-weight: 600;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--gold-light); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: .3s var(--ease); border-radius: 2px; }
.site-header.scrolled .nav-toggle span { background: var(--green-800); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: #0d281e;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,40,30,.55) 0%, rgba(13,40,30,.35) 40%, rgba(13,40,30,.85) 100%),
    linear-gradient(90deg, rgba(13,40,30,.7) 0%, rgba(13,40,30,.15) 70%);
}
.hero-content { position: relative; padding-top: 6rem; max-width: 760px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.9); margin: 1.5rem 0 2.4rem; max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 20px;
  display: grid; justify-items: center; padding-top: 7px; z-index: 2;
}
.hero-scroll span { width: 4px; height: 8px; background: var(--gold-light); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translateY(-4px)} 40%{opacity:1} 100%{opacity:0;transform:translateY(10px)} }

/* ===================== TRUST BAR ===================== */
.trust { background: var(--green-800); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 2.4rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; gap: .35rem;
  border-right: 1px solid rgba(255,255,255,.09);
}
.trust-item:last-child { border-right: 0; }
.trust-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--gold-light); }
.trust-label { font-size: .9rem; color: rgba(255,255,255,.72); letter-spacing: .02em; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.about-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(247,245,239,.95); backdrop-filter: blur(6px);
  padding: .55rem 1rem; border-radius: 100px; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem; color: var(--green-800);
}
.about-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.25); }
.about-text p { color: #40453d; margin-bottom: 1.1rem; }
.about-text h2 { margin-bottom: 1.4rem; }
.about-list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.about-list li { position: relative; padding-left: 2rem; font-weight: 500; color: var(--green-800); }
.about-list li::before {
  content: ''; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  background: var(--gold); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===================== SERVICES ===================== */
.services { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem 2rem;
  border: 1px solid rgba(13,40,30,.07); box-shadow: 0 8px 24px -18px rgba(13,40,30,.4);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201,162,39,.4); }
.card-icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-600)); margin-bottom: 1.4rem;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .6rem; color: var(--green-800); }
.card p { color: var(--muted); font-size: .96rem; }

/* ===================== PROJECTS ===================== */
.project-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border: 1px solid rgba(13,40,30,.08);
  border-radius: var(--radius); box-shadow: 0 8px 24px -18px rgba(13,40,30,.4);
  padding: 1.5rem 1.8rem; margin-bottom: 2.2rem;
}
.project-meta > div {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .2rem 1.4rem; border-right: 1px solid rgba(13,40,30,.09);
}
.project-meta > div:first-child { padding-left: 0; }
.project-meta > div:last-child { border-right: 0; }
.pm-label { font-family: var(--font-head); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--gold-dark); }
.pm-value { font-weight: 600; color: var(--green-800); font-size: .98rem; }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 1.2rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  grid-column: span 2; box-shadow: var(--shadow);
}
.gallery-lg { grid-column: span 2; grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem;
  background: linear-gradient(0deg, rgba(13,40,30,.85), transparent);
  display: flex; flex-direction: column; gap: .4rem; color: #fff;
}
.gallery-item .tag {
  align-self: flex-start; font-family: var(--font-head); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; background: var(--gold); color: var(--green-900);
  padding: .25rem .7rem; border-radius: 100px; font-weight: 600;
}
.gallery-item .cap-title { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; }

/* ===================== WHY ===================== */
.why { background: var(--green-800); color: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); }
.why-intro { position: sticky; top: 120px; align-self: start; }
.why-intro h2 { color: var(--white); margin: 0 0 1.2rem; }
.why-intro p { color: rgba(255,255,255,.72); }
.why-list { display: grid; gap: 1.4rem; }
.why-item {
  display: flex; gap: 1.4rem; padding: 1.7rem; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.why-item:hover { background: rgba(255,255,255,.07); border-color: rgba(201,162,39,.35); transform: translateX(4px); }
.why-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--gold); flex: none; }
.why-item h3 { color: var(--white); margin-bottom: .4rem; font-size: 1.15rem; }
.why-item p { color: rgba(255,255,255,.68); font-size: .95rem; }

/* ===================== SHOWCASE ===================== */
.showcase { position: relative; min-height: 62vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.showcase-media {
  position: absolute; inset: 0;
  background: url('../assets/project-exterior.jpeg') center 35% / cover no-repeat;
}
.showcase-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,40,30,.88), rgba(13,40,30,.45)); }
.showcase-content { position: relative; max-width: 560px; padding: 4rem 0; }
.showcase-content h2 { color: #fff; margin-bottom: .8rem; }
.showcase-content p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; font-size: 1.1rem; }

/* ===================== VISION ===================== */
.vision { background: var(--cream); text-align: center; }
.vision-inner { max-width: 860px; margin-inline: auto; position: relative; }
.quote-mark { font-family: var(--font-head); font-size: 7rem; line-height: .5; color: var(--gold); opacity: .35; display: block; height: 3rem; }
.vision-text { font-family: var(--font-head); font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 400; color: var(--green-800); line-height: 1.35; }
.vision-by { margin-top: 1.6rem; color: var(--gold-dark); font-weight: 600; letter-spacing: .05em; }

/* ===================== CONTACT ===================== */
.contact { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info h2 { margin-bottom: 1.2rem; color: var(--green-800); }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; }
/* min-width:0 lets the text flex item shrink below its content width; without
   it the email address widens the whole contact grid on narrow phones. */
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list li > div { min-width: 0; }
.ci { width: 46px; height: 46px; border-radius: 12px; background: var(--green-800); display: grid; place-items: center; flex: none; }
.ci svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-list a, .contact-list div span:last-child { font-weight: 600; color: var(--green-800); overflow-wrap: anywhere; }

.contact-form {
  background: var(--white); padding: 2.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(13,40,30,.07);
  display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-family: var(--font-head); font-size: .85rem; font-weight: 500; color: var(--green-800); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .96rem; padding: .8rem 1rem;
  border: 1.5px solid #e2ded2; border-radius: var(--radius-sm); background: var(--cream);
  color: var(--ink); transition: border-color .3s, box-shadow .3s; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18); background: #fff;
}
.form-note { font-size: .9rem; text-align: center; min-height: 1.2em; color: var(--green-600); font-weight: 500; }

/* ===================== 404 ===================== */
.notfound {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--green-900); color: var(--white); overflow: hidden;
  padding: 4rem 0;
}
/* Oversized watermark bleeding off the bottom-right corner of the section. */
.notfound-code {
  position: absolute; right: -.05em; bottom: -.3em; z-index: 0;
  font-family: var(--font-head); font-weight: 700; line-height: .8;
  font-size: clamp(9rem, 26vw, 24rem); letter-spacing: -.04em;
  color: rgba(201,162,39,.1); user-select: none; pointer-events: none;
}
.notfound-inner { position: relative; z-index: 1; max-width: 640px; }
.notfound-brand { display: inline-flex; margin-bottom: 3rem; }
/* The default accent square is dark green — invisible on this background. */
.notfound-brand .brand-mark svg .accent { fill: var(--gold-light); }
.notfound .eyebrow { color: var(--gold-light); }
.notfound-lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: rgba(255,255,255,.85); margin: 1.4rem 0 2.4rem; }
.notfound-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.notfound-contact { margin-top: 2.6rem; font-size: .92rem; color: rgba(255,255,255,.6); }
.notfound-contact a { color: var(--gold-light); }
.notfound-contact a:hover { color: var(--white); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 320px; }
.footer-brand > div { line-height: 1; margin: -.2rem 0 1rem; }
.footer-mark { width: 46px; height: 46px; margin-bottom: .8rem; }
.footer-mark svg { fill: var(--gold); }
.footer-mark svg .accent { fill: var(--gold-light); }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; display: block; }
.footer-brand .brand-sub { color: var(--gold-light); display: block; margin-top: 4px; }
.footer-tag { font-size: .92rem; margin-top: .6rem; }
.footer-col h4 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 1.1rem; font-weight: 500; letter-spacing: .04em; }
/* `anywhere` (not break-word) so the email address stops propping up the
   grid column's min-content width on narrow screens. */
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.62); font-size: .93rem; margin-bottom: .65rem; transition: color .3s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-media { max-width: 440px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; background: var(--green-800); padding: 2rem 2.2rem;
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 90;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: rgba(255,255,255,.9); font-size: 1.15rem; }
  .site-header.scrolled .nav a { color: rgba(255,255,255,.9); }
  .nav .nav-cta { color: var(--green-900); }
  .nav-toggle { display: flex; z-index: 95; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.active span { background: #fff; }

  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item, .gallery-lg, .gallery-wide { grid-column: 1 / -1; grid-row: auto; }
  .field-row { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .project-meta > div { padding: .2rem 1.2rem; }
  .project-meta > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .project-meta > div:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
