/*
Theme Name: STI Marques
Theme URI: https://stimarques.com.br
Author: Wellington Marques
Author URI: https://stimarques.com.br
Description: Tema customizado para Marques Soluções em TI
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: stimarques
*/

/* ===================================================================
   CSS VARIABLES
   =================================================================== */
:root {
  --primary:          #F97316;
  --primary-dark:     #C2410C;
  --primary-light:    #FED7AA;
  --grad:             linear-gradient(135deg, #F97316 0%, #EA580C 50%, #C2410C 100%);
  --grad-h:           linear-gradient(90deg, #F97316 0%, #EA580C 100%);

  --dark-900:  #0A0F1E;
  --dark-800:  #111827;
  --dark-700:  #1F2937;
  --dark-600:  #374151;

  --text-1:    #F9FAFB;
  --text-2:    #E5E7EB;
  --text-muted:#9CA3AF;

  --border:    rgba(255,255,255,0.08);
  --card-bg:   rgba(255,255,255,0.04);

  --r:    12px;
  --r-lg: 20px;
  --r-sm: 8px;

  --shadow-o: 0 8px 32px rgba(249,115,22,0.3);
  --t: all 0.3s cubic-bezier(0.4,0,0.2,1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-d: 'Space Grotesk', 'Inter', sans-serif;
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); background: var(--dark-900); color: var(--text-1); line-height: 1.6; overflow-x: hidden; }
a     { text-decoration: none; color: inherit; transition: var(--t); }
img   { max-width: 100%; height: auto; display: block; }
ul    { list-style: none; }
button { cursor: pointer; }

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

/* ===================================================================
   TYPOGRAPHY HELPERS
   =================================================================== */
.section-tag {
  display: inline-block;
  background: rgba(249,115,22,.12);
  color: var(--primary);
  border: 1px solid rgba(249,115,22,.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .93rem;
  border: none;
  transition: var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-o);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(249,115,22,.45); }

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(249,115,22,.07); }

.btn-ghost {
  background: rgba(249,115,22,.1);
  color: var(--primary);
  border: 1px solid rgba(249,115,22,.25);
}
.btn-ghost:hover { background: rgba(249,115,22,.2); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ===================================================================
   NAVBAR
   =================================================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--t);
}

#navbar.scrolled {
  padding: 12px 0;
  background: rgba(10,15,30,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text { font-family: var(--font-d); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.nav-logo-text span { display: block; font-size: .72rem; font-weight: 400; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; }
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(249,115,22,.08); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-admin-btn { font: inherit; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
}
.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
}
.language-option:hover,
.language-option.active {
  background: rgba(249,115,22,.14);
  color: var(--primary-light);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: var(--t);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,15,30,.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { font-family: var(--font-d); font-size: 1.6rem; font-weight: 600; color: var(--text-2); }
.nav-drawer a:hover { color: var(--primary); }
.nav-drawer .btn { font-size: 1rem; }
.nav-drawer .language-switcher {
  margin-bottom: 4px;
}
.nav-drawer .language-option {
  font-family: var(--font);
  font-size: .82rem;
}

/* ===================================================================
   HERO
   =================================================================== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}

/* subtle grid */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: rgba(249,115,22,.12); top: -150px; right: -150px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(59,130,246,.08); bottom: -100px; left: -100px; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.3);
  color: var(--primary);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 38px;
  max-width: 500px;
}

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

.hero-stats {
  display: flex; gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-d);
  font-size: 2rem; font-weight: 700;
  color: var(--primary); line-height: 1;
}
.stat-lbl { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* hero visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-logo-wrap {
  position: relative;
  width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(249,115,22,.18);
}
.hero-ring-1 { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-ring-2 { width: 78%; height: 78%; border-style: dashed; animation: spin 16s linear infinite reverse; }
.hero-ring-1::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  top: 50%; right: -5px;
  transform: translateY(-50%);
  box-shadow: var(--shadow-o);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo-img {
  width: 170px; height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(249,115,22,.45));
  animation: float 6s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* ===================================================================
   SERVICES
   =================================================================== */
#servicos { background: var(--dark-800); }

.services-header { margin-bottom: 64px; }
.services-header .section-title { font-size: clamp(1.1rem, 2.1vw, 1.9rem); }
.services-header .section-sub   { max-width: none; font-size: .9rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.svc-card {
  background: var(--dark-700);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 18px;
  transition: var(--t);
  position: relative; overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: var(--t);
}
.svc-card:hover { border-color: rgba(249,115,22,.3); transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--shadow-o); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 62px; height: 62px;
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  transition: var(--t);
}
.svc-card:hover .svc-icon { background: rgba(249,115,22,.2); border-color: rgba(249,115,22,.5); }
.svc-icon svg { width: 28px; height: 28px; color: var(--primary); }
.svc-icon-text {
  color: var(--primary);
  font-family: var(--font-d);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.svc-title { font-family: var(--font-d); font-size: clamp(.95rem, 1vw, 1.08rem); font-weight: 600; margin-bottom: 10px; }
.svc-desc  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

.svc-list { display: flex; flex-direction: column; gap: 7px; }
.svc-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: var(--text-2);
}
.svc-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--primary);
  flex-shrink: 0;
}

