/*
 * Car-Search.ai — Brand Theme
 * Official Colors: #EC660A (orange), #151515 (dark bg), #323232 (card bg), #38B6A3 (teal)
 * Font: Space Grotesk (300-700) + DM Sans (400-500)
 */

/* =============================================
   CSS VARIABLES — BRAND PALETTE
   ============================================= */
:root {
  --gold:        #EC660A;
  --gold-dark:   #d45a08;
  --gold-light:  #f0863e;
  --black:       #000000;
  --near-black:  #151515;
  --charcoal:    #323232;
  --cream:       #1e1e1e;
  --cream-dark:  #2a2a2a;
  --white:       #151515;
  --gray-light:  #1e1e1e;
  --text-body:   rgba(255,255,255,0.7);
  --text-dark:   #ffffff;
  --teal:        #38B6A3;
  --teal-dark:   #2d9a89;

  --max-width:   1200px;
  --section-pad: 5rem 0;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.3);
}

/* =============================================
   RESET & BASE — FORCE DARK THEME
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body,
html.dark, html.cyber-blue, html.cyber-pink,
html.cyber-green, html.cyber-red {
  background: #151515 !important;
  color: #ffffff !important;
}

body {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  background: #151515;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
}

p { margin: 0 0 1rem 0; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   HIDE LEGACY THEME CONTROLS
   ============================================= */
.theme-selector-wrapper,
.theme-toggle,
.theme-popover { display: none !important; }

/* =============================================
   HEADER / NAV
   ============================================= */
.landing-header {
  background: rgba(0,0,0,0.9) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3) !important;
  padding: 0.75rem 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  transition: box-shadow 0.3s ease !important;
  backdrop-filter: blur(12px) !important;
}

.landing-header .container {
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.landing-logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.landing-logo img {
  height: 40px !important;
  width: auto !important;
  max-width: 200px !important;
  border-radius: 0 !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  object-fit: contain !important;
}

.landing-logo-text {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: #ffffff !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}

.landing-logo-text::before,
.landing-logo-text::after { display: none !important; }

.landing-nav {
  display: flex !important;
  gap: 2rem !important;
  align-items: center !important;
}

.landing-nav a {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  padding: 0.25rem 0 !important;
  border-bottom: 1.5px solid transparent !important;
}

.landing-nav a:hover,
.landing-nav a.active {
  color: #ffffff !important;
  border-bottom-color: var(--gold) !important;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content { background: #151515 !important; }

.page-section {
  background: #151515 !important;
  display: none !important;
}

.page-section.active { display: block !important; }

/* =============================================
   HERO SECTION
   ============================================= */
.ms-hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #151515 center/cover no-repeat;
  will-change: background-position;
}

.ms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(21,21,21,0.3) 0%, rgba(21,21,21,0.5) 40%, rgba(21,21,21,0.85) 100%);
  z-index: 1;
}

/* Legacy img/overlay approach — hidden, replaced by CSS background */
.ms-hero__bg  { display: none !important; }
.ms-hero__overlay { display: none !important; }

.ms-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.ms-hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: none;
}

.ms-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: none;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ms-hero__title em {
  font-style: normal;
  color: var(--teal, #38B6A3);
  text-shadow: none;
}

.ms-hero__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  letter-spacing: 0;
  text-shadow: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   BUTTONS
   ============================================= */
.ms-btn,
button[type="submit"] {
  display: inline-block !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 1rem 2.5rem !important;
  background: var(--gold) !important;
  color: #ffffff !important;
  border: 2px solid var(--gold) !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  line-height: 1 !important;
}

.ms-btn:hover,
button[type="submit"]:hover {
  background: var(--gold-dark) !important;
  border-color: var(--gold-dark) !important;
  color: #ffffff !important;
}

.ms-btn--outline {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.ms-btn--outline:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.7) !important;
}

.ms-btn--dark {
  background: #323232 !important;
  border-color: #323232 !important;
  color: #ffffff !important;
}

.ms-btn--dark:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #ffffff !important;
}

.ms-btn--ai-chat {
  background: transparent !important;
  border: 2px solid rgba(236, 102, 10, 0.4) !important;
  color: #EC660A !important;
  font-size: 0.82rem !important;
  padding: 0.8rem 1.5rem !important;
  transition: all 0.3s ease !important;
}

.ms-btn--ai-chat:hover {
  background: rgba(236, 102, 10, 0.1) !important;
  border-color: #EC660A !important;
  color: #EC660A !important;
}

/* =============================================
   SECTION SHARED
   ============================================= */
