/*
Theme Name: SEO for Sportsbook
Theme URI: https://seoforsportsbook.com/
Author: SEO.Casino
Description: Dark editorial WordPress theme for iGaming SEO agency. Page templates: Home + service pages.
Version: 2.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sfs
*/

:root {
  --bg:        #0C0C0C;
  --surface:   #161616;
  --surface2:  #1C1C1C;
  --border:    #2A2A2A;
  --gold:      #C9A84C;
  --gold-lt:   #E8C96A;
  --gold-dim:  #8B7230;
  --text:      #F5F5F0;
  --muted:     #888880;
  --faint:     #444440;
  --radius:    8px;
  --radius-lg: 16px;
  --max:       1240px;
  --trans:     0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  font-weight: 700;
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold { color: var(--gold); }

/* ─── LAYOUT ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--trans);
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: #0C0C0C;
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(201,168,76,0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); }

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 64px; }
.section-header .label { margin-bottom: 16px; display: block; }
.section-header h2 { font-size: clamp(32px, 4vw, 52px); }
.section-header p { color: var(--muted); max-width: 560px; margin-top: 16px; font-size: 17px; }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 24px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(12,12,12,0.95);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.logo-text span { color: var(--gold); display: block; font-size: 11px; letter-spacing: 0.12em; font-family: 'Outfit', sans-serif; font-weight: 500; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.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(--text);
  transition: 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 menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(12,12,12,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 899;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 90% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

/* Decorative grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

#hero h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 900;
  line-height: 1.04;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.15s ease both;
}
#hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

#hero p {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.45s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.6s ease both;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 13px; color: var(--muted); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── TRUST BAR ─── */
#trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

.trust-label {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 40px;
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.06em;
  transition: color var(--trans);
  white-space: nowrap;
}
.trust-logo:hover { color: var(--muted); }

/* ─── STATS ─── */
#stats { padding: 100px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  background: var(--surface);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.stat-card:hover::before { opacity: 1; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number sup { font-size: 28px; vertical-align: super; }

.stat-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── SERVICES ─── */
#services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 40px;
  transition: background var(--trans);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.service-card:hover { background: var(--surface2); }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: gap var(--trans);
}
.service-link:hover { gap: 10px; }

/* ─── WHY US ─── */
#why {
  position: relative;
  overflow: hidden;
}
#why::before {
  content: '';
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-visual {
  position: relative;
}

.why-card-big {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.why-card-big::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201,168,76,0.3), transparent 50%, transparent);
  z-index: -1;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-bottom: 20px;
}

.bar {
  flex: 1;
  background: var(--border);
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 4px 4px 0 0;
  transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--faint);
}

.why-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: #0C0C0C;
  border-radius: 50%;
  width: 88px; height: 88px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1;
}
.why-badge strong { font-size: 28px; }
.why-badge span { font-size: 9px; font-family: 'Outfit', sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 28px; }

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--gold);
  font-weight: 700;
}

.why-item h4 { font-size: 16px; margin-bottom: 4px; }
.why-item p { font-size: 14px; color: var(--muted); }

/* ─── CASE STUDIES ─── */
#cases { background: var(--surface); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color var(--trans), transform var(--trans);
}
.case-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.case-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  width: fit-content;
}

.case-card h3 {
  font-size: 20px;
  line-height: 1.3;
}

.case-metrics {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.case-metric strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 2px;
}
.case-metric span { font-size: 12px; color: var(--muted); }

/* ─── QUICK NAV ─── */
#quicknav {}

.quicknav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.qnav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--trans), background var(--trans);
  cursor: pointer;
}
.qnav-card:hover {
  border-color: var(--gold-dim);
  background: var(--surface2);
}

.qnav-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.qnav-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.qnav-card h4 { font-size: 15px; font-family: 'Playfair Display', serif; }
.qnav-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--surface); overflow: hidden; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 20px; right: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: var(--border);
  line-height: 1;
}

.stars {
  display: flex;
  gap: 3px;
}
.stars svg { width: 14px; height: 14px; fill: var(--gold); }

.testi-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #0C0C0C;
  flex-shrink: 0;
  overflow: hidden;
}
.testi-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.3) saturate(1.2) brightness(0.9);
}

.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--muted); }

/* ─── FAQ ─── */
#faq {}

.faq-list { max-width: 800px; display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 8px; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-q span {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), transform var(--trans);
}
.faq-icon svg { width: 12px; height: 12px; stroke: var(--muted); fill: none; stroke-width: 2; transition: stroke var(--trans); }

.faq-item.open .faq-icon { background: var(--gold); transform: rotate(45deg); }
.faq-item.open .faq-icon svg { stroke: #0C0C0C; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-a-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 1400px; }

/* ─── CTA ─── */
#cta {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% 100%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
}
.cta-inner p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 48px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  padding: 13px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--trans);
}
.cta-input:focus { border-color: var(--gold-dim); }
.cta-input::placeholder { color: var(--faint); }

/* ─── FOOTER ─── */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col { justify-self: end; min-width: 200px; }

.footer-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 13px; color: var(--faint); }

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr auto; gap: 40px; }
  .why-grid { gap: 48px; }
  .quicknav-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .cases-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .cta-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-col { justify-self: start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 40px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quicknav-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   NAV DROPDOWN (services submenu)
   ══════════════════════════════════════════════════════════ */
.nav-links > li {
  display: flex;
  align-items: center;
  height: 72px;
  position: relative;
}

.nav-links .has-sub > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--trans);
}
.nav-links .has-sub:hover > a::after { transform: translateY(0) rotate(225deg); }

