/* ============================================================
   RESET & TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #609b00;
  --green-dark: #4a7800;
  --green-light: #7bc200;
  --black: #18191b;
  --white: #ffffff;
  --gray-50: #f8f8f6;
  --gray-100: #f0f0ec;
  --gray-200: #e2e2da;
  --gray-400: #9b9b90;
  --gray-600: #5a5a52;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 110px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Light mode (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f6;
  --text-primary: #18191b;
  --text-secondary: #5a5a52;
  --border-color: #e2e2da;
  --nav-bg: rgba(255,255,255,0.94);
}

/* Dark mode */
html.dark {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
  --nav-bg: rgba(10,10,10,0.94);
  color-scheme: dark;
}

html.dark body { background: var(--bg-primary); color: var(--text-primary); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
}
.nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.08); }

.nav-logo {
  margin-right: auto;
}
.nav-logo span { color: var(--green); }
.nav-logo img { height: 85px; width: auto; display: block; }
@media (max-width: 768px) { .nav-logo img { height: 10px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width 0.25s var(--ease);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  margin-left: 2rem;
  padding: 9px 22px;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--green); transform: translateY(-1px); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

/* iPhone Toggle */
.nav-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 12px;
}

.toggle-checkbox {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  background: #c0c0c0;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.4s var(--ease);
  flex-shrink: 0;
}

.toggle-checkbox:checked + .toggle-label {
  background: var(--green-light);
}

.toggle-switch {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: left 0.4s var(--ease);
  display: block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-checkbox:checked + .toggle-label .toggle-switch {
  left: 26px;
}

.toggle-inner {
  display: none;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-primary);
  padding: 2rem 5vw;
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.nav-mobile a { font-size: 1.125rem; font-weight: 500; color: var(--text-primary); }
.nav-mobile .nav-cta { display: inline-block; margin-top: 0.5rem; }

/* ============================================================
   PAGES — show/hide system
   ============================================================ */
.page { display: none; padding-top: 0; }
.page.active { display: block; }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 100px 0; }
.section-sm { padding: 40px 0; }

/* Tag label */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: var(--green);
}
.tag::before {
  content: '';
  display: block; width: 20px; height: 2px;
  background: var(--green);
}

/* Section heading */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
}
.section-title em { font-style: italic; color: var(--green); }

.section-sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(96,155,0,0.3); }

.btn-dark {
  background: var(--green-dark);
  color: var(--white);
}
.btn-dark:hover { background: #2d2e30; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  transition: all 0.25s var(--ease);
}
html.dark .btn-outline:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.btn-outline:hover { border-color: var(--text-primary); transform: translateY(-2px); }

.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* Arrow icon */
.arrow-icon {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  align-items: center; justify-content: center;
}

/* Divider */
.divider { width: 100%; height: 1px; background: var(--border-color); }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 80px 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.hero-label-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.hero-label-dot::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.hero-title em {
  font-style: italic;
  color: var(--green);
  display: block;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.hero-stat-label { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 4px; }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 520px;
}
.hero-card-main {
  position: absolute;
  top: 0; right: 0;
  width: 85%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--black);
}
.hero-card-main-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2a0a 0%, #2d4f00 40%, #609b00 100%);
  display: flex; align-items: flex-end;
  padding: 0rem;
}
.hero-card-main-img-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.hero-bar {
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
}

.hero-card-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--bg-primary);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 12px;
  width: 200px;
}
.hero-badge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-text p:first-child { font-size: 0.75rem; color: var(--text-secondary); }
.hero-badge-text p:last-child { font-size: 1rem; font-weight: 700; font-family: var(--font-display); color: var(--text-primary); }

.hero-card-mini {
  position: absolute;
  top: 60px; left: 0;
  width: 180px;
  background: var(--bg-primary);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 2px solid var(--green-dark);
}
.hero-mini-avatars { display: flex; margin-bottom: 8px; }
.hero-mini-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  background: var(--gray-400);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
}
.hero-mini-avatar:first-child { margin-left: 0; background: #609b00; }
.hero-mini-avatar:nth-child(2) { background: #18191b; }
.hero-mini-avatar:nth-child(3) { background: #7bc200; }
.hero-mini-text { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; }
.hero-mini-text strong { display: block; color: var(--text-primary); font-weight: 600; }

/* Brand section */
.brand-section {
  background: var(--bg-secondary);
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.brand-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.brand-section-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
}
.brand-logo-item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.brand-logo-item:hover { color: var(--text-primary); }

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}
.project-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }
.project-card:first-child { grid-column: span 2; }

.project-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
.project-card:first-child .project-img { height: 280px; }
.project-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s var(--ease);
}
.project-card:hover .project-img-bg { transform: scale(1.05); }
.before-after-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #fdeee1;
}
.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.before-after-image.after {
  clip-path: inset(0 100% 0 0);
  z-index: 1;
}
.image-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 9.75rem 0.25rem;
  border-radius: 999px;
  font-size: 0.55rem;
}
.before-after-note {
  position: absolute;
  top: 0.35rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  font-size: 0.85rem;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}
