/* ============================================================
   Quatro X — identidade visual
   Cores extraídas da logo:
     Azul-marinho  #2F5068  (quadrado do "X")
     Azul-claro    #72ADDE  (letra "X")
     Cinza         #727176  (palavra "quatro" / "soluções")
   Tipografia: serifa pesada (Playfair Display) ecoando o
   lettering da logo + DM Sans no corpo.
   Carregar DEPOIS de style.css.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,700&display=swap");

:root {
  --qx-navy: #2F5068;
  --qx-navy-rgb: 47, 80, 104;
  --qx-blue: #72ADDE;
  --qx-blue-rgb: 114, 173, 222;
  --qx-gray: #727176;
  --qx-ink: #0A1620;
  --qx-ink-2: #10212E;
  --qx-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --theme-color1: var(--qx-blue);
  --theme-color1-rgb: 114, 173, 222;
  --theme-color1-text-color: #0A1620;
  --theme-color2: var(--qx-ink-2);
  --theme-color2-rgb: 16, 33, 46;
  --theme-color-lighter: #3d5568;
  --theme-color-dark: var(--qx-navy);
  --theme-color-gray: var(--qx-gray);
  --theme-light-background: var(--qx-navy);
  --gradient-1: linear-gradient(90deg, #2F5068 0%, #72ADDE 100%);
  --text-color: #A3B1BD;
  --body-bg: var(--qx-ink);
  --link-color: var(--qx-blue);
  --link-hover-color: var(--qx-blue);
  --sec-title-font-family: var(--qx-serif);
  --sec-title-font-weight: 800;
}

body { background-color: var(--qx-ink); }

::selection { background: var(--qx-blue); color: var(--qx-ink); }

/* ---------- Títulos em serifa (eco do lettering "quatro") ---------- */
.sec-title .h2,
.services-section .service-block .title,
.work-block .content .title,
.team-block .content-box .name,
.blog-block .content-box .title,
.footer-style-one .subscribe-form .title,
.page-title .title,
.qx-serif {
  font-family: var(--qx-serif) !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sec-title .h2 { line-height: 1.08; }

/* subtítulos com o traço azul da marca */
.sec-title .sub-title,
.about-section .sub-title2 {
  color: var(--qx-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Logo ---------- */
.main-header .logo img { max-height: 64px; width: auto; }
.sticky-header .logo img,
.mobile-menu .nav-logo img { max-height: 46px; width: auto; }
.footer-style-one .logo img { max-width: 440px; width: 100%; height: auto; }

/* ---------- Hero ---------- */
.banner-section .banner-left-box .title .qx-dot { color: var(--qx-blue); }
.banner-section .banner-left-box .text { color: var(--qx-blue); }
.qx-hero-headline {
  font-family: var(--qx-serif);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}
.qx-hero-headline span { display: block; color: var(--qx-blue); font-style: italic; }
@media (max-width: 767.98px) {
  .qx-hero-headline { font-size: 30px; }
}

/* ---------- About ---------- */
.qx-manifesto {
  font-family: var(--qx-serif);
  font-size: 26px;
  line-height: 1.35;
  color: #fff;
  margin: 26px 0 36px;
}
.qx-manifesto strong { color: var(--qx-blue); font-weight: 800; }
.about-section .year {
  font-family: var(--qx-serif);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(var(--qx-blue-rgb), .55);
}

/* ---------- Áreas (palavras no lugar dos logos de clientes) ---------- */
.qx-brand-word {
  font-family: var(--qx-serif);
  font-weight: 700;
  font-size: 26px;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
  transition: color .3s ease;
}
.brand-box:hover .qx-brand-word { color: var(--qx-blue); }
.brand-section .brand-text { max-width: 560px; }

/* ---------- Marquee "Fazemos acontecer" ---------- */
.team-section .sec-title2 .h2:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 2px var(--qx-blue);
}

/* ---------- Detalhe azul-marinho em seções escuras ---------- */
.footer-style-one .footer-bottom { border-top-color: rgba(var(--qx-blue-rgb), .18); }

/* ---------- Conteúdo extra das páginas internas ---------- */
.qx-list { list-style: none; padding: 0; margin: 20px 0 0; }
.qx-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.qx-list li:before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 2px; background: var(--qx-blue);
}
.qx-note {
  border-left: 3px solid var(--qx-blue);
  background: rgba(var(--qx-navy-rgb), .35);
  padding: 18px 22px;
  font-size: 17px; line-height: 1.6;
  margin-top: 30px;
}
.qx-service-anchor { scroll-margin-top: 140px; }

/* ---------- Preloader com a marca ---------- */
.preloader { background: var(--qx-ink); }
.preloader::before {
  content: "Quatro X";
  font-family: var(--qx-serif);
  font-weight: 900;
  text-transform: none;
  letter-spacing: 2px;
  color: #fff;
}

/* ---------- Páginas internas: blocos de detalhe ---------- */
.qx-detail-section { padding: 120px 0 60px; }
.qx-detail-section .sec-title { margin-bottom: 90px; }
.qx-detail-row { margin-bottom: 110px; }
.qx-detail-img { overflow: hidden; border-radius: 4px; }
.qx-detail-img img { width: 100%; height: 100%; aspect-ratio: 11 / 8; object-fit: cover; display: block; }
.qx-detail-content { padding: 30px 0 30px 50px; }
.flex-lg-row-reverse .qx-detail-content { padding: 30px 50px 30px 0; }
.qx-number { font-size: 16px; color: var(--qx-blue); letter-spacing: .1em; margin-bottom: 14px; }
.qx-detail-title {
  font-family: var(--qx-serif);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}
.qx-detail-content p { margin-bottom: 16px; }
@media (max-width: 991.98px) {
  .qx-detail-content, .flex-lg-row-reverse .qx-detail-content { padding: 30px 0 0; }
  .qx-detail-title { font-size: 38px; }
  .qx-detail-row { margin-bottom: 70px; }
}

/* ---------- 404 ---------- */
.qx-404 {
  font-family: var(--qx-serif);
  font-weight: 900;
  font-size: 180px;
  line-height: 1;
  margin-top: 30px;
  color: transparent;
  -webkit-text-stroke: 2px var(--qx-blue);
}

/* ---------- Topo das páginas internas: vídeo tingido com o azul da marca ---------- */
.page-title .bg-video:before { background-color: var(--qx-blue); }
.page-title .bg-video:after { background-color: rgba(47, 80, 104, 0.6); mix-blend-mode: normal; }
.page-title .bg-video video { filter: grayscale(1) contrast(1.1); }

/* ---------- Sidebar da página de experiências ---------- */
.sidebar-service-list li a { color: rgba(255, 255, 255, .82); }
.sidebar-service-list li a:hover,
.sidebar-service-list li.current a { color: var(--qx-ink); }
.blockquote-one { border-left: 3px solid var(--qx-blue); color: #fff; font-style: italic; }
.project-details__content p strong { color: var(--qx-blue); }

/* ---------- Hero: "QUATRO X." sempre em uma linha ----------
   O tamanho da fonte acompanha a largura disponível (unidade cqi do
   container), descontando a foto e o texto "Branding / Publicidade..." */
.banner-section .banner-left-box { container-type: inline-size; }
.banner-section .banner-left-box .title.qx-hero-title {
  white-space: nowrap;
  font-size: min(350px, calc((100cqi - 690px) / 3.1));
  line-height: .82;
}
@media (max-width: 1399.98px) {
  .banner-section .banner-left-box .image { flex: 0 0 300px; }
  .banner-section .banner-left-box .title.qx-hero-title {
    font-size: min(300px, calc((100cqi - 540px) / 3.1));
  }
}
@media (max-width: 991.98px) {
  .banner-section .banner-left-box { flex-wrap: wrap; }
  .banner-section .banner-left-box .title.qx-hero-title {
    font-size: min(260px, calc(100cqi / 3.1));
  }
  .banner-section .banner-left-box .text {
    position: static;
    flex: 0 0 100%;
    max-width: none;
    margin-top: 16px;
  }
  .banner-section .banner-left-box .text br { display: none; }
  .banner-section .banner-left-box .text { font-size: 20px; line-height: 30px; }
}
@media (min-width: 1400px) {
  /* abre espaço para o título em linha única não ficar sob a foto da direita */
  .banner-section .banner-right-box { margin-top: -200px; }
}
.banner-section .banner-left-box .text .qx-sep { display: none; color: var(--qx-gray); }
@media (max-width: 991.98px) {
  .banner-section .banner-left-box .text .qx-sep { display: inline; }
}
@media (max-width: 1399.98px) {
  .main-header .logo img { max-height: 46px; }
}
