/* ── Page Hero (service pages) ──────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem clamp(1.5rem, 5vw, 3rem) 5rem;
  background: #05102b;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(5, 16, 43, 0.86) 0%, rgba(9, 31, 90, 0.78) 45%, rgba(6, 14, 48, 0.88) 100%);
  pointer-events: none;
}

/* Decorative icon watermark, used instead of a photo when no suitable stock image exists */
.page-hero-visual {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: 20rem;
  height: 20rem;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-hero-visual svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .page-hero-visual {
    display: none;
  }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: rgba(173, 207, 255, 0.45);
}

.breadcrumb a {
  color: rgba(173, 207, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: #38bdf8;
}

.page-hero-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-hero-content p {
  margin: 0;
  color: rgba(173, 207, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Section shells ──────────────────────────────────────── */
.sp-section {
  padding: 5rem clamp(1.5rem, 5vw, 3rem);
}

.sp-alt {
  background: #f8fbff;
}

.sp-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sp-cta-section {
  padding: 5rem clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(140deg, #081638 0%, #0e2b6e 55%, #091c4a 100%);
  color: #fff;
}

.sp-cta-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.sp-cta-section p {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: rgba(173, 207, 255, 0.75);
  line-height: 1.8;
}

/* ── AMC plan cards ──────────────────────────────────────── */
.amc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.amc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.amc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.amc-featured {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}

.amc-popular-tag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

.amc-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.amc-badge.silver { background: rgba(148, 163, 184, 0.16); color: #64748b; }
.amc-badge.gold { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.amc-badge.platinum { background: rgba(37, 99, 235, 0.12); color: var(--accent-strong); }

.amc-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.amc-tagline {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.amc-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.amc-features li {
  font-size: 0.9rem;
  color: var(--muted);
}

.amc-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.amc-cta:hover {
  transform: translateY(-2px);
}

.silver-btn { background: linear-gradient(135deg, #64748b, #475569); box-shadow: 0 8px 20px rgba(100, 116, 139, 0.28); }
.gold-btn { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32); }
.platinum-btn { background: linear-gradient(135deg, #1e3a8a, #2563eb); }

/* ── Comparison table ────────────────────────────────────── */
.compare-wrap {
  margin-top: 4rem;
}

.compare-wrap h3 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}

.table-scroll.is-scrolled {
  box-shadow: var(--shadow-sm), inset 12px 0 12px -12px rgba(13, 27, 62, 0.18);
}

.table-scroll.is-scrollable {
  box-shadow: var(--shadow-sm), inset -12px 0 12px -12px rgba(13, 27, 62, 0.18);
}

.table-scroll.is-scrolled.is-scrollable {
  box-shadow: var(--shadow-sm), inset 12px 0 12px -12px rgba(13, 27, 62, 0.18), inset -12px 0 12px -12px rgba(13, 27, 62, 0.18);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table thead th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--text);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.silver-col { color: #64748b; }
.gold-col { color: #b45309; }
.platinum-col { color: var(--accent-strong); }

/* ── Repair services grid ────────────────────────────────── */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.repair-card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.repair-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.repair-card-img {
  aspect-ratio: 16 / 9;
  margin: -2rem -2rem 1.25rem;
}

.repair-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.repair-card:hover .repair-card-img img {
  transform: scale(1.06);
}

.repair-card-img-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
}

.repair-card-img-icon svg {
  width: 30%;
  max-width: 4.5rem;
  color: var(--accent);
  stroke: currentColor;
}

.repair-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0.875rem;
  margin-bottom: 1.25rem;
}

.repair-icon-lg {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
}

.repair-icon-lg svg {
  width: 2.15rem;
  height: 2.15rem;
}

.repair-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.repair-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.repair-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.repair-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.repair-card ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.repair-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
}

/* ── Feature image filling remaining grid space ─────────── */
.repair-grid-image {
  grid-column: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 14rem;
}

.repair-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .repair-grid-image {
    grid-column: span 1;
  }
}

/* Icon-based variant, used instead of a photo when no suitable stock image exists */
.repair-grid-visual {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
}

.repair-grid-visual svg {
  width: 45%;
  max-width: 8rem;
  color: var(--accent);
  stroke: currentColor;
}

/* ── Why-upgrade cards (modernization) ───────────────────── */
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.why-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Upgrade areas list ──────────────────────────────────── */
.upgrade-list {
  display: grid;
  gap: 1.5rem;
}

.upgrade-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.upgrade-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.upgrade-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.upgrade-content h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.upgrade-content p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.upgrade-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upgrade-tags span {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

/* ── Process steps ───────────────────────────────────────── */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.step {
  flex: 1 1 200px;
  max-width: 240px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.step h4 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.step-arrow {
  align-self: center;
  padding-top: 2.5rem;
  color: var(--accent-light);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .amc-grid,
  .repair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upgrade-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 5rem 1.25rem 3.5rem;
  }

  .amc-grid,
  .repair-grid {
    grid-template-columns: 1fr;
  }

  .amc-popular-tag {
    top: -0.7rem;
  }

  .process-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step {
    max-width: none;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 1rem;
  }
}
