/* ===== Variables (Dark Green Theme) ===== */
:root {
  --green-dark: #1a4d3a;
  --green-darker: #0d3325;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --bg-light: #f2f6f0;
  --bg-cream: #e8efe3;
  --text-dark: #1a2e24;
  --text-on-green: #f0f5ee;
  --border-green: #1a4d3a;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-btn: 2rem;
  --radius-frame: 50% 50% 48% 52% / 60% 60% 40% 40%;
  --shadow-soft: 0 4px 20px rgba(26, 77, 58, 0.08);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg-light);
  border-bottom: 1px solid rgba(26, 77, 58, 0.1);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--green-dark); }

/* ===== Sections ===== */
.section {
  padding: 4rem 2rem;
  position: relative;
}
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-dark {
  background: var(--green-dark);
  color: var(--text-on-green);
}
.section-dark h2,
.section-dark .section-intro,
.section-dark h3,
.section-dark .service-text p { color: var(--text-on-green); }

.container { max-width: 1100px; margin: 0 auto; }

/* ===== Hero / About ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.illustration-frame {
  width: 180px;
  height: 200px;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-frame);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.illustration-frame.chat { width: 200px; height: 160px; }
.illustration-frame .line-art {
  width: 100%;
  height: 100%;
  color: var(--green-dark);
}
.tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-mid);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}
.hero-content h1,
.cta .hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1.25rem;
}
.hero-content p,
.cta .hero-content p {
  margin: 0 0 1rem;
  max-width: 52ch;
}
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green-dark);
  color: var(--text-on-green);
  border: 2px solid var(--green-dark);
}
.btn-primary:hover { box-shadow: var(--shadow-soft); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--border-green);
}
.btn-outline:hover { background: rgba(26, 77, 58, 0.06); }
.btn-light {
  background: var(--bg-cream);
  color: var(--green-dark);
  border: 2px solid var(--bg-cream);
  margin-bottom: 2rem;
}
.btn-light:hover { box-shadow: var(--shadow-soft); }

/* Background texture (subtle leaves) */
.bg-texture {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  max-width: 400px;
  background: radial-gradient(ellipse 80% 50% at 90% 30%, rgba(45, 106, 79, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== What We Do ===== */
.services .container { position: relative; }
.services h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
}
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}
.vine-container {
  position: absolute;
  left: 50%;
  top: 180px;
  bottom: 80px;
  transform: translateX(-50%);
  width: 24px;
  pointer-events: none;
}
.vine { width: 100%; height: 100%; color: rgba(255,255,255,0.4); }
.services-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 900px;
}
.service-left { margin-right: auto; }
.service-right { margin-left: auto; }
.service-right .illustration-frame { order: 2; }
.service-right .service-text { order: 1; }
.illustration-frame.small {
  width: 120px;
  height: 120px;
  border-color: rgba(255,255,255,0.6);
}
.illustration-frame.small .line-art { color: rgba(255,255,255,0.9); }
.service-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.service-text p { margin: 0; font-size: 0.95rem; opacity: 0.95; }

/* ===== Our Works ===== */
.portfolio h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
}
.portfolio .section-intro { margin-bottom: 1.5rem; }
.portfolio .btn { margin-left: auto; margin-right: auto; display: block; text-align: center; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.portfolio-item {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s;
}
.portfolio-item:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

/* ===== Footer ===== */
.footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background: var(--green-darker);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}
.footer p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { margin-bottom: 0.5rem; }
  .hero-content p { max-width: none; }
  .btn-group { justify-content: center; }
  .vine-container { display: none; }
  .service-item {
    grid-template-columns: 1fr;
    max-width: 100%;
    text-align: center;
  }
  .service-right .illustration-frame { order: 1; }
  .service-right .service-text { order: 2; }
  .illustration-frame.small { margin: 0 auto; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .header { padding: 1rem 1.25rem; }
  .nav { gap: 1.25rem; }
  .section { padding: 3rem 1.25rem; }
  .hero-content h1, .cta .hero-content h1, .services h2, .portfolio h2 { font-size: 1.75rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
