/*
Theme Name:  Decisão Certa
Theme URI:   https://decisaocerta.pt
Author:      WEBMINT
Author URI:  https://www.webmint.pt
Description: Tema para Decisão Certa — Intermediário de Crédito.
Version:     3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decisao-certa
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:    #D72323;
  --red-dk: #b01c1c;
  --gray:   #58595B;
  --gray-lt:#f5f5f5;
  --white:  #ffffff;
  --dark:   #1a1a1a;
  --radius: 12px;
  --shadow: 0 4px 32px rgba(0,0,0,.08);
  --trans:  .35s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.container { width: 92%; max-width: 1160px; margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 50px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(215,35,35,.35); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.phone-legal-wrap {
  margin-top: .55rem;
  text-align: center;
}
.phone-legal-note {
  display: inline-block;
  font-size: .50rem;
  line-height: 1.35;
  color: rgba(26,26,26,.62);
}
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--dark); line-height: 1.2;
}
.section-title span { color: var(--red); }
.section-sub { color: var(--gray); font-size: 1.05rem; margin-top: .75rem; max-width: 540px; }

/* ── Fade-in animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--trans);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo a,
.nav-logo .custom-logo-link { display: flex; align-items: center; }
.nav-logo img,
.nav-logo .custom-logo { height: 44px !important; width: auto !important; max-width: 200px; object-fit: contain; }
.nav-logo svg { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--gray);
  transition: color var(--trans); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width var(--trans);
}
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  margin-left: 1rem;
  min-width: 180px;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--white); padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .85rem 1.5rem; font-weight: 500; color: var(--gray);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: color var(--trans), background var(--trans);
}
.btn btn-primary { color: var(--white);}
.mobile-menu a:hover { color: var(--red); background: var(--gray-lt); }
.mobile-menu .btn { margin: 1rem 1.5rem 0; }

/* Admin bar offset */
.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #navbar { top: 46px; }
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  background-color: #1b1718;
  background-image:
    radial-gradient(1200px 500px at 16% -8%, rgba(255,255,255,.14) 0%, rgba(0,0,0,.58) 48%),
    radial-gradient(980px 420px at 88% 0%, rgba(199,0,0,.18) 0%, rgba(199,0,0,0) 64%),
    linear-gradient(169deg, rgba(30,30,34,.82) 0%, rgba(96,34,34,.84) 60%, rgba(153,0,0,.9) 100%);
  padding: 120px 0 80px;
}
/* Subtle animated background blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-1 { width: 500px; height: 500px; background: var(--red); top: -100px; right: -100px; animation-delay: 0s; }
.hero-blob-2 { width: 350px; height: 350px; background: #ff6b6b; bottom: -80px; left: 10%; animation-delay: 3s; }
@keyframes blobFloat {
  0%, 100% { transform: scale(1) translate(0,0); }
  50%       { transform: scale(1.08) translate(20px, -20px); }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}
.hero-content-main { grid-column: 1; }
.hero-card { grid-column: 2; }
.hero-after-form { grid-column: 1; align-self: start; }
.hero-follow-mobile { display: none; }
.hero-follow-desktop { display: block; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(215,35,35,.15); border: 1px solid rgba(215,35,35,.3);
  color: #ff8080; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 1.25rem;
}
.hero-title .highlight {
  color: var(--red);
  text-decoration: underline; text-decoration-color: rgba(215,35,35,.4);
  text-underline-offset: 6px;
}
.hero-desc { color: rgba(255,255,255,.65); font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--white); }
.stat-lbl { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }

/* Lead form card */
.hero-card {
  background: var(--white); border-radius: 20px;
  padding: 2.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.card-title { font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.card-sub { color: var(--gray); font-size: .9rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--gray); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em;
}
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%; padding: .82rem 1rem;
  border: 2px solid #e8e8e8; border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; color: var(--dark);
  background: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none; appearance: none;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215,35,35,.12);
}
.form-group input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}
.form-group input.error,
.form-group select.error { border-color: #e53e3e; }
.form-consent,
.form-gdpr {
  margin-top: .35rem;
}
.dc-checkbox-label,
.form-gdpr {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--gray);
}
.dc-checkbox-label a,
.form-gdpr a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dc-checkbox-label input[type="checkbox"],
.form-gdpr input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: .08rem 0 0;
  padding: 0;
  border: 1.5px solid #cfcfcf;
  border-radius: 5px;
  box-shadow: none;
  accent-color: var(--red);
  appearance: auto;
  cursor: pointer;
}
.dc-checkbox-label input[type="checkbox"]:focus-visible,
.form-gdpr input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(215,35,35,.16);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-cta { width: 100%; margin-top: .5rem; justify-content: center; font-size: 1rem; padding: 1rem; }
.form-disclaimer { font-size: .72rem; color: #aaa; text-align: center; margin-top: .75rem; }
.form-disclaimer a { color: var(--red); }
.form-message {
  padding: .75rem 1rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; margin-top: 1rem; display: none;
}
.form-message.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; display: block; }
.form-message.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; display: block; }
.field-error { font-size: .75rem; color: #e53e3e; margin-top: .25rem; display: block; }
.dc-form-complete {
  background: #f7fdf9;
  border: 1px solid #c6f1d6;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(22, 163, 74, .08);
}
.dc-form-complete-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto .9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9fbe8;
  color: #16a34a;
  border: 2px solid #8de0aa;
}
.dc-form-complete-title {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #14532d;
}
.dc-form-complete-message {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #166534;
}

