/*
Theme Name: SERP Masters
Theme URI: https://serpmasters.com
Author: Andy W.
Author URI: https://serpmasters.com
Description: Dark editorial WordPress theme for SERP Masters SEO consultancy. Features numbered service cards, stats bar, portfolio showcase, and contact form.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serpmasters
Tags: one-column, custom-menu, featured-images, dark
*/

/* ── Reset ── */
:root {
  --bg: #0e1318;
  --bg2: #111920;
  --bg3: #151d26;
  --card: #141c24;
  --card-hover: #1a2430;
  --text: #e4e8ee;
  --text2: #6d7888;
  --text3: #485262;
  --accent: #c8c0b4;
  --accent-hover: #b8b0a4;
  --accent-glow: rgba(200, 192, 180, 0.08);
  --border: #1c2430;
  --border2: #242e3e;
  --radius: 10px;
  --radius-lg: 16px;
  --ff: 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max: 1100px;
  --gap: clamp(16px, 3vw, 48px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--text); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


/* ── Typography ── */
.label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 16px;
  display: block;
}

.heading {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.subhead {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 580px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: all 0.3s;
}

.site-header.scrolled {
  background: rgba(12, 12, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 160px 0 80px;
  position: relative;
}

.hero-content {
  max-width: 680px;
}

.hero .label {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.18);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text3);
}

.hero-sub {
  font-size: 0.78rem;
  color: var(--text3);
  margin-bottom: 48px;
}

.hero-link {
  font-size: 0.82rem;
  color: var(--text3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
}

.hero-link:hover { color: var(--text2); }

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-box {
  background: var(--bg2);
  padding: 28px 24px;
  text-align: center;
}

.stat-box .stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-box .stat-unit {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text3);
  letter-spacing: 0.04em;
}

/* ── Services (matches Products section) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, background 0.25s;
}

.svc-card:hover {
  border-color: var(--border2);
  background: var(--card-hover);
}

.svc-card-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.svc-num {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.svc-type {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.02em;
}

.svc-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.svc-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
}

/* ── Workflow / Process ── */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.wf-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.wf-step .wf-num {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 16px;
  display: block;
}

.wf-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.wf-step p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Philosophy ── */
.phil-intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.phil-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.phil-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s;
}

.phil-card:hover { border-color: var(--border2); }

.phil-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.phil-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
}

/* ── Results / Portfolio ── */
/* Results section styles are below, after placeholder */

.result-placeholder {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.result-placeholder .ph-icon {
  font-size: 2rem;
  color: var(--text3);
  opacity: 0.35;
  margin-bottom: 8px;
}

.result-placeholder p {
  font-size: 0.82rem;
  color: var(--text3);
}

/* Expanded results: stacked full-width */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}

.result-card:hover {
  border-color: var(--border2);
}

.result-body {
  padding: 28px 32px;
}

.result-body .result-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

.result-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.result-body > p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
}

