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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: var(--color-green);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 99999;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #555;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 12px;
}

.top-bar__social a {
  color: #777;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

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

.top-bar__contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: flex-end;
}

.top-bar__contacts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar__contacts img {
  width: 22px;
  height: 22px;
}

.top-bar__sep {
  color: #ccc;
}

/* ========== HEADER ========== */
.site-header {
  background: #fff;
}

.site-header__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0 18px;
  text-align: center;
}

.site-header__logo a {
  display: inline-block;
  line-height: 0;
}

.site-header__logo img {
  width: 487px;
  max-width: 90%;
  height: auto;
}

.site-nav-wrap {
  background: var(--color-nav);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 52px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav__list > li > a {
  display: block;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 16px 20px;
  transition: background 0.2s;
}

.site-nav__list > li > a:hover,
.site-nav__list > li.is-active > a {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

.site-nav__search-btn {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1;
}

.site-nav__search-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--color-green);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 50;
  width: 280px;
}

.site-nav__search-panel.is-open {
  display: block;
}

.site-nav__search-panel input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 0;
}

.mobile-toggle i {
  font-size: 18px;
}

.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

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

/* ========== PAGE HEADER ========== */
.page-header {
  position: relative;
  background: #f5f5f5;
  padding: 34px 0;
}

.page-header__inner {
  position: relative;
}

.page-header__title {
  display: block;
  max-width: 70%;
  margin: 0;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 400;
  color: #333;
}

.page-header__crumb {
  position: absolute;
  right: 0;
  top: 50%;
  max-width: 50%;
  height: 32px;
  margin-top: -16px;
  font-size: 13px;
  line-height: 32px;
  color: #6f6f6f;
  font-weight: 400;
  white-space: nowrap;
}

.page-header__crumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-header__crumb li {
  display: inline-block;
}

.page-header__crumb a {
  color: #6f6f6f;
}

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

.page-header__home {
  display: inline-block;
  vertical-align: -2px;
}

.page-header__sep {
  margin: 0 6px;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #333;
  min-height: 496px;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 496px;
  background-color: #333;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 200px 20px;
  text-align: center;
}

.hero-slide__content h2 {
  margin: 0;
  color: #fff;
  font-size: 32.3px;
  line-height: 1.375;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.68);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-slide__hr {
  width: 25%;
  max-width: 220px;
  height: 2px;
  background: #fff;
  border: 0;
  margin: 25px auto 0;
}

.hero-slider__dots {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active {
  background: #fff;
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 10px 14px;
  opacity: 0;
  transition: opacity 0.2s;
}

.hero-slider:hover .hero-slider__nav {
  opacity: 0.9;
}

.hero-slider__nav--prev {
  left: 8px;
}

.hero-slider__nav--next {
  right: 8px;
}

/* ========== SECTION TITLES ========== */
.section-title {
  position: relative;
  padding-left: 14px;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #333;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--color-green);
}

/* ========== BUTTONS ========== */
.btn-wire {
  display: inline-block;
  border: 2px solid var(--color-green);
  color: var(--color-green) !important;
  background: transparent;
  padding: 0.5em 1em;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-wire:hover {
  background: var(--color-green);
  color: #fff !important;
}

.btn-wire-white {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff !important;
  background: transparent;
  padding: 1.4em 2.8em;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-wire-white:hover {
  background: #fff;
  color: #333 !important;
}

/* ========== HOME: QUEM SOMOS ========== */
.home-about {
  padding: 48px 0 30px;
}

.home-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.home-about__text p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.home-about__media img {
  display: block;
  width: 100%;
}

.partners {
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-green);
}

.partners-carousel {
  position: relative;
  margin: 8px 0 12px;
  padding: 0 40px;
  overflow: hidden;
}

.partners-carousel__track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
}

.partners-carousel__item {
  flex: 0 0 calc(33.333% - 8px);
  text-align: center;
  padding: 4px;
}

.partners-carousel__item img {
  display: block;
  width: 100%;
  max-width: 225px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.partners-carousel__btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: url("/assets/img/arrows-32-32-1.png") no-repeat;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
}

.partners-carousel__btn:hover {
  opacity: 1;
}

.partners-carousel__btn--prev {
  left: 0;
  background-position: left top;
}

.partners-carousel__btn--next {
  right: 0;
  background-position: right top;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #333;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.15);
  filter: brightness(0.55);
}

.cta-banner__inner {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
  width: 100%;
}

.cta-banner__inner h1 {
  color: #fff;
  margin: 0 0 0;
  padding-bottom: 25px;
  font-size: 28px;
  text-transform: uppercase;
  font-weight: 700;
}

.cta-banner__hr {
  width: 15%;
  max-width: 120px;
  height: 2px;
  background: #fff;
  border: 0;
  margin: 0 auto 28px;
}

/* ========== FEATURE COLUMNS ========== */
.home-features {
  padding: 48px 0 40px;
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card__media {
  margin-bottom: 16px;
}

.feature-card__media img {
  display: block;
  width: 100%;
}

/* ========== INNER PAGES ========== */
.page-body {
  padding: 20px 0 40px;
}

.page-body--section {
  padding: 0;
}

.about-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 85px;
  align-items: start;
  padding: 50px 0;
}

.about-page__lead {
  margin: 0 0 30px;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--color-green);
  font-size: 20px;
  line-height: 1.4;
  color: #333;
  font-weight: 700;
}

