/* ============================================================
   London SEO Pro — Professional Agency
   Deep navy base · electric blue accent · Space Grotesk + Inter
   ============================================================ */

:root {
  --navy-950: #040c1a;
  --navy-900: #071225;
  --navy-800: #0d1b35;
  --navy-700: #132444;
  --navy-600: #1a3058;
  --blue: #2563eb;
  --blue-vivid: #3b82f6;
  --blue-light: #60a5fa;
  --blue-tint: #eff6ff;
  --gold: #f59e0b;
  --gold-light: #fde68a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --ink: #0f172a;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 30px -10px rgba(7, 18, 37, 0.18);
  --shadow-lg: 0 20px 60px -20px rgba(7, 18, 37, 0.32);
  --font-head: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }

p { margin-bottom: 1rem; color: var(--slate); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue-vivid);
  outline-offset: 2px;
  border-radius: 3px;
}

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-vivid); color: var(--white);
  padding: 10px 18px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
}
.btn-primary:hover { background: #1d4ed8; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(37,99,235,0.5); }
.btn-gold {
  background: var(--gold); color: var(--navy-900);
}
.btn-gold:hover { background: #d97706; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(245,158,11,0.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid var(--glass-line);
}
.btn-outline:hover { background: var(--glass); text-decoration: none; border-color: rgba(255,255,255,0.28); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 18, 37, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-line);
}
.header-bar {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 11px 22px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--white); line-height: 1.15; letter-spacing: -0.01em;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 0.67rem; color: #7ea3cc; letter-spacing: 0.07em; text-transform: uppercase;
}
.brand:hover { text-decoration: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0; align-items: center; }
.main-nav a {
  display: block; padding: 8px 13px; color: #c4d4e8;
  font-size: 0.93rem; font-weight: 500; border-radius: 8px;
}
.main-nav a:hover { color: var(--white); background: var(--glass); text-decoration: none; }
.main-nav a.cta-nav {
  background: var(--blue); color: var(--white); padding: 8px 16px;
}
.main-nav a.cta-nav:hover { background: #1d4ed8; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--white);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.25s;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  background: var(--navy-800);
  background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.22) 0%, transparent 60%);
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(37,99,235,0.08) 0%, transparent 40%),
                    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.06) 0%, transparent 35%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.18); border: 1px solid rgba(59,130,246,0.35);
  color: var(--blue-light); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero h1 {
  color: var(--white); margin-bottom: 20px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.hero-sub {
  font-size: 1.2rem; color: #a3bdd8; margin-bottom: 36px;
  max-width: 580px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.hero-sub strong { color: var(--white); }
.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-guarantee {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-light); font-size: 0.9rem; font-weight: 500;
}
.hero-guarantee::before {
  content: '★';
  color: var(--gold);
}
.hero-stats {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  border-top: 1px solid var(--glass-line); margin-top: 56px; padding-top: 40px;
}
.hero-stat {
  padding: 0 40px; text-align: center;
  border-right: 1px solid var(--glass-line);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem; color: #7ea3cc; margin-top: 4px; text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--glass-line);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  color: #9eb8d4; font-size: 0.87rem; font-weight: 500;
}
.trust-item svg { flex-shrink: 0; }

/* ---- Section base ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy-800); }
.section-navy { background: var(--navy-900); }

.section-label {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-vivid);
  margin-bottom: 14px;
}
.section-label-gold { color: var(--gold); }
.section-title { margin-bottom: 1rem; }
.section-intro { font-size: 1.12rem; color: var(--muted); max-width: 580px; margin-bottom: 0; }
.section-header { margin-bottom: 56px; }

/* ---- Cards ---- */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; background: var(--blue-tint);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
}
.card h3 { color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* dark card variant */
.card-dark {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.08);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: #8fb3d4; }
.card-dark .card-icon { background: rgba(37,99,235,0.22); }

/* ---- What we do / signals ---- */
.signals-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.signal-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.signal-item .check {
  flex-shrink: 0; width: 24px; height: 24px; background: var(--blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: white; margin-top: 2px;
}
.signal-item p { font-size: 0.94rem; margin: 0; color: var(--ink); }

/* ---- Process ---- */
.process-steps {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
  position: relative;
}
.step {
  position: relative; padding-top: 8px;
  counter-increment: step;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 0.93rem; }
.step ul { font-size: 0.93rem; color: var(--muted); }

/* ---- Industries ---- */
.industry-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.industry-chip {
  background: var(--blue-tint); color: var(--blue);
  border: 1px solid rgba(37,99,235,0.2);
  padding: 9px 18px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600;
}

/* ---- Pricing / tiers ---- */
.tier-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tier-head {
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--line);
}
.tier-featured .tier-head {
  background: var(--navy-800);
}
.tier-featured { border-color: var(--blue); }
.tier-badge {
  display: inline-block;
  background: var(--gold); color: var(--navy-900);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 3px 10px; border-radius: 100px;
  margin-bottom: 10px;
}
.tier-name {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px;
}
.tier-featured .tier-name { color: var(--white); }
.tier-desc { font-size: 0.92rem; margin: 0; }
.tier-featured .tier-desc { color: #8fb3d4; }
.tier-body { padding: 24px 28px; }
.tier-features { list-style: none; padding: 0; margin: 0; }
.tier-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 0.93rem; color: var(--slate);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li .check {
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--blue-tint); color: var(--blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; margin-top: 2px;
}
.tier-featured .tier-features li { border-bottom-color: rgba(255,255,255,0.08); color: #8fb3d4; }
.tier-featured .tier-features li .check { background: rgba(37,99,235,0.25); color: var(--blue-light); }

/* ---- FAQ ---- */
.faq-list { max-width: 740px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  border: 2px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--blue); font-weight: 700;
  transition: transform 0.2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 0 22px; }
.faq-body p { font-size: 0.97rem; }

/* ---- Contact / CTA section ---- */
.cta-section {
  background: var(--navy-800);
  background-image: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(37,99,235,0.2) 0%, transparent 60%);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: #8fb3d4; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---- Contact form ---- */
.contact-form-wrap {
  max-width: 600px; margin: 0 auto;
}
.form-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.88rem; font-weight: 600; color: #a3bdd8;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body); font-size: 0.97rem;
  transition: border-color 0.18s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #4e6a88; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-vivid); outline: none;
}
.form-group select { cursor: pointer; appearance: none; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }
.form-note { font-size: 0.82rem; color: #4e6a88; margin-top: 12px; }
#form-success {
  display: none; background: rgba(37,99,235,0.15); border: 1px solid rgba(59,130,246,0.35);
  border-radius: var(--radius-sm); padding: 20px; text-align: center;
  color: var(--blue-light); font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--glass-line);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: #5e7e9e; margin-bottom: 16px; }
.footer-nav h4 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #7ea3cc; margin-bottom: 16px;
}
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #5e7e9e; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--blue-light); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--glass-line); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.83rem; color: #3d5a76; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.83rem; color: #3d5a76; }
.footer-links a:hover { color: var(--blue-light); text-decoration: none; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.label-inline {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(37,99,235,0.15); color: var(--blue-light);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,18,37,0.98); padding: 16px 22px 22px; border-bottom: 1px solid var(--glass-line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 10px 14px; }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 0 52px; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 16px 22px; border-right: none; border-bottom: 1px solid var(--glass-line); width: 50%; }
  .hero-stat:nth-child(odd) { border-right: 1px solid var(--glass-line); }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 320px; }

  .tier-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-bar-inner { gap: 18px; }
}

@media (max-width: 480px) {
  .hero-stat { width: 100%; border-right: none; }
  .hero-stat:nth-child(odd) { border-right: none; }
  .card-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
