/* Tesla inspired prototype styles for CSM Ecosystem */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f4f4;
  --text: #171a20;
  --muted: #5c5e62;
  --line: rgba(23, 26, 32, 0.08);
  --dark: #111318;
  --dark-soft: #1a1d24;
  --light-btn: rgba(255, 255, 255, 0.85);
  --shadow: 0 20px 50px rgba(17, 19, 24, 0.08);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.navbar {
  min-height: 76px;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid rgba(23, 26, 32, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--text) !important;
}

.nav-link {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(23, 26, 32, 0.06);
  color: var(--text);
}

.btn-primary-dark {
  background: rgba(17, 19, 24, 0.92);
  border: 1px solid rgba(17, 19, 24, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
}

.btn-primary-dark:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn-light-soft {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
}

.btn-light-soft:hover {
  background: #fff;
  color: var(--text);
}

.btn-outline-dark-soft {
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
}

.page-shell {
  padding-top: 96px;
  min-height: 100vh;
}

.product-shell {
  padding-top: 96px;
  min-height: 100vh;
}

.product-section {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.32) 48%, rgba(255,255,255,0.5) 100%);
}

.product-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.product-title {
  font-size: clamp(2.75rem, 7vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.product-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
}

.section-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.center-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-block {
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.product-page-hero {
  min-height: calc(72vh - 20px);
  display: flex;
  align-items: center;
  padding: 56px 0 40px;
  background: linear-gradient(135deg, #eff4ff 0%, #f8fafc 45%, #eef2ff 100%);
}

.product-page-hero.alt {
  background: linear-gradient(135deg, #f7f7f7 0%, #fcfcfc 50%, #eef2f7 100%);
}

.product-block {
  padding: 88px 0;
}

.product-highlight-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.product-link-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  height: 100%;
}

.product-link-card:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.product-nav-note {
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eff4ff 0%, #f8fafc 45%, #eef2ff 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.display-headline {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.lead-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.service-strip {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
}

.service-strip a {
  text-decoration: none;
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
}

.service-strip a:hover,
.service-strip a.active {
  background: rgba(23,26,32,0.06);
}

.content-card,
.related-card,
.info-card,
.booking-card,
.sidebar-card,
.faq-card,
.tesla-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card,
.info-card,
.booking-card,
.sidebar-card,
.faq-card,
.tesla-panel {
  padding: 1.6rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 19, 24, 0.06);
  color: var(--dark);
  flex-shrink: 0;
}

.related-card {
  padding: 1.4rem;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.related-card:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.sticky-book-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
}

.booking-layout .form-control,
.booking-layout .form-select,
.booking-layout textarea {
  border-radius: 14px;
  border-color: rgba(23, 26, 32, 0.14);
  padding: 0.9rem 1rem;
}

.breadcrumb {
  --bs-breadcrumb-divider: '›';
}

.footer-minimal {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 991.98px) {
  .page-shell,
  .product-shell {
    padding-top: 88px;
  }

  .product-section {
    min-height: 92vh;
    padding-top: 88px;
  }

  .product-page-hero {
    min-height: auto;
    padding: 72px 0 32px;
  }

  .product-block {
    padding: 64px 0;
  }

  .service-strip {
    border-radius: 24px;
    display: flex;
    width: 100%;
  }

  .service-strip a {
    width: 100%;
    justify-content: center;
  }

  .sticky-book-button {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  body {
    padding-bottom: 24px;
  }
}
