/*
Theme Name:  SamVita
Theme URI:   https://samvita.com.br
Author:      SamVita Comércio e Soluções Inteligentes
Description: Tema oficial SamVita — fornece Header e Footer. O conteúdo das páginas é gerenciado pelo Elementor.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: samvita
*/

/* ═══════════════════════════════════════
   RESET BÁSICO
═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:      #1C2E4A;
  --navy-dk:   #14223A;
  --orange:    #E07840;
  --orange-lt: #F09058;
  --sand:      #F5EFE6;
  --white:     #FFFFFF;
  --muted:     #7A6E63;
}

html  { scroll-behavior: smooth; }
body  { font-family: 'Nunito', sans-serif; background: var(--sand); overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 70px;
  background: rgba(20, 34, 58, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .3s;
}
.site-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img,
.nav-logo .custom-logo {
  height: 42px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}
.nav-logo-text {
  font-family: 'Fraunces', serif;
  color: var(--orange);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { list-style: none; }

.nav-links a,
.nav-links .menu-item > a {
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .2s;
  display: inline-block;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links .menu-item > a:hover {
  color: var(--white);
}

/* CTA pill — adicione classe "nav-cta" ao item "Contato" no menu */
.nav-links .nav-cta > a,
.nav-links li.nav-cta > a,
.nav-links .menu-item.nav-cta > a {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: .45rem 1.3rem;
  border-radius: 100px;
  font-size: .82rem !important;
  transition: background .2s !important;
}
.nav-links .nav-cta > a:hover,
.nav-links li.nav-cta > a:hover,
.nav-links .menu-item.nav-cta > a:hover {
  background: var(--orange-lt) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .8);
  border-radius: 2px;
  transition: .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--navy-dk);
  border-top: 1px solid rgba(224, 120, 64, .15);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo img,
.footer-logo .custom-logo {
  height: 36px !important;
  width: auto !important;
  opacity: .8;
  display: block;
}
.footer-logo-text {
  font-family: 'Fraunces', serif;
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-copy {
  font-size: .75rem;
  color: rgba(255, 255, 255, .35);
  font-family: 'Nunito', sans-serif;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: .78rem;
  color: rgba(255, 255, 255, .35);
  font-family: 'Nunito', sans-serif;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

/* ═══════════════════════════════════════
   COMPATIBILIDADE ELEMENTOR
═══════════════════════════════════════ */

/* Empurra o conteúdo para baixo da navbar fixa */
.elementor-template-full-width .site-content,
body.page-template-default .site-content,
.page-content,
#content {
  padding-top: 70px;
}

/* Evita conflito com margin-top do Elementor */
.elementor-section:first-child { margin-top: 0 !important; }

/* WordPress admin bar */
@media screen and (min-width: 600px) {
  .site-nav { top: 0px; }
  .admin-bar .site-nav { top: 0px; }
}
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}

/* ═══════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: rgba(20, 34, 58, .98);
    padding: 1.8rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .nav-links.open { display: flex; }
  .hamburger      { display: flex; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
}
