@import url("assets/fonts/fonts.css");

:root {
  --page-bg: #1c1c1c;
  --text-light: #ffffff;
  --text-dark: #000000;
  --muted-line: rgba(0, 0, 0, 0.18);
  --panel-dark: #262626;
  --button-green: #54a021;
  --hero-home: url("assets/images/Home.jpg");
  --home-footer: url("assets/images/banner/contact_footer.jpg");
  --quem-somos-hero: url("assets/images/banner/quem-somos.jpg");
  --tecnologia-hero: url("assets/images/banner/tecnologia.jpg");
  --especialidades-hero: url("assets/images/banner/atestado.jpg");
  --light-texture: url("assets/images/BACKGROUND.png");
  --logo-url: url("assets/images/logo_branco.png");
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-light);
  background-color: var(--page-bg);
  background-image: var(--hero-home);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 15px 0 5px;
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 auto;
}

.brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 180px;
  height: 66px;
  background-image: var(--logo-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.brand-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  width: 40px;
  height: 32px;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button span {
  margin: 13px 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  text-decoration: none;
  color: #ffffff;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #e8e8e8;
}

.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.hero-home .section-inner {
  display: flex;
  justify-content: flex-end;
  margin-top: 12rem;
  padding: 1rem 3rem;
}

.hero-copy {
  width: min(100%, 1200px);
  padding: 0;
}

.hero-copy h1,
.hero-copy p {
  text-align: right;
}

.hero-copy h1,
.hero-banner h1,
.section-title {
  margin: 0 0 0.5em;
  font-family: "Petrona", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.5;
  font-weight: 400;
}

.hero-copy p,
.page-copy,
.specialty-list,
.npl-list,
.contact-card,
.client-list {
  font-size: 1rem;
  line-height: 1.2;
}

.panel-title {
  margin: 0 0 0.5em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.5rem);
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
}

.hero-copy .tagline {
  margin: 0;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
}

.light-panel {
  color: var(--text-dark);
  background: #ffffff;
}

.light-panel.texture {
  background-color: #ffffff;
  background-image: var(--light-texture);
  background-position: top left;
  background-repeat: repeat;
  background-size: 100% auto;
  color: #ffffff;
}

.light-panel.texture p,
.light-panel.texture li,
.light-panel.texture .page-copy,
.light-panel.texture .panel-title,
.light-panel.texture .section-title {
  color: #ffffff;
}

.section-block {
  padding: 5rem 1rem;
}

.section-block.tall {
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.narrow {
  max-width: 750px;
  margin: 0 auto;
}

.centered {
  text-align: center;
}

.justified {
  text-align: justify;
}

.button-link {
  display: inline-block;
  padding: 1.3rem 4rem;
  border: 2px solid var(--button-green);
  background: var(--button-green);
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.button-link:hover {
  opacity: 0.85;
}

.divider {
  height: 1px;
  margin: 3rem 0;
  background: #cccccc;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.875rem;
}

.client-item {
  text-align: center;
}

.client-item h3 {
  margin: 0 0 0.65rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 400;
}

.client-item::after {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: #cccccc;
  content: "";
}

.hero-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  color: #ffffff;
  text-align: center;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-banner::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  content: "";
}

.hero-banner > * {
  position: relative;
}

.hero-banner.quem-somos {
  background-image: var(--quem-somos-hero);
}

.hero-banner.tecnologia {
  background-image: var(--tecnologia-hero);
  background-position: bottom center;
}

.hero-banner.especialidades {
  background-image: var(--especialidades-hero);
}

.page-copy p {
  margin: 0 0 1.5rem;
}

.page-copy.light-text,
.page-copy.light-text p {
  color: #ffffff;
}

.dark-footer {
  background: var(--panel-dark);
  color: #ffffff;
}

.dark-footer .section-block {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.copyright {
  margin: 0;
  text-align: center;
}

.specialties-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.specialty-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.specialty-card {
  padding: 1rem;
}

.specialty-card h3,
.npl-panel h3 {
  margin: 0 0 0.75rem;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
  color: #ffffff;
}

.specialty-card.compact h3 {
  margin-bottom: 0;
}

.specialty-list,
.npl-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #ffffff;
}

.specialty-list li,
.npl-list li {
  margin-bottom: 0.45rem;
}

.specialty-card hr,
.npl-panel hr {
  margin: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid #cccccc;
}

.specialty-card ul ul {
  margin-top: 0.45rem;
}

.npl-panel {
  margin-top: 2rem;
  padding: 1rem;
}

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.contact-page .section-inner {
  display: flex;
  justify-content: flex-end;
  margin-top: 12rem;
  padding: 1rem 3rem;
}

.contact-card {
  width: min(100%, 480px);
  padding: 0;
  text-align: right;
}

.contact-card h1 {
  margin: 0 0 0.5em;
  font-family: "Petrona", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.5;
  font-weight: 400;
}

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

.contact-card a {
  text-decoration: underline;
}

.error-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
}

.error-panel {
  padding: 1rem 0;
}

.error-code {
  margin: 0 0 0.5rem;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
}

.home-contact-band {
  background-color: #262626;
  background-image: linear-gradient(rgba(38, 38, 38, 0.72), rgba(38, 38, 38, 0.72)), var(--home-footer);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-contact-band .section-inner {
  max-width: 900px;
}

.home-contact-band {
  min-height: 45vh;
  display: flex;
  align-items: center;
}

.home-contact-band p,
.home-contact-band h2 {
  text-align: center;
}

.home-contact-band h2 {
  margin: 0 0 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
}

.home-contact-band p {
  margin: 0.45rem 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-position: 22% top;
  }

  body.page-contact {
    background-position: 10% top;
  }

  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .menu-toggle:checked + .menu-button::before {
    transform: translateY(15px) rotate(45deg);
  }

  .menu-toggle:checked + .menu-button span {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-button::after {
    transform: translateY(-15px) rotate(-45deg);
  }

  .menu-toggle:checked ~ .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .site-nav a {
    display: block;
    text-align: center;
  }

  .hero-home,
  .contact-page {
    min-height: auto;
  }

  .hero-home .section-inner,
  .contact-page .section-inner {
    margin-top: 6rem;
    padding: 1rem;
  }

  .hero-copy,
  .contact-card {
    padding: 0;
  }

  .clients-grid,
  .specialties-layout {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 4rem 1rem;
  }

  .button-link {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  body.page-contact .contact-page .section-inner {
    margin-top: 5rem;
    justify-content: center;
    padding: 1rem 1.25rem 2rem;
  }

  body.page-contact .contact-card {
    width: 100%;
    max-width: 340px;
    padding: 1.25rem;
    text-align: center;
    background: rgba(12, 20, 20, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
  }

  body.page-contact .contact-card h1 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
  }

  body.page-contact .contact-card p {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
  }

  body.page-contact .contact-card a {
    overflow-wrap: anywhere;
  }
}
