/* ============================================
   CASE MOBILE AUTO REPAIR — STYLESHEET
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --midnight: #0A1F3F;
  --midnight-light: #132D54;
  --midnight-deep: #061529;
  --mint: #5EEAD4;
  --mint-light: #8FF5E8;
  --mint-dark: #3ECDB8;
  --cream: #F5F7FA;
  --white: #FFFFFF;
  --gray-100: #F0F4F8;
  --gray-200: #D9E2EC;
  --gray-300: #BCCCDC;
  --gray-500: #627D98;
  --gray-700: #334E68;
  --gray-900: #102A43;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 63, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 31, 63, 0.1);
  --shadow-lg: 0 12px 40px rgba(10, 31, 63, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- TYPOGRAPHY --- */
.section__eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--midnight);
  margin-bottom: 20px;
}

.section__title em {
  font-style: italic;
  color: var(--mint-dark);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  transition: color var(--transition);
}

.header.scrolled .logo {
  color: var(--midnight);
}

.logo__icon {
  color: var(--mint);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.header.scrolled .nav__link {
  color: var(--gray-700);
}

.header.scrolled .nav__link:hover {
  color: var(--midnight);
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--midnight) !important;
  background: var(--mint);
  padding: 10px 20px;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--mint-light);
  transform: translateY(-1px);
}

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

.nav__bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.header.scrolled .nav__bar {
  background: var(--midnight);
}

.nav__toggle.active .nav__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active .nav__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 41, 0.88) 0%,
    rgba(10, 31, 63, 0.82) 40%,
    rgba(19, 45, 84, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 120px 24px 80px;
}

.hero__eyebrow {
  color: var(--mint);
  margin-bottom: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--mint);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}

.hero__scroll:hover {
  color: var(--mint);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--mint);
  color: var(--midnight);
  border-color: var(--mint);
}

.btn--primary:hover {
  background: var(--mint-light);
  border-color: var(--mint-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--midnight);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- SERVICES --- */
.services {
  padding: 120px 0;
  background: var(--white);
}

.services .section__header {
  text-align: center;
  margin-bottom: 64px;
}

.services .section__subtitle {
  margin: 0 auto;
}

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

.service-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
  background: var(--white);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--mint);
  color: var(--midnight);
}

.service-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- WHY US --- */
.why-us {
  padding: 120px 0;
  background: var(--cream);
}

.why-us__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-us__media {
  position: relative;
}

.why-us__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-us__img--main {
  height: 500px;
}

.why-us__img--accent {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 220px;
  height: 140px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.why-us__content {
  padding: 20px 0;
}

.why-us__lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 40px;
}

.why-us__features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mint);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
}

.feature__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 6px;
}

.feature__desc {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- ABOUT --- */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--midnight);
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.about__badge svg {
  color: var(--mint-dark);
}

.about__title {
  margin-bottom: 32px;
}

.about__body {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* --- CTA --- */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--midnight-deep) 0%, var(--midnight) 60%, var(--midnight-light) 100%);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta__title em {
  font-style: italic;
  color: var(--mint);
}

.cta__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- CONTACT --- */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__lead {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}

.contact-detail__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.contact-detail__value {
  display: block;
  font-size: 1rem;
  color: var(--midnight);
  font-weight: 500;
  line-height: 1.5;
}

.contact-detail__link {
  transition: color var(--transition);
}

.contact-detail__link:hover {
  color: var(--mint-dark);
}

/* --- FORM --- */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.contact__form-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--cream);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--mint-dark);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627D98' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #E6FAF6;
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  color: #0A6B54;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 16px;
}

/* --- FOOTER --- */
.footer {
  background: var(--midnight-deep);
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo--light {
  color: var(--white);
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.925rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--mint);
}

.footer__address p {
  font-size: 0.925rem;
  line-height: 1.65;
}

.footer__bottom {
  padding-top: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- MOBILE NAV --- */
@media (max-width: 1023px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--midnight);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav__list.open {
    right: 0;
  }

  .nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
  }

  .nav__link:hover {
    color: var(--mint) !important;
  }

  .nav__cta {
    margin-top: 16px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-us__img--accent {
    display: none;
  }

  .why-us__img--main {
    height: 400px;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding: 100px 20px 60px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust {
    flex-direction: column;
    gap: 12px;
  }

  .services {
    padding: 80px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .why-us {
    padding: 80px 0;
  }

  .about {
    padding: 80px 0;
  }

  .about__stats {
    gap: 32px;
    flex-direction: column;
    align-items: center;
  }

  .cta {
    padding: 80px 0;
  }

  .cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact {
    padding: 80px 0;
  }

  .contact__form-wrap {
    padding: 28px 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    text-align: left;
  }
}