.ms-section { padding: var(--section-pad); }
.ms-section--cream { background: #1e1e1e !important; }
.ms-section--white { background: #151515 !important; }
.ms-section--black { background: #0a0a0a !important; }

.ms-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(2rem, 7vw, 5rem);
}

.ms-section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.ms-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.ms-section-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 580px;
}

.ms-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 2rem 0;
  border: none;
}

.ms-divider--center { margin: 0 auto 2rem auto; }

/* =============================================
   FEATURED VIDEO
   ============================================= */
.ms-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  line-height: 0;
}

.ms-video {
  width: 100%;
  display: block;
  background: var(--near-black);
}

.ms-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ms-video-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.ms-video-wrapper.is-playing .ms-video-play {
  opacity: 0;
  pointer-events: none;
}

/* =============================================
   TWO-IMAGE ROW
   ============================================= */
.ms-two-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.ms-two-image-row__item {
  position: relative;
  overflow: hidden;
}

.ms-two-image-row__item img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s ease;
}

.ms-two-image-row__item:hover img { transform: scale(1.04); }

.ms-two-image-row__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

.ms-two-image-row__caption strong {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.25rem;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.ms-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.ms-service-card {
  overflow: hidden;
  background: #323232;
  border-radius: 12px;
}

.ms-service-card__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.ms-service-card:hover .ms-service-card__img { transform: scale(1.05); }

.ms-service-card__body {
  padding: 1.5rem 1.75rem 2rem;
  background: #323232;
}

.ms-service-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.ms-service-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.ms-service-card__link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(236,102,10,0.4);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.ms-service-card__link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* =============================================
   COMMON SEARCHES - Clickable Search Cards
   ============================================= */
.common-searches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.common-search-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.common-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #EC660A;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.common-search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 102, 10, 0.15);
  border-color: rgba(236, 102, 10, 0.3);
}

.common-search-card:hover::before {
  opacity: 1;
}

.common-search-card:hover .common-search-icon {
  background: #EC660A;
  color: #ffffff;
}

.common-search-card:hover .common-search-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #EC660A;
}

.common-search-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 102, 10, 0.08);
  color: #EC660A;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.common-search-content {
  flex: 1;
  min-width: 0;
}

.common-search-content h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  font-family: 'Space Grotesk', sans-serif;
}

.common-search-query {
  margin: 0 0 0.25rem 0;
  font-size: 0.82rem;
  color: #EC660A;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.common-search-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.4;
}

.common-search-arrow {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  color: #ccc;
}

@media (max-width: 1024px) {
  .common-searches-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .common-searches-grid { grid-template-columns: 1fr; }
  .common-search-card { padding: 1rem 1.25rem; }
  .common-search-icon { flex: 0 0 44px; width: 44px; height: 44px; }
  .common-search-arrow { display: none; }
}

/* =============================================
   SPLIT SECTION
   ============================================= */
.ms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.ms-split__img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ms-split__content {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1e1e1e;
}

.ms-split__content--cream { background: #232323 !important; }
.ms-split__content--black {
  background: #0a0a0a !important;
  color: #ffffff !important;
}

.ms-split__content--black .ms-section-title { color: #ffffff !important; }
.ms-split__content--black .ms-section-body  { color: rgba(255,255,255,0.7) !important; }

.ms-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ms-stat em { color: var(--teal); font-style: normal; }

/* =============================================
   TESTIMONIAL
   ============================================= */
.ms-testimonial {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  background: #1e1e1e center/cover no-repeat;
  will-change: background-position;
}

.ms-testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0.92);
  z-index: 1;
}

/* Legacy img tag hidden — replaced by CSS background */
.ms-testimonial__bg { display: none !important; }

.ms-testimonial__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.ms-testimonial__quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: Georgia, serif;
  display: block;
}