/* ══════════════════════════════
   TRUST BAR
══════════════════════════════ */
#trust {
  background: var(--gray-lt);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 500; color: var(--gray);
}
.trust-item svg { color: var(--red); flex-shrink: 0; }
.trust-mobile-loop { display: none; }

.bank-logos-loop {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}

.bank-logos-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  padding: .9rem 0;
  animation: dcBankLogosScroll 28s linear infinite;
}

.bank-logo-item {
  flex: 0 0 auto;
  width: 120px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Reverter para cinzento (se necessário): filter: grayscale(100%); */
  opacity: .8;
  transition: opacity var(--trans);
}

.bank-logo-item img:hover {
  /* Reverter para hover colorido (se necessário): filter: grayscale(0%); */
  opacity: 1;
}

@keyframes dcBankLogosScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
#services { padding: 100px 0; }
.services-head { text-align: center; margin-bottom: 4rem; }
.services-head .section-sub { margin: .75rem auto 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.services-grid-balanced {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}
.services-grid-balanced .service-card {
  flex: 0 1 calc((100% - (var(--dc-services-cols, 3) - 1) * 1.75rem) / var(--dc-services-cols, 3));
  max-width: calc((100% - (var(--dc-services-cols, 3) - 1) * 1.75rem) / var(--dc-services-cols, 3));
}
.service-card {
  background: var(--white); border-radius: 18px;
  border: 1.5px solid #ebebeb;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: pointer;
}
.service-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.service-card > *:not(.service-card-link-overlay) {
  position: relative;
  z-index: 2;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(215,35,35,.12);
  border-color: var(--red);
}
.service-icon {
  width: 64px;
  height: 64px;
  contain-intrinsic-block-size: auto 100px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background var(--trans);
}
.service-card:hover .service-icon { background: transparent; }
.service-icon svg { width: 64px; height: 64px; stroke: var(--red); }
.service-icon img { width: 64px; height: 64px; object-fit: contain; }
.service-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.service-desc { font-size: .9rem; color: var(--gray); line-height: 1.6; }
.service-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600; color: var(--red);
  margin-top: 1rem;
  transition: gap var(--trans);
}
.service-card:hover .service-link { gap: .65rem; }

/* ══════════════════════════════
   HOW IT WORKS
══════════════════════════════ */
#how {
  background: #fafafa; padding: 100px 0;
  position: relative; overflow: hidden;
}
#how::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(215,35,35,.04) 0%, transparent 70%);
  pointer-events: none;
}
.how-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }
.steps {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
  padding-left: .5rem;
}
.steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(215,35,35,.2), rgba(215,35,35,.06));
}
.step {
  display: flex;
  gap: 1rem;
  padding: 1rem 1rem 1rem 0;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; color: var(--red);
  border: 2px solid rgba(215,35,35,.35);
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(215,35,35,.1);
  position: relative;
  z-index: 1;
}
.step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step-body p { font-size: .9rem; color: var(--gray); }
.step:focus-within {
  background: rgba(215,35,35,.04);
  border-color: rgba(215,35,35,.2);
  transform: translateX(2px);
}
.step.is-active {
  background: transparent;
  border-color: transparent;
  transform: none;
}
.step:focus-within .step-num,
.step.is-active .step-num {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 8px 18px rgba(215,35,35,.28);
}
.step:focus-within .step-body h4,
.step.is-active .step-body h4 { color: var(--red); }

