/*
Theme Name: Moderato Engenharia V2
Theme URI: https://moderato-engenharia.com.br
Author: Moderato Engenharia
Author URI: https://moderato-engenharia.com.br
Description: Tema WordPress personalizado com design Brutalism Digital Refinado para portfólio de engenharia
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moderato-engenharia
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   RESET E VARIÁVEIS CSS
   ============================================ */

:root {
  --primary: #FF8C42;
  --primary-rgb: 255, 140, 66;
  --secondary: #3A3A3A;
  --secondary-rgb: 58, 58, 58;
  --background: #1A1A1A;
  --background-rgb: 26, 26, 26;
  --foreground: #F5F5F5;
  --foreground-rgb: 245, 245, 245;
  --muted: #4A4A4A;
  --muted-foreground: #B0B0B0;
  --border: #3A3A3A;
  --card: #242424;
  --accent: #FF8C42;
  --accent-secondary: #FF6B35;
  --radius: 0.65rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-secondary);
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

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

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: 76px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--foreground);
  transition: var(--transition);
  min-height: 56px;
  padding: 0.35rem 0;
}

.site-logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 4px;
}

.main-navigation {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-navigation {
    display: flex;
  }
}

.main-navigation a {
  font-size: 0.875rem;
  color: var(--foreground);
  transition: var(--transition);
}

.main-navigation a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
}

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

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 76px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-accent-line {
  height: 4px;
  width: 64px;
  background-color: var(--accent);
  margin: 0 auto 1.5rem;
  animation: slideInLeft 0.6s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: slideUp 0.8s ease-out 0.2s both;
}

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

.hero-description {
  font-size: 1.125rem;
  color: rgba(245, 245, 245, 0.8);
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: var(--accent);
  color: var(--background);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.875rem;
}

.btn:hover {
  background-color: var(--accent-secondary);
  gap: 0.75rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background-color: rgba(255, 140, 66, 0.1);
}

/* ============================================
   SEÇÕES PRINCIPAIS
   ============================================ */

.section {
  padding: 6rem 0;
}

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

.section-accent {
  height: 48px;
  width: 4px;
  background-color: var(--accent);
  margin-bottom: 2rem;
  animation: slideInLeft 0.6s ease-out;
}

.section-light {
  background-color: rgba(58, 58, 58, 0.3);
}

.section-dark {
  background-color: var(--background);
}

/* ============================================
   GRID E CARDS
   ============================================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

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

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================
   FORMULÁRIO
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.form-control::placeholder {
  color: var(--muted-foreground);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  color: #FF6B6B;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

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

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-section a:hover {
  color: var(--accent);
}

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

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

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

.text-muted {
  color: var(--muted-foreground);
}

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

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

.mb-3 {
  margin-bottom: 1.5rem;
}

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

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

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

.mt-3 {
  margin-top: 1.5rem;
}

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

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ============================================
   MODERATO V2 - AJUSTES COMERCIAIS
   ============================================ */

.site-logo img,
.custom-logo {
  max-height: 58px;
  max-width: min(320px, 52vw);
  width: auto;
  display: block;
}

.default-moderato-logo {
  object-fit: contain;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-navigation .menu,
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.hero-section {
  min-height: calc(100vh - 76px);
  height: auto;
  padding: 7rem 0;
}

.moderato-hero-gradient {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 140, 66, 0.35), transparent 28%),
    linear-gradient(135deg, #111 0%, #1A1A1A 48%, #2B2B2B 100%);
}

.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-title {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(245, 245, 245, 0.35);
}

.btn-outline:hover {
  border-color: var(--accent);
}

.lead-text {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.feature-list,
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-list span,
.audience-grid span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.image-panel {
  position: relative;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.moderato-image-placeholder {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--muted-foreground);
  background:
    linear-gradient(135deg, rgba(255,140,66,.14), rgba(255,255,255,.03)),
    var(--card);
}

.image-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--accent);
  color: var(--background);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
}

.service-card {
  height: 100%;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
}

.editable-home-content .entry-content {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.steps-grid div {
  background: #fff;
  border: 1px solid #e8e8e8;
  color: #222;
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 150px;
}

.steps-grid strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.steps-grid span {
  display: block;
  color: #444;
}

.cta-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.contact-list li {
  margin-bottom: 0.55rem;
}

.icon-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: inherit;
}

.icon-link svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  fill: var(--accent);
  margin-top: 0.16rem;
}

.footer-social .icon-link {
  align-items: center;
  gap: 0.4rem;
}

.footer-social .icon-link svg {
  margin-top: 0;
}

.contact-address {
  color: var(--foreground);
  font-weight: 600;
}

.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: #25D366;
  color: #0b2114;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  gap: 0.45rem;
}

.floating-whatsapp:hover {
  color: #0b2114;
  transform: translateY(-2px);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.service-content {
  color: #333;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.service-content h2,
.service-content h3 {
  color: #1a1a1a;
  margin-top: 2rem;
}

.service-content ul,
.service-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation .menu,
  .main-navigation ul {
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    right: 0.85rem;
    bottom: 0.85rem;
    min-height: 48px;
    padding: 0 1rem;
  }
}
