@import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@200;400&display=swap");

/* =========================
   Variáveis de Tema
========================= */

/* Tema Dark */
:root[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --header-bg: #1e1e1e;
  --link-color: #4da6ff;
  --btn-bg: #0b4f93;
  --btn-text: #fff;
  --primary-border-color: #28292e;
  --secondary-bg-color: #28292e;
  --secondary-border-color: #56575a;
  --icon-color: #c7c8c9;
  --figcaption-color: #ffffff;
}

/* Tema Light */
:root[data-theme="light"] {
  --bg-color: #d9dbf3;
  --text-color: #222222;
  --header-bg: #f5f5f5;
  --link-color: #0b4f93;
  --btn-bg: #0b4f93;
  --btn-text: #fff;
  --primary-border-color: #c7c8c9;
  --secondary-bg-color: #c7c8c9;
  --secondary-border-color: #9a9a9c;
  --icon-color: #56575a;
  --figcaption-color: #000000;
}

/* =========================
   Reset e Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: baseline;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-bg-color) transparent;
}

ul,
ol {
  padding: 20px 40px 20px 40px;
}

ul li,
ol li {
  list-style: disc;
}

.hide {
  display: none;
}

.about .image {
  width: 300px;
}

.case__item {
  position: relative;
  margin-top: -5px;
}

.case__item img {
  filter: opacity(0.8);
  width: 100%;
}

.case__item:hover img {
  filter: opacity(0.3);
}

.case__item:hover figcaption,
.section__item .image,
.blog-post,
.post-meta {
  display: block;
}

.case__item figcaption {
  position: absolute;
  top: 45%;
  left: 0;
  z-index: 2;
  color: var(--figcaption-color);
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 20px;
  display: none;
}

.cases .btn {
  z-index: 2;
  margin-top: 40px;
  margin-bottom: 40px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Inter", Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

b {
  font-weight: 400;
}

p,
span,
li {
  font-size: 1rem;
}

p {
  text-align: justify;
}

/* =========================
   Tipografia
========================= */
h1,
h2,
h3,
h4 {
  font-family: "League Spartan", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2 {
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text-color);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.8rem;
  text-align: left;
  font-weight: 400;
}
h4 {
  font-size: 1.15rem;
  text-align: left;
  font-weight: 400;
  color: var(--btn-bg);
}

.big-numbers,
.depoiments-wrapper {
  display: flex;
  align-content: space-between;
  gap: 10px;
  flex-basis: 100%;
  align-items: center;
  align-self: center;
  flex-direction: column;
}

.big-number {
  border: 2px solid var(--link-color);
  padding: 30px;
  border-radius: 30px;
}

.big-number .big-title {
  color: var(--link-color);
}

.big-title {
  font-size: 50px;
  font-weight: 800;
  text-transform: uppercase;
}

/* =========================
   Header & Navegação
========================= */
.header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  z-index: 3;
}

.header__brand .brand__logo {
  width: 3.25rem;
  height: 3.25rem;
}

.header__nav {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu {
  display: flex;
  align-items: center;
  background: var(--bg-color);
}

.menu__item {
  width: 100%;
}

.menu__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu__icon {
  font-size: 1.5rem;
  color: var(--text-color);
}
.menu__text {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-color);
}

.menu__link.active .menu__icon,
.menu__link.active .menu__text,
.menu__link:hover .menu__icon,
.menu__link:hover .menu__text {
  color: var(--btn-bg);
}

.menu--principal,
.menu--social {
  gap: 1rem;
}

.menu--mobile {
  width: 100vw;
  position: fixed;
  bottom: 0;
  justify-content: space-between;
  border-top: 0.0625rem solid var(--primary-border-color); /* 1px */
}

