/* ==========================================================================
   MOTOSPACE — Custom Subpages Stylesheet
   Preserves existing styling. Standalone CSS for new pages.
   ========================================================================== */

:root {
  --cp-bg-main: #06080d;
  --cp-bg-darker: #030407;
  --cp-bg-card: rgba(13, 17, 27, 0.78);
  --cp-bg-card-hover: rgba(22, 29, 46, 0.92);
  --cp-bg-glass: rgba(10, 14, 23, 0.72);
  --cp-border-glass: rgba(255, 255, 255, 0.09);
  --cp-border-active: rgba(255, 30, 56, 0.65);
  --cp-border-cyan: rgba(0, 210, 255, 0.55);

  --cp-neon-red: #ff1e38;
  --cp-neon-red-glow: rgba(255, 30, 56, 0.45);
  --cp-neon-blue: #00d2ff;
  --cp-neon-blue-glow: rgba(0, 210, 255, 0.4);
  --cp-accent-gold: #ffb800;

  --cp-text-primary: #ffffff;
  --cp-text-secondary: #94a3b8;
  --cp-text-muted: #64748b;

  --cp-font-heading: 'Rajdhani', 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --cp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --cp-radius-sm: 8px;
  --cp-radius-md: 14px;
  --cp-radius-lg: 22px;
  --cp-transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.subpage-body {
  background-color: var(--cp-bg-main);
  color: var(--cp-text-primary);
  font-family: var(--cp-font-body);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 15% 45%, rgba(255, 30, 56, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cp-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   SUBPAGE HEADER & NAVIGATION
   ========================================================================== */
.cp-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cp-border-glass);
  transition: all var(--cp-transition);
}

.cp-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.cp-brand-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.cp-logo-main {
  font-family: 'Orbitron', var(--cp-font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.cp-logo-main span {
  color: var(--cp-neon-red);
  text-shadow: 0 0 12px var(--cp-neon-red-glow);
}

.cp-logo-sub {
  font-size: 8.5px;
  letter-spacing: 2.5px;
  color: var(--cp-text-muted);
  font-weight: 600;
}

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

.cp-nav-links a {
  color: var(--cp-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--cp-transition);
  padding: 6px 0;
  position: relative;
}

.cp-nav-links a:hover,
.cp-nav-links a.active {
  color: #ffffff;
}

.cp-nav-links a.active::after,
.cp-nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cp-neon-red), var(--cp-neon-blue));
  border-radius: 2px;
}

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

.cp-btn-book {
  background: linear-gradient(135deg, var(--cp-neon-red), #b30f24);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px var(--cp-neon-red-glow);
  transition: all var(--cp-transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cp-btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 30, 56, 0.6);
}

.cp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.cp-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}

/* Mobile Drawer */
.cp-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  height: 100vh;
  background: rgba(8, 11, 18, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--cp-border-glass);
  z-index: 2000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cp-mobile-drawer.active {
  right: 0;
}

.cp-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 24px;
}

.cp-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cp-drawer-links a {
  color: var(--cp-text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-drawer-links a.active,
.cp-drawer-links a:hover {
  color: var(--cp-neon-red);
}

/* ==========================================================================
   HERO / PAGE BANNER
   ========================================================================== */
.cp-hero {
  position: relative;
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--cp-border-glass);
  background: 
    linear-gradient(180deg, rgba(6, 8, 13, 0.3) 0%, rgba(3, 4, 7, 0.9) 100%),
    radial-gradient(circle at 50% 30%, rgba(255, 30, 56, 0.09) 0%, transparent 60%);
  text-align: center;
  overflow: hidden;
}

.cp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 30, 56, 0.12);
  border: 1px solid rgba(255, 30, 56, 0.35);
  color: var(--cp-neon-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cp-hero-badge.cyan {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
  color: var(--cp-neon-blue);
}

.cp-hero-badge.gold {
  background: rgba(255, 184, 0, 0.12);
  border-color: rgba(255, 184, 0, 0.35);
  color: var(--cp-accent-gold);
}

.cp-hero-title {
  font-family: var(--cp-font-heading);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}

.cp-hero-title span {
  background: linear-gradient(135deg, #fff 30%, var(--cp-neon-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cp-hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--cp-text-secondary);
  max-width: 720px;
  margin: 0 auto 30px;
  font-weight: 400;
}

.cp-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cp-text-muted);
}