.ms-testimonial__text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.ms-testimonial__author {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =============================================
   GOOGLE REVIEWS CAROUSEL
   ============================================= */
.ms-reviews {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  background: #1e1e1e;
  overflow: hidden;
}

.ms-reviews__header { margin-bottom: 2.5rem; }

.ms-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ms-reviews__stars {
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.ms-reviews__score {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #ffffff;
}

.ms-reviews__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Carousel Track */
.ms-reviews__carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.ms-reviews__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Individual Review Card */
.ms-reviews__card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 1rem;
}

.ms-reviews__card-inner {
  background: #323232;
  border-radius: 12px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.ms-reviews__quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 1rem;
}

.ms-reviews__text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Reviewer photos grid */
.ms-reviews__photos {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ms-reviews__photo {
  width: 140px;
  height: 105px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ms-reviews__photo:hover {
  transform: scale(1.04);
}

/* Author row */
.ms-reviews__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ms-reviews__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ms-reviews__meta {
  text-align: left;
}

.ms-reviews__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.ms-reviews__date {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.ms-reviews__card-stars {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: block;
}

/* Controls */
.ms-reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ms-reviews__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: #323232;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ms-reviews__arrow:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.ms-reviews__dots {
  display: flex;
  gap: 0.4rem;
}

.ms-reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ms-reviews__dot--active {
  background: var(--gold);
  transform: scale(1.2);
}

/* Links container */
.ms-reviews__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Google link */
.ms-reviews__google-link {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ms-reviews__google-link:hover {
  color: var(--gold-dark);
}

/* Owner response */
.ms-reviews__owner-response {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  text-align: left;
}

.ms-reviews__owner-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem 0;
}

.ms-reviews__owner-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: normal;
  margin: 0;
}

/* Progress bar for auto-scroll */
.ms-reviews__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.1s linear;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 900px) {
  .ms-reviews { padding: 4rem 1.5rem; }
  .ms-reviews__card-inner { padding: 2rem 1.75rem 1.75rem; }
  .ms-reviews__photo { width: 120px; height: 90px; }
}

@media (max-width: 600px) {
  .ms-reviews { padding: 3rem 1rem; }
  .ms-reviews__card-inner { padding: 1.75rem 1.25rem 1.5rem; }
  .ms-reviews__text { font-size: 0.88rem; }
  .ms-reviews__photos { flex-wrap: wrap; }
  .ms-reviews__photo { width: 100px; height: 75px; }
}

/* =============================================
   CTA FORM SECTION
   ============================================= */
.ms-cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ms-cta-split__heading {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0a0a;
}

.ms-cta-split__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.ms-cta-split__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.ms-cta-split__form {
  padding: 5rem 4rem;
  background: #1e1e1e;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.ms-form { display: flex; flex-direction: column; gap: 1rem; }

.ms-form label,
label {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.8) !important;
  display: block !important;
  margin-bottom: 0.3rem !important;
}

input, textarea, select {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.88rem !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  padding: 0.875rem 1rem !important;
  color: #ffffff !important;
  background: #323232 !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(236,102,10,0.15) !important;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.ms-about-hero {
  position: relative;
  height: 65vh;
  min-height: 380px;
  overflow: hidden;
}

.ms-about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.ms-about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.ms-about-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 4px 32px rgba(0,0,0,0.5);
  text-transform: lowercase;
}

.ms-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.ms-team-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.25rem;
}

.ms-team-card__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--near-black);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.ms-team-card__role {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.ms-team-card__bio {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* =============================================
   PORTFOLIO
   ============================================= */
.ms-portfolio-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.gallery-section {
  margin-bottom: 5rem;
}

.gallery-section h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: var(--near-black) !important;
  letter-spacing: -0.025em !important;
}

.portfolio-category-title {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  margin-bottom: 0.5rem !important;
  color: var(--near-black) !important;
}

.portfolio-category-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-gallery--compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}

.portfolio-item--compact {
  aspect-ratio: 4 / 3;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-item-info,
.portfolio-item-info * { color: var(--white) !important; }

.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.portfolio-lightbox.active {
  display: flex;
}

.portfolio-lightbox-content {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portfolio-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
  width: 40px;
  height: 40px;
}

.portfolio-lightbox-close:hover {
  opacity: 1;
}

.portfolio-lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.portfolio-lightbox-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 8px;
}

.portfolio-lightbox-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0;
}

/* --- Property Gallery Sections --- */
.property-gallery-section {
  margin-bottom: 5rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.property-gallery-section:last-of-type {
  border-bottom: none;
}

.property-gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.property-gallery-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.property-gallery-address {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.property-gallery-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-body);
  margin: 0;
}

.property-gallery-meta span {
  color: var(--gold);
  margin: 0 0.5rem;
}

/* --- Portfolio Section Tabs --- */
.portfolio-section-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio-section-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--cream-dark);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.25s ease;
}

.portfolio-section-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.portfolio-section-tab.active {
  background: var(--near-black);
  color: var(--white);
  border-color: var(--near-black);
}

/* --- General Portfolio Section --- */
.general-portfolio-section {
  padding-top: 4rem;
}

