/* ============================================
   BACKWARD COMPATIBILITY — Old Page Structures
   Adapts all pre-2026 page classes to dark theme
   ============================================ */

/* Old hero */
.hero-home {
  position: relative;
  padding: 10rem 0 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.85) 50%, rgba(10,14,26,0.7) 100%);
  color: var(--text-heading);
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-home-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-home-container {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.hero-home h1 { color: var(--text-heading); }
.hero-home .lead { color: var(--text-muted); font-size: 1.25rem; max-width: 540px; margin-bottom: var(--sp-md); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--sp-md);
}

.hero-home-visual { display: none; }
@media (min-width: 1024px) {
  .hero-home-visual { display: block; position: relative; width: 100%; aspect-ratio: 4/5; }
}

/* Page header (non-homepage heroes) */
.page-header {
  padding: 140px var(--sp-md) var(--sp-xl);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-body) 100%);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 { margin-bottom: var(--sp-sm); }
.page-header .lead { color: var(--text-muted); font-size: 1.15rem; }

/* Section backgrounds */
.bg-light { background: var(--bg-elevated); }
.bg-surface { background: var(--bg-surface); }
.bg-dark {
  background: var(--bg-surface);
  color: var(--text-main);
}

/* Section typography */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-heading);
  font-weight: 700;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  color: var(--accent-primary);
}

/* Button block */
.btn-block { width: 100%; }

/* Utility margins */
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-lg { margin-bottom: var(--sp-lg); }

.desktop-only { display: none; }
@media (min-width: 1024px) {
  .desktop-only { display: inline-flex; }
  .mobile-only { display: none; }
}

/* ========== OLD SERVICES GRID ========== */
.svc {
  composes: card;
  padding: var(--sp-lg) var(--sp-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.svc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.svc-num {
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0.4;
  font-weight: 700;
}

.svc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(245, 158, 11, 0.15));
  border-radius: 50%;
  color: var(--accent-primary);
  transition: all var(--transition);
}

.svc:hover .svc-icon {
  background: var(--accent-primary);
  color: white;
}

.svc-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
  font-weight: 700;
}

.svc-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.6;
}

.svc-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.svc-arrow {
  transition: transform 0.2s;
  color: var(--accent-primary);
}

.svc:hover .svc-arrow { transform: translateX(4px); }

/* ========== COST CARDS ========== */
.cost-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: var(--sp-lg);
}

@media (min-width: 768px) {
  .cost-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .cost-header-content { max-width: 600px; }
  .cost-header .section-desc { margin-bottom: 0; }
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cost-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .cost-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (min-width: 1280px) {
  .cost-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.cost-card {
  composes: card;
  border-top: 3px solid var(--accent-primary);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cost-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.cost-card-price {
  font-size: 2rem;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  line-height: 1;
  font-weight: 700;
}

.cost-card-price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cost-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
  font-weight: 600;
}

.cost-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.cost-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap var(--transition);
}

.cost-card-link:hover { color: var(--accent-secondary); }

/* ========== CONTENT LAYOUTS ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}

.content-main { min-width: 0; }
.content-sidebar { min-width: 0; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: var(--sp-md) 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
}

.feature-item svg,
.feature-item .icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== CONTACT LAYOUT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-faqs { min-width: 0; }
.contact-form-wrapper { min-width: 0; }

/* ========== FORMS ========== */
.form-card {
  composes: card;
  padding: var(--sp-lg);
  max-width: 600px;
  margin: 0 auto;
}

.form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.form-card > p {
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--sp-sm);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
  text-align: center;
}

/* Old lead form input styles (override lead-form class in new CSS) */
.lead-form .form-group input,
.lead-form .form-group select,
.lead-form .form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.lead-form .form-group input:focus,
.lead-form .form-group select:focus,
.lead-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-heading);
  transition: transform 0.3s ease;
}

.faq-icon::before { top: 9px; left: 0; right: 0; height: 2px; }
.faq-icon::after { top: 0; bottom: 0; left: 9px; width: 2px; }

