/*
Theme Name: DigiTec Assistência Técnica
Theme URI: https://digitecgoiania.com.br
Author: DigiTec
Author URI: https://digitecgoiania.com.br
Description: Tema WordPress para DigiTec - Assistência Técnica Especializada em Máquinas de Lavar em Goiânia e Região Metropolitana.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: digitec
*/

/* =========================================================
   TOKENS DE DESIGN
   ========================================================= */
:root {
  --primary:        hsl(229, 97%, 47%);
  --primary-dark:   hsl(229, 97%, 15%);
  --primary-mid:    hsl(229, 97%, 30%);
  --primary-fg:     hsl(0, 0%, 100%);
  --accent:         hsl(358, 86%, 52%);
  --accent-fg:      hsl(0, 0%, 100%);
  --background:     hsl(220, 20%, 97%);
  --foreground:     hsl(222, 47%, 11%);
  --card:           hsl(0, 0%, 100%);
  --muted:          hsl(220, 15%, 92%);
  --muted-fg:       hsl(220, 10%, 40%);
  --border:         hsl(220, 15%, 88%);
  --whatsapp:       hsl(129, 59%, 45%);
  --whatsapp-fg:    hsl(0, 0%, 100%);
  --section-dark:   hsl(229, 97%, 8%);
  --section-blue:   hsl(229, 60%, 12%);
  --section-dark-fg:hsl(0, 0%, 95%);
  --radius:         0.75rem;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* =========================================================
   UTILITÁRIOS
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding { padding: 4rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 6rem 1rem; } }

.text-accent   { color: var(--accent); }
.text-center   { text-align: center; }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.gap-2         { gap: 0.5rem; }
.gap-3         { gap: 0.75rem; }
.gap-4         { gap: 1rem; }
.gap-6         { gap: 1.5rem; }
.gap-8         { gap: 2rem; }
.mb-3          { margin-bottom: 0.75rem; }
.mb-4          { margin-bottom: 1rem; }
.mb-6          { margin-bottom: 1.5rem; }
.mb-8          { margin-bottom: 2rem; }
.mb-12         { margin-bottom: 3rem; }
.mt-1          { margin-top: 0.25rem; }
.mx-auto       { margin-left: auto; margin-right: auto; }
.hidden        { display: none; }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  background-color: var(--whatsapp);
  color: var(--whatsapp-fg);
  box-shadow: 0 4px 20px hsl(129 59% 45% / 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsl(129 59% 45% / 0.5);
}
.btn-whatsapp svg { width: 1.25rem; height: 1.25rem; }

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: transform 0.3s, background 0.3s, color 0.3s;
  cursor: pointer;
}
.btn-phone:hover {
  background: var(--primary);
  color: var(--primary-fg);
  transform: translateY(-2px);
}
.btn-phone svg { width: 1.25rem; height: 1.25rem; }

/* Botão hero: borda branca */
.btn-phone--hero {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-phone--hero:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* =========================================================
   CARDS
   ========================================================= */
.card-service {
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px hsl(229 97% 47% / 0.15);
}

.accent-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* =========================================================
   BACKGROUNDS
   ========================================================= */
.bg-hero {
  background: linear-gradient(135deg, hsl(229, 97%, 15%) 0%, hsl(229, 97%, 30%) 50%, hsl(229, 97%, 42%) 100%);
}

.bg-section-dark {
  background: linear-gradient(180deg, var(--section-dark) 0%, var(--section-blue) 100%);
}

.bg-card   { background: var(--card); }
.bg-white  { background: #fff; }

/* =========================================================
   ANIMAÇÕES
   ========================================================= */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px hsl(129 59% 45% / 0.4); }
  50%       { box-shadow: 0 0 40px hsl(129 59% 45% / 0.7); }
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.animate-fade-in-up  { animation: fade-in-up  0.6s ease-out forwards; }
.animate-pulse-glow  { animation: pulse-glow  2s   ease-in-out infinite; }
.animate-pulse-scale { animation: pulse-scale 1.5s ease-in-out infinite; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .site-header .container { height: 5rem; } }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: #fff; }

.nav-toggle {
  display: flex;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-mobile {
  background: hsl(229, 97%, 47%, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
}
.nav-mobile.open { display: block; }
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.75rem;
}
.nav-mobile a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: #fff; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding-top: 5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    gap: 3rem;
  }
}
@media (min-width: 1024px) { .hero-inner { gap: 4rem; } }

/* Quadrado da logo/foto — substitua o src da imagem no WordPress */
.hero-logo-box {
  flex-shrink: 0;
  width: 12rem; height: 12rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .hero-logo-box { width: 16rem; height: 16rem; } }
@media (min-width: 1024px) { .hero-logo-box { width: 20rem; height: 20rem; } }

.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

/* Conteúdo hero */
.hero-content {
  flex: 1;
  text-align: center;
  color: #fff;
}
@media (min-width: 768px) { .hero-content { text-align: left; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(234,56,76,0.2);
  border: 1px solid rgba(234,56,76,0.3);
}
.hero-badge .dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-scale 1.5s ease-in-out infinite;
}
.hero-badge span {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px){ .hero-title { font-size: 3.75rem; } }

.hero-title .accent { color: var(--accent); }

.hero-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  max-width: 42rem;
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
@media (min-width: 768px) { .hero-location { justify-content: flex-start; } }
.hero-location svg { color: var(--accent); width: 1.25rem; height: 1.25rem; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}
@media (min-width: 768px) { .hero-actions { justify-content: flex-start; } }

