/* PowerJet Theme - Main Stylesheet */

:root {
  --background: 0 0% 100%;
  --foreground: 216 35% 15%;
  --card: 0 0% 100%;
  --card-foreground: 216 35% 15%;
  --primary: 216 100% 34%;
  --primary-foreground: 0 0% 100%;
  --primary-hover: 216 100% 28%;
  --secondary: 25 95% 55%;
  --secondary-foreground: 0 0% 100%;
  --muted: 216 20% 95%;
  --muted-foreground: 216 15% 45%;
  --accent: 9 82% 55%;
  --accent-foreground: 0 0% 100%;
  --border: 216 20% 88%;
  --radius: 0.75rem;
  --shadow-sm: 0 2px 8px hsla(216, 100%, 34%, 0.08);
  --shadow-md: 0 4px 16px hsla(216, 100%, 34%, 0.12);
  --shadow-lg: 0 8px 32px hsla(216, 100%, 34%, 0.16);
  --shadow-cta: 0 4px 20px hsla(9, 82%, 55%, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.top-bar {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.top-bar-contacts {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-bar-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.2s;
}

.top-bar-link:hover {
  opacity: 0.8;
}

.separator {
  opacity: 0.6;
}

.site-header {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.site-logo img {
  height: 3rem;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: hsl(var(--primary));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: var(--shadow-cta);
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-outline {
  border: 2px solid hsl(var(--border));
  background: transparent;
}

/* Icons */
.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  padding: 0.5rem;
}

.hamburger {
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
}

.mobile-nav {
  display: none;
}

/* Footer */
.site-footer {
  background: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 2rem;
  height: 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: hsl(var(--primary) / 0.5);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  background: linear-gradient(180deg, hsl(216 100% 97%), hsl(0 0% 100%));
  padding: 5rem 0 8rem;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.icon-check {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* ========================================
   DESTACADOS SECTION
   ======================================== */

.destacados-section {
  padding: 4rem 0;
  background: hsl(var(--muted) / 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

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

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.destacado-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.destacado-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-4px);
}

.destacado-icon {
  width: 4rem;
  height: 4rem;
  padding: 1rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.destacado-card:hover .destacado-icon {
  background: hsl(var(--primary) / 0.2);
}

.destacado-icon svg {
  width: 100%;
  height: 100%;
  color: hsl(var(--primary));
}

.destacado-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.destacado-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ========================================
   SOBRE SECTION
   ======================================== */

.sobre-section {
  padding: 4rem 0;
  background: hsl(var(--background));
}

.sobre-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.sobre-text {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin-top: 1.5rem;
}

/* ========================================
   SERVIÇOS SECTION
   ======================================== */

.servicos-section {
  padding: 4rem 0;
  background: hsl(var(--background));
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-2px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  color: hsl(var(--primary));
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* ========================================
   DIFERENCIAIS SECTION
   ======================================== */

.diferenciais-section {
  padding: 4rem 0;
  background: hsl(var(--muted) / 0.5);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.diferencial-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.diferencial-icon-small {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
}

.diferencial-icon-small svg {
  width: 100%;
  height: 100%;
  color: hsl(var(--primary));
}

.diferencial-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

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

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
  padding: 4rem 0;
  background: hsl(var(--muted) / 0.5);
}

.faq-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: hsl(var(--primary));
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ========================================
   ÁREAS SECTION
   ======================================== */

.areas-section {
  padding: 4rem 0;
  background: hsl(var(--background));
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: var(--transition);
}

.area-item:hover {
  box-shadow: var(--shadow-md);
  border-color: hsl(var(--primary) / 0.5);
}

.area-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.area-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.area-item:hover span {
  color: hsl(var(--primary));
}

/* ========================================
   CTA FINAL SECTION
   ======================================== */

.cta-final-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-hover)));
  color: hsl(var(--primary-foreground));
}

.cta-final-content {
  text-align: center;
}

.cta-final-title {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-final-description {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.cta-final-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   SINGLE POST & PAGE STYLES
   ======================================== */

.page-wrapper {
  padding: 4rem 0;
}

.single-post, .page-content {
  max-width: 800px;
  margin: 0 auto;
}

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

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

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  justify-content: center;
}

.entry-meta svg {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.entry-thumbnail, .page-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-image, .page-image {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content, .page-content-area {
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(var(--foreground));
}

.entry-content h2, .page-content-area h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.entry-content h3, .page-content-area h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

.entry-content p, .page-content-area p {
  margin-bottom: 1rem;
}

.entry-content ul, .entry-content ol,
.page-content-area ul, .page-content-area ol {
  margin: 1rem 0 1rem 1.5rem;
}

.entry-content a, .page-content-area a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--muted));
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: var(--transition);
}

.post-tags a:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.nav-previous, .nav-next {
  flex: 1;
}

.nav-previous a, .nav-next a {
  display: block;
  padding: 1rem;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-previous a:hover, .nav-next a:hover {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.single-cta-section {
  margin-top: 3rem;
  padding: 2rem;
  background: hsl(var(--muted) / 0.5);
  border-radius: var(--radius);
}

.cta-box {
  text-align: center;
}

.cta-box h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   404 ERROR PAGE
   ======================================== */

.error-404-wrapper {
  padding: 4rem 0;
}

.error-404-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404-title {
  font-size: 6rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.error-404-subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-404-text {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.error-404-search,
.error-404-cta {
  margin-top: 3rem;
}

.error-404-search h3,
.error-404-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   SEARCH FORM
   ======================================== */

.search-form {
  max-width: 600px;
  margin: 2rem auto;
}

.search-form-wrapper {
  display: flex;
  gap: 0.5rem;
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-form-wrapper:focus-within {
  border-color: hsl(var(--primary));
}

.search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.search-submit {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0;
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.comments-title {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius);
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.comment-content p {
  margin-bottom: 0.5rem;
}

.comment-reply-link {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  text-decoration: underline;
}

.comment-form {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 1024px) {
  .main-nav, .header-cta, .top-bar {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav.active {
    display: block;
    padding: 1rem 0;
    border-top: 1px solid hsl(var(--border));
  }

  .hero-section {
    padding: 3rem 0 5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .destacados-grid,
  .servicos-grid,
  .diferenciais-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

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

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diferenciais-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}