.menu--mobile .menu__link {
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.header__toggle {
  margin-left: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__toggle span {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.3125rem; /* 5px */
}

#toggleTheme {
  color: var(--link-color);
  cursor: pointer;
  transition: ease-in-out 0.4s;
  border: none;
  background-color: transparent;
}

/* =========================
   Botões
========================= */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 3.125rem;
  border: none;
  padding: 0.875rem 1.5rem;
  transition: ease-in-out 0.3s;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

.btn span,
.btn i {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.btn--primary {
  border: 0.0625rem solid var(--btn-bg);
}
.btn--primary span {
  color: var(--btn-text);
}

/* =========================
   Main, Sections & Layout
========================= */
.projects,
.about,
.contact {
  padding: 2.5rem 1rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.main__content1 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.main__content2 iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.technologies {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  padding: 6.25rem 1rem 2rem;
  background: var(--secondary-bg-color);
  margin-top: -5.5rem;
}

.technologies h2 {
  font-size: 2rem;
  text-transform: none;
  text-align: start;
}

.technologies__list {
  display: flex;
  flex-flow: row wrap;
  gap: 0.5rem;
}

.technologies__item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4.8rem;
  height: 4.8rem;
  aspect-ratio: 1/1;
  border: 0.0625rem solid var(--secondary-border-color);
  border-radius: 50rem;
}

.technologies__logo {
  height: 2.4rem;
}

.main-section {
  border-bottom: 0.0625rem solid var(--primary-border-color);
}

.main-section,
.medium-cta {
  padding: 2rem;
}

/* =========================
   Projects Cards
========================= */
.section {
  display: flex;
  flex-direction: column;
}
.section__container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.section__card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card__cover {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1rem;
}

.card__description {
  color: var(--text-color);
}

.card__list,
.about__list {
  margin-left: 1.25rem;
}
.card__item,
.about__item {
  list-style: disc;
}

.card__buttons,
.description__buttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.card__buttons .btn {
  padding: 0.65rem 1.25rem;
}
.card__buttons .btn span {
  font-size: 1rem;
}

.card__body .technologies__list {
  gap: 0.75rem;
}
.card__body .technologies__item {
  width: 4rem;
  height: 4rem;
}
.card__body .technologies__logo {
  height: 2rem;
}

.btn {
  width: auto;
  margin: auto;
}

/* =========================
   About
========================= */
.about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__content1,
.about__content2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
}

.about__photo {
  width: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 50rem;
  border: 0.0625rem solid var(--primary-border-color);
}

.about__description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.about__icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.about__icons i {
  font-size: 1.25rem;
}

/* Colunas responsivas */
.about__content2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.about__content2 > .col1,
.about__content2 > .col2 {
  flex: 1 1 100%;
}
.about__content2 .col1 .row1,
.about__content2 .col1 .row2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* =========================
   Accordion
========================= */
.accordion__header {
  width: 100%;
  display: flex;
  padding: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  border: 0.0625rem solid var(--primary-border-color);
  background: transparent;
  cursor: pointer;
  transition: ease-in-out 0.3s;
}

.accordion__header span {
  color: var(--text-color);
}
.accordion__header.start {
  border-radius: 0.25rem 0.25rem 0 0;
}
.accordion__header.end,
.accordion__item.active .accordion__body.end {
  border-radius: 0 0 0.25rem 0.25rem;
}
.accordion__item.active .accordion__header.end {
  border-radius: 0;
}

.accordion__body {
  display: none;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.accordion__item.active .accordion__header {
  background: var(--secondary-bg-color);
}
.accordion__item.active .accordion__body {
  display: flex;
}
.accordion__item.active .bi-caret-down-fill {
  transform: rotate(180deg);
}

/* =========================
   Contact
========================= */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.blog-post h2 {
  text-align: left;
}

h2,
.contact p,
.contact__buttons a,
.center,
.btn,
footer p,
.whatsapp-float,
.section h2,
.section h3,
.section p,
.section__wrapper .section_item,
.medium-cta {
  text-align: center;
}
.contact .btn {
  width: auto;
}
.contact .email {
  text-transform: lowercase;
}

/* Botões lado a lado */
.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact__buttons .btn {
  flex: 1 1 auto;
  max-width: 12.5rem; /* 200px */
}

/* =========================
   Footer
========================= */
footer {
  margin-bottom: 5rem;
}

footer p {
  font-size: 0.875rem;
  padding: 1rem;
}

/* =========================
   WhatsApp Flutuante
========================= */
.whatsapp-float {
  position: fixed;
  width: 3.75rem; /* 60px */
  height: 3.75rem;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 1.875rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0.125rem 0.125rem 0.3125rem rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  transition: 0.3s;
}

/* =========================
   Colunas, Serviços e Imagens
========================= */
.col1,
.col2 {
  padding: 0.625rem;
}

.section h2,
.section h3,
.section p {
  margin: 0.625rem 0;
}

/* =========================
   Responsividade
========================= */
@media (min-width: 768px) {
  .header {
    position: fixed;
    border-bottom: 0.0625rem solid var(--primary-border-color);
    padding: 1rem 6rem;
    background: var(--bg-color);
  }
  .header__nav {
    flex-wrap: nowrap;
  }
  .nav--mobile {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .faq__item {
    padding: 20px;
  }

  .projects,
  .about {
    padding: 2rem 4rem 2rem 4rem;
  }
  .contact {
    padding: 4rem;
  }
  .contact p {
    width: 80%;
  }
  .main__content1 {
    align-items: flex-start;
  }
  .technologies {
    padding: 6.25rem 6rem 2rem;
    margin-top: -6rem;
  }
  footer {
    margin: 0;
  }

  .header__toggle {
    margin: auto;
  }
}

@media (min-width: 992px) {
  .section__card {
    flex-direction: row;
  }
  .section__card.card--reverse {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .card__cover {
    width: 55%;
  }

  .about {
    gap: 5rem;
  }
  .about__content1,
  .about__content2 {
    display: grid;
    grid-template-columns: 34% 60%;
    gap: 4rem;
  }
  .about__description h2 {
    text-align: left;
  }
  .description__buttons {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  h2 {
    font-size: 3rem;
  }

  .main__content1 .btn {
    width: auto;
  }

  .technologies {
    flex-direction: row;
    justify-content: space-between;
    padding: 10rem 6rem 4rem;
  }

  .technologies h2 {
    font-size: 3rem;
    width: 55%;
  }
  .technologies__list {
    gap: 1rem;
  }
  .technologies__item {
    width: 6rem;
    height: 6rem;
  }
  .technologies__logo {
    height: 3rem;
  }

  p,
  span,
  li {
    font-size: 1.15rem;
  }

  .card__buttons .btn,
  .description__buttons .btn {
    width: auto;
  }
}

@media (min-width: 1400px) {
  h1 {
    font-size: 6.25rem;
  }
  h2 {
    font-size: 4.5rem;
  }
  h3 {
    font-size: 3.25rem;
  }

  .header {
    padding: 1rem 15rem;
  }

  .technologies,
  .projects,
  .about {
    padding: 10rem 15rem 4rem;
  }
}

/* =========================
   SERVIÇOS
========================= */
.section__wrapper,
.case__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.section__wrapper {
  gap: 2rem;
}

.section__wrapper .section_item,
.case__item {
  flex: 1 1 100%; /* padrão mobile: ocupa 100% */
}

.section__wrapper .section_item {
  background-color: var(--color-bg-secondary);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--color-shadow);
  transition: transform 0.3s;
}

.interative .section__item:hover {
  transform: translateY(-5px);
}

.image,
.image-full {
  object-fit: cover;
}

.image-full {
  width: 100%;
  height: 100%;
}

.post-content,
.post-meta,
.post-title {
  max-width: 900px;
}

.section__item .image,
.post-content,
.post-meta,
.post-title {
  margin: 0 auto;
}

.section__item .image {
  border-radius: 1rem;
}

.experts .image {
  width: 150px;
}

.section__item .image,
figcaption,
.faq__item {
  margin-bottom: 1rem;
}

.post-header {
  padding-top: 50px;
}

.blog-post figure,
.medium-cta {
  margin-bottom: 30px;
}

.blog-post h2 {
  text-transform: math-auto;
  margin-top: 20px;
}

.blog-post h2,
.main-section .btn {
  margin-bottom: 10px;
}

.medium-cta,
.section__wrapper,
.blog-post figure,
.post-meta,
.blog-post figcaption {
  margin-top: 10px;
}

.blog-post figure,
.post-meta,
.blog-post figcaption {
  margin-bottom: 10px;
}

/* FAQ Section */
.faq {
  margin-top: 40px;
  padding: 20px;
  background: var(--color-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.medium-title {
  font-size: 30px;
}

/* Estilo dos itens do FAQ */
.faq__item {
  margin-bottom: 12px;
  border: 1px solid var(--link-color);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq__item[open] {
  box-shadow: 0 2px 6px rgba(0, 115, 230, 0.2);
}

/* Cabeçalho clicável */
.faq__item summary {
  cursor: pointer;
  padding: 14px;
  position: relative;
  list-style: none;
}

.faq__item summary,
.depoiment-item .name {
  font-weight: 600;
}

.faq__item summary,
.faq__item p {
  color: var(--link-color);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Ícone animado [+] e [-] */
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  font-size: 18px;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq__item[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

/* Corpo da resposta */
.faq__item p {
  padding: 14px;
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid var(--link-color);
}

.section__item h3 {
  margin: 1rem 0 0.5rem;
  color: var(--color-link);
}

.section__item h3,
.blog-post h2 {
  font-size: 1.25rem;
}

.section__item p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.depoiment-item {
  border-radius: 10px;
  padding: 10px;
}

.depoiment-item p {
  text-align: left;
  font-size: 14px;
}
.bi-star-fill {
  color: #f6bb06;
  font-size: 1.3rem;
  margin-right: 3px;
}

/* =========================
   RESPONSIVIDADE SERVIÇOS
========================= */

@media (max-width: 767px) {
  .post-content,
  .post-meta,
  .post-title {
    padding: 20px;
  }
}

@media (min-width: 768px) {
  .section__wrapper .section__item,
  .case__item {
    flex: 1 1 48%; /* notebooks: 2 por linha */
  }

  .big-numbers,
  .depoiments-wrapper {
    flex-direction: row;
  }

  .blog-post h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 1200px) {
  .section__wrapper .section__item,
  .case__item {
    flex: 1 1 30%; /* telas grandes: 3 por linha */
  }
}