/* ===================================================================
   ABOUT
   =================================================================== */
#sobre { background: var(--dark-900); }

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 16px;
}

.about-photo-wrap {
  display: flex;
  flex-direction: column;
}
.about-photo-frame {
  position: relative;
}
.about-photo-border {
  border-radius: var(--r-lg);
  background: var(--grad);
  padding: 3px;
  box-shadow: var(--shadow-o);
}
.about-photo {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 3px);
  display: block;
}
.about-photo-ph {
  width: 100%; aspect-ratio: 3/4;
  background: var(--dark-700);
  border-radius: calc(var(--r-lg) - 3px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.about-photo-ph svg { width: 72px; height: 72px; color: var(--text-muted); opacity: .5; }
.about-photo-ph p  { font-size: .8rem; color: var(--text-muted); }

.about-exp-badge {
  position: absolute; bottom: 24px; right: -16px;
  background: var(--grad);
  border-radius: var(--r);
  padding: 14px 20px;
  box-shadow: var(--shadow-o);
  text-align: center; z-index: 2;
}
.about-exp-badge .num { font-family: var(--font-d); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.about-exp-badge .lbl { font-size: .72rem; color: rgba(255,255,255,.85); margin-top: 2px; }

.about-name { font-family: var(--font-d); font-size: 1.9rem; font-weight: 700; margin-bottom: 4px; }
.about-role { color: var(--primary); font-size: .95rem; font-weight: 500; margin-bottom: 22px; }
.about-bio  { color: var(--text-muted); line-height: 1.85; margin-bottom: 30px; }

.about-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 32px;
}
.about-card {
  background: var(--dark-700); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px;
  transition: var(--t);
}
.about-card:hover { border-color: rgba(249,115,22,.3); }
.about-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.about-card-title { font-weight: 600; font-size: .9rem; margin-bottom: 3px; }
.about-card-text  { font-size: .78rem; color: var(--text-muted); }

.skills-label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.skill-tag {
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.22);
  color: var(--primary-light);
  padding: 5px 13px;
  border-radius: 100px;
  font-size: .78rem; font-weight: 500;
}

.about-formations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.about-formations-col {}

/* certifications */
.certs-label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px;
}
.certs-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.cert-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark-700); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 16px;
}
.cert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.cert-name { font-size: .85rem; font-weight: 500; }
.cert-year { font-size: .75rem; color: var(--text-muted); margin-left: auto; }

/* ===================================================================
   CLIENTS
   =================================================================== */
#clientes { background: var(--dark-800); }

.clients-intro { max-width: none; text-align: left; margin-bottom: 48px; }
.clients-intro .section-title { font-size: clamp(1.1rem, 2.1vw, 1.9rem); }
.clients-intro .section-sub   { max-width: none; font-size: .9rem; text-align: left; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 200px));
  gap: 20px;
  justify-content: center;
  justify-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.clients-grid .client-card:nth-child(5):last-child { grid-column: 2; }
.clients-grid .client-card:nth-child(5):nth-last-child(2) { grid-column: 2; }
.clients-grid .client-card:nth-child(6):last-child { grid-column: 3; }

.client-card {
  background: var(--dark-700); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; transition: var(--t); text-align: center;
}
.client-card:hover { border-color: rgba(249,115,22,.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }

.client-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(249,115,22,.1);
  border: 2px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700;
  font-size: 1.3rem; color: var(--primary);
}
.client-logo-wrap {
  width: 72px; height: 72px;
  margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
}
.client-logo-img {
  width: 72px; height: 72px; border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,.92);
  padding: 8px; box-sizing: border-box;
}
.client-name    { font-size: .83rem; font-weight: 600; color: var(--text-2); }
.client-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
}
.client-actions a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,.25);
  background: rgba(249,115,22,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  transition: var(--t);
}
.client-actions a:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}
.client-actions svg { width: 17px; height: 17px; }

