/* public/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* -------------------------------------------------------
   Importante: você já possui as variáveis de cor do Ionic
   (ex: var(--base-text-color)), então pode mesclar se quiser.
   Abaixo, ilustramos como aproveitar algumas delas.
---------------------------------------------------------*/
/* Light mode */
:root {
    --white-background: #fff;
    --white-item: #fff;
    --icon-color: #e60102;
    --ion-background-color: #fff;
    --ion-toolbar-background: #fff;
    --ion-tab-bar-background: #fff;
    --ion-item-background: #fff;
    --ion-toolbar-color: rgba(0, 0, 0, 0.87);
    --base-text-color: rgba(0, 0, 0, 0.87);
    --ion-text-color: rgba(0, 0, 0, 0.87);
    --ion-card-color: #787878;
    --ion-color-dark: rgba(0, 0, 0, 0.87);
    --ion-color-step-850: rgba(0, 0, 0, 0.87);
    --spready-color: #0099a2;
    --ion-color-secondary: #0cd1e8;
    --green-cover: #31ADB4;
    --white-shadow: #e0e0e0;
    --white-border: rgba(151, 151, 151, 0.2);
    --gray-button: #c1c1c1;
    --gray-bg: #f5f5f5;
    --ion-overlay-background-color: #f5f5f5;
    --gray-text: #787878;
    --ion-tab-bar-color: #787878;
    --swiper-navigation-color: #c1c1c1;
    --swiper-theme-color: #c1c1c1;
    --light-button: #f5f5f5;
  }
  
  /* Dark mode */
  @media (prefers-color-scheme: dark) {
    :root {
      --white-background: #232323;
      --white-item: #121212;
      --ion-background-color: #121212;
      --ion-toolbar-background: #232323;
      --ion-tab-bar-background: #232323;
      --ion-item-background: #232323;
      --ion-toolbar-color: #efefef;
      --base-text-color: #efefef;
      --ion-text-color: #efefef;
      --ion-card-color: #dfdfdf;
      --ion-color-dark: #efefef;
      --ion-color-step-850: #efefef;
      --spready-color: #40bbc2;
      --ion-color-secondary: #607d8b;
      --green-cover: #2e3535;
      --white-shadow: rgb(0, 0, 0, 100%);
      --white-border: #232323;
      --gray-button: #dfdfdf;
      --gray-bg: #121212;
      --ion-overlay-background-color: #121212;
      --gray-text: #dfdfdf;
      --ion-tab-bar-color: #dfdfdf;
      --swiper-navigation-color: #dfdfdf;
      --swiper-theme-color: #dfdfdf;
      --light-button: #232323;
    }
  }


  /* Reset básico e definição de font-family */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif; /* Exemplo usando Poppins */
    color: var(--base-text-color);
    background-color: var(--white-background);
  }

  html {
    scroll-behavior: smooth;
  }
  
  ion-content {
    background-color: var(--white-background) !important;
    --background: var(--white-background) !important;
  }
  
  .content {
    width: 100%;
    margin: auto;
    background-color: var(--white-background) !important;
  }
  /* Cabeçalho com a logo centralizada ou à esquerda */
  .page-header {
    display: flex;
    align-items: center;
    padding: 0.5em;
    box-shadow: none;
    --background: var(--white-background);
    background-color: var(--white-background);
  }

  .header-ios ion-toolbar:last-of-type {
    --border-width: 0;
  }
  
  .header-logo {
    height: 3em;
    /* Ajuste conforme preferir */
    margin: 0 auto; /* Se quiser centralizar a logo */
    /* Se preferir deixar a logo à esquerda, troque por:
       margin: 0;
    */
  }
  
  /* Seção que ocupa a altura inteira da tela */
  .full-screen {
    width: 100%;
    min-height: 80vh; /* "altura total" da tela */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em 1em;
  }
  
  /* Conteúdo interno das seções (imagem + texto) */
  .section-content {
    display: flex;
    flex-direction: column; /* empilha imagem e texto no mobile */
    max-width: 960px; /* para limitar muito esticado em telas grandes */
    width: 100%;
    align-items: center;
    padding-bottom: 6em;
  }
  
  .section-even {
    background-color: var(--white-background);
  }

  .section-odd {
    background-color: var(--gray-bg);
  }

  .section-image-1 {
    margin-top: 1em;
  }
  /* Imagem */
  .section-image {
    width: 90%;
    max-width: 400px; /* limite de largura para não esticar demais em desktop */
    height: auto;
    border-radius: 10px; /* apenas para ficar mais bonitinho, opcional */
    margin-top: 2em;
  }
  
  /* Texto (título e parágrafo) */
  .section-text {
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding: 1em;
  }
  
  /* Título mais chamativo */
  .section-text h1 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--base-text-color);
  }

  /* Título mais chamativo */
  .section-text h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--spready-color);
  }

  .section-text h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--gray-text);
  }

  .highlight {
      font-weight: 600;
      color: var(--spready-color);
  }

  /* Parágrafo explicativo */
  .section-text p {
    font-size: 1.25em;
    line-height: 1.4em;
    color: var(--gray-text);
  }
  
  .download-buttons {
    display: flex;
    justify-content: center; /* Centraliza os botões */
    flex-wrap: wrap; /* Ajusta para caber em telas menores */
  }

  .download-buttons a img {
      height: 3em; /* Ajusta a altura das imagens */
      max-width: 100%; /* Evita que exceda o tamanho do container */
      max-width: 9em;
      gap: 1em;
      object-fit: contain; /* Garante que a imagem não distorça */
      border-radius: 10px;
  }

  .spready-button {
    --background: var(--icon-color);
    color: #fff;
    padding: 0.5em 0;
    font-weight: 600;
    text-decoration: none;
    scroll-behavior: smooth;
  }

  /* Estilos para a Quarta Seção */
  .section-4 .section-text {
    text-align: center;
    padding: 2em 1em;
    max-width: 960px;
  }

  .section-4 h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--base-text-color);
  }

  .section-4 p {
    font-size: 1.2em;
    color: var(--gray-text);
    margin-bottom: 2em;
  }

  .features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }

  .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    text-align: center;
    max-width: 12em;
  }

  .feature-icon {
    width: 12em;
    height: auto;
    margin: auto;
    margin-bottom: 1em;
  }

  .square-icon {
    margin-top: 3em;
    margin-bottom: 2em;
  }

  .feature p {
    font-size: 1em;
    color: var(--base-text-color);
    font-weight: 500;
    margin: auto;
  }

  /* Imagem padrão para light mode */
  .light-mode {
    display: block;
  }

  /* Esconde a imagem do dark mode por padrão */
  .dark-mode {
    display: none;
  }

  /* Se o usuário estiver no dark mode */
  @media (prefers-color-scheme: dark) {
    .light-mode {
      display: none;
    }
    .dark-mode {
      display: block;
    }
  }

  .footer-md {
    box-shadow: none;
  }
  
  /* Exemplo simples de estilização do footer */
  ion-footer {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
    box-shadow: none;
    background-color: var(--gray-bg);
    padding-bottom: 0.5em;
  }

  .footer-content {
    margin: auto;
  }

  .footer-content p, .footer-content div {
    display: inline-block;
    margin-bottom: 0;
  }

  .footer-content a {
    color: var(--gray-text); /* cor primária do Ionic ou o que preferir */
    text-decoration: none;
    margin: 0 0.5em;
  }

  #my-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* fundo escuro */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999; /* fica acima do conteúdo */
  }

  #my-modal ion-header {
    box-shadow: none;
  }
  
  #my-modal-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  
  /* ===== Menu (lado direito) ===== */
  #my-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;      /* defina a largura desejada */
    height: 100%;
    background-color: var(--white-background);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transform: translateX(100%); /* inicia fora da tela à direita */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* acima do overlay (ou no mesmo nível) */
    overflow-y: auto;
  }
  
  #my-modal ion-content {
    height: 80vh;
  }

  /* Ao adicionar a classe .open, traz o menu para dentro da tela */
  #my-modal.open {
    transform: translateX(0);
    display: block;
  }
  
  /* Opcional: Ajustar o botão X lá no topo direito do header,
     mas como já temos <ion-toolbar>, você pode customizar a aparência. */
  #close-modal-btn {
    font-weight: bold;
    color: var(--gray-text);
  }

  /* Esconde a classe de navegação desktop no mobile */
  .desktop-nav-links {
    display: none;
  }

  .desktop-nav-links a {
    color: var(--gray-text);
    text-decoration: none;
  }

  /* Exibe o botão de menu mobile por padrão */
  .mobile-menu-button {
    display: block;
  }
  /* -------------------------------------------------------
     Responsividade: telas maiores do que 768px, por exemplo
  ---------------------------------------------------------*/
  @media (min-width: 768px) {
    .page-header {
      padding: 1em 2em;
    }

    .desktop-nav-links {
      display: flex; /* ou inline-block, como preferir */
      gap: 1rem; /* espaçamento entre links */
    }
    .mobile-menu-button {
      display: none;
    }
    /* A seção 1 terá imagem à esquerda, texto à direita */
    .section-content {
      gap: 0;
    }

    .footer-content p {
      margin-right: 10em;
    }

    .section-image-1 {
      margin-top: 2em;
      max-width: 450px;
    }

    .section-2 .section-content {
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
    }
  
    /* A seção 2 terá imagem à direita, texto à esquerda (row-reverse) */
    .section-1 .section-content {
      flex-direction: row-reverse;
      justify-content: space-around;
      align-items: center;
    }

    .download-buttons {
      justify-content: left;
      gap: 1em;
    }

    .margin-bottom {
      margin-bottom: 2em;
    }
  
    .section-text {
      padding-right: 0;
      padding: 2em;
      text-align: left;
    }

    .features {
      flex-direction: row;
      justify-content: space-around;
    }

    .feature {
        align-items: flex-start;
    }

  }
  