.general-portfolio-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Lightbox property badge --- */
.portfolio-lightbox-property {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

@media (max-width: 768px) {
  .portfolio-gallery--compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .portfolio-lightbox {
    padding: 1rem;
  }

  .portfolio-lightbox-content img {
    max-height: 60vh;
  }

  .portfolio-lightbox-close {
    top: -2.5rem;
    font-size: 2.5rem;
  }

  .property-gallery-section {
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
  }

  .portfolio-section-nav {
    gap: 0.35rem;
  }

  .portfolio-section-tab {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.landing-footer {
  background: #0a0a0a !important;
  color: rgba(255,255,255,0.65) !important;
  padding: 0 !important;
}

.ms-footer-top-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 100%;
}

.ms-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 4rem;
  padding: 4rem clamp(2rem, 7vw, 5rem) 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ms-footer-brand {}

.ms-footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
  display: block;
}

.ms-footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 300px;
  margin: 0 0 0.5rem;
}

.ms-footer-areas {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.75rem 0 0;
}

.footer-section h4 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin: 0 0 1.25rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(236,102,10,0.2) !important;
}

.footer-section ul { list-style: none; padding: 0; margin: 0; }

.footer-section li {
  margin-bottom: 0.1rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.55) !important;
  line-height: 2 !important;
  text-decoration: none !important;
}

.footer-section a:hover { color: var(--gold) !important; }

.footer-contact-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.83rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0.75rem !important;
  text-decoration: none !important;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); stroke: var(--gold); }
a.footer-contact-item:hover { color: var(--gold) !important; }

/* Social Links */
.ms-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.ms-social-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 16px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.65) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  width: fit-content !important;
}

.ms-social-link:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(206,174,84,0.06) !important;
}

.ms-social-link svg { flex-shrink: 0; }

/* Small button variant */
.ms-btn--sm {
  padding: 10px 20px !important;
  font-size: 0.72rem !important;
}

.footer-bottom {
  padding: 1.5rem clamp(2rem, 7vw, 5rem) !important;
  text-align: center !important;
  max-width: 100% !important;
}

.footer-bottom p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.25) !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

/* =============================================
   MOBILE NAV
   ============================================= */
.mobile-bottom-nav {
  display: none !important; /* hidden on desktop */
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9000 !important;
  background: #0a0a0a !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.3) !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: stretch !important;
  padding-bottom: env(safe-area-inset-bottom, 0) !important;
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 1 !important;
  padding: 8px 2px !important;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.55rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  transition: color 0.2s !important;
}

.mobile-nav-item svg { width: 20px !important; height: 20px !important; }

.mobile-nav-item.active,
.mobile-nav-item:hover { color: var(--gold) !important; }

/* Mobile bottom nav is now shown at 900px via the tablet query above */

/* =============================================
   CONTENT BOX (fallback pages)
   ============================================= */
