/*
Theme Name: Softagile Engenharia e Software
Theme URI: https://softagile.com.br
Author: Softagile Engenharia e Software
Author URI: https://softagile.com.br
Description: Tema institucional moderno para a Softagile Engenharia e Software. Estilo tech escuro, com seções de Home, Sobre, Serviços, Portfólio/Cases e Contato. Estruturado para expansão futura (manuais, vídeos, área de clientes).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: softagile
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root{
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --bg-card: #131a29;
  --border: #232b3d;
  --text: #e7ecf5;
  --text-muted: #9aa5b8;
  --brand: #00c2ff;
  --brand-2: #21e6a1;
  --brand-grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --danger: #ff5b6e;
  --radius: 14px;
  --container: 1180px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0 0 .5em; font-weight:700; letter-spacing:-.02em; }
p{ margin:0 0 1em; color: var(--text-muted); }
.container{ max-width: var(--container); margin:0 auto; padding: 0 24px; }
.section{ padding: 96px 0; position:relative; }
.section-alt{ background: var(--bg-alt); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size: 13px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before{ content:""; width:8px; height:8px; border-radius:50%; background: var(--brand-grad); box-shadow: 0 0 12px var(--brand); }
.section-head{ max-width: 640px; margin: 0 0 56px; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 40px); }
.section-head p{ font-size: 17px; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 26px; border-radius: 999px; font-weight:600; font-size:15px;
  border: 1px solid transparent; cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--brand-grad); color:#04121a; box-shadow: 0 8px 24px -8px rgba(0,194,255,.5); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,194,255,.65); }
.btn-outline{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover{ border-color: var(--brand); color: var(--brand); }

/* =========================================================
   2. Header / Nav
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,14,23,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap{ display:flex; align-items:center; justify-content:space-between; padding: 18px 24px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; }
.brand-mark{
  width:40px; height:40px; flex:none;
  display:flex; align-items:center; justify-content:center;
}
.brand-mark img{ width:100%; height:100%; display:block; }
.custom-logo{ max-height:48px; width:auto; }
.brand small{ display:block; font-family: var(--mono); font-weight:500; font-size:11px; color: var(--text-muted); letter-spacing:.04em; }

.main-nav ul{ display:flex; gap: 32px; align-items:center; }
.main-nav a{
  font-size: 14.5px; color: var(--text-muted); font-weight:500;
  transition: color .15s ease;
  position:relative;
}
.main-nav a:hover, .main-nav a.current{ color: var(--text); }
.main-nav a.current::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px; height:2px; background: var(--brand-grad); border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:14px; }
.menu-toggle{ display:none; background:none; border:1px solid var(--border); border-radius:8px; width:42px; height:42px; color:var(--text); }

@media (max-width: 900px){
  .main-nav{ position:fixed; top:70px; left:0; right:0; height: calc(100vh - 70px); background: var(--bg); padding: 32px 24px; transform: translateY(-110%); transition: transform .25s ease; border-top:1px solid var(--border); overflow-y:auto; }
  .main-nav.open{ transform: translateY(0); }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:22px; }
  .nav-cta .btn-outline{ display:none; }
  .menu-toggle{ display:flex; align-items:center; justify-content:center; }
}

/* =========================================================
   3. Hero
   ========================================================= */
