/* DealerWebConnect - Static Replica
   Fonts: Lato + Poppins (Google Fonts)
   Accent: #5180c1
*/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: #fff;
  background: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Mobile nav - hidden by default on all screen sizes */
.mobile-nav {
  display: none;
}

/* ========== HEADER ========== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo img {
  height: 45px;
  width: auto;
}

.header .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  transition: opacity 0.3s;
}

.header .nav-link:hover {
  opacity: 0.8;
}

.header .nav-link .icon-help {
  margin-right: 6px;
  font-size: 14px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -30%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a1a2e;
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1716px;
  margin: 0 auto;
  padding: 100px 40px 40px;
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-image {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-end;
  padding-right: 10px;
}

.hero-image img {
  max-width: 590px;
  width: 100%;
}

.hero-text {
  flex: 0 0 50%;
  padding-left: 62px;
  padding-top: 50px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero-text h1 span {
  display: block;
}

.hero-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  line-height: 1.7;
}

.hero-text .bold-highlight {
  font-weight: 700;
  text-decoration: underline;
  color: #fff;
}

/* Mobile hero (hidden on desktop) */
.hero-mobile {
  display: none;
}

/* ========== FEATURES SECTION ========== */
.features {
  display: flex;
  min-height: 500px;
}

.features-left {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 222px 27px 200px;
}

.features-left-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/features-bg-left.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.features-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.features-left h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 24px;
  font-style: italic;
}

.features-left h1 span {
  display: block;
}

.features-left ul {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.features-left ul li {
  margin-bottom: 6px;
}

.features-right {
  flex: 0 0 50%;
  min-height: 300px;
  background-image: url('../images/features-desktop-screen.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mobile features (hidden on desktop) */
.features-mobile {
  display: none;
  position: relative;
  text-align: center;
  padding: 70px 30px 80px;
}

.features-mobile-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/features-bg-mobile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.features-mobile-content {
  position: relative;
  z-index: 1;
}

.features-mobile h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  font-style: italic;
}

.features-mobile h1 span {
  display: block;
}

.features-mobile ul {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.features-mobile ul li {
  margin-bottom: 6px;
}

/* ========== CONTACT / DEMO FORM SECTION ========== */
.demo-section {
  background: #1b1d2a;
  padding: 80px 20px;
}

.demo-container {
  max-width: 804px;
  margin: 0 auto;
  text-align: center;
}

.demo-container h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.demo-container .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

/* ========== FORM STYLES (shared) ========== */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row input,
.form-row textarea {
  flex: 1;
  background: transparent;
  border: 1px solid #5180c1;
  color: #fff;
  padding: 14px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #7ba3dd;
}

.form-row textarea {
  resize: vertical;
  min-height: 50px;
}

.form-submit {
  margin-top: 24px;
}

.btn-submit {
  display: inline-block;
  background: #5180c1;
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 2px;
}

.btn-submit:hover {
  background: #6190d0;
}

/* ========== SUPPORT PAGE ========== */
.support-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/support-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.support-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #1b1d2a;
  opacity: 0.95;
}

.support-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 804px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  text-align: center;
}

.support-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.support-content .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
}

/* ========== FOOTER ========== */
.footer {
  background: #1b1d2a;
  padding: 24px 40px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== FORM RESPONSE ========== */
.form-response {
  margin-top: 16px;
  padding: 12px;
  border-radius: 2px;
  display: none;
  font-size: 14px;
}

.form-response.success {
  display: block;
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #69f0ae;
}

.form-response.error {
  display: block;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff8a80;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 959px) {
  .header {
    padding: 15px 20px;
  }

  .header .logo img {
    height: 30px;
  }

  .header .nav-link {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile menu overlay */
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #1a1a2e;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .mobile-nav .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
  }

  /* Hero - switch to mobile layout */
  .hero-content {
    flex-direction: column;
    padding: 100px 20px 40px;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-mobile {
    display: block;
  }

  .hero-text {
    flex: none;
    padding: 0;
    width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .hero-mobile-image {
    max-width: 389px;
    margin: 0 auto;
  }

  /* Features - switch to mobile layout */
  .features {
    display: none;
  }

  .features-mobile {
    display: block;
  }

  /* Form stacking */
  .form-row {
    flex-direction: column;
  }

  /* Demo section */
  .demo-section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .support-content h1 {
    font-size: 1.8rem;
  }
}
