/* ============================================================
   SEOExpertly Child Theme — custom.css
   All v1.2 styles. Loaded via functions.php enqueue.
   ============================================================ */

:root {
  --royal:   #102a63;
  --royal-2: #1d4ed8;
  --gold:    #d99a18;
  --gold-2:  #ffcf5a;
  --green:   #10b981;
  --orange:  #f97316;
  --muted:   #667085;
  --ink:     #111827;
  --line:    rgba(17, 24, 39, 0.11);
  --shadow:  0 24px 70px rgba(16, 42, 99, 0.16);
}

/* ── RESET ASTRA DEFAULTS ──────────────────────────── */
.elementor-page .site-content-layout { padding: 0 !important; }
.ast-container { max-width: 100% !important; padding: 0 !important; }

/* ── FIX ELEMENTOR SECTION PADDING ─────────────────── */
.elementor-section.elementor-top-section { padding-left: 0 !important; padding-right: 0 !important; }
.elementor-section .elementor-container { max-width: 100% !important; }
.elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0 !important; }
.elementor-widget-html { width: 100%; }

/* ── FIX PAGE CONTENT WRAPPER ───────────────────────── */
.elementor-page .elementor { padding: 0 !important; }
#content, .site-content, .ast-container, .entry-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
.entry-content > .elementor { margin: 0 !important; }
body.seoexpertly-home { background:
  radial-gradient(circle at top left, rgba(255,207,90,0.42), transparent 34rem),
  radial-gradient(circle at 92% 8%, rgba(29,78,216,0.14), transparent 32rem),
  linear-gradient(180deg, #fffdf7 0%, #fff8eb 46%, #fff 100%);
}

/* ── GLOBAL TYPOGRAPHY ──────────────────────────────── */
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #111827; }
a { text-decoration: none; color: inherit; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; color: var(--royal); letter-spacing: -0.05em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: 0.92; margin-bottom: 22px; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1; margin-bottom: 16px; }
h3 { color: var(--royal); font-size: 1.22rem; letter-spacing: -0.03em; margin-bottom: 10px; }
p  { color: var(--muted); line-height: 1.74; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* ── CONTAINER ─────────────────────────────────────── */
.seo-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff9f1c 0%, #d99a18 45%, #102a63 100%);
  box-shadow: 0 18px 38px rgba(217,154,24,0.36);
}
.btn-secondary {
  color: var(--royal);
  background: #fff;
  border: 1.5px solid rgba(16,42,99,0.18);
  box-shadow: 0 10px 24px rgba(16,42,99,0.09);
}
.btn-dark  { color: #fff; background: var(--royal); }
.btn-green {
  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 14px 32px rgba(5,150,105,0.32);
}
.btn-green:hover { box-shadow: 0 20px 44px rgba(5,150,105,0.46); }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ── SALES MARQUEE BAR ──────────────────────────────── */
.sales-bar {
  overflow: hidden;
  background: linear-gradient(90deg, #102a63, #1d4ed8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 20;
}
.sales-bar-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  padding: 13px 0;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.88);
}
.sales-bar-hot { color: var(--gold-2); font-size: 0.85rem; }
.sales-bar-sep { color: rgba(255,255,255,0.3); font-size: 1rem; }

/* ── HERO ───────────────────────────────────────────── */
.seo-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
}
.seo-hero-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.4;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.seo-hero-orb-one { top: 50px; left: -150px; background: rgba(255,207,90,0.65); }
.seo-hero-orb-two { right: -120px; bottom: 30px; background: rgba(29,78,216,0.18); animation-delay: 1.5s; }