.result-images {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-img {
  padding: 20px;
  background: linear-gradient(135deg, #f4f5f8, #eceef2);
}

.result-img img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.result-img-caption {
  font-size: 0.78rem;
  color: var(--text3);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Before/After layout */
.result-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.result-before-after .result-img {
  position: relative;
}

.result-before-after .result-img::after {
  position: absolute;
  top: 12px;
  left: 28px;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.result-img--before::after {
  content: 'Before';
  background: rgba(220, 50, 50, 0.12);
  color: #e05555;
}

.result-img--after::after {
  content: 'After';
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

/* Multi-image grid */
.result-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.result-metrics {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.r-metric .r-val {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.r-metric .r-lbl {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .result-before-after { grid-template-columns: 1fr; }
  .result-img-grid { grid-template-columns: 1fr; }
}

/* ── CTA ── */
.cta-section {
  padding: clamp(64px, 8vw, 120px) 0;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section .heading {
  max-width: 520px;
  margin: 0 auto 12px;
}

.cta-section .subhead {
  margin: 0 auto 16px;
  text-align: center;
}

.cta-price {
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 28px;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-text > p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text2);
}

.contact-item .ci-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  flex-shrink: 0;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--ff);
  font-size: 0.88rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text3);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

/* ── Footer ── */
.site-footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .site-logo { margin-bottom: 0; white-space: nowrap; }

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text3);
  max-width: 400px;
  line-height: 1.5;
  margin: 0;
}

.footer-cols {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}
.footer-col { flex: 1; min-width: 0; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 0.82rem;
  color: var(--text3);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text3);
  display: flex;
  justify-content: space-between;
}

/* ── Inner Page Hero ── */
.hero--inner {
  border-bottom: 1px solid var(--border);
}

/* ── Services Hub Grid ── */
.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.svc-hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}

.svc-hub-card:hover {
  border-color: var(--border2);
  background: var(--card-hover);
  transform: translateY(-3px);
  color: inherit;
}

.svc-hub-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.svc-hub-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.svc-hub-card > p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.svc-hub-proof {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.svc-hub-proof li {
  font-size: 0.78rem;
  color: var(--text3);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.svc-hub-proof li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.72rem;
}

.svc-hub-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* ── Proof Stats (Service Pages) ── */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.proof-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.proof-stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.proof-stat-label {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ── Service Body (from WP content editor) ── */
.service-body {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 680px;
}

.service-body p {
  margin-bottom: 16px;
}

.service-body h2, .service-body h3 {
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.service-body ul, .service-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.service-body li {
  margin-bottom: 8px;
  color: var(--text2);
}

/* ── About Bio ── */
.about-bio {
  max-width: 680px;
}

.about-bio p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ── Career Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.tl-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}

.tl-item:hover {
  border-color: var(--border2);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.tl-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-role {
  font-size: 0.82rem;
  color: var(--text2);
}

.tl-date {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tl-body {
  padding: 24px 28px;
}

.tl-body ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-body li {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.tl-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border2);
}

/* ── Brand Grid ── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.brand-grid span {
  background: var(--card);
  padding: 20px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}

.brand-grid span:hover {
  color: var(--text);
  background: var(--card-hover);
}

/* ── Contact Select Dropdown ── */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23485262' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-form select option {
  background: var(--bg);
  color: var(--text);
}

/* ── Location Pages ── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.location-nap {
  padding: 4px 0;
}

.nap-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.nap-phone {
  margin-top: 12px;
}

.nap-phone-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nap-phone-link:hover { color: var(--accent); }

.nap-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.location-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}

/* Locations Hub Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.location-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-card:hover {
  border-color: var(--border2);
  background: var(--card-hover);
  transform: translateY(-3px);
  color: inherit;
}

.location-card-city {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-card-city h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.location-card-arrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.location-card:hover .location-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.location-card-address {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.5;
}

.location-card-phone {
  font-size: 0.82rem;
  color: var(--text2);
  font-weight: 500;
}

/* Office Locations Link Grid (cross-linking sections) */
.locations-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.loc-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.loc-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── CTA Buttons (green, bigger, animated) ── */

/* ── Compact Case Studies Grid ── */
.cs-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.cs-compact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.cs-compact:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  color: inherit;
}

.cs-compact-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cs-compact h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cs-compact > p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 12px;
}

.cs-compact-stats {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cs-compact-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cs-compact-lbl {
  font-size: 0.62rem;
  color: var(--text3);
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

.cs-compact-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 10px;
}

/* ── Full Case Study Cards (for service pages) ── */
.cs-full {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

.cs-full-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text3);
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}

.cs-full h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.cs-full > p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
}

.cs-full-metrics {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cs-full-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cs-full-lbl {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

.cs-full-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
  display: inline-block;
  text-decoration: none;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.testimonial-quote {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.72rem;
  color: var(--text3);
}

/* ── CTA Buttons (green, bigger, animated) ── */
.btn--cta {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
}

.btn--cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.18);
  color: var(--bg);
}

.btn--cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.12);
}

/* Also apply green CTA to form submit buttons on location/service pages */
.form-submit.btn--cta,
button.btn--cta {
  width: 100%;
  justify-content: center;
}

/* ── Blog Category / Archive ── */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.blog-cat-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text3);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.blog-cat-link:hover,
.blog-cat-link.active {
  color: var(--text);
  border-color: var(--text3);
  background: var(--bg3);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.blog-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}

.blog-card-img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-cat {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--text3);
}

.blog-card-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.blog-card-body h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-body h2 a:hover {
  color: var(--accent);
}

.blog-card-body > p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-pagination {
  margin-top: 48px;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.blog-pagination .nav-links a,
.blog-pagination .nav-links span {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text2);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-pagination .nav-links a:hover {
  color: var(--text);
  border-color: var(--text3);
}

.blog-pagination .nav-links .current {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ── Single Article ── */
.article-header {
  padding: 140px 0 40px;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-cat {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
}

.article-date,
.article-read {
  font-size: 0.78rem;
  color: var(--text3);
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.article-excerpt {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Author Snippet (compact, below title) */
.author-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-snippet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
}

.author-snippet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-initials {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text2);
}

.author-snippet-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  display: block;
}

.author-snippet-name:hover { color: var(--accent); }

.author-snippet-role {
  font-size: 0.75rem;
  color: var(--text3);
}

/* Featured Image */
.article-featured {
  padding: 40px 0;
}

/* Article Body Typography */
.article-body {
  padding: 48px 0;
}

.article-body p {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--border2);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text2);
  margin-bottom: 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body img {
  border-radius: var(--radius);
  margin: 32px 0;
}

.article-body pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text2);
}