.clients-note {
  text-align: center; margin-top: 48px;
  color: var(--text-muted); font-size: .87rem;
}

/* ===================================================================
   SUPPORT
   =================================================================== */
#suporte {
  background: var(--dark-900);
  position: relative; overflow: hidden;
}
#suporte::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(249,115,22,.07) 0%, transparent 70%);
  pointer-events: none;
}

.support-inner { position: relative; z-index: 1; }

.support-box {
  background: var(--dark-700);
  border: 1px solid rgba(249,115,22,.18);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;
}

.support-icon-wrap {
  width: 76px; height: 76px;
  background: rgba(249,115,22,.1);
  border: 2px solid rgba(249,115,22,.3);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.support-icon-wrap svg { width: 36px; height: 36px; color: var(--primary); }

.support-title { font-family: var(--font-d); font-size: 1.7rem; font-weight: 700; margin-bottom: 14px; }
.support-desc  { color: var(--text-muted); line-height: 1.8; margin-bottom: 36px; }
.support-desc a { color: var(--primary-light); font-weight: 600; }
.support-desc a:hover { color: #fff; }

.support-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.support-metrics {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.metric-val { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.metric-lbl { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ===================================================================
   CONTACT
   =================================================================== */
#contato { background: var(--dark-800); }
#contato .section-title { font-size: clamp(1.1rem, 2.1vw, 1.9rem); }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.contact-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}

.contact-item {
  display: flex; gap: 16px; margin-bottom: 28px;
}
.contact-item-icon {
  width: 46px; height: 46px;
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-item-lbl  { font-size: .76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.contact-item-val  { font-weight: 600; font-size: .9rem; }
.contact-item-val a:hover { color: var(--primary); }

.social-row { display: flex; gap: 10px; margin-top: 36px; }
.social-btn {
  width: 42px; height: 42px;
  background: var(--dark-700); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(249,115,22,.08); }
.social-btn svg { width: 17px; height: 17px; }

/* form */
.contact-form {
  background: var(--dark-700);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  max-width: 860px;
  margin: 48px auto 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: .82rem; font-weight: 500; color: var(--text-2); }
.form-input, .form-select, .form-textarea {
  background: var(--dark-800); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 14px;
  color: var(--text-1); font-family: var(--font);
  font-size: .88rem; transition: var(--t); width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  background: rgba(249,115,22,.04);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--dark-700); }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }

.form-msg-ok {
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  color: #4ADE80; padding: 14px; border-radius: var(--r-sm);
  font-size: .88rem; margin-bottom: 16px;
}
.form-msg-err {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  color: #F87171; padding: 14px; border-radius: var(--r-sm);
  font-size: .88rem; margin-bottom: 16px;
}

/* ===================================================================
   FOOTER
   =================================================================== */
#footer {
  background: var(--dark-900);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { height: 34px; }
.footer-logo-text { font-family: var(--font-d); font-weight: 700; font-size: .9rem; }
.footer-desc { color: var(--text-muted); font-size: .83rem; line-height: 1.7; max-width: 270px; }

.footer-col-title {
  font-weight: 600; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-2); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a,
.footer-links button {
  font: inherit;
  font-size: .83rem;
  color: var(--text-muted);
}
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: .78rem;
  color: var(--text-muted);
  cursor: pointer;
}
.footer-legal button:hover { color: var(--primary); }

/* ===================================================================
   LEGAL MODALS
   =================================================================== */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 20, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.legal-modal-overlay.open { display: flex; }

.legal-modal {
  position: relative;
  width: min(900px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  background: var(--dark-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 28px 90px rgba(0,0,0,.55), var(--shadow-o);
}

.legal-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 16px 16px 0 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(15, 23, 42, .92);
  color: var(--text-1);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--t);
}
.legal-modal-close:hover {
  border-color: rgba(249,115,22,.45);
  color: var(--primary);
  transform: rotate(90deg);
}

.legal-modal-content {
  padding: 48px;
  color: var(--text-2);
}
.legal-modal-content h2 {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--text-1);
  margin: 12px 0 8px;
}
.legal-updated {
  color: var(--text-muted);
  font-size: .84rem;
  margin-bottom: 32px;
}
.legal-modal-content h3 {
  color: var(--text-1);
  font-size: 1rem;
  margin: 26px 0 10px;
}
.legal-modal-content p,
.legal-modal-content li {
  font-size: .92rem;
  line-height: 1.75;
}
.legal-modal-content p { margin-bottom: 14px; }
.legal-modal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px 18px;
}
.legal-modal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================================
   ADMIN LOGIN MODAL
   =================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 20, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.admin-login-overlay.open { display: flex; }

.admin-login-modal {
  position: relative;
  width: min(440px, 100%);
  background: var(--dark-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 28px 90px rgba(0,0,0,.55), var(--shadow-o);
}

.admin-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(15, 23, 42, .92);
  color: var(--text-1);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--t);
}
.admin-login-close:hover {
  border-color: rgba(249,115,22,.45);
  color: var(--primary);
  transform: rotate(90deg);
}

.admin-login-content {
  padding: 42px;
}
.admin-login-content h2 {
  font-family: var(--font-d);
  font-size: 2rem;
  line-height: 1.1;
  margin: 10px 0 10px;
}
.admin-login-content p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}
.admin-login-form label {
  color: var(--text-2);
  font-size: .84rem;
  font-weight: 600;
}
.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  color: var(--text-1);
  font: inherit;
  outline: none;
  transition: var(--t);
}
.admin-login-form input:focus {
  border-color: rgba(249,115,22,.55);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.admin-login-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 8px;
  color: var(--text-muted);
}
.admin-login-remember input { accent-color: var(--primary); }
.admin-login-submit {
  justify-content: center;
  width: 100%;
}
.admin-login-msg {
  margin-top: 16px;
}

