/*
Theme Name: RHALM Soluções em Engenharia
Theme URI: https://rhalmsolucoesemengenharia.com.br
Author: RHALM Soluções em Engenharia
Author URI: https://rhalmsolucoesemengenharia.com.br
Description: Tema institucional corporativo responsivo para a RHALM Soluções em Engenharia (Engenharia Mecânica, NR-12, NR-10, Automação, SPDA, AVCB e Manutenção Industrial).
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rhalm-engenharia
*/

:root {
  --navy-900: #0b1324;
  --navy-800: #111c33;
  --navy-700: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --amber: #d97706;
  --amber-hover: #b45309;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --success-bg: #ecfdf5;
  --success-border: #10b981;
  --success-text: #065f46;
  --error-bg: #fef2f2;
  --error-border: #ef4444;
  --error-text: #991b1b;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy-700);
  background-color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.2s ease;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-900);
  letter-spacing: 0.4px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-700);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--amber);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--amber-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-header {
  padding: 10px 18px;
  font-size: 0.88rem;
  background-color: var(--navy-900);
  color: var(--white);
}

.btn-header:hover {
  background-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy-900);
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
  color: var(--navy-800);
}

.mobile-nav .btn-primary {
  margin-top: 16px;
  width: 100%;
  border-bottom: none;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 148px 0 88px;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.22), transparent 55%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 860px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: #cbd5e1;
  max-width: 720px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Credibility Bar */
.credibility-bar {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  color: #e2e8f0;
}

.credibility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.credibility-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  font-weight: 600;
}

.norms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.norm-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--slate-600);
  font-size: 1.02rem;
}

/* Feature Grid (Why RHALM) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--navy-900);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 10px;
  padding: 40px 44px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-left: 5px solid var(--amber);
}

.cta-banner h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 0.98rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.about-text p {
  color: var(--slate-600);
  margin-bottom: 18px;
  font-size: 1rem;
}

.rt-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.rt-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 8px;
}

.rt-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.rt-role {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rt-card p {
  color: #cbd5e1;
  font-size: 0.94rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.pillar-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.pillar-item p {
  font-size: 0.93rem;
  color: var(--slate-600);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.service-card.service-wide {
  grid-column: span 2;
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.service-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Portfolio */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.filter-btn.is-active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-card.is-hidden {
  display: none;
}

.project-category {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.94rem;
  color: var(--slate-600);
  margin-bottom: 18px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--navy-800);
  border: 1px solid var(--slate-200);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.info-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.93rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.info-value {
  color: var(--white);
  font-weight: 500;
  word-break: break-word;
}

.info-value a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-alert {
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.93rem;
  font-weight: 500;
}

.form-alert.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.form-alert.error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: #cbd5e1;
  padding: 52px 0 28px;
  border-top: 3px solid var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .grid-3,
  .about-grid,
  .pillars-grid,
  .services-grid,
  .portfolio-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-card.service-wide {
    grid-column: span 1;
  }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 126px 0 68px;
  }
  .section {
    padding: 64px 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 14px;
  }
}

.brand-logo {
  height: 54px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .brand-logo {
    height: 44px;
    max-width: 200px;
  }
}