.article-body code {
  font-family: var(--ff-mono);
  font-size: 0.85em;
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.article-body pre code {
  background: none;
  padding: 0;
}

/* Article Tags */
.article-tags {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.article-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text3);
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin: 0 6px 6px 0;
  text-decoration: none;
  transition: all 0.2s;
}

.article-tag:hover {
  color: var(--text);
  border-color: var(--text3);
}

/* Full Author Bio (bottom of article) */
.author-bio-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.author-bio {
  display: flex;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-initials-lg {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text2);
}

.author-bio-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.author-bio-role {
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 14px;
}

.author-bio-text {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.author-bio-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.author-bio-links .btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Navigation */
.article-nav {
  padding: 36px 0;
}

.article-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-nav-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.article-nav-link:hover {
  border-color: var(--border2);
}

.article-nav-dir {
  display: block;
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 6px;
}

.article-nav-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.article-nav-next {
  text-align: right;
}

/* ── About Layout Responsive ── */
@media (max-width: 768px) {
  .tl-header { flex-direction: column; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .services-hub-grid { grid-template-columns: 1fr; }
  .proof-stats { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; gap: 20px; padding: 24px; }
  .author-bio-avatar { width: 64px; height: 64px; }
  .article-nav-inner { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .nap-actions { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .cs-compact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cs-full-metrics { gap: 16px; }
  .cs-compact-stats { gap: 10px; }
  .locations-link-grid { gap: 6px; }
  .loc-link { font-size: 0.78rem; padding: 7px 14px; }
  .hero-btns { flex-direction: column; gap: 8px; }
  .hero-btns .btn { width: 100%; text-align: center; justify-content: center; }
  .btn--cta { font-size: 0.88rem; padding: 14px 24px; width: 100%; justify-content: center; }
  .form-submit { font-size: 0.92rem; padding: 14px; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 16, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; z-index: 1001; }

  .services-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .phil-cards { grid-template-columns: 1fr; }
  .footer-cols { flex-wrap: wrap; gap: 28px; }
  .footer-col { min-width: 140px; }
  .footer-top { flex-direction: column; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .cs-full-metrics { flex-direction: column; gap: 10px; }
  .cs-compact-stats { flex-direction: column; gap: 6px; }
  .hero-content h1 { font-size: 1.4rem; }
  .heading { font-size: 1.15rem; }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* ── Text color enforcement (dark theme) ── */
.heading { color: var(--text); }

/* ── Results Dropdown (homepage) ── */
.results-dropdown {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.results-dropdown.results-open {
  max-height: 6000px;
  opacity: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

button.hero-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
}

button.btn--ghost {
  cursor: pointer;
}

/* ── Breadcrumbs ── */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.78rem;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text3);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text2);
}


/* ── Dropdown Navigation ── */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.5; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 0; min-width: 220px; z-index: 1000; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.dropdown li { list-style: none; }
.dropdown li a, .dropdown-col a { display: block; padding: 8px 20px; color: var(--text2); font-size: 0.82rem; white-space: nowrap; transition: color 0.2s, background 0.2s; text-decoration: none; }
.dropdown li a:hover, .dropdown-col a:hover { color: var(--text); background: var(--card); }
.has-dropdown:hover > .dropdown { display: flex; }
.dropdown--wide { min-width: 640px; left: 50%; transform: translateX(-50%); gap: 0; }
.dropdown-col { flex: 1; padding: 8px 0; list-style: none; }
.dropdown-col + .dropdown-col { border-left: 1px solid var(--border); }

@media (max-width: 900px) {
  .dropdown { position: static; border: none; box-shadow: none; padding: 0 0 0 16px; }
  .dropdown--wide { min-width: 0; left: 0; transform: none; flex-direction: column; }
  .dropdown-col + .dropdown-col { border-left: none; }
  .has-dropdown:hover > .dropdown { display: block; }
}

/* ── Footer Locations Grid ── */
.footer-locations { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 24px; }
.footer-locations h4 { font-size: 0.82rem; color: var(--text2); margin-bottom: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-locations-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.footer-locations-grid a { font-size: 0.78rem; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-locations-grid a:hover { color: var(--accent); }
@media (max-width: 768px) { .footer-locations-grid { grid-template-columns: repeat(2, 1fr); } }

/* Compact footer */
.footer-col ul li a { font-size: 0.75rem; }
.footer-col h4 { font-size: 0.75rem; }
