/*
  CSS da página quem-somos — agregado das 5 seções do Figma (rules/html-css-js.md seção 2).
  Breakpoint de troca desktop/mobile: max-width: 767px (convenção já usada em outras páginas
  do tema, ex: page-cascavel.css). Base = desktop 1920 (frame real do Figma); mobile 430 real.
*/

/* ==========================================================================
   Seção 1 — Hero (node 491:582 desktop / 495:1440 mobile)
   ========================================================================== */

.qs-hero {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 128px 224px 80px;
  background-color: var(--color-navy);
  background-image: linear-gradient(
      to right,
      rgba(19, 33, 57, 0.9) 0%,
      rgba(19, 33, 57, 0.75) 50%,
      rgba(19, 33, 57, 0.5) 100%
    ), url('../assets/images/bgs/hero-auditorio-roger-federer.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.qs-hero-content {
  display: flex;
  flex-direction: column;
  gap: 23.25px;
  max-width: 672px;
}

.qs-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 75px;
  color: #ffffff;
}

.qs-hero-text {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  line-height: 29.25px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
  .qs-hero {
    padding: 113px 97px 112px 50px;
    background-image: none;
    background-color: #122037;
  }

  .qs-hero-content {
    width: 283px;
    max-width: 283px;
    gap: 15px;
  }

  .qs-hero-title {
    font-size: 24px;
    line-height: 30px;
  }

  .qs-hero-text {
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
  }
}

/* ==========================================================================
   Seção 2 — Nossa História (node 491:421 desktop / 495:1442+494:1153 mobile)
   ========================================================================== */

.qs-historia {
  padding: 112px 224px;
}

.qs-historia-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

.qs-historia-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qs-historia-title {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 75px;
  color: #11161f;
}

.qs-historia-text {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 29.25px;
  color: rgba(79, 86, 97, 0.8);
}

.qs-historia-stats {
  display: flex;
  flex-direction: row;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-historia-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f9f4ee;
  border: 1px solid #e1ddd7;
  border-radius: 16px;
  padding: 16px;
}

.qs-historia-stat-number {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ec5a00;
}

.qs-historia-stat-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #4f5661;
}

.qs-historia-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 374px;
  gap: 12px;
  height: 760px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-historia-photo {
  border-radius: 16px;
  overflow: hidden;
}

.qs-historia-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-historia-photo--2,
.qs-historia-photo--4 {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .qs-historia {
    padding: 64px 24px;
  }

  .qs-historia-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .qs-historia-content {
    gap: 16px;
    text-align: center;
  }

  .qs-historia-title {
    font-size: 24px;
    line-height: 25px;
  }

  .qs-historia-text {
    font-size: 14px;
    line-height: 20px;
    color: #4f5661;
  }

  .qs-historia-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .qs-historia-stat {
    width: 227px;
    flex: none;
  }

  .qs-historia-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 326px;
    gap: 12px;
    height: auto;
  }

  .qs-historia-photo--2,
  .qs-historia-photo--4 {
    margin-top: 11px;
  }
}

/* ==========================================================================
   Seção 3 — O que é o Grupo UNIGUAÇU HUB (node 491:591 desktop / 494:1438 mobile)
   ========================================================================== */

.qs-grupo,
.qs-grupo * {
  box-sizing: border-box;
}

.qs-grupo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 112px 192px;
  background-color: #132139;
  color: #fff;
}

.qs-grupo-title {
  width: 100%;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 75px;
  text-align: center;
  color: #fff;
}

.qs-grupo-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 710px;
  grid-template-areas:
    "text cards"
    "cta cards";
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
}

.qs-grupo-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qs-grupo-paragraph {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 29.25px;
  color: #fff;
}

.qs-grupo-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 12px 24px;
  background-color: #ec5a00;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(236, 90, 0, 0.35);
}

.qs-grupo-cta-icon {
  width: 16px;
  height: 16px;
}

/* Duplicata só-mobile (pedido do usuário) — escondida no desktop, .qs-grupo-cta original
   (dentro de .qs-grupo-text) segue visível lá via grid-area:cta. */
.qs-grupo-cta--mobile {
  display: none;
}