.how-proof {
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-proof-card {
  width: min(420px, 100%);
  background: linear-gradient(165deg, #fff 0%, #fff 70%, rgba(215,35,35,.04) 100%);
  border: 1px solid rgba(215,35,35,.16);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 22px 56px rgba(0,0,0,.08);
  position: relative;
}
.how-proof-item {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.how-proof-item:last-of-type { border-bottom: none; }
.how-proof-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.how-proof-label {
  margin-top: .25rem;
  font-size: .85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.how-proof-check {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  border: 2px solid rgba(215,35,35,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(215,35,35,.2);
}
.how-proof-check svg { width: 24px; height: 24px; }

@keyframes spinSlow { to { transform: rotate(360deg); } }
.how-visual-inner {
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  animation: spinSlow 20s linear infinite reverse;
}
.how-visual-inner svg { width: 80px; height: 80px; stroke: var(--red); }
.how-visual.has-image .how-visual-bg,
.how-visual.has-image .how-visual-inner {
  animation: none;
}

/* ══════════════════════════════
   LEAD SECTION (FULL WIDTH)
══════════════════════════════ */
section#lead,
section#lp-lead {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dk) 100%);
  padding: 100px 0; position: relative; overflow: hidden;
}
section#lead::before,
section#lp-lead::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; }
.lead-content .section-label { color: rgba(255,255,255,.7); }
.lead-content .section-title { color: var(--white); }
.lead-content .section-sub { color: rgba(255,255,255,.75); }
.lead-perks { margin-top: 2rem; display: flex; flex-direction: column; gap: .85rem; }
.perk {
  display: flex; align-items: center; gap: .75rem;
  font-size: .95rem; color: rgba(255,255,255,.9);
}
.perk-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.perk-dot::after {
  content: '✓'; font-size: .7rem; font-weight: 700; color: var(--white);
}
.lead-form {
  background: var(--white); border-radius: 20px;
  padding: 2.5rem; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
#stats-bar {
  background: var(--dark); padding: 60px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stats-item-num {
  font-size: 2.5rem; font-weight: 800; color: var(--white);
  line-height: 1;
}
.stats-item-lbl {
  font-size: .85rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .06em; margin-top: .5rem;
}

/* ══════════════════════════════
   TESTIMONIALS
══════════════════════════════ */
#testimonials { padding: 100px 0; background: #fafafa;}
.testimonials-head { text-align: center; margin-bottom: 4rem; }
.testimonials-head .section-sub { margin: .75rem auto 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.testi-card {
  background: var(--white); border-radius: 18px;
  border: 1.5px solid #ebebeb; padding: 2rem;
  transition: transform var(--trans), box-shadow var(--trans);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.star { color: #f5a623; font-size: 1rem; }
.testi-text { font-size: .95rem; color: var(--gray); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dk));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: .95rem;
}
.author-name { font-weight: 700; font-size: .9rem; }
.author-meta { font-size: .78rem; color: #aaa; }

/* ══════════════════════════════
   BLOG / POSTS PREVIEW
══════════════════════════════ */
#blog { background: var(--gray-lt); padding: 100px 0; }
.blog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.post-card {
  background: var(--white); border-radius: 18px; overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.post-thumb {
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  position: relative; overflow: hidden;
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.post-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
}
.post-thumb-1 { background: linear-gradient(135deg, #1a1a1a 0%, var(--red-dk) 100%); }
.post-thumb-2 { background: linear-gradient(135deg, #2d2d2d 0%, #444 100%); }
.post-thumb-3 { background: linear-gradient(135deg, var(--red-dk) 0%, #2d2d2d 100%); }
.post-cat {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  background: var(--red); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .75rem; border-radius: 50px;
}
.post-body { padding: 1.5rem; }
.post-meta { font-size: .78rem; color: #aaa; margin-bottom: .6rem; }
.post-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.4; }
.post-title a:hover { color: var(--red); }
.post-excerpt { font-size: .88rem; color: var(--gray); line-height: 1.6; }
.post-read { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--red); margin-top: .75rem; }

/* ══════════════════════════════
   FAQ
══════════════════════════════ */
#faq { padding: 100px 0;
 }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1.5px solid #ebebeb; border-radius: 14px; overflow: hidden;
  transition: border-color var(--trans);
}
.faq-item.active { border-color: var(--red); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; cursor: pointer;
  font-weight: 600; font-size: .95rem;
  transition: color var(--trans);
}
.faq-item.active .faq-q { color: var(--red); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gray-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem; line-height: 1;
  transition: transform var(--trans), background var(--trans);
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: rgba(215,35,35,.1); color: var(--red); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  font-size: .9rem; color: var(--gray); line-height: 1.7;
  padding: 0 1.5rem;
}
.faq-item.active .faq-a { max-height: 200px; padding: 0 1.5rem 1.25rem; }

/* ══════════════════════════════
   CTA BANNER
══════════════════════════════ */
#cta-banner {
  background: var(--dark); padding: 80px 0;
  text-align: center; position: relative; overflow: hidden;
}
#cta-banner::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(215,35,35,.08); filter: blur(60px);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.cta-sub { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
#cta-banner .phone-legal-note { color: rgba(255,255,255,.62); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#footer { background: #111; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { height: 60px; margin-bottom: 1rem; width: auto; object-fit: contain; }
.footer-logo svg { height: 60px; margin-bottom: 1rem; }
.footer-about { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.7; }
.footer-col h5 { font-size: .85rem; font-weight: 700; color: var(--white); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: .88rem; color: rgba(255,255,255,.45); margin-bottom: .6rem; transition: color var(--trans); }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-bottom .phone-legal-note { color: rgba(255,255,255,.46); font-size: .65rem; }
.footer-social { display: flex; gap: .75rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: background var(--trans), color var(--trans);
}
.social-btn:hover { background: var(--red); color: var(--white); }

/* ══════════════════════════════
   STICKY CTA BAR (mobile)
══════════════════════════════ */
#sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); padding: 1rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  z-index: 998; gap: .75rem;
}
#sticky-cta .btn { flex: 1; justify-content: center; font-size: .88rem; padding: .85rem 1rem; }
body.dc-form-focusing #sticky-cta { display: none !important; }

#floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  z-index: 999;
  transition: transform var(--trans), box-shadow var(--trans), filter var(--trans);
}
#floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
  filter: brightness(.98);
}

/* ══════════════════════════════
   PAGE & SINGLE TEMPLATES
══════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
  padding: 140px 0 80px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.content-wrap { padding: 80px 0; }
.content-inner { max-width: none; width: 100%; margin: 0; }
.content-inner h2, .content-inner h3 { color: var(--dark); margin: 2rem 0 1rem; font-weight: 700; }
.content-inner p { color: var(--gray); margin-bottom: 1.25rem; line-height: 1.8; }
.content-inner ul, .content-inner ol { margin: 1rem 0 1.25rem 1.5rem; color: var(--gray); line-height: 1.8; }
.content-inner ul { list-style: disc; }
.content-inner ol { list-style: decimal; }
.content-inner img { border-radius: var(--radius); /*margin: 2rem auto;*/ box-shadow: var(--shadow); }
.content-inner .display-posts-listing img,
.content-inner .display-posts-listing .wp-post-image {
  margin: 0;
}
.content-inner blockquote {
  border-left: 4px solid var(--red); padding: 1rem 1.5rem;
  background: var(--gray-lt); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0; color: var(--gray); font-style: italic;
}

/* Post meta */
.post-meta-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #aaa; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid #ebebeb;
}
.post-meta-bar a { color: var(--red); }
.post-featured-img { border-radius: 18px; overflow: hidden; margin-bottom: 2.5rem; }
.post-featured-img img { width: 100%; height: 400px; object-fit: cover; }

/* Related posts */
.related-posts { padding: 60px 0; background: var(--gray-lt); }
.related-posts h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 2rem; }

/* Archive */
.archive-header { padding: 120px 0 60px; background: var(--gray-lt); }
.archive-header h1 { font-size: 2.5rem; font-weight: 800; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; padding: 60px 0; }

/* 404 */
.page-404 { text-align: center; padding: 160px 0 100px; }
.page-404 .error-code { font-size: 8rem; font-weight: 800; color: var(--red); line-height: 1; }
.page-404 h1 { font-size: 2rem; font-weight: 700; margin: 1rem 0; }
.page-404 p { color: var(--gray); margin-bottom: 2rem; }
.btn-404-home {
  background: #fff;
  border: 2px solid #e5e7eb;
  color: var(--dark);
}
.btn-404-home:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btn-404-sim {
  background: var(--red);
  border: 2px solid var(--red);
  color: #fff;
}
.btn-404-sim:hover {
  background: var(--red-dk);
  border-color: var(--red-dk);
  color: #fff;
}

/* Search */
.search-header { padding: 120px 0 60px; background: var(--gray-lt); }
.search-results { padding: 60px 0; }
.search-form-wrap { max-width: 600px; margin: 0 auto 3rem; }
.search-form-wrap .search-field {
  width: 100%; padding: 1rem 1.5rem; border: 2px solid #e8e8e8;
  border-radius: 50px; font-size: 1rem; outline: none;
  transition: border-color var(--trans);
}
.search-form-wrap .search-field:focus { border-color: var(--red); }
.search-form-wrap .search-submit {
  display: inline-flex; padding: 1rem 2rem; background: var(--red);
  color: var(--white); border: none; border-radius: 50px; cursor: pointer;
  font-weight: 600; margin-top: .75rem;
}

/* Sidebar */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.sidebar-widget { margin-bottom: 2rem; }
.sidebar-widget h3 {
  font-size: 1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 1rem; color: var(--dark);
  padding-bottom: .75rem; border-bottom: 2px solid var(--red);
}
.sidebar-widget ul li { padding: .5rem 0; border-bottom: 1px solid #ebebeb; }
.sidebar-widget ul li a { color: var(--gray); font-size: .9rem; transition: color var(--trans); }
.sidebar-widget ul li a:hover { color: var(--red); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(215,35,35,.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { stroke: var(--red); }
.contact-item-label { font-size: .8rem; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: .05em; }
.contact-item-value { font-size: .95rem; font-weight: 500; color: var(--dark); margin-top: .2rem; }
.map-placeholder {
  background: var(--gray-lt); border-radius: 18px;
  height: 350px; display: flex; align-items: center; justify-content: center;
  margin-top: 2rem; color: var(--gray); font-size: .9rem;
}

/* Landing page template */
.landing-page-wrap { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.landing-nav-minimal {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.landing-footer-minimal {
  background: #111; padding: 2rem;
  text-align: center; font-size: .8rem; color: rgba(255,255,255,.3);
}

/* Service detail */
.service-detail-hero {
  position: relative;
  overflow: hidden;
  background-color: #1b1718;
  background-image:
    radial-gradient(1200px 500px at 16% -8%, rgba(255,255,255,.14) 0%, rgba(0,0,0,.58) 48%),
    radial-gradient(940px 380px at 85% 6%, rgba(199,0,0,.18) 0%, rgba(199,0,0,0) 64%),
    linear-gradient(169deg, rgba(30,30,34,.82) 0%, rgba(96,34,34,.84) 60%, rgba(153,0,0,.9) 100%);
  padding: 140px 0 80px;
}
.service-detail-hero.has-bg { background: none; }
.service-detail-hero.has-bg .service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.service-detail-hero.has-bg .service-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 500px at 16% -8%, rgba(255,255,255,.14) 0%, rgba(0,0,0,.58) 48%),
    linear-gradient(169deg, rgba(30,30,34,.78) 0%, rgba(96,34,34,.82) 60%, rgba(153,0,0,.88) 100%);
}
.service-detail-hero > .container { position: relative; z-index: 1; }
.service-detail-hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.service-detail-hero .service-hero-intro > p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; }
.service-detail-hero .hero-card .form-disclaimer {
  color: #9ca3af;
  font-size: .72rem;
  max-width: none;
}
.service-hero-grid { align-items: center !important; }
.service-hero-intro {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-hero-qa { margin-top: 1rem; max-width: 640px; }
.service-hero-qa h3 {
  margin: 0 0 .55rem;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.35;
}
.service-hero-qa p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  max-width: none;
}
.service-hero-cta-desktop { display: flex; margin-top: 1.5rem; }
.service-hero-cta-mobile { display: none; }
.service-hero-after-form { grid-column: 1; margin-top: 0 !important; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: .5rem; margin-top: 3rem;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid #ebebeb; font-size: .9rem; font-weight: 500;
  transition: all var(--trans); color: var(--gray);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--red); color: var(--white); border-color: var(--red);
}

/* ── WordPress Alignment Classes ── */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide  { width: calc(100% + 4rem); margin-left: -2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: #aaa; text-align: center; margin-top: .5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.gallery-item img { border-radius: var(--radius); }

/* WordPress block styles */
.wp-block-quote {
  border-left: 4px solid var(--red); padding: 1rem 1.5rem;
  background: var(--gray-lt); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0; font-style: italic;
}
.wp-block-code {
  background: var(--dark); color: #e2e8f0;
  padding: 1.5rem; border-radius: var(--radius);
  font-size: .9rem; overflow-x: auto; margin: 1.5rem 0;
}
.wp-block-separator {
  border: none; border-top: 1px solid #ebebeb; margin: 2rem 0;
}
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-button .wp-block-button__link {
  background: var(--red); color: var(--white);
  padding: .85rem 2rem; border-radius: 50px; font-weight: 600;
  display: inline-block; transition: transform var(--trans);
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-grid, .how-grid, .lead-grid, .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
  section#lead .lead-content { display: contents; }
  section#lead .lead-content-intro { order: 1; }
  section#lead .lead-form { order: 2; }
  section#lead .lead-content-details { order: 3; }
  .hero-content-main,
  .hero-card,
  .hero-after-form,
  .service-hero-intro,
  .service-hero-after-form { grid-column: 1; }
  .hero-follow-desktop { display: none; }
  .hero-follow-mobile { display: block; }
  .service-hero-cta-desktop { display: none; }
  .service-hero-cta-mobile { display: flex; }
  .hero-card { animation: none; }
  .hero-after-form,
  .service-hero-after-form { margin-top: -1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .how-visual { display: none; }
  .how-proof { justify-content: flex-start; }
  .how-proof-card { width: 100%; }
  .with-sidebar { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-balanced .service-card {
    flex-basis: calc((100% - 1.75rem) / 2);
    max-width: calc((100% - 1.75rem) / 2);
  }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #hero { padding: 100px 0 60px; }
  .hero-grid { gap: 1rem; }
  .hero-after-form.hero-follow-mobile.reveal.visible { margin-top: 1rem; }
  .service-detail-hero {
    padding: 110px 0 56px;
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
  }
  .service-detail-hero .container { width: 100%; }
  .service-hero-intro { text-align: center; }
  .service-hero-intro p { margin: 0 auto; }
  .service-hero-qa { margin-left: auto; margin-right: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .service-hero-cta-mobile { justify-content: center; }
  .service-hero-cta-mobile .btn { width: auto; min-width: 200px; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  #sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
  .blog-head { flex-direction: column; align-items: flex-start; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
  .services-grid-balanced .service-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  .trust-inner { display: none; }
  .trust-mobile-loop {
    display: block;
    overflow: hidden;
    position: relative;
    height: 28px;
  }
  .trust-mobile-track {
    position: relative;
    width: 100%;
    height: 28px;
  }
  .trust-mobile-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    min-height: 28px;
    white-space: nowrap;
    font-size: .82rem;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
  }
  .trust-mobile-item.is-active {
    opacity: 1;
    transform: translateX(0);
  }
  .trust-mobile-item.is-exit {
    opacity: 0;
    transform: translateX(-16px);
  }
  #floating-whatsapp { bottom: 94px; }
}
