:root {
  --bg: #f0f7ef;
  --bg-soft: #e8f3e6;
  --white: #ffffff;
  --ink: #1f2937;
  --muted: #5f6b7a;
  --green: #5cb85c;
  --green-dark: #4a9f4a;
  --icon-bg: #fde8ea;
  --icon-color: #e85d75;
  --footer: #1a2233;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  --radius: 14px;
  --container: 980px;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

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

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 247, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.logo__mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo__text {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--green);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.hero__inner {
  max-width: 760px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.25;
  font-weight: 700;
}

.hero p {
  margin: 0 auto 1rem;
  max-width: 640px;
  color: var(--muted);
}

.hero__contact {
  margin-bottom: 1.75rem !important;
  font-weight: 500;
  color: var(--ink) !important;
}

.hero__contact a:hover {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

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

.section__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
}

.section__rule {
  width: 56px;
  height: 3px;
  margin: 0.85rem auto 2.5rem;
  background: var(--green);
  border-radius: 999px;
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

.service-card__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-color);
  display: grid;
  place-items: center;
}

.service-card__icon svg {
  width: 42px;
  height: 42px;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Clients */
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.client-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

/* Portfolio page */
.portfolio-page {
  padding-top: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  margin: 0;
}

.portfolio-card figcaption {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.portfolio-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: var(--white);
  text-align: left;
  font: inherit;
}

.portfolio-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

/* Portfolio lightbox */
body.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(26, 34, 51, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

/* Contact */
.contact {
  background: var(--bg-soft);
}

.contact__inner {
  text-align: center;
}

.contact__email {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.contact__email a:hover {
  color: var(--green);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0a66c2;
  color: var(--white);
}

.social-link:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.25rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .services__grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}
