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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

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

button,
input,
textarea {
  font-family: inherit;
}

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

p {
  margin: 0 0 1em;
}

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

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

/* Header */
.site-header {
  background: #000;
  color: #fff;
}

.header-top {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 31.45% 68.55%;
  align-items: start;
  height: 173px;
  min-height: 173px;
  padding: 0;
}

.header-top .logo img {
  display: block;
  width: 357px;
  max-width: 100%;
  height: auto;
}

.header-contacts {
  display: grid;
  grid-template-columns: 10% 35% 55%;
  align-items: center;
  margin-top: 20px;
}

.header-contacts .contact-block:first-child {
  grid-column: 2;
}

.header-contacts .contact-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-contacts a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

.header-contacts a:hover {
  color: var(--purple);
}

.header-contacts svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #fff;
}

.header-mobile {
  display: none;
  text-align: center;
  padding: 16px 16px 8px;
}

.header-mobile .logo img {
  width: min(320px, 92%);
  height: auto;
}

.header-mobile .mobile-contacts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.header-mobile .mobile-contacts a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-mobile .mobile-contacts svg {
  width: 22px;
  height: 22px;
}

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

.site-nav .nav-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 74px;
  min-height: 74px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-desktop a {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 22px 0 0;
  line-height: 74px;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-panel {
  display: none;
  background: #fff;
  color: #333;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 14px;
}

.mobile-panel a:hover {
  background: #f5f5f5;
}

/* Hero slider */
.hero-slider,
.cta-banner {
  position: relative;
  height: 400px;
  min-height: 400px;
  overflow: hidden;
  background: #000;
}

.hero-slider .slides,
.cta-banner .slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  width: min(100%, 1200px);
}

.slide-content h1,
.cta-banner h1 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-family: var(--font);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

/* Home welcome */
.home-welcome {
  width: min(100%, 1200px);
  margin: 50px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.home-welcome img {
  display: block;
  width: 100%;
  height: auto;
}

.home-welcome .copy {
  padding: 25px 0 5px;
}

.home-welcome .kicker {
  margin: 0 0 -10px;
  color: var(--cyan);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
}

.home-welcome h1 {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.15;
}

.home-welcome p {
  font-size: 14px;
  color: var(--text);
}

/* Buttons */
.btn-saiba,
p.button a,
.btn-saiba a {
  display: inline-block;
  background: var(--purple);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
}

.btn-saiba:hover,
p.button a:hover {
  filter: brightness(1.08);
}

.home-welcome .btn-saiba,
.home-news .btn-wrap,
.cta-banner .btn-saiba {
  margin-top: 8px;
}

.home-news .btn-wrap,
.cta-banner .btn-saiba {
  text-align: center;
}

/* Service mosaic */
.service-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1280;
  object-fit: cover;
}

.service-card .label {
  position: relative;
  z-index: 1;
  margin-top: -50px;
  padding: 20px 20px 10px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service-card:nth-child(1) .label,
.service-card:nth-child(4) .label {
  background: var(--cyan);
}

.service-card:nth-child(2) .label,
.service-card:nth-child(3) .label {
  background: var(--purple);
}

.service-mosaic .service-card:nth-child(3),
.service-mosaic .service-card:nth-child(4) {
  margin-top: 0;
}

/* News home */
.home-news {
  width: min(92%, 840px);
  margin: 50px auto 40px;
  text-align: center;
}

.home-news > h2 {
  color: var(--purple);
  font-size: 50px;
  font-weight: 600;
  margin: 0 0 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  text-align: center;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.35;
}

.news-card h3 a:hover {
  color: var(--purple);
}

.news-card time {
  display: block;
  color: #999;
  font-size: 13px;
  margin-bottom: 12px;
}

.news-card img {
  display: block;
  margin: 0 auto 12px;
  width: 372px;
  max-width: 100%;
  height: auto;
}

.news-card .excerpt {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 8px;
  text-align: left;
}

.home-news .btn-wrap {
  margin: 8px 0 20px;
}

/* CTA gallery banner */
.cta-banner .slide-content h1 {
  margin-bottom: 18px;
}

/* Page header */
.page-header {
  background: #f5f5f5;
  padding: 28px 0;
}

.page-header h1 {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  color: #333;
}

.page-body {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 40px 15px 60px;
}

/* Quem somos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 36px;
}

.about-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.about-grid p {
  font-size: 14px;
  color: var(--text);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-item {
  background: var(--purple);
  color: #fff;
}

.acc-btn {
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.acc-btn .plus {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.acc-panel {
  display: none;
  background: #fff;
  color: var(--text);
  padding: 16px 20px;
  font-size: 14px;
}

.acc-item.is-open .acc-panel {
  display: block;
}

.acc-item.is-open .acc-btn .plus {
  transform: rotate(45deg);
}

/* Gallery listing */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2em;
  margin-left: -2em;
}

