/* ===========================
   Variáveis CSS
=========================== */
:root {
  --header-h: 100px;
  --container-max: 1200px;
  --pad-x: 24px;
  --brand: #e7904c;
  --bg-main: #fce7ef;
  --highlight: #5a3fc6;
  --secondary: #2f4c48;
  --text: #333333;

  /* Adicionando novas variáveis para sombras e transições */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ===========================
   Reset e Base
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  color: var(--text);
  background: var(--bg-main);
  line-height: 1.7;
  padding-top: var(--header-h);
  overflow-x: hidden;
  min-height: 100%;
  /* Melhorando a renderização de fontes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Header e Navegação
=========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(252, 231, 239, 0.95);
  z-index: 1000;
  /* Melhorando sombra e efeito glassmorphism */
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#navbar {
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo img {
  height: calc(var(--header-h) - 16px);
  width: auto;
  max-height: 100%;
  object-fit: contain;
  /* Transição mais suave */
  transition: transform var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#logo img:hover {
  transform: scale(1.08);
}

#menu {
  margin-left: auto;
  display: flex;
  align-items: center;
}

#nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

#nav-list a {
  position: relative;
  text-decoration: none;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  /* Melhorando transições */
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

#nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  /* Animação de underline mais suave */
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

#nav-list a:hover::after {
  width: 80%;
}

#nav-list a:hover {
  color: var(--brand);
  background: rgba(231, 144, 76, 0.08);
}

.nav-item.active a {
  color: var(--brand);
  background: rgba(231, 144, 76, 0.12);
}

#menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  /* Melhorando área de toque para mobile */
  padding: 8px;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

#menu-toggle:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.05);
}

/* ===========================
   Seção Hero/Slogan
=========================== */
#slogan {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 60px var(--pad-x);
  text-align: center;
  /* Adicionando gradiente sutil no fundo */
  background: linear-gradient(135deg, var(--bg-main) 0%, rgba(252, 231, 239, 0.6) 100%);
}

#text-slogan {
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#text-slogan h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
  /* Adicionando gradiente no texto */
  background: linear-gradient(135deg, var(--highlight) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
}

#text-slogan h2 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 28px;
  font-weight: 600;
}

#text-slogan p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  line-height: 1.8;
  color: rgba(51, 51, 51, 0.85);
}

#text-slogan a {
  display: inline-block;
  padding: 16px 36px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  /* Melhorando transições e sombras */
  transition: all var(--transition-base);
  box-shadow: 0 6px 20px rgba(231, 144, 76, 0.35);
  position: relative;
  overflow: hidden;
}

#text-slogan a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

#text-slogan a:hover::before {
  left: 100%;
}

#text-slogan a:hover {
  background: #e67a00;
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(231, 144, 76, 0.45);
}

#logo-slogan {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

#logo-slogan img {
  width: min(500px, 45vw);
  max-width: 100%;
  border-radius: var(--radius-lg);
  /* Melhorando sombra da imagem */
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-slow);
}

#logo-slogan img:hover {
  transform: scale(1.03) rotate(1deg);
}

/* ===========================
   Seção Sobre Nós
=========================== */
#sobre-nos {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#sobre-nos h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 48px;
  color: var(--highlight);
  text-align: center;
  font-weight: 700;
  /* Adicionando animação de entrada */
  animation: fadeInUp 0.6s ease-out;
}

#sobre-nos-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

#img-grupo img {
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-lg);
  /* Melhorando sombra e transição */
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  transition: all var(--transition-slow);
}

#img-grupo img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

#text-sobre-nos {
  flex: 1;
  max-width: 600px;
}

#text-sobre-nos p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.8;
  text-align: justify;
  color: rgba(51, 51, 51, 0.9);
}

/* ===========================
   Seção Parcerias
=========================== */
#parcerias {
  padding: 80px var(--pad-x);
  /* Adicionando fundo alternativo */
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(252, 231, 239, 0.5) 100%);
}

#parcerias h1 {
  text-align: center;
  color: var(--highlight);
  margin-bottom: 48px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

#gerbera-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

#logo-gerbera img {
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-lg);
}

#text-sobre-gerbera {
  flex: 1;
  max-width: 600px;
}

#text-sobre-gerbera p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.8;
  text-align: justify;
  color: rgba(51, 51, 51, 0.9);
}

#insta-gerbera {
  text-align: center;
  font-size: 20px;
  margin-bottom: 24px;
}

#insta-gerbera p {
  color: var(--highlight);
  font-weight: bold;
  font-size: 32px;
  margin-bottom: 12px;
}

#insta-gerbera a {
  text-decoration: none;
  color: var(--text);
  /* Melhorando transição */
  transition: all var(--transition-base);
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

#insta-gerbera a:hover {
  color: var(--brand);
  transform: translateY(-3px);
  background: rgba(231, 144, 76, 0.1);
}

/* ===========================
   Footer
=========================== */
footer {
  background: var(--bg-main);
  color: var(--text);
  padding: 60px var(--pad-x) 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
  color: var(--highlight);
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--secondary);
  text-decoration: none;
  /* Melhorando transição */
  transition: all var(--transition-base);
  display: inline-block;
  padding: 4px 0;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  /* Melhorando transição */
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.footer-social:hover {
  transform: scale(1.15) rotate(5deg);
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* ===========================
   Botão Flutuante
=========================== */
.botao-flutuante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--brand);
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  /* Melhorando sombra e animação */
  box-shadow: 0 8px 24px rgba(231, 144, 76, 0.4);
  z-index: 9999;
  transition: all var(--transition-base);
  animation: pulsar 2s infinite;
}

.botao-flutuante:hover {
  box-shadow: 0 12px 32px rgba(231, 144, 76, 0.5);
  transform: translateY(-4px);
}

.botao-flutuante span {
  display: inline-block;
  transition: transform var(--transition-base);
}

.botao-flutuante:hover span {
  transform: scale(1.4);
}

@keyframes pulsar {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===========================
   Responsividade
=========================== */
@media (max-width: 1024px) {
  #nav-list {
    gap: 20px;
  }

  #slogan {
    gap: 32px;
    padding: 40px var(--pad-x);
  }
}

@media (max-width: 840px) {
  #nav-list {
    display: none;
  }

  #nav-list.show {
    display: flex;
    position: absolute;
    top: var(--header-h);
    right: 0;
    width: min(85vw, 300px);
    flex-direction: column;
    gap: 8px;
    background: rgba(252, 231, 239, 0.98);
    padding: 20px;
    /* Melhorando sombra do menu mobile */
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    backdrop-filter: blur(12px);
    z-index: 1100;
    animation: slideInRight 0.3s ease-out;
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  #menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1200;
  }

  #slogan {
    flex-direction: column;
    padding: 32px 20px;
  }

  #slogan img {
    display: none;
  }

  #img-grupo img {
    width: 85vw;
    max-height: 45vh;
    object-fit: contain;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  #sobre-nos,
  #parcerias {
    padding: 60px var(--pad-x);
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 80px;
    --pad-x: 16px;
  }

  #logo img {
    height: calc(var(--header-h) - 12px);
  }

  .botao-flutuante {
    padding: 14px 20px;
    font-size: 14px;
    bottom: 16px;
    right: 16px;
  }

  #text-slogan h1 {
    font-size: 2rem;
  }

  #text-slogan h2 {
    font-size: 1.3rem;
  }

  #text-slogan p {
    font-size: 1rem;
  }
}
