/* ===== Eco Tech Solutions – Green Theme ===== */
:root {
  --green-900: #0f3d2e;
  --green-800: #145c43;
  --green-700: #1a7a56;
  --green-600: #22a06b;
  --green-500: #2db87a;
  --green-400: #4cd194;
  --green-300: #7de0b0;
  --green-200: #b3efd0;
  --green-100: #e6f9ef;
  --green-50:  #f3fcf7;

  --earth: #8b7355;
  --cream: #0d1f18;
  --white: #ffffff;
  --text: #e8f5ee;
  --text-muted: #a3c4b4;
  --border: #1e3d30;
  --card-bg: #132a21;
  --section-light: #0f261c;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(15, 61, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 61, 46, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 4px 6px at 10% 20%, rgba(34, 160, 107, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 5px 7px at 85% 40%, rgba(45, 184, 122, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 3px 5px at 40% 70%, rgba(34, 160, 107, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 4px 6px at 70% 85%, rgba(45, 184, 122, 0.05) 0%, transparent 100%);
}

/* Dark theme overrides for cards & surfaces */
.about,
.contact {
  background: var(--section-light) !important;
}

.services {
  background: var(--cream) !important;
}

.about-card,
.service-block,
.contact-form {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
}

.about-card h3,
.service-header h3,
.info-item h4,
.form-group label {
  color: var(--green-300) !important;
}

.about-card p,
.service-list li,
.info-item p,
.section-desc {
  color: var(--text-muted) !important;
}

.hero-badge {
  background: rgba(34, 160, 107, 0.2) !important;
  color: var(--green-300) !important;
}

.btn-outline {
  color: var(--green-300) !important;
  border-color: var(--green-500) !important;
}

.btn-outline:hover {
  background: rgba(34, 160, 107, 0.15) !important;
}

.btn-secondary {
  background: rgba(34, 160, 107, 0.2) !important;
  color: var(--green-300) !important;
  border-color: var(--green-600) !important;
}

.header {
  background: rgba(13, 31, 24, 0.92) !important;
}

.header.scrolled {
  border-bottom-color: var(--border) !important;
}

.nav-link {
  color: var(--text-muted) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-300) !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--cream) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 100px;
  width: auto;
  max-width: min(420px, 55vw);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.logo-footer .logo-img {
  height: 110px;
  max-width: 480px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-700);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-500);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--green-300);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}

.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 160, 107, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-600);
}

.btn-outline:hover {
  background: var(--green-100);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--green-100);
  color: var(--green-800);
  border-color: var(--green-200);
}

.btn-secondary:hover {
  background: var(--green-200);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(45, 184, 122, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(34, 160, 107, 0.08), transparent),
    linear-gradient(180deg, #0a1a14 0%, var(--cream) 100%);
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%2322a06b' fill-opacity='0.06' d='M100 20c-20 0-40 15-40 40 0 30 40 60 40 60s40-30 40-60c0-25-20-40-40-40z'/%3E%3Cpath fill='%231a7a56' fill-opacity='0.04' d='M60 100c-15 0-30 12-30 30 0 22 30 45 30 45s30-23 30-45c0-18-15-30-30-30z'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  opacity: 0.8;
}


/* ===== Tree of Life background ===== */
.tree-of-life-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.tree-of-life {
  width: min(780px, 95vw);
  height: auto;
  max-height: 90vh;
  opacity: 0.7;
  filter: drop-shadow(0 0 50px rgba(34, 160, 107, 0.2));
  animation: treePulse 12s ease-in-out infinite;
}

@keyframes treePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.015); }
}

/* Soft secondary Tree of Life watermark on body */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(900px, 100vw);
  height: min(900px, 100vw);
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 480'%3E%3Ccircle cx='200' cy='240' r='185' fill='none' stroke='%231a7a56' stroke-width='1.5' opacity='0.15'/%3E%3Cpath d='M200 400 V280' stroke='%231a7a56' stroke-width='6' opacity='0.12'/%3E%3Cpath d='M200 280 C160 250 120 200 100 140 M200 280 C240 250 280 200 300 140 M200 280 C200 230 200 180 200 120' stroke='%2322a06b' stroke-width='3' fill='none' opacity='0.12'/%3E%3Cpath d='M200 400 C180 420 150 435 120 445 M200 400 C220 420 250 435 280 445' stroke='%231a7a56' stroke-width='2.5' fill='none' opacity='0.1'/%3E%3Ccircle cx='200' cy='280' r='10' fill='%2322a06b' opacity='0.1'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== Falling leaves (page-wide) ===== */
.falling-leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.falling-leaf {
  position: absolute;
  top: -40px;
  will-change: transform;
  animation: fall linear infinite;
}