.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-trigger[aria-expanded="true"] .faq-icon::before { transform: rotate(180deg); }

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-trigger[aria-expanded="true"] + .faq-content {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  line-height: 1.7;
}

/* ========== BLOG CARDS (Old) ========== */
.blog-card-old {
  composes: card;
  overflow: hidden;
  padding: 0;
}

.blog-card-old img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-card-content {
  padding: var(--sp-md);
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ========== CITY CARDS (Old) ========== */
.city-card {
  composes: card;
  text-align: center;
  padding: var(--sp-md);
}

.city-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.city-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== AUTHOR BLOCK ========== */
.author-block {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== TRUST BAR (Old structure) ========== */
.trust-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

@media (min-width: 768px) {
  .trust-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.trust-divider {
  display: none;
  width: 1px;
  height: 40px;
  background: var(--border);
}

@media (min-width: 768px) {
  .trust-divider { display: block; }
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.trust-stat-num {
  font-size: 2.5rem;
  color: var(--text-heading);
  line-height: 1;
  font-weight: 700;
}

.trust-stat-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.trust-stars {
  color: var(--accent-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-top: 0.25rem;
}

.trust-cert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-heading);
}

.trust-cert svg { color: var(--accent-primary); }

/* ========== BREADCRUMBS ========== */
.breadcrumb {
  padding: 1rem var(--sp-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 1280px;
  margin: 0 auto;
}

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

.breadcrumb-sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ========== CTA SECTION (Old) ========== */
.cta-section {
  composes: cta-section;
}

/* ========== AREA HERO (Old) ========== */
.area-hero {
  composes: area-hero;
}

/* Arch visual */
.arch-visual { position: relative; width: 100%; height: 100%; }
.arch-shape {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.arch-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 4;
  border-left: 4px solid var(--accent-secondary);
}

.arch-badge-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.arch-badge-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ========== USP LAYOUT ========== */
.usp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

@media (min-width: 1024px) {
  .usp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
  }
}

.usp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.usp-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.usp-list svg,
.usp-list .icon {
  color: var(--accent-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.usp-list strong { color: var(--text-heading); }

/* ========== TESTIMONIALS (Old) ========== */
.usp-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ========== CTA BOX ========== */
.cta-box {
  composes: card;
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg);
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  margin-bottom: var(--sp-sm);
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
}

/* ========== PROCESS STEPS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
  max-width: 1280px;
  margin: 0 auto;
}

.process-step {
  composes: card;
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
}

.process-step-num {
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-light);
  margin-bottom: var(--sp-sm);
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== SIDEBAR CARDS ========== */
.sidebar-card {
  composes: card;
  margin-bottom: var(--sp-md);
}

.sidebar-card h4 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-sm);
  color: var(--text-heading);
}

.sidebar-card p,
.sidebar-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ========== TABLE OF CONTENTS ========== */
.toc {
  composes: card;
  padding: var(--sp-md);
}

.toc h4 {
  font-size: 1rem;
  margin-bottom: var(--sp-sm);
  color: var(--text-heading);
}

.toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.toc a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

/* ========== TABLE STYLES ========== */
.table-wrap {
  overflow-x: auto;
  margin: var(--sp-md) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  color: var(--text-heading);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tbody tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

/* ========== GRID LAYOUTS ========== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr 1fr; }
}

.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 768px) {
  .three-col-grid { grid-template-columns: repeat(3, 1fr); }
}

.four-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 768px) {
  .four-col-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .four-col-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== ARTICLE CONTENT ========== */
.article-content h2 {
  font-size: 1.75rem;
  margin: var(--sp-lg) 0 var(--sp-sm);
  color: var(--text-heading);
}

.article-content h3 {
  font-size: 1.35rem;
  margin: var(--sp-md) 0 var(--sp-sm);
  color: var(--text-heading);
}

.article-content p {
  margin-bottom: var(--sp-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--sp-sm);
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--accent-secondary);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--sp-md) 0;
}

/* ========== LEAD FORM (override for old pages) ========== */
.lead-form {
  display: block;
}

.lead-form .btn {
  margin-top: var(--sp-sm);
}

/* ========== ARCHITECTURAL SHAPES ========== */
.shape-1 {
  width: 70%;
  height: 80%;
  bottom: 0; left: 0;
  border-radius: var(--radius-sm);
  z-index: 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.shape-2 {
  width: 60%;
  height: 60%;
  top: 0; right: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 1;
  border: 1px solid var(--border);
}

.shape-3 {
  width: 40%;
  height: 40%;
  bottom: 10%; right: -5%;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-sm);
  z-index: 3;
}

/* ========== MISC OLD CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }

/* Generic card hover fix for old pages */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Service page specific */
.service-hero {
  composes: hero-home;
}

/* Blog listing */
.blog-listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

@media (min-width: 768px) {
  .blog-listing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-listing {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tag / category badges */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.tag:hover {
  border-color: var(--accent-primary);
  color: var(--text-heading);
}

/* Reading time, date meta */
.meta-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Pricing table highlight */
.price-highlight {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.price-highlight small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Alert / info boxes */
.info-box {
  composes: card;
  border-left: 4px solid var(--accent-primary);
  padding: var(--sp-md);
  margin: var(--sp-md) 0;
}

.info-box p {
  margin: 0;
  color: var(--text-muted);
}

.warning-box {
  composes: card;
  border-left: 4px solid var(--accent-secondary);
  padding: var(--sp-md);
  margin: var(--sp-md) 0;
}

/* Rating stars inline */
.inline-stars {
  color: var(--accent-secondary);
  letter-spacing: 2px;
}

/* Video embed wrapper */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: var(--sp-md) 0;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Comparison table */
.comparison-table th:first-child,
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-heading);
}

/* Quote / blockquote */
.blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: var(--sp-md);
  margin: var(--sp-md) 0;
  font-style: italic;
  color: var(--text-muted);
}

.blockquote cite {
  display: block;
  margin-top: var(--sp-sm);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Numbered list styled */
.numbered-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.numbered-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.numbered-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-sm);
}

