﻿:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #59636e;
  --accent: #2f6d52;
  --accent-dark: #234f3b;
  --line: #d8ddd9;
  --max: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background-color: #fff; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-color: #fff;
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.site-header {
  background: var(--surface);
  background-color: #fff;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.brand {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
}

.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.2rem 1.2rem 0.8rem;
  background-color: #fff;
}

.nav-list {
  margin: 0;
  padding: 0.8rem 0 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(47, 109, 82, 0.18);
}

.nav-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--accent-dark);
  background: rgba(47, 109, 82, 0.08);
}

.nav-list a[aria-current="page"] {
  color: var(--accent-dark);
  background: rgba(47, 109, 82, 0.12);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 109, 82, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent-dark);
}

main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.2rem 3rem; background-color: #fff; }

.hero {
  background: transparent;
  padding: 2.2rem;
}
.hero h1 { margin: 0 0 1rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.2; }
.hero-rule {
  width: 84px;
  height: 2px;
  margin: 0 0 1.8rem;
  background: linear-gradient(90deg, var(--accent), rgba(47, 109, 82, 0.15));
}
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.3rem;
  padding-top: 1.8rem;
  position: relative;
}

.hero-gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(47, 109, 82, 0.15));
}

.hero--rule-before-gallery .hero-gallery::before {
  content: none;
}

.hero-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-gallery img.hero-gallery-logo {
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.hero-gallery--single-centered {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.hero-gallery--contact {
  gap: 0.7rem;
  padding-top: 1rem;
  margin-bottom: 0;
  align-items: start;
}

.hero-gallery--contact img {
  aspect-ratio: 16 / 9;
}

.hero p { margin: 0.7rem 0; color: #2d353d; }

.hero--contact-compact {
  padding-top: 1.6rem;
  padding-bottom: 0.15rem;
}

.contact-summary {
  margin: 0.65rem 0 0;
}

.hero-text-media {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 1.1rem;
  align-items: center;
  margin: 1.3rem 0;
}

.hero-text-media + .hero-text-media {
  margin-top: 1.7rem;
}

.hero-text-media p {
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-left: 3px solid rgba(47, 109, 82, 0.42);
}

.hero-inline-image {
  display: block;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 0;
  border: 1px solid rgba(47, 109, 82, 0.1);
  box-shadow: none;
}

.section { margin-top: 2.2rem; }
.section h2 { margin: 0 0 0.7rem; font-size: clamp(1.3rem, 2vw, 1.8rem); color: var(--accent-dark); }
.section h3 { margin: 1.2rem 0 0.4rem; font-size: 1.07rem; }
.section p { margin: 0.5rem 0; color: #38424c; }

@supports (content-visibility: auto) {
  .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

.services-editorial {
  display: grid;
  gap: 2.6rem;
  margin-top: 1.3rem;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  grid-template-areas:
    "title media"
    "body media";
  gap: 2rem;
  align-items: start;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(47, 109, 82, 0.12);
}

.service-feature--reverse {
  grid-template-areas:
    "media title"
    "media body";
}

.service-feature-title {
  grid-area: title;
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  color: var(--ink);
}

.service-feature-body {
  grid-area: body;
}

.service-feature-body p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.projects-list {
  display: grid;
  gap: 1.4rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  align-items: start;
  border-top: 1px solid rgba(47, 109, 82, 0.12);
  padding-top: 1.2rem;
}

.project-media-link {
  display: block;
  text-decoration: none;
}

.project-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101513;
}

.project-card-body h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.project-card-body p {
  margin: 0 0 0.9rem;
}

.project-link {
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-video {
  display: block;
  width: min(100%, 820px);
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #101513;
}

.project-image-row {
  display: grid;
  gap: 0.9rem;
}

.project-image-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-image-row--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-image-row img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-feature-media {
  grid-area: media;
  margin: 0;
  min-height: 260px;
  width: 100%;
  max-width: 420px;
  justify-self: stretch;
}

.service-feature-media img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-feature:not(.service-feature--reverse) .service-feature-media {
  margin-left: auto;
}

.service-feature--reverse .service-feature-media {
  margin-right: auto;
}

.service-feature-media--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 109, 82, 0.08), rgba(47, 109, 82, 0.02));
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: transparent;
  padding: 1rem;
  border-top: 1px solid rgba(47, 109, 82, 0.12);
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0.4rem; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.kpi {
  background: transparent;
  padding: 1rem;
  border-left: 2px solid rgba(47, 109, 82, 0.24);
}
.kpi strong { font-size: 1.25rem; display: block; color: var(--accent-dark); }

.final-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(47, 109, 82, 0.14);
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, rgba(47, 109, 82, 0.05), rgba(47, 109, 82, 0));
}

.final-cta p {
  max-width: 42ch;
  margin: 0 auto 1.2rem;
  font-size: 1.08rem;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.final-cta h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, rgba(47, 109, 82, 0.25), var(--accent), rgba(47, 109, 82, 0.25));
}