.about-page__body {
  padding: 10px 0 47px 20px;
  border-left: 3px solid var(--color-green);
  border-bottom: 3px solid var(--color-green);
}

.about-page__body p:last-child {
  margin-bottom: 0;
}

.about-page__media {
  border-top: 5px solid var(--color-green);
  border-left: 5px solid var(--color-green);
  padding: 10px 0 0 20px;
}

.about-page__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 50px 0;
}

.clients-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid var(--color-green);
  padding: 15px 15px 5px;
  text-align: center;
}

.clients-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.location-address {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-map {
  width: 100%;
  height: 450px;
  border: 0;
}

.contact-form-wrap {
  max-width: 640px;
}

.contact-form-wrap .section-title {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 400;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button[type="submit"],
.contact-form input[type="submit"] {
  background: var(--color-green);
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
  background: var(--color-green-hover);
}

.form-msg {
  margin-top: 14px;
  font-size: 14px;
}

.form-msg.is-ok {
  color: var(--color-green);
}

.form-msg.is-err {
  color: #b00020;
}

/* ========== PROJECTS LIST ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: #fff;
}

.project-card__thumb {
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
}

.project-card__thumb img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.project-card__title {
  margin: 0 0 10px;
  font-size: 18px;
}

.project-card__title a {
  color: #333;
}

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

.project-card__summary {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  min-height: 2.8em;
}

.project-card__more {
  color: var(--color-green);
  font-weight: 600;
  font-size: 13px;
}

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

.project-card__more i {
  margin-left: 4px;
}

/* ========== PROJECT DETAIL / GALLERY ========== */
.project-content {
  max-width: 100%;
}

.project-content > p {
  margin-bottom: 24px;
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery a {
  display: block;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.gallery a:hover img {
  opacity: 0.85;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 10px 16px;
  line-height: 1;
}

.lightbox__close {
  top: 16px;
  right: 20px;
}

.lightbox__prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-footer);
  color: #fff;
  padding: 30px 0 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.footer-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-line img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.footer-line h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-line a {
  color: #fff;
  font-size: 11px;
}

.footer-line a:hover {
  color: #cfcfcf;
}

.footer-logo {
  margin-top: 18px;
  text-align: center;
}

.footer-logo img {
  max-width: 320px;
  width: 100%;
}

.footer-bottom {
  background: var(--color-footer-bar);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

/* ========== SCROLL TOP ========== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  border: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 90;
  text-decoration: none;
}

.scroll-top.is-visible {
  display: flex;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .home-about__grid {
    grid-template-columns: 1fr;
  }

  .home-features__grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partners-carousel__item {
    flex: 0 0 calc(50% - 6px);
  }
}

@media (max-width: 780px) {
  .site-nav__list {
    display: none;
  }

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

  .site-nav {
    justify-content: flex-end;
  }

  .hero-slide,
  .hero-slider {
    min-height: 320px;
  }

  .hero-slide__content {
    padding: 100px 16px;
  }

  .hero-slide__content h2 {
    font-size: 22px;
  }

  .home-features__grid,
  .projects-grid,
  .about-page__grid,
  .clients-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-page__grid {
    row-gap: 30px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .partners-carousel__item {
    flex: 0 0 100%;
  }

  .cta-banner__inner h1 {
    font-size: 20px;
  }

  .page-header__title {
    max-width: 100%;
    font-size: 24px;
  }

  .page-header__crumb {
    position: static;
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 8px;
    line-height: 1.4;
    white-space: normal;
  }

  .top-bar__contacts {
    font-size: 12px;
  }

  .btn-wire-white {
    padding: 1em 1.6em;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }
}
