:root {
  --bg: #F6F7F6;
  --ink: #101C14;
  --ink-soft: #6B7870;
  --green: #2A5E44;
  --green-dark: #1e4532;
  --mint: #D6E5DD;
  --border: #E2E8E4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.hidden { display: none !important; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 900px; }

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 300ms;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) {
  .nav-inner { height: 80px; }
}
.logo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  transition: color 200ms;
}
.logo-btn:hover { color: var(--green); }
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--mint);
  border: 1px solid var(--border);
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .desktop-only { display: flex; }
  .mobile-only { display: none !important; }
}
@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 200ms;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--green); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--green);
}

.mobile-menu-btn {
  padding: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.mobile-menu {
  background: white;
  border-top: 1px solid var(--border);
}
.mobile-menu-inner {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-link {
  text-align: right;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  width: 100%;
}
.mobile-nav-link.active { color: var(--green); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(246,247,246,0.8), rgba(246,247,246,0.6), rgba(246,247,246,1));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.15;
}
@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 60px; } }

.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
@media (min-width: 768px) { .hero-lede { font-size: 20px; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 200ms;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-arrow { transition: transform 200ms; }
.btn-primary:hover .btn-arrow { transform: translateX(-4px); }

.social-fixed {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 16px;
  z-index: 20;
}
.social-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: var(--ink-soft);
  transition: all 200ms;
}
.social-fixed a:hover {
  color: var(--green);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Sections */
.section {
  padding: 80px 0;
}
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.section-white { background: white; }
.section-mint { background: rgba(214,229,221,0.3); }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
@media (min-width: 1024px) { .section-head h2 { font-size: 36px; } }
.section-lede {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}
.section-head .eyebrow { margin-bottom: 12px; }

/* Video */
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* About */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.about-text h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
@media (min-width: 1024px) { .about-text h2 { font-size: 36px; } }
.about-text p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-image-wrap { position: relative; }
.about-image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.experience-badge {
  position: absolute;
  bottom: -24px;
  /* rtl: right position visually on the right side */
  right: -24px;
  background: var(--green);
  color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
}
.exp-number { font-size: 30px; font-weight: 700; }
.exp-label { font-size: 14px; opacity: 0.9; }

/* Services */
.services-grid {
  display: grid;
  gap: 0;
  counter-reset: service;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}

.service-card {
  counter-increment: service;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.service-card::before {
  content: counter(service, decimal-leading-zero);
  font-family: 'Heebo', sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--green);
  letter-spacing: 0.02em;
  transition: color 300ms ease, -webkit-text-stroke-width 300ms ease, transform 300ms ease;
  width: 64px;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 3px;
  height: 0;
  background: var(--green);
  transform: translateY(-50%);
  transition: height 300ms ease;
}
.service-card:hover::before {
  color: var(--green);
  -webkit-text-stroke-width: 0;
  transform: translateX(-6px);
}
.service-card:hover::after { height: 60%; }

.service-card p {
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  margin: 0;
}

/* Hide the old check icon if still in DOM */
.service-check { display: none; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.portfolio-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 500ms;
}
.portfolio-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.portfolio-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}
.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-body { padding: 24px; }
.portfolio-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 500;
  font-size: 14px;
}
.download-link:hover { text-decoration: underline; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
}
.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--mint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}
.contact-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.contact-value {
  color: var(--ink);
  font-weight: 500;
  transition: color 200ms;
  line-height: 1.5;
}
.contact-value.small { font-size: 14px; }
a.contact-value:hover { color: var(--green); }

/* Footer */
footer {
  background: var(--ink);
  color: white;
  padding: 64px 0;
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-main h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-main p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: background 200ms;
}
.footer-socials a:hover { background: var(--green); }

footer h4 {
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  transition: color 200ms;
}
.footer-links button:hover { color: white; }
.footer-hours { color: rgba(255,255,255,0.7); display: flex; flex-direction: column; gap: 8px; }
.footer-areas { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.5); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