.cta {
  margin-top: 1.4rem;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}
.cta:hover { background: var(--accent-dark); color: #fff; }

.list-clean { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.list-clean li { margin: 0.25rem 0; }

.section-back-link {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(47, 109, 82, 0.12);
}

.back-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.highlight-phrase {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem 1rem 1.35rem;
  border-left: 3px solid rgba(47, 109, 82, 0.42);
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.7;
}

.site-footer {
  background: #fff;
  background-color: #fff;
}

.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 1200;
}

.floating-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 22px rgba(12, 20, 24, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 20, 24, 0.28);
  filter: brightness(1.02);
}

.floating-contact-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-contact-btn--email {
  background: #2f6d52;
}

.floating-contact-btn--whatsapp {
  background: #25d366;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(47, 109, 82, 0.14);
  text-align: center;
}

@media (max-width: 900px) {
  .service-feature {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "body";
    gap: 1rem;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-image-row--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-feature-media {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    padding-top: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-ready .site-nav .nav-list {
    display: none;
  }

  .nav-ready .site-nav.is-open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list {
    gap: 0.35rem;
    padding-top: 0.9rem;
    width: min(360px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .nav-list a {
    display: block;
    text-align: center;
    border-radius: 10px;
  }

  .hero-gallery { grid-template-columns: 1fr; }
  .project-image-row,
  .project-image-row--three,
  .project-image-row--four {
    grid-template-columns: 1fr;
  }
  .grid, .kpis { grid-template-columns: 1fr; }
  .hero { padding: 1.2rem; }
  .hero--contact-compact {
    padding-top: 1.1rem;
    padding-bottom: 0;
  }
  .hero-text-media {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .hero-text-media p {
    padding: 0.85rem 0.9rem 0.85rem 1rem;
  }
  .hero-inline-image {
    max-width: 360px;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
  .project-card-body {
    display: contents;
  }
  .project-card-body h2 {
    order: 1;
    margin-bottom: 0;
  }
  .project-media-link {
    order: 2;
  }
  .project-card-body p {
    order: 3;
    margin-bottom: 0;
  }
  .project-card-body .project-link {
    order: 4;
  }
  .project-video {
    width: 100%;
    max-height: 82vh;
  }

  .floating-contact {
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .floating-contact-btn {
    width: 48px;
    height: 48px;
  }
}


.section--with-rule {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(47, 109, 82, 0.12);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-contact-block {
  display: grid;
  gap: 1.2rem;
}

.section.contact-layout {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.about-image-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-image-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.section.contact-layout {
  margin-top: 1.1rem;
}

.contact-card {
  border-top: 1px solid rgba(47, 109, 82, 0.12);
  padding-top: 1.5rem;
}

.contact-card h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--accent-dark);
}

.form-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(47, 109, 82, 0.18);
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(47, 109, 82, 0.18);
  border-color: var(--accent);
}

.contact-submit-btn[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.form-status.is-success {
  display: block;
  padding: 0.75rem 0.9rem;
  border: 1px solid #63a86a;
  border-radius: 8px;
  background: #e8f7ea;
  color: var(--accent-dark);
}

.form-status.is-error {
  color: #9b2f2f;
}

.contact-info-card p {
  margin: 0.55rem 0;
}

.contact-map-wrap {
  margin-top: 1rem;
}

.contact-map {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

@media (max-width: 900px) {
  .about-image-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .about-image-row {
    grid-template-columns: 1fr;
  }
}

