:root {
  --color-bg: #fafaf7;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-ink-soft: #475569;
  --color-muted: #64748b;
  --color-line: #e5e7eb;
  --color-accent: #23bb46;
  --color-accent-soft: #e0f5e3;
  --color-accent-strong: #0d6c25;
  --color-dark: #0f172a;
  --color-header-bg: rgba(250, 250, 247, 0.85);
  --color-nav-cta-bg: linear-gradient(180deg, #1d9249 0%, #0c5a28 100%);
  --color-nav-cta-bg-hover: linear-gradient(180deg, #178541 0%, #094f23 100%);
  --color-nav-cta-text: #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08), 0 8px 16px rgba(15, 23, 42, 0.04);

  --container: 1200px;
  --container-narrow: 880px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  text-decoration: none;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
[data-theme="dark"] a { color: var(--color-accent); }
[data-theme="dark"] .nav__cta { color: var(--color-nav-cta-text); }
[data-theme="dark"] .nav__brand { color: var(--color-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-ink-soft); }
p.lead { font-size: 1.2rem; color: var(--color-ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: 1rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--color-ink); text-decoration: none; }
.nav__links a:active { color: var(--color-accent); }
.nav__links a.is-active { color: var(--color-accent-strong); font-weight: 700; }
[data-theme="dark"] .nav__links a:active { color: var(--color-accent-strong); }
[data-theme="dark"] .nav__links a.is-active { color: var(--color-accent); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--color-nav-cta-bg);
  color: var(--color-nav-cta-text);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.nav__cta:hover { background: var(--color-nav-cta-bg-hover); text-decoration: none; }
.nav__cta:active {
  background: linear-gradient(180deg, #094f23 0%, #178541 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  transform: translateY(1px);
}
[data-theme="dark"] .nav__cta:active {
  background: linear-gradient(180deg, #2db546 0%, #57e16d 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.nav__toggle { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  padding: 0;
}
.theme-toggle:hover { color: var(--color-ink); border-color: var(--color-ink-soft); }
.theme-toggle:active {
  transform: translateY(1px);
  background: var(--color-surface);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.15);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, #1d9249 0%, #0c5a28 100%); color: #fff; }
.btn--primary:hover { background: linear-gradient(180deg, #178541 0%, #094f23 100%); box-shadow: var(--shadow-md); }
.btn--primary:active { background: linear-gradient(180deg, #094f23 0%, #178541 100%); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25); }
[data-theme="dark"] .btn--primary { background: linear-gradient(180deg, #57e16d 0%, #2db546 100%); color: #1a472a; }
[data-theme="dark"] .btn--primary:hover { background: linear-gradient(180deg, #6be57e 0%, #36bf52 100%); color: #1a472a; }
[data-theme="dark"] .btn--primary:active { background: linear-gradient(180deg, #2db546 0%, #57e16d 100%); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35); color: #1a472a; }
.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
}
.btn--secondary:hover { background: var(--color-ink); color: #fff; }
.btn--secondary:active { background: var(--color-ink); color: #fff; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); }

.btn__arrow { transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.section--surface {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 { margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero__badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(35, 187, 70, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(35, 187, 70, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(35, 187, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 187, 70, 0); }
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--color-accent-strong); }
.hero__lede { font-size: 1.2rem; color: var(--color-ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, #eef0e7 0%, #cfd5c4 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero__visual img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}
.hero__visual-img {
  background: url('../images/forest-bg.jpg') center/cover;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(140deg, var(--color-accent), transparent 60%);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
}

.hero__visual--portrait { max-width: 440px; margin-left: auto; }
.hero__visual--portrait img {
  background: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero--centered { text-align: center; }
.hero--centered .hero__lede { margin: 0 auto 32px; }
.hero--centered .hero__ctas { justify-content: center; }

.hero__pricing {
  margin: 20px 0 0;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}
.hero__pricing strong { color: var(--color-ink); font-weight: 600; }

/* ---------- Contact page ---------- */
.service-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.service-card--link:hover { text-decoration: none; }
.service-card--link h3 { color: var(--color-ink); }
.service-card--link p { color: var(--color-ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}
.facts h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.facts p { margin: 0; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Service detail (services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.service-detail__icon {
  width: 56px; height: 56px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.service-detail__lead h2 { margin-bottom: 16px; }
.service-detail__lead .lead { margin: 0; }
.service-detail__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.service-detail__body h3,
.service-detail__body h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.service-detail__body p + h3,
.service-detail__body p + h4 { margin-top: 28px; }
.service-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.service-detail__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--color-ink-soft);
}
.service-detail__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent-strong);
  font-weight: 700;
}

.services-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .services-grid--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid--four { grid-template-columns: 1fr; }
}


/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin: 0; font-size: 0.97rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-grid--four { grid-template-columns: repeat(2, 1fr); }
.portfolio-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.portfolio-card:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.portfolio-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
}
.portfolio-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card__thumb img { transform: scale(1.04); }
.portfolio-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.portfolio-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.portfolio-card h3 { color: var(--color-ink); margin-bottom: 6px; }
.portfolio-card p { color: var(--color-ink-soft); font-size: 0.95rem; margin: 0; }
.portfolio-card__status {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 12px;
  align-self: flex-start;
}

/* ---------- About preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.about-preview__photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-accent-soft);
}
.about-preview__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about-preview h2 { margin-bottom: 16px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--color-dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; max-width: 640px; margin: 0 auto 16px; }
.cta-strip p { color: #cbd5e1; max-width: 540px; margin: 0 auto 32px; }
.cta-strip__alt { margin: 18px auto 0 !important; color: #94a3b8; font-size: 0.92rem; max-width: 540px; }
.cta-strip__alt a { color: #cbd5e1; }
.cta-strip__alt a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #cbd5e1;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: #cbd5e1;
  font-size: 0.95rem;
}
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: #94a3b8; font-size: 0.95rem; max-width: 320px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; text-align: center; }
  .about-preview__photo { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: flex;
    background: none;
    border: 1px solid var(--color-line);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-line);
    gap: 16px;
  }
  .nav.is-open .nav__cta { display: inline-flex; margin-top: 8px; align-self: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --color-bg: #0a1020;
  --color-surface: #131b2e;
  --color-ink: #f1f5f9;
  --color-ink-soft: #cbd5e1;
  --color-muted: #94a3b8;
  --color-line: #1e293b;
  --color-accent: #3dcf5a;
  --color-accent-soft: rgba(61, 207, 90, 0.14);
  --color-accent-strong: #7fe095;
  --color-dark: #131b2e;
  --color-header-bg: rgba(10, 16, 32, 0.85);
  --color-nav-cta-bg: linear-gradient(180deg, #57e16d 0%, #2db546 100%);
  --color-nav-cta-bg-hover: linear-gradient(180deg, #6be57e 0%, #36bf52 100%);
  --color-nav-cta-text: #1a472a;
}

[data-theme="dark"] .hero__visual {
  background: linear-gradient(140deg, #1c2740 0%, #0a1020 100%);
  border: 1px solid var(--color-line);
}
[data-theme="dark"] .btn--secondary {
  border-color: var(--color-ink-soft);
  color: var(--color-ink);
}
[data-theme="dark"] .btn--secondary:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

/* ---------- Utilities ---------- */
.u-text-center { text-align: center; }
.u-mt-sm { margin-top: 8px; }
.u-mt-md { margin-top: 32px; }
.u-mt-lg { margin-top: 48px; }
.u-muted { color: var(--color-ink-soft); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

