*,
*::before,
*::after {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 1000;
  background: #fff;
  padding: 8px 12px;
}

.site-header {
  position: relative;
  background: #fff;
}

.branding {
  position: relative;
  max-width: 100%;
  min-height: 160px;
}

.slogan {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  object-position: left center;
}

.logo {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  z-index: 20;
  line-height: 0;
}

.logo img {
  display: block;
  width: 152px;
  height: 140px;
}

.header-contacts {
  position: absolute;
  right: 0;
  top: 18px;
  width: 34%;
  max-width: 480px;
  padding-right: 24px;
  z-index: 15;
  font-size: 14px;
  line-height: 1.35;
  color: #555;
}

.header-contacts p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.header-contacts img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.header-contacts a {
  color: #555;
}

.nav-toggle {
  display: none;
  width: 100%;
  height: 44px;
  border: 0;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.access {
  background: var(--navy);
  width: 100%;
  position: relative;
  z-index: 10;
  margin-bottom: -13px;
}

.access .menu {
  max-width: var(--container);
  margin: 0 auto;
}

.access ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.access > .menu > ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.access > .menu > ul > li {
  background: var(--navy);
  position: relative;
}

.access a {
  display: block;
  color: #fff;
  font-family: var(--font-nav);
  font-size: 14px;
  text-decoration: none;
}

.access a > span {
  display: block;
  padding: 10px 30px;
  text-transform: uppercase;
}

.access > .menu > ul > li:hover,
.access > .menu > ul > li.has-children:hover {
  background: var(--navy-dark);
}

.access > .menu > ul > li.current {
  background: var(--navy-current);
}

.access > .menu > ul > li.solar,
.access > .menu > ul > li.solar:hover {
  background: var(--solar) !important;
}

.access a:hover {
  color: #fff;
}

.has-children > a > span::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: 4px solid transparent;
  border-top-color: #fff;
  vertical-align: 2px;
}

.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  background: var(--navy-dark);
  z-index: 30;
  flex-direction: column;
}

.has-children:hover > .sub-menu,
.has-children.open > .sub-menu {
  display: flex;
}

.sub-menu li {
  width: 100%;
  background: var(--navy-dark);
}

.sub-menu li:hover,
.sub-menu li.current {
  background: var(--navy-sub);
}

.sub-menu a > span {
  text-transform: none;
  padding: 12px 18px;
  text-align: left;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 800;
  background: #111;
}

.hero-slider .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-pager {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.hero-pager button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.hero-pager button.is-active {
  color: #fff;
}

.section-about {
  padding: 120px 0;
}

.wrap {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-photo {
  background: #fff;
  padding: 10px;
  border: 1px solid #c7c7c7;
  display: block;
  width: 100%;
}

h1.kicker,
.kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.section-about h2,
.section-about h3 {
  margin: 0 0 17px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
}

.section-about p {
  margin: 0 0 5px;
  text-align: left;
}

.section-about p + p {
  margin-bottom: 35px;
}

.saiba-mais {
  display: inline-block;
  background: var(--navy);
  padding: 20px 40px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  transition: background 0.4s;
}

.saiba-mais:hover {
  background: var(--hover-red);
  color: #fff;
}

.saiba-mais.outline {
  border: 2px solid #fff;
}

.section-projetos {
  background: url("/assets/img/bg-projetos.webp") center / cover no-repeat;
  background-attachment: fixed;
  padding: 150px 0;
  color: #fff;
}

.projetos-box {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(39, 51, 130, 0.7);
  padding: 50px;
  text-align: center;
  color: #fff;
}

.projetos-box h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.projetos-box h2 + h2 {
  margin-bottom: 20px;
}

.projetos-box p {
  margin: 0 0 60px;
}

.section-servicos {
  padding: 50px 0 80px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.servico {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.servico img {
  width: 100px;
  height: 95px;
  margin: 0 auto;
  display: block;
}

.servico h3 {
  text-align: center;
  padding: 20px 0 25px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.servico p {
  text-align: justify;
  margin: 0 0 24px;
}

.servico p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.page-main {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 50px 0 50px;
}

.page-main h1 {
  margin: 0 0 55px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
}

.page-main h1.tight {
  margin-bottom: 20px;
}

.page-main h4 {
  margin: 30px 0 15px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
}

.page-main p {
  margin: 0 0 14px;
}

.bullet-list p {
  margin: 0 0 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 0;
  margin-top: 20px;
}

.gallery-item {
  display: block;
  padding: 0 4px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid #cfcfcf;
  display: block;
}

.obras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 30px;
  margin: 10px 0 30px;
}

.obras-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 30px;
  margin: 10px 0 30px;
}

.obra-card {
  border: 1px solid #e5e5e5;
  padding: 22px 24px;
}

.obra-card p {
  margin: 0 0 8px;
}

.obra-card p:last-child {
  margin-bottom: 0;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contato-grid h5 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  color: #555;
  font-size: 16px;
  font-weight: 400;
}

.contato-grid h5 a {
  color: #555;
}

.contato-grid iframe {
  width: 100%;
  height: 230px;
  border: 0;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 20px;
}

.footer-widgets {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 0.9fr;
  gap: 30px;
  padding: 40px 20px 30px;
  align-items: start;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: #555;
  text-align: left;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
  font-weight: 400;
  line-height: normal;
}

.footer-widgets ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widgets li {
  margin: 0 0 8px;
}

.footer-widgets a {
  color: var(--footer-text);
}

.footer-widgets a:hover {
  color: #555;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
}

.footer-contact img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.footer-logo {
  text-align: center;
}

.footer-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 0;
}

.footer-bar em {
  display: table;
  margin: 0 auto;
  padding: 7px 0;
  font-size: 13px;
  font-style: italic;
}

.footer-bar a {
  color: #fff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 18px;
  background: #222e7d;
}

.socials a {
  display: inline-flex;
  width: 26px;
  height: 26px;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  color: #555;
  cursor: pointer;
  z-index: 40;
  font-size: 18px;
  display: none;
}

.to-top.is-visible {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 12px;
  right: 22px;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

@media (max-width: 1024px) {
  .header-contacts {
    width: 40%;
    font-size: 12px;
  }

  .access a > span {
    padding: 10px 16px;
  }
}

@media (max-width: 800px) {
  .branding {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 8px;
  }

  .slogan {
    order: 2;
    width: 100%;
    height: 44px;
    max-height: none;
    object-fit: cover;
    object-position: left center;
    margin: 12px 0 8px;
  }

  .logo {
    position: static;
    transform: none;
    order: 1;
  }

  .header-contacts {
    position: static;
    width: 100%;
    max-width: none;
    padding: 0;
    order: 3;
  }

  .nav-toggle {
    display: block;
  }

  .access {
    display: none;
    margin-bottom: 0;
  }

  .access.is-open {
    display: block;
  }

  .access > .menu > ul {
    flex-direction: column;
  }

  .access a > span {
    text-align: left;
    padding: 15px 10px;
  }

  .sub-menu {
    position: static;
    min-width: 0;
    display: none;
  }

  .has-children.open > .sub-menu {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .contato-grid,
  .obras-grid,
  .obras-cols,
  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .section-about,
  .section-projetos {
    background-attachment: scroll;
    padding: 50px 0;
  }

  .projetos-box {
    padding: 28px 18px;
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
  }

  .page-main h1 {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
