/*
Theme Name: Power Safety
Theme URI: https://powersafety.com.br
Author: Power Safety Tecnologia
Description: Tema profissional para empresa de manutenção de ar condicionado, energia crítica e geradores.
Version: 1.0.0
Text Domain: power-safety-theme
*/

/* ── Variáveis de cor ─────────────────────────────── */
:root {
  --ps-blue:     #0B3D91;
  --ps-blue-dk:  #082d6e;
  --ps-blue-lt:  #1a56c4;
  --ps-orange:   #E8530A;
  --ps-orange-lt:#f26522;
  --ps-green:    #2e7d32;
  --ps-dark:     #1A1A2E;
  --ps-gray:     #f4f6fb;
  --ps-text:     #333;
  --ps-muted:    #666;
  --ps-white:    #ffffff;
  --ps-radius:   8px;
  --ps-shadow:   0 4px 20px rgba(0,0,0,.08);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ps-text);
  background: var(--ps-white);
  line-height: 1.6;
}

a { color: var(--ps-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* ── Topo / Navbar ───────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ps-blue);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 1.4rem; font-weight: 700; text-decoration: none;
}
.site-logo span { color: var(--ps-orange); }
nav.main-nav ul { display: flex; gap: 8px; list-style: none; }
nav.main-nav a {
  color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 4px;
  font-size: .93rem; font-weight: 500; transition: all .2s;
}
nav.main-nav a:hover, nav.main-nav a.current { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.header-cta { display: flex; gap: 8px; }
.btn-portal {
  background: var(--ps-orange); color: #fff; padding: 9px 20px;
  border-radius: 4px; font-weight: 600; font-size: .9rem; transition: background .2s;
}
.btn-portal:hover { background: var(--ps-orange-lt); text-decoration: none; color: #fff; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--ps-dark) 0%, var(--ps-blue) 60%, var(--ps-blue-lt) 100%);
  color: #fff; padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="10" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
}
.hero-inner { display: flex; align-items: center; gap: 60px; position: relative; }
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block; background: rgba(232,83,10,.2); border: 1px solid rgba(232,83,10,.4);
  color: #ffa07a; padding: 4px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  margin-bottom: 20px; letter-spacing: .5px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--ps-orange); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 520px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--ps-orange); color: #fff; padding: 14px 28px;
  border-radius: 6px; font-weight: 700; font-size: 1rem; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--ps-orange-lt); transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3);
  color: #fff; padding: 12px 26px; border-radius: 6px; font-weight: 600; transition: all .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--ps-orange); }
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .5px; }
.hero-visual { flex: 0 0 420px; }
.hero-visual-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 32px; backdrop-filter: blur(10px);
}
.hero-service-list { display: flex; flex-direction: column; gap: 16px; }
.hero-service-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.08); border-radius: 10px; padding: 16px;
}
.hsi-icon { font-size: 1.8rem; }
.hsi-info strong { display: block; color: #fff; font-size: .95rem; }
.hsi-info span { color: rgba(255,255,255,.6); font-size: .82rem; }

/* ── Seção genérica ──────────────────────────────── */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: rgba(11,61,145,.1); color: var(--ps-blue);
  padding: 4px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: .5px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--ps-dark); margin-bottom: 12px; }
.section-header p { color: var(--ps-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── Serviços ─────────────────────────────────────── */
.services-bg { background: var(--ps-gray); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.service-card {
  background: #fff; border-radius: var(--ps-radius); padding: 32px;
  box-shadow: var(--ps-shadow); transition: transform .3s, box-shadow .3s;
  border-top: 4px solid var(--ps-blue);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.service-card.orange { border-top-color: var(--ps-orange); }
.service-card.green  { border-top-color: var(--ps-green); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--ps-dark); margin-bottom: 10px; }
.service-card p { color: var(--ps-muted); font-size: .92rem; }
.service-features { list-style: none; margin-top: 16px; }
.service-features li { padding: 5px 0; color: var(--ps-text); font-size: .9rem; }
.service-features li::before { content: '✓ '; color: var(--ps-green); font-weight: 700; }

/* ── Destaques ────────────────────────────────────── */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; text-align: center; }
.highlight-item { padding: 24px; }
.highlight-icon { font-size: 2.5rem; margin-bottom: 12px; }
.highlight-num { font-size: 2.4rem; font-weight: 800; color: var(--ps-blue); }
.highlight-label { color: var(--ps-muted); font-size: .9rem; }

/* ── Como funciona ───────────────────────────────── */
.how-it-works-bg { background: var(--ps-blue); color: #fff; }
.how-it-works-bg .section-header h2 { color: #fff; }
.how-it-works-bg .section-header p  { color: rgba(255,255,255,.7); }
.how-it-works-bg .section-tag { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 24px; }
.step-item { text-align: center; padding: 24px 16px; position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ps-orange); color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-item h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.step-item p { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section { background: var(--ps-gray); text-align: center; }
.cta-box { max-width: 680px; margin: 0 auto; }
.cta-box h2 { font-size: 2rem; font-weight: 800; color: var(--ps-dark); margin-bottom: 14px; }
.cta-box p { color: var(--ps-muted); margin-bottom: 32px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary {
  background: var(--ps-blue); color: #fff; padding: 14px 32px;
  border-radius: 6px; font-weight: 700; font-size: 1rem;
}
.btn-cta-primary:hover { background: var(--ps-blue-dk); text-decoration: none; color: #fff; }
.btn-cta-sec {
  background: #fff; color: var(--ps-blue); border: 2px solid var(--ps-blue);
  padding: 12px 28px; border-radius: 6px; font-weight: 600;
}
.btn-cta-sec:hover { background: var(--ps-blue); color: #fff; text-decoration: none; }

/* ── Footer ──────────────────────────────────────── */
#site-footer { background: var(--ps-dark); color: rgba(255,255,255,.7); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--ps-orange); }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-contact p { font-size: .88rem; margin-bottom: 8px; }
.footer-contact strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 8px;
}

/* ── Responsivo ──────────────────────────────────── */
@media(max-width:900px){
  .hero-inner    { flex-direction: column; }
  .hero-visual   { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  nav.main-nav   { display: none; }
}
@media(max-width:600px){
  .footer-grid   { grid-template-columns: 1fr; }
  .hero          { padding: 60px 0; }
  .hero-stats    { gap: 24px; flex-wrap: wrap; }
}