.cp-breadcrumbs a {
  color: var(--cp-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.cp-breadcrumbs a:hover {
  color: var(--cp-neon-red);
}

.cp-breadcrumbs span {
  color: var(--cp-border-glass);
}

.cp-breadcrumbs .current {
  color: var(--cp-neon-blue);
  font-weight: 600;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.cp-card {
  background: var(--cp-bg-card);
  border: 1px solid var(--cp-border-glass);
  border-radius: var(--cp-radius-md);
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: all var(--cp-transition);
  position: relative;
  overflow: hidden;
}

.cp-card:hover {
  background: var(--cp-bg-card-hover);
  border-color: var(--cp-border-active);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

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

.cp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

/* ==========================================================================
   WORKING PROCESS TIMELINE
   ========================================================================== */
.process-section {
  padding: 80px 0;
  position: relative;
}

.process-pipeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.process-step-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(13, 17, 27, 0.65);
  border: 1px solid var(--cp-border-glass);
  border-radius: var(--cp-radius-lg);
  padding: 36px;
  backdrop-filter: blur(14px);
  transition: all var(--cp-transition);
}

.process-step-item:hover {
  border-color: rgba(255, 30, 56, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.step-number-box {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 30, 56, 0.15), rgba(0, 210, 255, 0.05));
  border: 1px solid rgba(255, 30, 56, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', var(--cp-font-heading);
  font-weight: 900;
  font-size: 26px;
  color: #fff;
}

.step-number-box span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--cp-neon-red);
}

.step-content h3 {
  font-family: var(--cp-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--cp-neon-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step-content p {
  color: var(--cp-text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.step-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.step-features li {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-features li svg {
  color: var(--cp-neon-blue);
  flex-shrink: 0;
}

.step-media-box {
  height: 240px;
  border-radius: var(--cp-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--cp-border-glass);
}

.step-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--cp-transition);
}

.process-step-item:hover .step-media-box img {
  transform: scale(1.05);
}

.step-badge-overlay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   PPF SERVICE PAGE STYLING
   ========================================================================== */
.ppf-layer-card {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.85) 0%, rgba(9, 12, 20, 0.9) 100%);
  border: 1px solid var(--cp-border-glass);
  border-radius: var(--cp-radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.ppf-layer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cp-neon-blue);
}

.ppf-package-card {
  background: var(--cp-bg-card);
  border: 1px solid var(--cp-border-glass);
  border-radius: var(--cp-radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--cp-transition);
}

.ppf-package-card.featured {
  border-color: var(--cp-neon-red);
  background: linear-gradient(180deg, rgba(25, 15, 22, 0.85) 0%, rgba(13, 17, 27, 0.95) 100%);
  box-shadow: 0 10px 40px rgba(255, 30, 56, 0.15);
  transform: scale(1.02);
}

.package-ribbon {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--cp-neon-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 0 12px var(--cp-neon-red-glow);
}

.package-header h3 {
  font-family: var(--cp-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.package-price {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  margin: 18px 0;
}

.package-price span {
  font-size: 13px;
  color: var(--cp-text-secondary);
  font-family: var(--cp-font-body);
  font-weight: 400;
}

.package-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}

.package-specs-list li {
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.package-specs-list li svg {
  color: var(--cp-neon-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Comparison Table */
.cp-table-wrap {
  overflow-x: auto;
  border-radius: var(--cp-radius-md);
  border: 1px solid var(--cp-border-glass);
  background: rgba(10, 14, 23, 0.6);
  margin-top: 40px;
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.cp-table th, .cp-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-table th {
  font-family: var(--cp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cp-table th.highlight {
  color: var(--cp-neon-red);
  background: rgba(255, 30, 56, 0.08);
}

.cp-table td.highlight {
  background: rgba(255, 30, 56, 0.03);
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   TERMS & CONDITIONS / PRIVACY POLICY LAYOUT
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 60px 0 100px;
  align-items: flex-start;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
  background: var(--cp-bg-card);
  border: 1px solid var(--cp-border-glass);
  border-radius: var(--cp-radius-md);
  padding: 24px;
}

.legal-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cp-text-muted);
  margin-bottom: 16px;
}

.legal-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-nav-menu a {
  display: block;
  font-size: 13.5px;
  color: var(--cp-text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.legal-nav-menu a:hover,
.legal-nav-menu a.active {
  color: #fff;
  background: rgba(255, 30, 56, 0.1);
  border-left-color: var(--cp-neon-red);
}

.legal-body {
  background: var(--cp-bg-card);
  border: 1px solid var(--cp-border-glass);
  border-radius: var(--cp-radius-lg);
  padding: 48px;
}

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 110px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: var(--cp-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h2 span {
  color: var(--cp-neon-red);
}

.legal-section p {
  color: var(--cp-text-secondary);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px 8px;
}

.legal-section ul li {
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.legal-section ul li::before {
  content: '▪';
  color: var(--cp-neon-red);
  font-size: 16px;
  line-height: 1;
}

.legal-callout {
  background: rgba(255, 30, 56, 0.06);
  border-left: 4px solid var(--cp-neon-red);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13.5px;
  color: #f1f5f9;
}

/* ==========================================================================
   SUBPAGE FOOTER
   ========================================================================== */
.cp-footer {
  background: #020306;
  border-top: 1px solid var(--cp-border-glass);
  padding: 70px 0 30px;
  margin-top: auto;
}

.cp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.cp-footer-brand p {
  font-size: 13.5px;
  color: var(--cp-text-secondary);
  margin: 14px 0 20px;
  max-width: 320px;
}

.cp-footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.cp-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-footer-list a {
  color: var(--cp-text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.2s;
}

.cp-footer-list a:hover {
  color: var(--cp-neon-red);
  padding-left: 4px;
}

.cp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cp-text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.cp-footer-legal-links {
  display: flex;
  gap: 20px;
}

.cp-footer-legal-links a {
  color: var(--cp-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cp-footer-legal-links a:hover {
  color: var(--cp-neon-blue);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .process-step-item {
    grid-template-columns: 70px 1fr;
    gap: 24px;
  }
  .step-media-box {
    grid-column: 1 / -1;
    height: 220px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
  .cp-grid-3, .cp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cp-nav-links, .cp-nav-actions .cp-btn-book {
    display: none;
  }
  .cp-mobile-toggle {
    display: flex;
  }
  .process-step-item {
    grid-template-columns: 1fr;
  }
  .step-number-box {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }
  .step-features {
    grid-template-columns: 1fr;
  }
  .cp-grid-2, .cp-grid-3, .cp-grid-4 {
    grid-template-columns: 1fr;
  }
  .legal-body {
    padding: 24px;
  }
  .cp-footer-grid {
    grid-template-columns: 1fr;
  }
  .cp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