/* ===================================================================
   COOKIE CONSENT
   =================================================================== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  display: none;
  padding: 18px;
  pointer-events: none;
}
.cookie-consent.show { display: block; }

.cookie-consent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(249,115,22,.28);
  border-radius: var(--r-lg);
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 24px 70px rgba(0,0,0,.48), var(--shadow-o);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.cookie-consent-copy {
  max-width: 730px;
}
.cookie-consent-title {
  color: var(--text-1);
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-consent-copy p:not(.cookie-consent-title) {
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.65;
}

.cookie-policy-link {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-light);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-policy-link:hover { color: #fff; }

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-consent-actions .btn {
  min-width: 112px;
  justify-content: center;
}

/* ===================================================================
   BACK-TO-TOP
   =================================================================== */
.back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--grad); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-o); transition: var(--t);
  opacity: 0; pointer-events: none; z-index: 990;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(249,115,22,.5); }
.back-top svg { width: 18px; height: 18px; color: #fff; }

/* ===================================================================
   ANIMATIONS
   =================================================================== */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; text-align: center; }
  .hero-visual    { display: none; }
  .hero-actions   { justify-content: center; }
  .hero-stats     { justify-content: center; }
  .hero-desc      { margin-left: auto; margin-right: auto; }
  .about-grid       { grid-template-columns: 1fr; }
  .about-formations { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 360px; margin: 0 auto 48px; }
  .about-exp-badge  { right: 0; }
  .contact-grid      { grid-template-columns: 1fr; gap: 48px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .services-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .about-cards   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-modal-overlay { padding: 14px; }
  .legal-modal-content { padding: 38px 22px 28px; }
  .admin-login-overlay { padding: 14px; }
  .admin-login-content { padding: 38px 22px 28px; }
  .cookie-consent { padding: 12px; }
  .cookie-consent-card { flex-direction: column; align-items: stretch; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .btn { flex: 1; }
  .support-box   { padding: 40px 24px; }
  .clients-grid  { grid-template-columns: repeat(2,1fr); }
  .clients-grid .client-card:nth-child(5):last-child,
  .clients-grid .client-card:nth-child(5):nth-last-child(2),
  .clients-grid .client-card:nth-child(6):last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: center; }
  .hero-stats    { flex-wrap: wrap; gap: 24px; }
  .btn-lg        { width: 100%; justify-content: center; }
  .support-actions { flex-direction: column; align-items: center; }
  .support-metrics { gap: 28px; }
  .clients-grid  { grid-template-columns: 1fr; }
}

/* ================================================================
   PÁGINAS LEGAIS (Política de Privacidade / Termos de Uso)
   ================================================================ */
.legal-content { color: var(--text-2); line-height: 1.8; }
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-1);
  margin: 36px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p  { margin-bottom: 14px; }
.legal-content ul { padding-left: 24px; margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content a  { color: var(--primary); text-decoration: underline; }
.legal-content a:hover { color: var(--primary-dark); }