.qs-grupo-cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, 226px);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-grupo-card {
  width: 226px;
  height: 82px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qs-grupo-card-title {
  margin: 0 0 4px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.qs-grupo-card-subtitle {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
  .qs-grupo {
    gap: 30px;
    padding: 50px;
  }

  .qs-grupo-title {
    font-size: 24px;
    line-height: 25px;
  }

  .qs-grupo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 303px;
    max-width: 100%;
    gap: 30px;
  }

  .qs-grupo-text {
    width: 100%;
  }

  .qs-grupo-paragraph {
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  .qs-grupo-cards {
    grid-template-columns: 226.67px;
    justify-content: center;
    width: 226.67px;
    gap: 20px;
  }

  .qs-grupo-card {
    width: 226.67px;
    height: auto;
  }

  /* Ordem mobile confirmada via Figma (494:1438): difere da ordem desktop */
  .qs-grupo-card--1 {
    order: 1;
  }
  .qs-grupo-card--4 {
    order: 2;
  }
  .qs-grupo-card--2 {
    order: 3;
  }
  .qs-grupo-card--5 {
    order: 4;
  }
  .qs-grupo-card--3 {
    order: 5;
  }
  .qs-grupo-card--6 {
    order: 6;
  }

  /* CTA no mobile fica DEPOIS de .qs-grupo-cards (pedido do usuário) — esconde o original
     (dentro de .qs-grupo-text, vem antes dos cards no DOM) e mostra a duplicata que já está
     posicionada depois do <ul> no markup. */
  .qs-grupo-text .qs-grupo-cta {
    display: none;
  }

  .qs-grupo-cta--mobile {
    display: inline-flex;
  }
}

/* ==========================================================================
   Seção 4 — Nossas unidades (node 491:450 desktop / 495:1498 mobile)
   ========================================================================== */

.qs-unidades {
  background: #ffffff;
  padding: 112px 192px;
}

.qs-unidades-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.qs-unidades-title {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 75px;
  color: #11161f;
  text-align: center;
}

.qs-unidades-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-unidades-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 474px;
  background: #f9f4ee;
  border: 1px solid #e1ddd7;
  border-radius: 16px;
  padding: 24px 24px 26px;
}

.qs-unidades-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(236, 90, 0, 0.1);
  margin-bottom: 16px;
}

.qs-unidades-icon {
  width: 22px;
  height: 22px;
}

.qs-unidades-name {
  margin: 0 0 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #11161f;
}

.qs-unidades-address {
  margin: 0 0 4px;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #4f5661;
}

.qs-unidades-highlight {
  margin: 0 0 16px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #ec5a00;
}

.qs-unidades-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #11161f;
  text-decoration: none;
}

.qs-unidades-link-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .qs-unidades {
    padding: 50px;
  }

  .qs-unidades-container {
    gap: 32px;
  }

  .qs-unidades-title {
    font-size: 24px;
    line-height: 25px;
    color: #132139;
  }

  .qs-unidades-grid {
    flex-direction: column;
    gap: 17px;
  }

  .qs-unidades-card {
    width: 330px;
    border-radius: 11px;
    padding: 17px 17px 18px;
  }

  .qs-unidades-icon-wrap {
    width: 33px;
    height: 33px;
    border-radius: 11px;
    margin-bottom: 11px;
  }

  .qs-unidades-icon {
    width: 15px;
    height: 15px;
  }

  .qs-unidades-name {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 18px;
  }

  .qs-unidades-address {
    margin: 0 0 3px;
    font-size: 10px;
    line-height: 14px;
  }

  .qs-unidades-highlight {
    margin: 0 0 11px;
    font-size: 10px;
    line-height: 14px;
  }

  .qs-unidades-link {
    gap: 3px;
    font-size: 10px;
    line-height: 14px;
  }

  .qs-unidades-link-icon {
    width: 10px;
    height: 10px;
  }
}

/* ==========================================================================
   Seção 5 — CTA final (node 491:638 desktop / 495:1499 mobile)
   ========================================================================== */

.qs-cta-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f9f4ee;
  padding: 64px 224px;
  gap: 16px;
}

.qs-cta-final__title {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 75px;
  color: #11161f;
}

.qs-cta-final__text {
  margin: 0;
  max-width: 576px;
  font-family: "Archivo", "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #4f5661;
}

.qs-cta-final__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  background-color: #ec5a00;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(236, 90, 0, 0.35);
}

.qs-cta-final__button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .qs-cta-final {
    padding: 50px;
    gap: 30px;
  }

  .qs-cta-final__title {
    font-size: 24px;
    line-height: 25px;
    color: #132139;
  }

  .qs-cta-final__text {
    font-size: 14px;
    line-height: 20px;
  }
}