/* =========================================================
   POR QUE NOS ESCOLHER
   ========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.benefit-card:hover {
  border-color: hsl(229 97% 47% / 0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.benefit-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(229 97% 47% / 0.1);
}
.benefit-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.benefit-card p { font-weight: 600; color: var(--foreground); }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services-list { display: flex; flex-direction: column; gap: 3rem; }

.service-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  text-align: center;
}
@media (min-width: 1024px) {
  .service-inner { flex-direction: row; text-align: left; }
}

.service-icon-wrap {
  flex-shrink: 0;
  margin: 0 auto;
}
@media (min-width: 1024px) { .service-icon-wrap { margin: 0; } }

.service-icon-box {
  width: 4rem; height: 4rem;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(229 97% 47% / 0.1);
}
.service-icon-box svg { width: 2rem; height: 2rem; color: var(--primary); }

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .service-title { font-size: 1.875rem; } }

.service-subtitle {
  font-size: 1.125rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.service-desc-label {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.service-items {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin-bottom: 1.5rem;
}
.service-items li {
  display: flex;
  align-items: center;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.service-highlight {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.service-cta { text-align: center; }
@media (min-width: 1024px) { .service-cta { text-align: left; } }

/* =========================================================
   PORTFÓLIO / CAROUSEL
   ========================================================= */
.carousel-wrapper {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.carousel-track {
  display: flex;
  transition: transform 0.7s ease-in-out;
}
.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.carousel-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.star { width: 1.25rem; height: 1.25rem; color: var(--accent); fill: var(--accent); }

.testimonial-text {
  color: var(--muted-fg);
  font-style: italic;
  flex: 1;
  margin-bottom: 1rem;
}
.testimonial-name { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.testimonial-location { font-size: 0.875rem; color: var(--muted-fg); }

/* =========================================================
   LOCALIZAÇÃO
   ========================================================= */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }

.map-link {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  min-height: 300px;
  background: var(--muted);
}
.map-link iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
  pointer-events: none;
  display: block;
}

.location-info { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }

.location-item { display: flex; align-items: flex-start; gap: 1rem; }
.location-item-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  background: hsl(358 86% 52% / 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.location-item-icon.primary-bg { background: hsl(229 97% 47% / 0.2); }
.location-item-icon svg { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.location-item-icon.primary-bg svg { color: #fff; }
.location-item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--section-dark-fg);
  margin-bottom: 0.25rem;
}
.location-item-text { color: rgba(242,242,242,0.7); line-height: 1.5; }

/* =========================================================
   SEÇÃO CTA
   ========================================================= */
.cta-section { text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--section-dark) 0%, var(--section-blue) 100%);
}
.site-footer img { height: 2.5rem; margin: 0 auto 1rem; opacity: 0.8; display: block; }
.footer-text { font-size: 0.875rem; color: rgba(242,242,242,0.5); margin-top: 0.25rem; }

/* =========================================================
   WHATSAPP WIDGET
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 50;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px hsl(129 59% 45% / 0.5);
  animation: pulse-scale 1.5s ease-in-out infinite;
  transition: transform 0.2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); animation-play-state: paused; }
.wa-float svg { width: 1.75rem; height: 1.75rem; color: #fff; }

@media (min-width: 640px) {
  .wa-float { width: 4rem; height: 4rem; }
  .wa-float svg { width: 2rem; height: 2rem; }
}

/* Popup Exit Intent */
.wa-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) { .wa-overlay { align-items: center; padding: 1rem; } }

.wa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.wa-popup {
  position: relative;
  width: 100%;
  background: var(--card);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: fade-in-up 0.3s ease-out;
}
@media (min-width: 640px) {
  .wa-popup { max-width: 24rem; border-radius: 1rem; }
}
.wa-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: hsl(129, 59%, 45%);
}
.wa-popup-avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
}
.wa-popup-name { font-family:'Montserrat',sans-serif; font-weight:700; font-size:0.875rem; color:#fff; }
.wa-popup-status { font-size:0.75rem; color:rgba(255,255,255,0.85); display:flex; align-items:center; gap:0.25rem; }
.wa-popup-status .online-dot { width:0.5rem; height:0.5rem; border-radius:50%; background:hsl(120,80%,80%); display:inline-block; }
.wa-popup-close {
  margin-left: auto;
  background: none; border: none;
  color: #fff; cursor: pointer;
  padding: 0.375rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.wa-popup-close:hover { background: rgba(255,255,255,0.2); }
.wa-popup-close svg { width:1.25rem; height:1.25rem; }

.wa-popup-body { padding: 1rem; }
.wa-popup-message {
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  background: var(--muted);
  color: var(--foreground);
  line-height: 1.6;
}
@media (min-width: 640px) { .wa-popup-message { font-size: 1rem; } }

.wa-popup-cta { padding: 0 1rem 1.5rem; }
@media (min-width: 640px) { .wa-popup-cta { padding-bottom: 1rem; } }
.wa-popup-cta .btn-whatsapp { width: 100%; padding: 0.875rem 1rem; font-size: 1rem; }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-heading {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-heading { font-size: 2.25rem; } }

.section-sub {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 42rem;
  margin: 0 auto;
}

.section-heading-dark { color: var(--section-dark-fg); }
.section-sub-dark     { color: rgba(242,242,242,0.7); }
