/*
Theme Name: Malves Contabilidade
Theme URI: https://malvescontabilidade.com.br
Author: Malves Contabilidade
Author URI: https://malvescontabilidade.com.br
Description: Tema personalizado para Malves Contabilidade - Especialistas em Saúde
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: malves
*/

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
  --verde-malves: 159, 78%, 14%;
  --verde-profundo: 159, 80%, 9%;
  --dourado-base: 40, 52%, 56%;
  --texto-claro: 120, 14%, 97%;
  
  --background: hsl(159, 78%, 14%);
  --foreground: hsl(120, 14%, 97%);
  --card: hsl(159, 80%, 9%);
  --card-foreground: hsl(120, 14%, 97%);
  --primary: hsl(40, 52%, 56%);
  --primary-foreground: hsl(159, 78%, 14%);
  --muted: hsl(159, 30%, 20%);
  --muted-foreground: hsl(120, 5%, 70%);
  --border: hsla(40, 52%, 56%, 0.2);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.bg-card { background-color: var(--card); }

/* ==========================================================================
   Button Styles
   ========================================================================== */
.btn-gold {
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  background-size: 200% 200%;
  color: hsl(159, 78%, 14%) !important;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 1.25rem 3rem;
  border: none;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(187, 153, 93, 0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(187, 153, 93, 0.6);
  background-position: 100% 50%;
}

.btn-outline {
  background: transparent;
  border: 1px solid hsla(40, 52%, 56%, 0.5);
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: hsla(159, 78%, 14%, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  z-index: 50;
  border-bottom: 1px solid hsla(40, 52%, 56%, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: hsl(159, 80%, 9%);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
  
  .logo-text span:first-child {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
  }
  
  .logo-text span:last-child {
    display: block;
    font-size: 0.625rem;
    color: var(--primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: block;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-primary {
  background: hsla(120, 14%, 97%, 0.05);
  border: 1px solid hsla(120, 14%, 97%, 0.1);
  color: var(--primary);
}

.badge-secondary {
  background: hsla(40, 52%, 56%, 0.1);
  border: 1px solid hsla(40, 52%, 56%, 0.2);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  max-width: 36rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image-container {
  position: relative;
  z-index: 10;
  background: linear-gradient(to bottom, hsl(159, 78%, 14%), hsl(159, 80%, 9%));
  border-radius: 9999px 9999px 0 0;
  padding: 2rem 2rem 0;
}

.hero-image {
  width: auto;
  height: 500px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.25));
}

@media (min-width: 768px) {
  .hero-image {
    height: 600px;
  }
}

/* ==========================================================================
   Quem Somos Section
   ========================================================================== */
.quem-somos-section {
  padding: 8rem 0;
  background: var(--card);
  border-top: 1px solid hsla(40, 52%, 56%, 0.1);
  border-bottom: 1px solid hsla(40, 52%, 56%, 0.1);
}

.quem-somos-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .quem-somos-section .container {
    grid-template-columns: 1fr 1fr;
  }
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  color: var(--primary);
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.section-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  border: 1px solid hsla(120, 14%, 97%, 0.05);
  background: hsla(120, 14%, 97%, 0.05);
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: hsla(40, 52%, 56%, 0.4);
}

.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Economia Section
   ========================================================================== */
.economia-section {
  padding: 8rem 0;
  border-bottom: 1px solid hsla(40, 52%, 56%, 0.1);
}

.economia-section .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .economia-section .container {
    flex-direction: row;
  }
}

.economia-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.economia-title {
  font-size: 3rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .economia-title {
    font-size: 3.75rem;
  }
}

.stat-highlight {
  background: linear-gradient(to right, var(--primary), #fcf6ba);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.economia-text {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.economia-cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .economia-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.economia-card {
  padding: 2rem;
  border: 1px solid hsla(120, 14%, 97%, 0.05);
  background: hsla(120, 14%, 97%, 0.05);
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

.economia-card:hover {
  border-color: hsla(40, 52%, 56%, 0.4);
}

.economia-card-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.economia-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.economia-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Serviços Section
   ========================================================================== */
.servicos-section {
  padding: 8rem 0;
  background: var(--card);
}

.servicos-header {
  text-align: center;
  margin-bottom: 5rem;
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.servico-card {
  background: hsla(255, 255, 255, 0.03);
  border: 1px solid hsla(40, 52%, 56%, 0.2);
  padding: 2.5rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.servico-card:hover {
  border-color: var(--primary);
  background: hsla(255, 255, 255, 0.07);
  transform: translateY(-5px);
}

.servico-number {
  width: 3rem;
  height: 3rem;
  background: hsla(40, 52%, 56%, 0.1);
  border: 1px solid hsla(40, 52%, 56%, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.servico-card:hover .servico-number {
  background: var(--primary);
  color: var(--primary-foreground);
}

.servico-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.servico-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.servicos-cta {
  margin-top: 5rem;
  text-align: center;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.expertise-section {
  padding: 8rem 0;
}

.expertise-section .container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .expertise-section .container {
    flex-direction: row;
  }
}

.expertise-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.expertise-title {
  font-size: 2.5rem;
  color: var(--primary);
}

.expertise-divider {
  width: 5rem;
  height: 4px;
  background: var(--foreground);
}

.expertise-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.expertise-quote {
  padding: 1.5rem;
  background: hsla(120, 14%, 97%, 0.05);
  border-left: 4px solid var(--primary);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.expertise-card {
  flex: 1;
  background: var(--card);
  padding: 3rem;
  border: 1px solid hsla(40, 52%, 56%, 0.3);
  border-radius: 2px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.expertise-card-label {
  font-size: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.expertise-card-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.expertise-card-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Nichos Section
   ========================================================================== */
.nichos-section {
  padding: 3rem 0 8rem;
}

.nichos-header {
  text-align: center;
  margin-bottom: 5rem;
}

.nichos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nichos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nicho-card {
  background: hsla(159, 80%, 9%, 0.5);
  padding: 2.5rem;
  border: 1px solid hsla(40, 52%, 56%, 0.2);
  border-radius: 2px;
}

.nicho-card.featured {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  z-index: 10;
}

.nicho-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsla(40, 52%, 56%, 0.2);
}

.nicho-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nicho-list li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--card);
  padding: 5rem 1.5rem;
  border-top: 1px solid hsla(40, 52%, 56%, 0.1);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-right {
    align-items: flex-end;
  }
}

.footer-social {
  display: flex;
  gap: 2rem;
}

.footer-social a {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: right;
  }
}

.footer-cta {
  margin-top: 1rem;
}

.footer-cta a {
  display: block;
  background: hsla(120, 14%, 97%, 0.05);
  border: 1px solid hsla(40, 52%, 56%, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  transition: all 0.3s ease;
}

.footer-cta a:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   Mobile Menu (for JavaScript toggle)
   ========================================================================== */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 100;
  padding: 6rem 2rem 2rem;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