.seo-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 22px;
}
.hero-actions.center { justify-content: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span {
  padding: 9px 13px;
  color: #344054;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 800;
}

/* ── HERO DASHBOARD CARD ────────────────────────────── */
.hero-dash {
  background: #fff;
  border: 1px solid rgba(16,42,99,0.13);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(16,42,99,0.18);
  padding: 24px;
  transform: rotate(1.2deg);
}
.hdash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.hdash-logo {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: #201400;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 12px;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hdash-title { font-weight: 900; font-size: 0.94rem; color: var(--royal); letter-spacing: -0.02em; }
.hdash-sub   { font-size: 0.76rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.hdash-live {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: #f0fdf4;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 900; color: #047857; letter-spacing: 0.08em;
}
.hdash-dot {
  width: 7px; height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
.hdash-hero-stat {
  text-align: center;
  padding: 18px 0 14px;
  background: linear-gradient(135deg, #fffbeb, #fff7db);
  border: 1px solid rgba(217,154,24,0.22);
  border-radius: 18px;
  margin-bottom: 18px;
}
.hdash-big {
  font-size: 3.6rem; font-weight: 900; color: var(--royal);
  letter-spacing: -0.08em; line-height: 1;
  font-family: "Playfair Display", Georgia, serif;
}
.hdash-pct { font-size: 2rem; font-weight: 900; color: var(--green); vertical-align: super; }
.hdash-label {
  font-size: 0.78rem; font-weight: 800; color: var(--muted);
  margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase;
}
.hdash-bars { display: grid; gap: 10px; margin-bottom: 18px; }
.hdash-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.hdash-bar-row span   { color: var(--muted); font-weight: 700; min-width: 100px; }
.hdash-bar-row strong { color: var(--royal); font-weight: 900; min-width: 32px; text-align: right; }
.hdash-bar { flex: 1; height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.hdash-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), #86efac);
  border-radius: 999px;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.hf-gold  { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.hf-royal { background: linear-gradient(90deg, var(--royal-2), #60a5fa); }
.hdash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hdash-kpi {
  padding: 12px 8px; text-align: center;
  background: #f8fbff; border: 1px solid var(--line); border-radius: 14px;
}
.hdash-kpi strong { display: block; font-size: 1.3rem; font-weight: 900; color: var(--royal); letter-spacing: -0.04em; }
.hdash-kpi span   { font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.hdash-kpi-green  { background: #f0fdf4; border-color: rgba(16,185,129,0.25); }
.hdash-kpi-green strong { color: #047857; }

/* ── SECTION HEADING ────────────────────────────────── */
.section-heading { max-width: 820px; margin: 0 auto 46px; text-align: center; }

/* ── TRIAL PACKAGE BANNER ───────────────────────────── */
.trial-pkg-banner {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px; padding: 20px 28px;
  background: linear-gradient(135deg, #022c22, #065f46);
  border: 1.5px solid rgba(16,185,129,0.5);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(16,185,129,0.22);
}
.trial-pkg-badge {
  flex-shrink: 0; padding: 10px 16px;
  color: #022c22;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  border-radius: 12px; font-size: 0.82rem; font-weight: 900;
  letter-spacing: 0.06em; white-space: nowrap;
}
.trial-pkg-copy { flex: 1; display: grid; gap: 4px; }
.trial-pkg-copy strong { display: block; color: #fff; font-size: 0.97rem; }
.trial-pkg-copy span   { color: rgba(255,255,255,0.72); font-size: 0.88rem; font-weight: 600; }

/* ── PACKAGES SECTION ───────────────────────────────── */
.seo-packages-section {
  padding: 80px 0 92px;
  background: linear-gradient(180deg, #fff, #fff7e8 60%, #fff);
}
.package-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.package-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1.5px solid rgba(16,42,99,0.12);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.package-card:hover { transform: translateY(-10px); box-shadow: 0 36px 90px rgba(16,42,99,0.22); }

/* inline badge (non-blocking) */
.pkg-inline-badge {
  display: inline-flex; align-items: center;
  margin-bottom: 14px; padding: 6px 14px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 900;
  letter-spacing: 0.05em; white-space: nowrap;
}
.pkg-badge-green { background: linear-gradient(90deg,#d1fae5,#a7f3d0); color:#065f46; border:1px solid rgba(16,185,129,0.3); }
.pkg-badge-blue  { background: linear-gradient(90deg,#dbeafe,#bfdbfe); color:#1e40af; border:1px solid rgba(29,78,216,0.2); }
.pkg-badge-gold  { background: linear-gradient(90deg,#fef3c7,#fde68a); color:#78350f; border:1px solid rgba(217,154,24,0.3); }
.pkg-badge-royal { background: linear-gradient(90deg,#e0e7ff,#c7d2fe); color:#3730a3; border:1px solid rgba(99,102,241,0.25); }

.package-top span { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.price { margin: 18px 0 20px; color: var(--royal); font-size: 2.7rem; font-weight: 900; letter-spacing: -0.06em; }
.price span { color: var(--muted); font-size: 1rem; font-weight: 700; }
.onetime-price { color: #047857 !important; }
.price-sub { margin: -12px 0 18px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.price-sub strong { color: #047857; }

/* scarcity bar */
.scarcity-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 8px 12px;
  background: #fff9f0; border: 1px solid rgba(249,115,22,0.22);
  border-radius: 10px; font-size: 0.84rem; font-weight: 700; color: #7c2d12;
}
.scarcity-dot {
  flex-shrink: 0; width: 8px; height: 8px;
  background: var(--orange); border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
.scarcity-dot-blue   { background: var(--royal-2); }
.scarcity-dot-orange { background: var(--orange); }

/* feature list */
.pkg-features { display: grid; gap: 11px; margin: 0 0 26px; padding: 0; list-style: none; flex: 1; }
.pkg-features li { color: #344054; font-size: 0.95rem; font-weight: 700; }
.pkg-features li::before { content: "✓  "; color: var(--green); font-weight: 900; }

.package-card .btn { width: 100%; }
.pkg-guarantee { margin: 12px 0 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; text-align: center; }

/* one-time card */
.package-card-onetime {
  border: 2px solid rgba(16,185,129,0.55);
  background: linear-gradient(180deg,#f0fdf9,#fff);
}
.package-card-onetime:hover { box-shadow: 0 36px 90px rgba(16,185,129,0.22); }

/* featured card */
.package-card-featured {
  border: 2px solid rgba(217,154,24,0.65) !important;
  background: linear-gradient(180deg,#fffdf5,#fff) !important;
  box-shadow: 0 28px 80px rgba(217,154,24,0.22), var(--shadow) !important;
  transform: translateY(-14px);
  position: relative;
}
.package-card-featured::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 28px;
  background: linear-gradient(135deg,rgba(255,207,90,0.4),transparent 60%);
  pointer-events: none; z-index: 0;
}
.package-card-featured > * { position: relative; z-index: 1; }
.package-card-featured:hover { transform: translateY(-22px); }

/* ── FREE TRIAL STRIP ───────────────────────────────── */
.trial-strip {
  padding: 36px 0;
  background: #f0fdf4;
  border-top: 1px solid rgba(16,185,129,0.2);
  border-bottom: 1px solid rgba(16,185,129,0.2);
}
.trial-card {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 24px 28px; background: #fff;
  border: 1.5px solid rgba(16,185,129,0.32);
  border-radius: 24px; box-shadow: 0 12px 40px rgba(16,185,129,0.1);
}
.trial-card strong { color: #047857; font-size: 1.1rem; }
.trial-card span   { color: #475467; font-size: 0.95rem; font-weight: 700; }

/* ── STATS ──────────────────────────────────────────── */
.seo-stats-section { padding: 92px 0; background: linear-gradient(135deg, var(--royal), #071733); }
.seo-stats-section .section-heading h2              { color: #fff; }
.seo-stats-section .section-heading p:not(.eyebrow) { color: rgba(255,255,255,0.72); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat-card {
  padding: 30px 24px; text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 22px;
}
.stat-card strong {
  display: block; color: var(--gold-2);
  font-size: 3rem; font-weight: 900; letter-spacing: -0.07em; line-height: 1; margin-bottom: 10px;
}
.stat-card span { color: rgba(255,255,255,0.82); font-size: 0.94rem; font-weight: 800; }

/* ── URGENCY ────────────────────────────────────────── */
.urgency-section { padding: 72px 0; background: linear-gradient(180deg,#fff7e8,#fff); }
.urgency-card {
  display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center;
  padding: 32px 36px;
  background: linear-gradient(135deg,#0d1b35,#102a63);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 28px;
  box-shadow: 0 28px 80px rgba(16,42,99,0.35);
}
.urgency-card h2 { color: #fff; margin-bottom: 10px; }
.urgency-card p  { color: rgba(255,255,255,0.75); margin: 0; }
.countdown { display: flex; gap: 12px; }
.countdown > div {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 90px; padding: 16px 12px; color: #fff;
  background: linear-gradient(180deg,#ffb12b,#f97316);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), 0 8px 24px rgba(249,115,22,0.4);
}
.countdown strong { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.countdown span   { margin-top: 5px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── HOW IT WORKS ───────────────────────────────────── */
.seo-ranking-section { padding: 92px 0; background: #fafbff; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-card {
  padding: 28px 22px; text-align: center;
  background: #fff; border: 1px solid rgba(16,42,99,0.1);
  border-radius: 22px; box-shadow: var(--shadow);
}
.step-card > span {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0 auto 18px;
  color: #fff; background: linear-gradient(135deg,var(--royal-2),var(--royal));
  border-radius: 50%; font-size: 1.1rem; font-weight: 900;
}

/* ── OBJECTIONS ─────────────────────────────────────── */
.seo-objections-section { padding: 92px 0; background: #fffbf0; }
.objection-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.objection-card {
  display: grid; gap: 10px; padding: 28px 22px;
  font-size: 1.8rem; line-height: 1; text-align: center;
  background: #fff; border: 1px solid rgba(16,42,99,0.1);
  border-radius: 22px; box-shadow: var(--shadow);
}
.objection-card strong { display: block; margin-top: 6px; color: var(--royal); font-size: 1.05rem; }
.objection-card span   { color: var(--muted); font-size: 0.92rem; font-weight: 700; line-height: 1.55; }

/* ── FAQ ────────────────────────────────────────────── */
.seo-faq-section { padding: 92px 0; background: #fff; }
.faq-list { display: grid; max-width: 880px; margin: 0 auto; gap: 14px; }
.faq-item {
  padding: 20px 24px; background: #fff;
  border: 1px solid rgba(16,42,99,0.12); border-radius: 18px;
  box-shadow: 0 4px 18px rgba(16,42,99,0.07);
}
.faq-summary {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--royal); font-size: 1rem; font-weight: 900; cursor: pointer; list-style: none;
}
.faq-summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); }
details[open] .faq-summary::after { content: "−"; }
details p { margin: 14px 0 0; }

/* ── FINAL CTA ──────────────────────────────────────── */
.seo-final-cta { padding: 90px 0; background: linear-gradient(135deg,#071733,#102a63); }
.final-card {
  max-width: 940px; margin: 0 auto; padding: 56px 52px; text-align: center;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.final-card h2 { color: #fff; }
.final-card p  { color: rgba(255,255,255,0.78); }

/* ── SCROLL REVEAL ──────────────────────────────────── */
.reveal { opacity: 1; transform: translateY(0); }
.js-ready .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.72s ease, transform 0.72s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── KEYFRAMES ──────────────────────────────────────── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink   { 0%,100% { opacity:1; } 50% { opacity:0.25; } }
@keyframes pulse   { 0%,100% { box-shadow:0 18px 38px rgba(217,154,24,0.36); } 50% { box-shadow:0 22px 52px rgba(217,154,24,0.65); transform:translateY(-2px) scale(1.02); } }
@keyframes float   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-26px); } }
@keyframes grow    { from { transform:scaleY(0.15); transform-origin:bottom; } to { transform:scaleY(1); transform-origin:bottom; } }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .package-grid-4 { grid-template-columns: repeat(2,1fr); }
  .package-card-featured { transform: none; }
}
@media (max-width: 980px) {
  .seo-hero-grid, .package-grid-4, .stats-grid, .steps-grid, .objection-grid { grid-template-columns: 1fr; }
  .urgency-card { grid-template-columns: 1fr; text-align: center; }
  .hero-dash { transform: none; }
  .package-card-featured { transform: none; }
  .trial-card, .trial-pkg-banner { flex-direction: column; text-align: center; }
  .countdown { justify-content: center; }
}
@media (max-width: 560px) {
  h1 { font-size: 2.6rem; }
  .hero-actions .btn { width: 100%; }
  .final-card { padding: 34px 20px; }
  .countdown { display: grid; grid-template-columns: repeat(3,1fr); }
  .countdown > div { min-width: 0; }
}