.falling-leaf svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  20% {
    transform: translateY(20vh) translateX(var(--sway, 15px)) rotate(70deg);
  }
  40% {
    transform: translateY(40vh) translateX(calc(var(--sway, 15px) * -0.8)) rotate(150deg);
    opacity: 0.65;
  }
  60% {
    transform: translateY(60vh) translateX(calc(var(--sway, 15px) * 1.1)) rotate(230deg);
  }
  80% {
    transform: translateY(80vh) translateX(calc(var(--sway, 15px) * -0.5)) rotate(310deg);
    opacity: 0.45;
  }
  100% {
    transform: translateY(108vh) translateX(var(--sway, 10px)) rotate(400deg);
    opacity: 0;
  }
}

/* Nature decorations – trees & floating leaves */
.nature-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.tree {
  position: absolute;
  bottom: 0;
  opacity: 0.55;
}

.tree-left {
  left: -20px;
  width: 140px;
  height: 240px;
}

.tree-right {
  right: -10px;
  width: 110px;
  height: 200px;
  opacity: 0.45;
}

.leaf {
  position: absolute;
  width: 28px;
  height: 28px;
  animation: floatLeaf 12s ease-in-out infinite;
}

.leaf-1 { top: 18%; left: 8%; animation-delay: 0s; animation-duration: 14s; }
.leaf-2 { top: 28%; right: 12%; animation-delay: 2s; animation-duration: 11s; transform: rotate(25deg); }
.leaf-3 { top: 55%; left: 15%; animation-delay: 4s; animation-duration: 16s; transform: rotate(-15deg); }
.leaf-4 { top: 40%; right: 22%; animation-delay: 1s; animation-duration: 13s; transform: rotate(40deg); }
.leaf-5 { top: 70%; right: 8%; animation-delay: 3s; animation-duration: 15s; transform: rotate(-30deg); }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  25% { transform: translateY(-18px) rotate(8deg); opacity: 0.5; }
  50% { transform: translateY(-8px) rotate(-5deg); opacity: 0.35; }
  75% { transform: translateY(-22px) rotate(12deg); opacity: 0.45; }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

/* Leaf section dividers */
.leaf-divider {
  line-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.leaf-divider svg {
  width: 100%;
  height: 50px;
  display: block;
}

.leaf-divider-flip svg {
  transform: scaleY(-1);
}

/* Forest silhouette in Why Eco */
.why-eco {
  position: relative;
  overflow: hidden;
}

.forest-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
  z-index: 0;
}

.forest-silhouette {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.why-eco .container {
  position: relative;
  z-index: 1;
}

.why-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  color: #e8f5ee;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-700);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: #e8f5ee;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== About ===== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.about-card {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.25rem;
  color: var(--green-800);
  margin-bottom: 0.6rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.service-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: box-shadow var(--transition);
}

.service-block:hover {
  box-shadow: var(--shadow-lg);
}

.service-block.featured {
  border-color: var(--green-400);
  box-shadow: 0 8px 30px rgba(34, 160, 107, 0.12);
}

.service-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--green-600);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 1.75rem;
}

.service-header h3 {
  font-size: 1.3rem;
  color: var(--green-800);
}

.service-list {
  list-style: none;
  margin-bottom: 2rem;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

/* ===== Why Eco ===== */
.why-eco {
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-800) 100%);
  color: white;
}

.why-eco .section-tag {
  color: var(--green-300);
}

.why-eco .section-header h2 {
  color: white;
}

.why-eco .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.why-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-300);
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Contact ===== */
.contact {
  background: var(--white);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1rem;
  color: var(--green-800);
  margin-bottom: 0.25rem;
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-item a {
  color: var(--green-600);
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(45, 184, 122, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 768px) {
  .tree-left { width: 90px; height: 160px; opacity: 0.35; }
  .tree-right { width: 70px; height: 130px; opacity: 0.3; }
  .leaf { width: 20px; height: 20px; }
  .forest-bg { height: 100px; }

  .nav-container { height: 88px; }
  .logo-img { height: 64px; max-width: 70vw; }
  .logo-footer .logo-img { height: 80px; max-width: 90vw; }

  .nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero {
    padding: 7.5rem 0 4rem;
    min-height: auto;
  }

  .hero-stats {
    gap: 1.5rem;
  }

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

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