.slider-info {
  display: none;
}
.before-after-slider {
  padding-top: 1.9rem;
}
.before-after-range {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: calc(100% - 2rem);
  z-index: 4;
  background: transparent;
  -webkit-appearance: none;
}
.before-after-range:focus {
  outline: none;
}
.before-after-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}
.before-after-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c96b4f;
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.before-after-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}
.before-after-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c96b4f;
  cursor: pointer;
}
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body { padding: 1.25rem; }
.project-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.project-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.projects-footer { text-align: center; margin-top: 3rem; }

/* Services (home) */
.services-home {
  background: var(--black);
  color: var(--white);
  padding: 100px 0;
}
.services-home-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}
.services-home .tag { color: var(--green-light); }
.services-home .tag::before { background: var(--green-light); }
.services-home .section-title { color: var(--white); }
.services-home .section-sub { color: rgba(255,255,255,0.5); }

.services-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  margin-top: 4rem;
  width: calc(100% + 4rem);
  margin-left: -2rem;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.service-home-item {
  background: #18191b;
  padding: 2rem;
  transition: background 0.3s;
}
.service-home-item:hover { background: #222326; }
.service-home-item:hover .service-home-icon { background: var(--green); }
.service-home-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.service-home-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: white; margin-bottom: 8px; }
.service-home-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }
.testimonial-stars {
  display: flex; gap: 3px;
  margin-bottom: 1rem;
}
.testimonial-stars span { color: var(--green); font-size: 1rem; }
.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9375rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.8125rem; color: var(--text-secondary); }

/* CTA Section */
.cta-section {
  background: var(--green);
  padding: 100px 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
}
.cta-section-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.cta-desc { color: rgba(255,255,255,0.75); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--green); font-weight: 600; }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-ghost { background: rgba(255,255,255,0.15); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-hero {
  padding: 80px 5vw 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bg-primary);
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }
.portfolio-item-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}
.portfolio-item-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-item-img-bg { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-btn {
  background: white;
  color: black;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}
.portfolio-item-body { padding: 1.25rem; }
.portfolio-item-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 4px; }
.portfolio-item-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-primary);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease);
  color: var(--text-primary);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-img {
  height: 320px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.modal-body { padding: 2rem; }
.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-primary);
}
.modal-close:hover { background: var(--border-color); }
.modal-wrapper { position: relative; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-hero {
  padding: 80px 5vw 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 5vw 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-full-card {
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.service-full-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--green);
  transition: height 0.4s var(--ease);
}
.service-full-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); border-color: transparent; }
.service-full-card:hover::before { height: 100%; }

.service-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}
.service-full-card:hover .service-card-icon { background: rgba(96,155,0,0.12); }
.service-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.02em; color: var(--text-primary); }
.service-card-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.service-card-benefits { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-card-benefits li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.service-card-benefits li::before {
  content: '';
  display: block; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.service-card-cta { margin-top: 2rem; }
.services-page-cta {
  background: var(--bg-secondary);
  padding: 80px 5vw;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.services-page-cta-inner { max-width: 540px; margin: 0 auto; }

.quick-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto auto auto auto;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}
.quick-hero-grid .tag {
  grid-column: 1 / 2;
  grid-row: 1;
}
.quick-hero-title {
  grid-column: 1 / 2;
  grid-row: 2;
}
.quick-hero-sub {
  grid-column: 1 / 2;
  grid-row: 3;
}
.quick-chip {
  grid-column: 1 / 2;
  grid-row: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(96,155,0,0.08);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
}
.quick-hero-banner strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.25vw, 2.25rem);
  color: var(--black);
  line-height: 1.1;
}
.quick-hero-title {
  font-size: clamp(4.5rem, 6vw, 8rem);
}
.quick-highlight {
  background: var(--white);
  border-radius: 18px;
  padding: 0.95rem 1.15rem;
  color: var(--black);
  border: 1px solid rgba(96,155,0,0.18);
  line-height: 1.6;
}
.quick-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
  margin-top: 1.2rem;
  align-items: stretch;
}
.quick-block-card {
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.quick-block-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.quick-card-media {
  height: 160px;
  background: linear-gradient(135deg, rgba(96,155,0,0.14), rgba(255,255,255,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--green);
}
.quick-block-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.quick-block-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}
.quick-block-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.94rem;
}
.project-price {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--green-light);
  font-family: var(--font-display);
  padding: 0.15rem 0;
  border-radius: 0;
  margin: 0.5rem auto 0;
}
.project-price .currency {
  font-size: 0.95rem;
  color: var(--green-light);
  opacity: 0.8;
  align-self: flex-start;
}
.project-price .amount {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.quick-block-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.91rem;
}
.quick-block-card li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.quick-block-card li::before {
  content: '•';
  color: var(--green);
  line-height: 1;
  margin-top: 0.12rem;
}
.quick-card-cta { margin-top: auto; }
.quick-card-cta .btn { width: 100%; }
.quick-action-copy {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}
.quick-action-copy p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.quick-notice {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  line-height: 1.8;
}
.quick-notice strong {
  display: block;
  margin-bottom: 0.5rem;
}
@media (max-width: 1024px) {
  .quick-hero-grid {
    grid-template-columns: 1fr;
  }
  .quick-hero-banner {
    grid-row: auto;
  }
  .quick-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .quick-blocks-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 80px 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.about-hero-title em { font-style: italic; color: var(--green); }
.about-hero-text { color: var(--text-secondary); line-height: 1.8; font-size: 1.0625rem; }
.about-hero-text p + p { margin-top: 1rem; }

.about-visual {
  position: relative;
  height: 500px;
}
.about-img-main {
  position: absolute;
  top: 0; right: 0;
  width: 78%;
  height: 380px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a2a0a 0%, #609b00 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.about-img-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 52%;
  height: 200px;
  border-radius: 16px;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.about-accent-stat { text-align: center; }
.about-accent-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--green); line-height: 1; }
.about-accent-label { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-top: 4px; }