.hero{
  padding: 120px 0 100px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(0,194,255,.14), transparent 60%),
    radial-gradient(500px 260px at 90% 10%, rgba(33,230,161,.12), transparent 60%);
}
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items:center; }
.hero h1{ font-size: clamp(34px, 5vw, 58px); line-height:1.08; }
.hero h1 .grad{ background: var(--brand-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-lead{ font-size:18px; max-width: 520px; }
.hero-actions{ display:flex; gap:16px; margin-top: 32px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap: 36px; margin-top: 56px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-size: 26px; font-family: var(--mono); }
.hero-stats div span{ font-size: 13px; color: var(--text-muted); }

.hero-panel{
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); font-family: var(--mono); font-size: 13.5px;
}
.hero-panel .dots{ display:flex; gap:6px; margin-bottom:18px; }
.hero-panel .dots span{ width:10px; height:10px; border-radius:50%; background: var(--border); }
.hero-panel .dots span:nth-child(1){ background:#ff5f56; }
.hero-panel .dots span:nth-child(2){ background:#ffbd2e; }
.hero-panel .dots span:nth-child(3){ background:#27c93f; }
.hero-panel pre{ margin:0; white-space: pre-wrap; color: var(--text-muted); line-height:1.7; }
.hero-panel .tok-key{ color: var(--brand); }
.hero-panel .tok-str{ color: var(--brand-2); }
.hero-panel .tok-com{ color: #57647c; }

@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   4. Logos / trust strip
   ========================================================= */
.trust-strip{ padding: 40px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-strip .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.trust-strip p{ margin:0; font-family: var(--mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.1em; color: var(--text-muted); }
.trust-logos{ display:flex; gap: 34px; flex-wrap:wrap; align-items:center; opacity:.75; }
.trust-logos span{ font-weight:700; letter-spacing:.02em; color: var(--text-muted); font-size:15px; }

/* =========================================================
   5. Cards grid (Serviços)
   ========================================================= */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card{
  background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); border-color: rgba(0,194,255,.4); }
.card-icon{
  width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background: rgba(0,194,255,.1); color: var(--brand); margin-bottom:20px;
}
.card h3{ font-size:19px; }
.card p{ font-size:14.5px; margin-bottom:0; }

@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr; } }

/* =========================================================
   6. Sobre
   ========================================================= */
.about-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap:60px; align-items:center; }
.about-visual{
  aspect-ratio: 4/3; border-radius: var(--radius); border:1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.about-visual::before{
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.about-visual .glow{ width:220px; height:220px; border-radius:50%; background: var(--brand-grad); filter: blur(70px); opacity:.35; }
.about-list{ display:grid; gap:14px; margin-top:24px; }
.about-list li{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color: var(--text); }
.about-list li svg{ flex:none; color: var(--brand-2); margin-top:2px; }

@media (max-width: 900px){ .about-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   7. Portfólio / Cases
   ========================================================= */
.case-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }
.case-card{
  border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background: var(--bg-card);
  display:flex; flex-direction:column;
}
.case-thumb{
  aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(0,194,255,.18), rgba(33,230,161,.12));
  display:flex; align-items:center; justify-content:center; font-family: var(--mono); color: var(--brand); font-size:13px;
  border-bottom:1px solid var(--border);
}
.case-body{ padding: 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.case-tag{ font-family: var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color: var(--brand-2); }
.case-body h3{ font-size:18px; margin-bottom:4px; }
.case-body p{ font-size:14px; flex:1; }
.case-link{ font-size:13.5px; font-weight:600; color: var(--brand); display:inline-flex; align-items:center; gap:6px; margin-top:8px; }

@media (max-width: 900px){ .case-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   8. CTA banda
   ========================================================= */
.cta-band{
  border-radius: 20px; padding: 56px; text-align:center;
  background: linear-gradient(135deg, rgba(0,194,255,.12), rgba(33,230,161,.08));
  border:1px solid var(--border);
}
.cta-band h2{ font-size: clamp(24px,3vw,32px); }
.cta-band .btn-primary{ margin-top: 10px; }

/* =========================================================
   9. Contato
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-info{ display:grid; gap: 22px; align-content:start; }
.info-item{ display:flex; gap:14px; align-items:flex-start; }
.info-item .ic{ width:42px; height:42px; border-radius:10px; background: rgba(0,194,255,.1); color: var(--brand); display:flex; align-items:center; justify-content:center; flex:none; }
.info-item strong{ display:block; font-size:14px; }
.info-item span, .info-item a{ font-size:14px; color: var(--text-muted); }
.social-row{ display:flex; gap:12px; margin-top:8px; }
.social-row a{ width:38px; height:38px; border-radius:9px; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--text-muted); transition: all .15s ease; }
.social-row a:hover{ color: var(--brand); border-color: var(--brand); }

.contact-form{ background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; margin-bottom:6px; color: var(--text-muted); }
.field input, .field textarea{
  width:100%; background: var(--bg-alt); border:1px solid var(--border); border-radius:10px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size:14.5px;
}
.field input:focus, .field textarea:focus{ outline:none; border-color: var(--brand); }
.field textarea{ resize: vertical; min-height:120px; }
.form-note{ font-size:12.5px; color: var(--text-muted); margin-top: 10px; }
.form-success{ background: rgba(33,230,161,.12); border:1px solid rgba(33,230,161,.4); color: var(--brand-2); padding: 14px 16px; border-radius:10px; margin-bottom:18px; font-size:14px; }
.form-error{ background: rgba(255,91,110,.12); border:1px solid rgba(255,91,110,.4); color: var(--danger); padding: 14px 16px; border-radius:10px; margin-bottom:18px; font-size:14px; }

@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } .form-row{ grid-template-columns:1fr; } }

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer{ border-top:1px solid var(--border); padding: 56px 0 28px; background: var(--bg-alt); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-muted); margin-bottom:16px; }
.footer-col ul{ display:grid; gap:10px; }
.footer-col a{ font-size:14px; color: var(--text-muted); }
.footer-col a:hover{ color: var(--brand); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--border); flex-wrap:wrap; gap:12px; }
.footer-bottom p{ margin:0; font-size:13px; }

@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* Page (Sobre/Serviços standalone) */
.page-hero{ padding: 72px 0 40px; }
.page-hero h1{ font-size: clamp(30px,4vw,44px); }
.entry-content{ font-size:16px; }
.entry-content p{ color: var(--text); }