.galeria-card {
  margin: 0 0 2em 2em;
}

.galeria-card h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #333;
}

.galeria-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 250;
  object-fit: cover;
}

.galeria-card .confira {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  border: 1px solid #222;
  background: #fff;
  color: #222;
  font-size: 14px;
}

.galeria-card .confira:hover {
  background: #f5f5f5;
}

/* News archive */
.news-archive {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.news-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.news-row img {
  display: block;
  width: 100%;
  height: auto;
}

.news-row .cat {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-row h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.news-row h2 a:hover {
  color: var(--purple);
}

.news-row .excerpt {
  color: var(--text);
  font-size: 14px;
}

.news-row .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #999;
  font-size: 12px;
}

.news-row .meta a {
  color: #999;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.cf7 label {
  display: block;
  font-size: 14px;
  margin-bottom: 14px;
}

.cf7 input[type="text"],
.cf7 input[type="email"],
.cf7 textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
}

.cf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.cf7 button,
.cf7 input[type="submit"] {
  background: var(--purple);
  color: #fff;
  border: 0;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
}

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

.contact-grid iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

/* Post / obra */
.obra-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.obra-gallery a {
  display: block;
}

.obra-gallery img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 8px solid var(--cyan);
}

.entry-content {
  max-width: 100%;
  font-size: 14px;
}

.entry-content img {
  display: block;
  margin: 16px auto;
}

.entry-content iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Footer */
.site-footer {
  background: #000;
  color: #fff;
}

.footer-widgets {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 32% 28% 12% 28%;
  gap: 0 24px;
  padding: 36px 0 28px;
  align-items: start;
}

.footer-widgets p,
.footer-widgets li,
.footer-widgets a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
}

.footer-widgets svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}

.footer-loc,
.footer-phones li,
.footer-phones p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-loc p {
  margin: 0;
  white-space: nowrap;
}

.footer-phones ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #1877f2;
  color: #fff;
  border-radius: 4px;
}

.fb-btn svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.footer-logo img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-left: auto;
}

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

.footer-bottom a {
  color: #fff;
}

/* Scroll top */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  background: #4a4a4a;
  color: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

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

.scroll-top svg {
  width: 18px;
  height: 18px;
}

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lb-overlay.is-open {
  display: flex;
}

.lb-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  background: #fff;
  padding: 10px;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}

.lb-close {
  top: 12px;
  right: 18px;
}

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

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

@media (max-width: 1024px) {
  .header-top .logo img {
    width: 280px;
  }

  .header-contacts a {
    font-size: 15px;
  }

  .footer-widgets {
    padding-inline: 20px;
  }
}

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

  .header-mobile {
    display: block;
  }

  .nav-desktop {
    display: none;
  }

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

  .slide-content h1,
  .cta-banner h1,
  .home-welcome h1,
  .home-news > h2 {
    font-size: 25px !important;
  }

  .home-welcome,
  .about-grid,
  .service-mosaic,
  .news-grid,
  .galeria-grid,
  .news-row,
  .contact-grid,
  .footer-widgets {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .galeria-card {
    margin-left: 0;
  }

  .home-welcome {
    width: min(92%, 1200px);
    gap: 16px;
  }

  .hero-slider,
  .cta-banner {
    height: 280px;
    min-height: 280px;
  }

  .service-card .label {
    margin-top: -40px;
  }

  .footer-logo img {
    margin: 16px auto 0;
  }

  .footer-widgets {
    gap: 28px;
    padding: 28px 16px;
  }

  .contact-grid iframe {
    height: 360px;
  }

  .page-header h1 {
    font-size: 22px;
  }
}
