:root {
  --green: #466f32;
  --green-dark: #293326;
  --ink: #171712;
  --muted: #6c6a60;
  --line: #e5e1d7;
  --paper: #ffffff;
  --wash: #f7f5ee;
  --accent: #a7b38e;
  --shadow: 0 20px 60px rgba(23, 23, 18, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Lato, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.site {
  min-height: 100vh;
}

.header {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 3.2vw 10vw 2vw;
}

.brand {
  width: min(500px, 100%);
}

.brand img {
  width: 100%;
  height: auto;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-block: 1px solid rgba(80, 102, 69, 0.14);
  backdrop-filter: blur(14px);
}

.tab-button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  padding: 8px 16px;
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.tab-button:hover,
.tab-button[aria-selected="true"] {
  background: var(--green);
  color: #fff;
}

.original-copy .tabs {
  position: static;
  background: #fff;
  border: 0;
}

.original-copy .tab-button {
  border-radius: 0;
}

.original-copy .tab-button:hover,
.original-copy .tab-button[aria-selected="true"] {
  background: transparent;
  color: #12a548;
}

.tab-panel {
  display: none;
  padding: 36px 8vw 20px;
}

.tab-panel.active {
  display: block;
}

.original-copy .tab-panel {
  max-width: 1240px;
  margin: 0 auto;
}

.carousel-group {
  margin: 0 0 32px;
}

.carousel-title {
  margin: 0 0 13px;
  color: var(--green-dark);
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.carousel.two-up .carousel-track {
  grid-auto-columns: calc((100% - 30px) / 2);
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  scroll-snap-align: start;
}

.image-button,
.video-card {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.image-button img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.carousel.two-up .image-button img {
  height: 560px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--green-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 42px;
  line-height: 0;
  padding-bottom: 5px;
}

.carousel-control.prev {
  left: 12px;
}

.carousel-control.next {
  right: 12px;
}

.video-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 220ms ease, opacity 220ms ease;
}

.video-card:hover img {
  opacity: 0.72;
  transform: scale(1.03);
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.play::before {
  content: "";
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(80, 102, 69, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.play::after {
  content: "";
  position: absolute;
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}

.video-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  color: #fff;
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.video-embed {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 4vw;
  background: rgba(15, 17, 13, 0.86);
}

.video-embed.open {
  display: grid;
}

.video-embed iframe {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #000;
}

.service-card {
  text-align: center;
}

.service-card img {
  width: min(310px, 100%);
  margin: 0 auto 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

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

.contact-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 320px;
  align-content: center;
  text-align: center;
}

.contact-panel h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.contact-link {
  text-decoration: none;
  color: var(--green-dark);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 30px 8vw 44px;
  color: var(--green-dark);
  font-size: 14px;
}

.footer a {
  text-decoration: none;
}

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(69, 105, 52, 0.18);
  color: var(--green);
  box-shadow: 0 10px 30px rgba(41, 51, 38, 0.12);
  cursor: pointer;
  font-size: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, color 180ms ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--green);
  color: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 52px minmax(0, 1fr) 74px;
  gap: 10px;
  padding: 18px 18px 34px;
  background: rgba(15, 17, 13, 0.92);
}

.lightbox.open {
  display: grid;
}

.lightbox-image {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: calc(100vh - 188px);
  object-fit: contain;
}

.lightbox-caption {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  justify-self: center;
  color: #fff;
  font-size: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next,
.video-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 34px;
}

.lightbox-close,
.video-close {
  position: absolute;
  top: 15px;
  right: 25px;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
}

.production-site {
  background: linear-gradient(180deg, #fbfaf6 0%, #fff 42%, #f4f0e7 100%);
}

.production-site .header {
  min-height: auto;
  align-content: center;
  gap: 28px;
  padding: 50px 8vw 28px;
}

.production-site .brand {
  width: min(570px, 100%);
}

.intro {
  max-width: 740px;
  margin: 0 auto;
  color: var(--green-dark);
  text-align: center;
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.28;
}

.production-site .intro {
  font-size: 24px;
}

.production-site .tabs {
  max-width: 660px;
  margin: 10px auto 28px;
  top: 14px;
  border: 1px solid rgba(80, 102, 69, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(80, 102, 69, 0.12);
}

.production-site .tab-panel {
  padding: 42px 9vw 36px;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 34px;
}

.section-heading h1 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.production-site .carousel-group {
  padding: 24px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(80, 102, 69, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(80, 102, 69, 0.08);
}

.production-site .image-button img,
.production-site .video-card,
.production-site .service-card img {
  border-radius: 8px;
}

.production-site .services-grid {
  gap: 22px;
}

.production-site .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(80, 102, 69, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(80, 102, 69, 0.08);
}

.production-site .contact-panel {
  min-height: 420px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  justify-items: stretch;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(80, 102, 69, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(80, 102, 69, 0.08);
  text-align: left;
}

.contact-visual {
  min-height: 420px;
  background-image: url("../img/Aguila_16.png");
  background-position: 46% center;
  background-size: cover;
}

.contact-content {
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 62px);
}

.contact-content h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.02;
}

.contact-content p {
  margin: 0;
  color: var(--muted);
  max-width: 430px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(80, 102, 69, 0.22);
  border-radius: 999px;
  color: var(--green-dark);
  text-decoration: none;
  font-family: Poppins, Lato, Arial, sans-serif;
  font-size: 14px;
}

.contact-action.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.contact-action.linkedin-action,
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.linkedin-icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

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

@media (max-width: 900px) {
  .tabs {
    gap: 3px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tab-button {
    flex: 0 0 auto;
    font-size: 17px;
    padding-inline: 12px;
  }

  .carousel-track,
  .carousel.two-up .carousel-track {
    grid-auto-columns: 100%;
    gap: 18px;
  }

  .image-button img,
  .carousel.two-up .image-button img {
    height: 430px;
  }

  .video-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .production-site .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    min-height: 260px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .header {
    padding: 7vw 10vw 5vw;
  }

  .production-site .intro {
    font-size: 20px;
  }

  .tabs {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .tab-button {
    font-size: 16px;
  }

  .tab-panel {
    padding-inline: 5vw;
  }

  .image-button img,
  .carousel.two-up .image-button img {
    height: 330px;
  }

  .carousel-control {
    width: 36px;
    height: 36px;
  }

  .lightbox {
    grid-template-columns: 42px 1fr 42px;
    padding: 10px;
  }
}