.gallery-grid img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Stat grid (city pages etc) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-md);
  margin: var(--sp-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--sp-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin: var(--sp-md) 0;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.related-links a:hover {
  border-color: var(--accent-primary);
  color: var(--text-heading);
  background: rgba(59, 130, 246, 0.1);
}

/* Lead form wrapper on subpages */
.contact-form-wrapper .form-card {
  max-width: none;
}

/* Ensure old page sections have proper padding */
section.section {
  padding: var(--sp-2xl) var(--sp-md);
}

section.section.bg-light,
section.section.bg-surface,
section.section.bg-dark {
  padding: var(--sp-2xl) var(--sp-md);
}

/* Old container inside sections */
.section .container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Fix for old pages that don't have section wrappers around content */
body > main > .container,
body > main > .content-grid,
body > main > .contact-layout,
body > main > .usp-layout {
  padding-top: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
}

/* Override old bg-dark on sections */
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark .section-title, .bg-dark .section-desc {
  color: var(--text-heading);
}

.bg-dark .section-desc {
  color: var(--text-muted);
}

/* Ensure old hero-home text is visible */
.hero-home .hero-home-content h1 {
  color: var(--text-heading);
}

.hero-home .hero-home-content p,
.hero-home .hero-home-content .lead {
  color: var(--text-muted);
}

/* Fix CTA buttons in old pages */
.cta-section .btn {
  margin: 0 0.5rem;
}

/* Old blog card image fix */
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Service page content fix */
.service-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* City page fix */
.city-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* Ensure FAQ is interactive */
.faq-trigger { cursor: pointer; }

/* Print styles for old pages */
@media print {
  .hero-home { min-height: auto; padding: 2rem 0; }
  .arch-visual, .hero-home-visual { display: none; }
  .trust-bar, .cta-section { display: none; }
}