.content-section { background: #1e1e1e !important; padding: 3rem 1.5rem !important; }

.content-box {
  background: #323232 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 3rem !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

.content-box h1, .content-box h2, .content-box h3 {
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.content-box p, .content-box li {
  color: rgba(255,255,255,0.7) !important;
  font-weight: 400 !important;
  font-size: 0.92rem !important;
}

.content-box a { color: var(--gold) !important; }
.content-box a:hover { color: var(--gold-light) !important; }

/* =============================================
   CHATBOT
   ============================================= */
#chatbot-widget-container {
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  border-radius: 12px !important;
}

/* =============================================
   DESKTOP — INCREASED FONT SIZES (901px+)
   ============================================= */
@media (min-width: 901px) {
  body { font-size: 17px; }

  /* Hero */
  .ms-hero__eyebrow { font-size: 0.85rem; }
  .ms-hero__title { font-size: clamp(2.6rem, 5vw, 4rem); max-width: 780px; }
  .ms-hero__subtitle { font-size: 1.25rem; max-width: 660px; }

  /* Buttons */
  .ms-btn,
  button[type="submit"] { font-size: 1rem !important; padding: 1.1rem 2.75rem !important; }
  .ms-btn--ai-chat { font-size: 0.92rem !important; padding: 0.9rem 1.75rem !important; }

  /* Section shared */
  .ms-section-label { font-size: 0.82rem; }
  .ms-section-title { font-size: clamp(2rem, 3.5vw, 3.2rem); }
  .ms-section-body { font-size: 1.1rem; max-width: 640px; }

  /* Nav */
  .landing-nav a { font-size: 0.95rem !important; }
  .landing-logo-text { font-size: 1rem !important; }

  /* Service cards */
  .ms-service-card__name { font-size: 1.15rem; }
  .ms-service-card__desc { font-size: 1rem; }
  .ms-service-card__link { font-size: 0.95rem; }

  /* Split section */
  .ms-stat { font-size: clamp(2.4rem, 4vw, 3.6rem); }

  /* CTA */
  .ms-cta-split__title { font-size: clamp(2rem, 3vw, 3.2rem); }
  .ms-cta-split__subtitle { font-size: 1.05rem; }

  /* Testimonial */
  .ms-testimonial__text { font-size: 1.35rem; }
  .ms-testimonial__author { font-size: 0.85rem; }

  /* Reviews */
  .ms-reviews__text { font-size: 1.05rem; }
  .ms-reviews__name { font-size: 0.85rem; }
  .ms-reviews__subtitle { font-size: 0.88rem; }
  .ms-reviews__score { font-size: 1.8rem; }
  .ms-reviews__stars { font-size: 1.8rem; }
  .ms-reviews__owner-text { font-size: 0.92rem; }

  /* Forms */
  .ms-form label,
  label { font-size: 0.82rem !important; }
  input, textarea, select { font-size: 0.95rem !important; }

  /* Common searches */
  .common-search-content h3 { font-size: 1.1rem; }
  .common-search-query { font-size: 0.92rem; }
  .common-search-desc { font-size: 0.88rem; }

  /* Footer */
  .ms-footer-tagline { font-size: 0.95rem; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
/* ── Tablet Landscape (769px–1024px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .landing-nav { gap: 1rem !important; }
  .landing-nav a { font-size: 0.78rem !important; }
  .nav-auth { gap: 0.5rem; margin-left: 0.5rem; }
  .nav-signup { padding: 0.4rem 1rem; font-size: 0.75rem; }
  .nav-login { font-size: 0.8rem; }
  .ms-hero { min-height: 85vh; }
  .ms-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem) !important; }
  .ms-hero__subtitle { font-size: 1.05rem !important; }
}

/* ── Tablet Portrait & below (≤900px) ── */
@media (max-width: 900px) {
  :root { --section-pad: 4rem 0; }
  .ms-container { padding: 0 clamp(1.25rem, 5vw, 2.5rem) !important; }
  .ms-services-grid { grid-template-columns: 1fr 1fr; }
  .ms-split, .ms-cta-split { grid-template-columns: 1fr !important; }
  .ms-split__img { min-height: 300px !important; height: 360px !important; }
  .ms-cta-split__heading, .ms-cta-split__form { padding: 3.5rem 2rem !important; }
  .ms-two-image-row { grid-template-columns: 1fr !important; }
  .ms-team-grid { grid-template-columns: 1fr !important; }
  .ms-team-card img { height: auto !important; }
  .ms-contact-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .ms-footer-inner { grid-template-columns: 1fr !important; gap: 2.5rem !important; padding: 3rem 1.5rem 2.5rem !important; }
  .ms-footer-tagline { max-width: 100% !important; }
  .ms-social-links { flex-direction: row !important; flex-wrap: wrap !important; }
  .landing-nav { display: none !important; }
  .ms-hero { min-height: 80vh; }
  /* Show mobile bottom nav and auth on tablets too */
  .mobile-bottom-nav { display: flex !important; }
  .main-content { padding-bottom: 65px !important; }
  .landing-footer { margin-bottom: 65px !important; }
  .nav-auth { display: none !important; }
}

@media (max-width: 600px) {
  :root { --section-pad: 3rem 0; }
  .ms-container { padding: 0 1.25rem !important; }
  .ms-services-grid { grid-template-columns: 1fr !important; }
  .ms-service-card__img { height: 380px !important; }
  .ms-two-image-row__item img { height: 380px !important; }
  .ms-split__content { padding: 2.5rem 1.5rem !important; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
[data-anim] {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-anim="fade-up"]    { transform: translateY(50px); }
[data-anim="fade-left"]  { transform: translateX(-50px); }
[data-anim="fade-right"] { transform: translateX(50px); }
[data-anim="fade-in"]    { transform: scale(0.96); }
[data-anim].in-view {
  opacity: 1 !important;
  transform: none !important;
}
[data-anim-delay="1"] { transition-delay: 0.12s !important; }
[data-anim-delay="2"] { transition-delay: 0.24s !important; }
[data-anim-delay="3"] { transition-delay: 0.36s !important; }
[data-anim-delay="4"] { transition-delay: 0.48s !important; }
[data-anim-delay="5"] { transition-delay: 0.60s !important; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =============================================
   NUKE DARK THEME ARTIFACTS
   Only inherit color — never image (image inheritance
   causes bg photos to bleed into every child element)
   ============================================= */
.dark *, .cyber-blue *, .cyber-pink *,
.cyber-green *, .cyber-red * {
  background-color: inherit !important;
  background-image: none !important;
  color: inherit !important;
}

/* =============================================
   FORCE BACKGROUND IMAGES — OVERRIDE ALL THEMES
   These rules must come LAST with highest specificity
   to beat .dark * { background: inherit !important }
   ============================================= */
.ms-hero,
html .ms-hero,
.dark .ms-hero,
.light .ms-hero,
.cyber-blue .ms-hero,
.cyber-pink .ms-hero,
.cyber-green .ms-hero,
.cyber-red .ms-hero {
  background-color: #151515 !important;
  background-image: url('/images/car-search/background2.jpeg') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position-x: center !important;
  background-position-y: var(--hero-parallax-y, 50%) !important;
}

.ms-testimonial,
html .ms-testimonial,
.dark .ms-testimonial,
.light .ms-testimonial,
.cyber-blue .ms-testimonial,
.cyber-pink .ms-testimonial,
.cyber-green .ms-testimonial,
.cyber-red .ms-testimonial {
  background-color: #1e1e1e !important;
  background-image: none !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position-x: center !important;
  background-position-y: var(--testi-parallax-y, 50%) !important;
}

/* =============================================
   FIX: hero + testimonial children must be
   transparent — prevents background-color
   inheritance from section creating dark boxes
   ============================================= */
.ms-hero *,
html .ms-hero *,
.dark .ms-hero *,
.light .ms-hero * {
  background-color: transparent !important;
  background-image: none !important;
}

/* FORCE WHITE TEXT IN HERO — beats .dark * { color: inherit } */
.ms-hero .ms-hero__title,
.ms-hero .ms-hero__subtitle,
.ms-hero .ms-hero__eyebrow,
html .ms-hero .ms-hero__title,
html .ms-hero .ms-hero__subtitle,
html .ms-hero .ms-hero__eyebrow,
.dark .ms-hero .ms-hero__title,
.dark .ms-hero .ms-hero__subtitle,
.dark .ms-hero .ms-hero__eyebrow,
.light .ms-hero .ms-hero__title,
.light .ms-hero .ms-hero__subtitle,
.light .ms-hero .ms-hero__eyebrow {
  color: #ffffff !important;
}
.ms-hero .ms-hero__title em,
html .ms-hero .ms-hero__title em,
.dark .ms-hero .ms-hero__title em,
.light .ms-hero .ms-hero__title em {
  color: var(--teal) !important;
}

/* FORCE OUTLINE BUTTON VISIBILITY IN HERO */
.ms-hero .ms-btn--outline,
html .ms-hero .ms-btn--outline,
.dark .ms-hero .ms-btn--outline,
.light .ms-hero .ms-btn--outline {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.9) !important;
  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.ms-hero .ms-btn--outline:hover,
html .ms-hero .ms-btn--outline:hover,
.dark .ms-hero .ms-btn--outline:hover {
  background: rgba(255,255,255,0.95) !important;
  color: var(--near-black) !important;
  text-shadow: none;
}

/* Restore gold fill button inside hero */
.ms-hero .ms-btn:not(.ms-btn--outline),
html .ms-hero .ms-btn:not(.ms-btn--outline),
.dark .ms-hero .ms-btn:not(.ms-btn--outline) {
  background-color: var(--gold) !important;
  color: var(--white) !important;
}
.ms-hero .ms-btn:not(.ms-btn--outline):hover,
html .ms-hero .ms-btn:not(.ms-btn--outline):hover {
  background-color: transparent !important;
  color: var(--gold) !important;
}

/* Testimonial children transparent */
.ms-testimonial *,
html .ms-testimonial *,
.dark .ms-testimonial *,
.light .ms-testimonial * {
  background-color: transparent !important;
  background-image: none !important;
}

/* Reviews section — override .dark * { background-color: inherit } */
.ms-reviews,
html .ms-reviews,
.dark .ms-reviews,
.light .ms-reviews {
  background-color: #1e1e1e !important;
}

.ms-reviews__card-inner,
.dark .ms-reviews__card-inner {
  background-color: #323232 !important;
}

.ms-reviews__dot,
.dark .ms-reviews__dot {
  background-color: rgba(255,255,255,0.2) !important;
}

.ms-reviews__dot--active,
.dark .ms-reviews__dot--active {
  background-color: var(--gold) !important;
}

.ms-reviews__arrow,
.dark .ms-reviews__arrow {
  background-color: #323232 !important;
}

.ms-reviews__arrow:hover,
.dark .ms-reviews__arrow:hover {
  background-color: var(--gold) !important;
  color: #ffffff !important;
}

.ms-reviews__owner-response,
.dark .ms-reviews__owner-response {
  background-color: rgba(255,255,255,0.05) !important;
}

.ms-reviews__text,
.dark .ms-reviews__text {
  color: rgba(255,255,255,0.8) !important;
}

.ms-reviews__name,
.dark .ms-reviews__name {
  color: #ffffff !important;
}

.ms-reviews__stars,
.ms-reviews__card-stars,
.dark .ms-reviews__stars,
.dark .ms-reviews__card-stars {
  color: var(--gold) !important;
}

.ms-reviews__score,
.dark .ms-reviews__score {
  color: #ffffff !important;
}

/* CHATBOT WIDGET CONTAINER — must be transparent, not inherit body bg */
.chatbot-widget,
html .chatbot-widget,
.dark .chatbot-widget,
.light .chatbot-widget {
  background-color: transparent !important;
  background-image: none !important;
}

/* CHATBOT — restore all backgrounds wiped by NUKE rule.
   Use .dark .chatbot-X selectors (0,2,0) to beat .dark * (0,1,0) */
.dark .chatbot-trigger, .light .chatbot-trigger, html .chatbot-trigger { background-color: #EC660A !important; background-image: none !important; }
.dark .chatbot-trigger:hover, .light .chatbot-trigger:hover, html .chatbot-trigger:hover { background-color: #d45a08 !important; }

.dark .chatbot-backdrop, .light .chatbot-backdrop, html .chatbot-backdrop { background-color: rgba(0,0,0,0.65) !important; background-image: none !important; }
.dark .chatbot-window, .light .chatbot-window, html .chatbot-window { background-color: #1e1e1e !important; background-image: none !important; }
.dark .chatbot-header, .light .chatbot-header, html .chatbot-header { background-color: #252525 !important; background-image: none !important; color: #ffffff !important; border-bottom: 2px solid #EC660A !important; }
.dark .chatbot-body,   .light .chatbot-body,   html .chatbot-body   { background-color: #151515 !important; background-image: none !important; }
.dark .chatbot-messages, .light .chatbot-messages, html .chatbot-messages { background-color: #151515 !important; background-image: none !important; }
.dark .chatbot-footer, .light .chatbot-footer, html .chatbot-footer { background-color: #1e1e1e !important; background-image: none !important; }
.dark .chatbot-welcome, .light .chatbot-welcome, html .chatbot-welcome { background-color: transparent !important; background-image: none !important; }
.dark .suggestion-btn, .light .suggestion-btn, html .suggestion-btn { background-color: #323232 !important; background-image: none !important; color: #ffffff !important; }
.dark .suggestion-btn:hover, .light .suggestion-btn:hover, html .suggestion-btn:hover { background-color: #EC660A !important; }
.dark .message-content, .light .message-content, html .message-content { background-color: #323232 !important; background-image: none !important; color: #ffffff !important; }
.dark .message.user .message-content, .light .message.user .message-content, html .message.user .message-content { background-color: #EC660A !important; color: #ffffff !important; }
.dark .chatbot-input, .light .chatbot-input, html .chatbot-input { background-color: #323232 !important; background-image: none !important; color: #ffffff !important; }
.dark .chatbot-send, .light .chatbot-send, html .chatbot-send { background-color: #EC660A !important; background-image: none !important; color: #ffffff !important; }
.dark .chatbot-send:hover, .light .chatbot-send:hover, html .chatbot-send:hover { background-color: #d45a08 !important; color: #ffffff !important; }
.dark .chatbot-minimize, .dark .chatbot-close,
.light .chatbot-minimize, .light .chatbot-close,
html .chatbot-minimize, html .chatbot-close { background-color: transparent !important; background-image: none !important; color: rgba(255,255,255,0.65) !important; }
.dark .status-dot, .light .status-dot, html .status-dot { background-color: #EC660A !important; background-image: none !important; }
.dark .chatbot-logo, .light .chatbot-logo, html .chatbot-logo { background-color: transparent !important; background-image: none !important; }
.dark .chatbot-badge, .light .chatbot-badge, html .chatbot-badge { background-color: #EC660A !important; background-image: none !important; color: #ffffff !important; }
.dark .chatbot-branding, .light .chatbot-branding, html .chatbot-branding { background-color: transparent !important; background-image: none !important; }
.dark .chatbot-branding em, .light .chatbot-branding em, html .chatbot-branding em { color: rgba(255,255,255,0.4) !important; }
.dark .chatbot-branding a, .light .chatbot-branding a, html .chatbot-branding a { color: rgba(255,255,255,0.4) !important; text-decoration: none !important; }
.dark .chatbot-branding a:hover, .light .chatbot-branding a:hover, html .chatbot-branding a:hover { color: #EC660A !important; }
.dark .scroll-to-bottom, .light .scroll-to-bottom, html .scroll-to-bottom { background-color: #323232 !important; background-image: none !important; color: #EC660A !important; }
.dark .scroll-to-bottom:hover, .light .scroll-to-bottom:hover, html .scroll-to-bottom:hover { background-color: #EC660A !important; color: #ffffff !important; }
.dark .tool-indicator, .light .tool-indicator, html .tool-indicator { background-color: rgba(236, 102, 10, 0.1) !important; background-image: none !important; }
.dark .tool-spinner, .light .tool-spinner, html .tool-spinner { border-color: #EC660A !important; border-top-color: transparent !important; }
.dark .tool-name, .light .tool-name, html .tool-name { color: #ffffff !important; }

/* FOOTER — restore colors wiped by NUKE rule */
.dark .landing-footer, html .landing-footer { background-color: #0a0a0a !important; color: rgba(255,255,255,0.65) !important; }
.dark .ms-footer-inner, html .ms-footer-inner,
.dark .ms-footer-brand, html .ms-footer-brand,
.dark .footer-section, html .footer-section,
.dark .footer-bottom, html .footer-bottom { background-color: transparent !important; }
.dark .ms-footer-tagline, html .ms-footer-tagline { color: rgba(255,255,255,0.5) !important; background-color: transparent !important; }
.dark .ms-footer-areas, html .ms-footer-areas { color: var(--gold) !important; background-color: transparent !important; }
.dark .footer-section h4, html .footer-section h4 { color: var(--gold) !important; background-color: transparent !important; }
.dark .footer-section a, html .footer-section a,
.dark .footer-section li, html .footer-section li,
.dark .footer-section p, html .footer-section p { color: rgba(255,255,255,0.55) !important; background-color: transparent !important; }
.dark .footer-section a:hover, html .footer-section a:hover { color: var(--gold) !important; }
.dark .footer-contact-item, html .footer-contact-item { color: rgba(255,255,255,0.55) !important; background-color: transparent !important; }
.dark .footer-contact-item svg, html .footer-contact-item svg { color: var(--gold) !important; stroke: var(--gold) !important; background-color: transparent !important; }
.dark .ms-social-link, html .ms-social-link { color: rgba(255,255,255,0.65) !important; background-color: transparent !important; }
.dark .ms-social-link svg, html .ms-social-link svg { background-color: transparent !important; }
.dark .footer-bottom p, html .footer-bottom p { color: rgba(255,255,255,0.25) !important; background-color: transparent !important; }
/* Button in footer — restore gold background */
.dark .landing-footer .ms-btn, html .landing-footer .ms-btn { background-color: var(--gold) !important; color: var(--near-black) !important; border-color: var(--gold) !important; }
.dark .landing-footer .ms-btn:hover, html .landing-footer .ms-btn:hover { background-color: transparent !important; color: var(--gold) !important; }
.dark .ms-footer-top-bar, html .ms-footer-top-bar { background-color: transparent !important; background-image: linear-gradient(90deg, transparent, var(--gold), transparent) !important; }

/* CHATBOT — restore border-radius wiped by global input/button reset */
.dark .chatbot-input, .light .chatbot-input, html .chatbot-input { border-radius: 22px !important; border: 1.5px solid rgba(255,255,255,0.15) !important; width: auto !important; padding: 10px 16px !important; font-size: 16px !important; }
.dark .chatbot-send, .light .chatbot-send, html .chatbot-send { border-radius: 22px !important; padding: 0 !important; width: 42px !important; }
.dark .chatbot-header, .light .chatbot-header, html .chatbot-header { color: #ffffff !important; }
.dark .chatbot-header-text h3, .light .chatbot-header-text h3, html .chatbot-header-text h3 { color: #ffffff !important; }
.dark .chatbot-minimize:hover, .dark .chatbot-close:hover,
.light .chatbot-minimize:hover, .light .chatbot-close:hover,
html .chatbot-minimize:hover, html .chatbot-close:hover { background-color: rgba(255,255,255,0.15) !important; color: #ffffff !important; }