.nav-sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 268px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
}
.nav-links .has-sub:hover .nav-sub,
.nav-links .has-sub:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub li { display: block; height: auto; }
.nav-sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  transition: background var(--trans), color var(--trans);
}
.nav-sub a:hover { background: var(--surface2); color: var(--gold); }

.mobile-menu .mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}
.mobile-menu .mobile-sub a { font-size: 14px; color: var(--faint); }
.mobile-menu .mobile-sub a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   WHY-BLOCK CHART IMAGE (home)
   ══════════════════════════════════════════════════════════ */
.chart-area {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  margin-bottom: 16px;
}
.growth-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

/* ══════════════════════════════════════════════════════════
   INNER PAGE HERO
   ══════════════════════════════════════════════════════════ */
#page-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 90px;
}

#page-hero .hero-bg,
#page-hero .hero-grid { position: absolute; inset: 0; }

/* Сетка hero ГЛАВНОЙ: текст слева, картинка справа */
.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.home-hero-grid .hero-content { max-width: none; }
.home-hero-grid #hero h1,
#hero .home-hero-grid h1 { font-size: clamp(40px, 4.6vw, 68px); }
.home-hero-grid .hero-content p { max-width: 520px; }
.home-hero-grid .hero-stats { margin-top: 56px; padding-top: 36px; }

/* Сетка hero: текст слева, картинка справа */
.page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

/* ── Картинка в блоке H1 ── */
.page-hero-media {
  position: relative;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* Золотая рамка со смещением */
.page-hero-media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  opacity: 0.5;
  pointer-events: none;
}

/* Мягкое свечение под картинкой */
.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 12%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.18) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.page-hero-media img,
.page-hero-media .hero-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color var(--trans); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span.sep { color: var(--faint); }

#page-hero h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

#page-hero .lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  font-weight: 300;
  max-width: 760px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.25s ease both;
}
#page-hero .lead:last-of-type { margin-bottom: 40px; }

#page-hero .hero-actions { animation: fadeUp 0.6s 0.4s ease both; }

/* ══════════════════════════════════════════════════════════
   GENERIC CONTENT SECTIONS
   ══════════════════════════════════════════════════════════ */
.sec-alt { background: var(--surface); }

.sec-intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 48px;
}
.sec-intro + .sec-intro { margin-top: -28px; }

/* ── Card grid ── */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--trans), transform var(--trans), background var(--trans);
}
.sec-alt .info-card { background: var(--bg); }
section:not(.sec-alt) .info-card { background: var(--surface); }

.info-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.info-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
.info-card:hover::after { opacity: 1; }

.info-card .info-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.info-card .info-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.info-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.info-card p + p { margin-top: 12px; }

/* ── Process steps ── */
.process-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 36px 40px;
  align-items: stretch;
  transition: background var(--trans);
}
.sec-alt .process-step { background: var(--bg); }
section:not(.sec-alt) .process-step { background: var(--surface); }
.process-step:hover { background: var(--surface2); }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 4px;
  border-right: 1px solid var(--border);
  height: 100%;
}

.step-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  margin-bottom: 10px;
}
.step-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ── Highlight strip ── */
.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
.highlight-item {
  background: var(--surface);
  padding: 36px 32px;
}
.sec-alt .highlight-item { background: var(--bg); }
.highlight-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.highlight-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── FAQ on inner pages ── */
#faq .faq-list { max-width: 900px; }
.faq-item.open .faq-a { max-height: 1400px; }

/* Широкие вводные абзацы на внутренних страницах */
.section-header p.sec-intro-p { max-width: 820px; }
.section-header p.sec-intro-p + p.sec-intro-p { margin-top: 14px; }

/* ── Default WP page content (page.php) ── */
.entry-content {
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--text); margin: 40px 0 16px; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 22px; }
.entry-content p { margin-bottom: 18px; }
.entry-content a { color: var(--gold); }
.entry-content ul,
.entry-content ol { margin: 0 0 18px 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 2px solid var(--gold-dim);
  padding-left: 20px;
  font-style: italic;
  margin: 24px 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE - new blocks
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .highlight-strip { grid-template-columns: repeat(3, 1fr); }
  #page-hero { padding: 140px 0 72px; }
  .page-hero-grid,
  .home-hero-grid { grid-template-columns: 1fr 0.8fr; gap: 40px; }
  .page-hero-media::before { inset: 12px -12px -12px 12px; }
}

@media (max-width: 768px) {
  .nav-sub { display: none; }
  .card-grid.cols-2,
  .card-grid.cols-3,
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .highlight-strip { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 1fr; gap: 14px; padding: 28px 24px; }
  .step-num { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; height: auto; }
  #page-hero { padding: 120px 0 60px; }
  .info-card { padding: 28px; }
  /* На мобильных картинка уходит под текст */
  .page-hero-grid,
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero-media { max-width: 420px; margin: 0 auto; }
  .page-hero-media::before { inset: 10px -10px -10px 10px; }
}

/* Узкие экраны: кнопка "Book a Call" из шапки уезжала на логотип -
   на мобильных её заменяет кнопка внутри бургер-меню */
@media (max-width: 640px) {
  .nav-actions .btn-gold { display: none; }
  .logo-text { font-size: 15px; }
}

@media (max-width: 480px) {
  .info-card { padding: 24px; }
  .entry-content h2 { font-size: 26px; }
  #page-hero h1 { font-size: 34px; }
}
