/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  --forest:      #1C3220;
  --forest-mid:  #2E5036;
  --sage:        #6B9E72;
  --sage-light:  #A8C9AB;
  --cream:       #F4EFE6;
  --cream-dark:  #EAE3D6;
  --stone:       #C5BAA8;
  --ink:         #161C18;
  --ink-muted:   #4A5C4D;
  --white:       #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;

  --radius:    6px;
  --radius-lg: 14px;
  --max-w:     1120px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-light {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.btn-light:hover { background: var(--white); border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: #fff; }

.btn-dark {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.btn-dark:hover { background: var(--forest-mid); border-color: var(--forest-mid); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(28, 50, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--forest);
  background-image:
    radial-gradient(ellipse 90% 70% at 80% 20%, rgba(107, 158, 114, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(10, 25, 13, 0.8) 0%, transparent 55%);
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg-text {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 300px);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(107, 158, 114, 0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(168, 201, 171, 0.3);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage-light);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(244, 239, 230, 0.72);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  animation: scrollpulse 2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; width: 48px; }
  50% { opacity: 1; width: 64px; }
}

/* ============================================================
   Section Shared
   ============================================================ */
.section-header { margin-bottom: 64px; }
.section-header--light .h2--light { color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--sage-light); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ============================================================
   Services
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--stone);
  border: 2px solid var(--stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-item {
  display: flex;
  gap: 24px;
  padding: 40px 36px;
  background: var(--cream);
  transition: background 0.2s ease;
}
.service-item:hover { background: var(--cream-dark); }

.service-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--sage);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 52px;
}

.service-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-body p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio {
  padding: 100px 0;
  background: var(--forest);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease), border-color 0.2s ease;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 201, 171, 0.3);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.portfolio-thumb--a {
  background: linear-gradient(160deg, #4A7C52 0%, #2B4A31 60%, #1a3020 100%);
}
.portfolio-thumb--b {
  background: linear-gradient(160deg, #3E6B60 0%, #254840 60%, #152e29 100%);
}
.portfolio-thumb--c {
  background: linear-gradient(160deg, #7A6E4A 0%, #4E4530 60%, #2e2a1c 100%);
}

.thumb-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.25);
  padding: 5px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.portfolio-meta {
  padding: 20px 22px 24px;
}

.portfolio-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.portfolio-meta p {
  font-size: 0.875rem;
  color: rgba(244, 239, 230, 0.55);
  margin-bottom: 14px;
  line-height: 1.5;
}

.portfolio-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage-light);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.portfolio-card:hover .portfolio-link { color: #fff; }

/* ============================================================
   Why Section
   ============================================================ */
.why {
  padding: 100px 0;
  background: var(--cream-dark);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-text h2 { margin-bottom: 18px; }

.why-text p {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat {
  padding: 28px 0;
  border-bottom: 1px solid var(--stone);
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.stat:first-child { border-top: 1px solid var(--stone); }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--forest);
  line-height: 1;
  min-width: 96px;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

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

.contact-intro h2 { margin-bottom: 16px; }

.contact-intro p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--forest-mid);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
.contact-email:hover { color: var(--forest); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.req { color: #B94832; }

.opt {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: 0;
}

input, textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 158, 114, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--stone);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  align-self: flex-start;
  padding: 13px 36px;
  font-size: 1rem;
  margin-top: 4px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 4px;
}

.form-message--success {
  background: rgba(107, 158, 114, 0.15);
  color: var(--forest-mid);
  border: 1px solid rgba(107, 158, 114, 0.3);
}

.form-message--error {
  background: rgba(185, 72, 50, 0.08);
  color: #8B3020;
  border: 1px solid rgba(185, 72, 50, 0.2);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--forest);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--cream);
}

.footer-loc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   Nav — Hamburger (No-JS checkbox hack)
   ============================================================ */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animate hamburger to X when checked */
.nav-toggle-input:checked ~ .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-input:checked ~ .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-input:checked ~ .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* JS-enhanced: nav--open class replaces checkbox state */
.js .nav-toggle-input,
.js .nav-hamburger { display: none !important; }

.js .nav-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.js .nav-btn:hover { background: rgba(255,255,255,0.08); }
.js .nav-btn span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.js .nav--open .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.js .nav--open .nav-btn span:nth-child(2) { opacity: 0; }
.js .nav--open .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav scrolled state (JS only) */
.js .nav--scrolled {
  background: rgba(20, 38, 23, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

/* ============================================================
   Scroll Reveal — No-JS: everything visible
   With-JS: elements start hidden, JS adds .is-visible
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Nav — Desktop lockout (above 768px hamburger never shows)
   ============================================================ */
@media (min-width: 769px) {
  .nav-hamburger,
  .nav-btn { display: none !important; }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 36px;
  }

  .nav-links li a {
    padding: 0;
    border: none;
    font-size: 0.875rem;
  }
}

/* ============================================================
   Responsive — Tablet 768px
   ============================================================ */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(20, 38, 23, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
  }

  .nav-links li a {
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* No-JS: checkbox opens menu */
  .nav-toggle-input:checked ~ .nav-links { display: flex; }

  /* JS: .nav--open opens menu */
  .js .nav--open .nav-links { display: flex; }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Responsive — Tablet 900px
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive — Mobile 600px
   ============================================================ */
@media (max-width: 600px) {
  .nav { padding: 16px 20px; }

  .hero { padding: 100px 24px 72px; }
  .hero-scroll-hint { display: none; }
  .hero-bg-text { display: none; }

  .container { padding-inline: 20px; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .btn-submit { width: 100%; text-align: center; }

  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }

  .services { padding: 72px 0; }
  .portfolio { padding: 72px 0; }
  .why { padding: 72px 0; }
  .contact { padding: 72px 0; }

  .service-item { padding: 28px 24px; flex-direction: column; gap: 12px; }
  .service-number { font-size: 1.75rem; }
}