.mvv-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 5vw;
}
.mvv-inner { max-width: 1200px; margin: 0 auto; }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.mvv-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}
.mvv-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(96,155,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.mvv-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.mvv-text { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

.team-section { padding: 100px 5vw; max-width: 1200px; margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 100px; margin-top: 3rem; }
.team-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bg-primary);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.team-img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.team-info { padding: 1.25rem; }
.team-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.team-role { font-size: 0.8125rem; color: var(--green); font-weight: 600; margin-top: 2px; }
.team-bio { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 80px 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.contact-title em { font-style: italic; color: var(--green); }
.contact-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 2.5rem; }

.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  color: var(--green);
}
.contact-info-label { font-size: 0.8125rem; color: var(--text-secondary); }
.contact-info-value { font-weight: 600; font-size: 0.9375rem; margin-top: 1px; color: var(--text-primary); }

.contact-socials { display: flex; gap: 10px; margin-top: 2rem; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  color: var(--text-primary);
}
.social-btn:hover { background: var(--green); color: white; transform: translateY(-2px); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(96,155,0,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { margin-top: 8px; width: 100%; justify-content: center; padding: 15px; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(96,155,0,0.08);
  border: 1.5px solid rgba(96,155,0,0.25);
  border-radius: 14px;
  margin-top: 1rem;
}
.form-success.show { display: block; }
.form-success h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.form-success p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  color: white;
  padding: 64px 5vw 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.footer-brand-logo span { color: var(--green); }
.footer-brand-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}
.footer-social:hover { background: var(--green); color: white; }
.footer-col-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1.25rem; color: white; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-visual { display: none; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: span 2; }
  .services-grid-home { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .mvv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  :root { --nav-h: 80px; }
  .section { padding: 64px 0; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card:first-child { grid-column: span 1; }
  .services-grid-home { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .brand-section-inner { flex-direction: column; align-items: center; gap: 1rem; }
  .brand-logos { flex-direction: column; gap: 0.5rem; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* Mobile overrides: preserve media aspect ratio and avoid distortion/cropping */
@media (max-width: 768px) {
  /* Make common media containers use an intrinsic aspect ratio (16:9) on mobile */
  .project-img,
  .project-card:first-child .project-img,
  .modal-img,
  .quick-card-media,
  .about-img-main,
  .team-img,
  .hero-card-main,
  .hero-card-main-img,
  .before-after-slider {
    aspect-ratio: 16 / 9;
    height: auto !important;
    max-height: none !important;
  }

  /* Ensure media elements fill containers without stretching */
  .project-img img,
  .modal-img img,
  .quick-card-media img,
  .about-img-main img,
  .team-img img,
  .hero-card-main-img img,
  .project-video,
  video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }

  /* Background-based elements should cover and remain centered */
  .before-after-image {
    background-size: cover !important;
    background-position: center !important;
  }

  /* Let quick-card-media use aspect-ratio instead of a fixed height */
  .quick-card-media { height: auto !important; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.6s var(--ease) forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* Dark mode adjustments for specific elements */
html.dark .hero-label-dot::after { background: #0a0a0a; }
html.dark .hero-label { background: var(--bg-secondary); border-color: var(--border-color); }
html.dark .quick-chip { background: rgba(123,194,0,0.15); }
html.dark .form-success { background: rgba(123,194,0,0.15); border-color: rgba(123,194,0,0.3); }
html.dark .form-group input:focus,
html.dark .form-group textarea:focus,
html.dark .form-group select:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(123,194,0,0.2);
}
