:root {
  --primary: #0B4D36;
  --secondary: #5D9C32;
  --accent: #8C8578;
  --bg: #F7F7F4;
  --surface: #ffffff;
  --text: #1E2B24;
  --muted: #5A6A5A;
  --light: #DDEAD7;
  --border: rgba(10, 35, 28, 0.12);
  --shadow: 0 22px 50px rgba(11, 77, 54, 0.08);
  --radius: 24px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

button,
a {
  font: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(14, 36, 27, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.brand {
  font-size: 1rem;
  margin: 0;
}

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

.logo {
  height: 3.5rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(93, 156, 50, 0.12);
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  padding: 0.4rem 0.55rem;
}

.hero {
  background: radial-gradient(circle at top left, rgba(93, 156, 50, 0.18), transparent 40%),
    linear-gradient(180deg, #F7F7F4 0%, #EDF4EA 100%);
  padding: 4rem 0 3rem;
}

.hero .container {
  display: grid;
  gap: 1.75rem;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero .lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.phone,
.whatsapp,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone {
  color: var(--primary);
  background: rgba(93, 156, 50, 0.08);
}

.phone:hover,
.phone:focus-visible {
  transform: translateY(-1px);
}

.whatsapp {
  background: var(--secondary);
  color: #fff;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  background: #4b7a28;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-heading::before {
  content: '';
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

h2,
h3 {
  color: var(--text);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 0 0 1rem;
}

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

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(11, 77, 54, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(93, 156, 50, 0.18);
  box-shadow: 0 26px 60px rgba(11, 77, 54, 0.12);
}

.card figure {
  margin: 0;
  display: grid;
}

.services-grid .card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card figcaption {
  padding: 1rem 1.15rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(243, 247, 241, 0.9);
}

.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(11, 77, 54, 0.08);
}

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

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.03);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 18, 15, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  position: relative;
  width: min(100%, 980px);
  max-height: min(100%, 92vh);
  background: rgba(247, 247, 244, 0.98);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11, 77, 54, 0.25);
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 106px);
  object-fit: contain;
  background: #f7f7f4;
}

.lightbox-caption {
  padding: 0.95rem 1.25rem 1.35rem;
  color: var(--text);
  font-size: 1rem;
  background: rgba(247, 247, 244, 0.98);
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(30, 43, 36, 0.9);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(30, 43, 36, 1);
}

.contacts .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0;
  color: var(--text);
}

.contact-note {
  margin-top: 1rem;
  padding-left: 0.2rem;
}

.muted {
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid rgba(14, 36, 27, 0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.site-footer small {
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .header-inner {
    padding: 1.25rem 0;
  }

  .main-nav {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }

  .main-nav {
    display: none;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .header-inner {
    align-items: center;
  }

  .hero {
    padding: 3rem 0 2.25rem;
  }

  .hero h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
    max-width: 100%;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: stretch;
  }

  .hero-actions > * {
    flex: 1 1 auto;
  }

  .services-grid,
  .gallery-grid {
    gap: 1rem;
  }

  .card {
    border-radius: 22px;
  }

  .card figcaption {
    padding: 1rem;
  }

  .gallery-item {
    border-radius: 20px;
  }

  .contacts .contact-item,
  .contact-note {
    display: block;
    margin: 0.6rem 0;
  }

  .contact-note {
    padding-left: 0;
  }
}

a:focus-visible {
  outline: 3px solid rgba(93, 156, 50, 0.35);
  outline-offset: 4px;
}
