/* ============================================================
   CAR CLINC — SHARED MOBILE RESPONSIVE CSS
   Breakpoint: max-width 900px
   Strategy: Hide desktop layout, show mobile layout
   ============================================================ */

/* ---------- HIDE DESKTOP / SHOW MOBILE ---------- */
.mobile-page { display: none; }

@media (min-width: 901px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
  }

  .desktop-page {
    width: 100%;
    max-width: none;
    overflow: hidden;
    position: relative;
  }

  .desktop-page > div {
    width: 1440px !important;
    transform: scale(var(--desktop-fit-scale, 1));
    transform-origin: top left;
  }
}

@media (max-width: 900px) {
  /* Hide desktop wrapper */
  .desktop-page { display: none !important; }
  /* Show mobile wrapper */
  .mobile-page {
    display: block;
    width: 100%;
    overflow-x: hidden;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    color: #0a0a0a;
  }

  /* ---- RESET ---- */
  *, *::before, *::after { box-sizing: border-box; }
  img { max-width: 100%; height: auto; }

  /* ============================================================
     MOBILE NAVBAR
     ============================================================ */
  .m-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 16px rgba(71,71,181,0.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 68px;
  }
  .m-nav-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
  }
  .m-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .m-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #4747b5;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  /* Drawer */
  .m-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    box-shadow: -4px 0 24px rgba(71,71,181,0.18);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    padding: 80px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .m-drawer.open { right: 0; }
  .m-drawer-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #4747b5;
    line-height: 1;
  }
  .m-drawer a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #0a0a0a;
    text-decoration: none;
    border-bottom: 1px solid rgba(71,71,181,0.1);
    transition: color 0.2s;
  }
  .m-drawer a:hover { color: #4747b5; }
  .m-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
  }
  .m-overlay.open { display: block; }

  /* ============================================================
     PAGE TOP PADDING (account for fixed nav)
     ============================================================ */
  .m-body { padding-top: 68px; }

  /* ============================================================
     WATERMARK (decorative, pointer-events none)
     ============================================================ */
  .m-watermark {
    position: absolute;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
  }

  /* ============================================================
     SECTION UTILITIES
     ============================================================ */
  .m-section {
    padding: 48px 20px;
    position: relative;
  }
  .m-section-sm { padding: 32px 20px; }
  .m-section-alt { background: #fbfbfb; }
  .m-section-blue {
    background: #4747b5;
    border-radius: 24px;
    margin: 0 12px;
  }

  .m-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #71c69e;
    margin-bottom: 10px;
  }
  .m-h1 {
    font-family: 'Sitara', serif;
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 700;
    color: #4747b5;
    line-height: 1.25;
    margin: 0 0 14px 0;
  }
  .m-h2 {
    font-family: 'Sitara', serif;
    font-size: clamp(22px, 6vw, 32px);
    font-weight: 700;
    color: #4747b5;
    line-height: 1.3;
    margin: 0 0 12px 0;
  }
  .m-h3 {
    font-family: 'Sitara', serif;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 700;
    color: #4747b5;
    margin: 0 0 10px 0;
  }
  .m-p {
    font-size: 15px;
    color: #606060;
    line-height: 1.7;
    margin: 0 0 16px 0;
  }
  .m-center { text-align: center; }

  /* ============================================================
     BUTTONS
     ============================================================ */
  .m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    min-height: 48px;
    touch-action: manipulation;
  }
  .m-btn-primary {
    background: linear-gradient(135deg, #4747b5, #6b6bdb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(71,71,181,0.3);
  }
  .m-btn-primary:hover { background: linear-gradient(135deg,#3a3aa0,#5a5acf); transform: translateY(-1px); }
  .m-btn-white {
    background: #fff;
    color: #4747b5;
    box-shadow: 0 4px 12px rgba(71,71,181,0.2);
  }
  .m-btn-outline {
    background: transparent;
    color: #4747b5;
    border: 2px solid #4747b5;
  }
  .m-btn-green {
    background: linear-gradient(135deg, #71c69e, #5ab88a);
    color: #fff;
  }
  .m-btn-full { width: 100%; }
  .m-btn-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ============================================================
     HERO SECTION (home)
     ============================================================ */
  .m-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 20px 40px;
  }
  .m-hero-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 260px;
    margin-bottom: 24px;
  }
  .m-carclinc-text {
    width: 100%;
    opacity: 0.22;
    margin-bottom: 12px;
  }

  /* ============================================================
     BLUE BANNER
     ============================================================ */
  .m-blue-banner {
    background: #4747b5;
    border-radius: 20px;
    margin: 0 12px 8px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
  }
  .m-blue-banner .m-h2 { color: #fff; }
  .m-blue-banner .m-p { color: rgba(255,255,255,0.85); }
  .m-blue-banner img { width: 80px; height: 80px; margin-bottom: 12px; }

  /* ============================================================
     SERVICE CARDS (home)
     ============================================================ */
  .m-service-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(71,71,181,0.13);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .m-service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(71,71,181,0.2); }
  .m-service-card img { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
  .m-service-card-text h4 {
    font-family: 'Sitara', serif;
    font-size: 17px;
    font-weight: 700;
    color: #4747b5;
    margin: 0 0 4px 0;
  }
  .m-service-card-text p { font-size: 13px; color: #606060; margin: 0; line-height: 1.5; }

  /* ============================================================
     GUARANTEE CARDS (home)
     ============================================================ */
  .m-guarantee-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(71,71,181,0.13);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }
  .m-guarantee-card img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
  .m-guarantee-card span {
    font-size: 15px;
    font-weight: 600;
    color: #606060;
    font-family: 'Inter', sans-serif;
  }

  /* ============================================================
     TESTIMONIAL (home)
     ============================================================ */
  .m-testimonial {
    background: linear-gradient(135deg, rgba(71,71,181,0.06), rgba(113,198,158,0.08));
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
  }
  .m-testimonial blockquote {
    font-size: 16px;
    color: #606060;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 16px 0;
  }
  .m-testimonial cite {
    font-size: 15px;
    font-weight: 600;
    color: #4747b5;
    font-style: normal;
  }

  /* ============================================================
     HOME BOOKING FORM
     ============================================================ */
  .m-booking-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    padding: 28px 20px;
  }
  .m-booking-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #282828;
    margin-bottom: 6px;
  }
  .m-booking-form input,
  .m-booking-form select,
  .m-booking-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid rgba(71,71,181,0.25);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #606060;
    background: #fff;
    outline: none;
    margin-bottom: 16px;
  }
  .m-booking-form input:focus,
  .m-booking-form select:focus,
  .m-booking-form textarea:focus { border-color: #4747b5; box-shadow: 0 0 0 3px rgba(71,71,181,0.1); }
  .m-booking-form textarea { min-height: 110px; resize: none; }

  /* ============================================================
     SERVICES PAGE — SERVICE ITEM CARDS
     ============================================================ */
  .m-svc-item {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(71,71,181,0.13);
    padding: 22px 20px;
    margin-bottom: 16px;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .m-svc-item:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(71,71,181,0.2); }
  .m-svc-item h4 {
    font-family: 'Sitara', serif;
    font-size: 18px;
    font-weight: 700;
    color: #4747b5;
    margin: 0 0 8px 0;
  }
  .m-svc-item p { font-size: 14px; color: #606060; line-height: 1.65; margin: 0; }
  .m-svc-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 220px;
    margin-bottom: 24px;
  }

  /* ============================================================
     STEPS (services how it works)
     ============================================================ */
  .m-step {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(71,71,181,0.12);
    padding: 24px 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .m-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4747b5;
    color: #fff;
    font-family: 'Sitara', serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(71,71,181,0.3);
  }
  .m-step-content h4 {
    font-family: 'Sitara', serif;
    font-size: 18px;
    font-weight: 700;
    color: #4747b5;
    margin: 0 0 6px 0;
  }
  .m-step-content p { font-size: 14px; color: #606060; line-height: 1.65; margin: 0; }

  /* ============================================================
     WHY CHOOSE US (services)
     ============================================================ */
  .m-why-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(71,71,181,0.13);
    padding: 24px 20px;
    margin-bottom: 16px;
  }
  .m-why-card h4 {
    font-family: 'Sitara', serif;
    font-size: 20px;
    font-weight: 700;
    color: #4747b5;
    margin: 0 0 10px 0;
  }
  .m-why-card p { font-size: 14px; color: #606060; line-height: 1.65; margin: 0; }

  /* ============================================================
     BLOG PAGE
     ============================================================ */
  .m-featured-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(71,71,181,0.14);
    overflow: hidden;
    margin-bottom: 32px;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .m-featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 36px rgba(71,71,181,0.22); }
  .m-featured-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
  .m-featured-body { padding: 24px 20px; }
  .m-tag-green {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg,#71c69e,#5ab88a);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .m-tag-blue {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(71,71,181,0.1);
    color: #4747b5;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .m-meta { font-size: 12px; color: #999; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
  .m-blog-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(71,71,181,0.12);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .m-blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(71,71,181,0.2); }
  .m-blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
  .m-blog-card-body { padding: 20px 18px; }
  .m-blog-card-body h3 {
    font-family: 'Sitara', serif;
    font-size: 18px;
    font-weight: 700;
    color: #282828;
    margin: 0 0 8px 0;
    line-height: 1.4;
  }
  .m-blog-card-body p { font-size: 13px; color: #606060; line-height: 1.6; margin: 0 0 14px 0; }
  .m-read-more { color: #4747b5; font-weight: 600; font-size: 14px; text-decoration: none; }

  .m-tip-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(71,71,181,0.12);
    padding: 22px 20px;
    margin-bottom: 16px;
    border-left: 5px solid #71c69e;
    transition: transform 0.25s;
  }
  .m-tip-card:hover { transform: translateY(-3px); }
  .m-tip-num { font-family: 'Sitara', serif; font-size: 36px; font-weight: 700; color: rgba(71,71,181,0.12); line-height: 1; margin-bottom: 6px; }
  .m-tip-card h4 { font-size: 16px; font-weight: 600; color: #4747b5; margin: 0 0 6px 0; }
  .m-tip-card p { font-size: 13px; color: #606060; line-height: 1.6; margin: 0; }

  .m-newsletter {
    background: linear-gradient(135deg, rgba(71,71,181,0.08), rgba(113,198,158,0.1));
    border-radius: 20px;
    padding: 28px 20px;
    margin-top: 24px;
  }
  .m-newsletter input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid rgba(71,71,181,0.25);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    margin-bottom: 12px;
    background: #fff;
  }
  .m-newsletter input:focus { border-color: #4747b5; box-shadow: 0 0 0 3px rgba(71,71,181,0.1); }

  /* ============================================================
     CONTACT PAGE
     ============================================================ */
  .m-lane-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(71,71,181,0.13);
    padding: 28px 22px;
    margin-bottom: 16px;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .m-lane-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(71,71,181,0.22); }
  .m-lane-card h3 { font-family: 'Sitara', serif; font-size: 20px; font-weight: 700; color: #4747b5; margin: 0 0 10px 0; }
  .m-lane-card p { font-size: 14px; color: #606060; line-height: 1.65; margin: 0 0 18px 0; }

  .m-faq-item {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 4px 14px rgba(71,71,181,0.11);
    margin-bottom: 14px;
    transition: transform 0.25s;
  }
  .m-faq-item:hover { transform: translateY(-2px); }
  .m-faq-q {
    font-size: 16px;
    font-weight: 600;
    color: #4747b5;
    margin: 0 0 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .m-faq-q .q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: linear-gradient(135deg,#4747b5,#6b6bdb);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
  }
  .m-faq-a { font-size: 14px; color: #606060; line-height: 1.7; margin: 0; padding-left: 36px; }

  .m-contact-form { display: flex; flex-direction: column; gap: 14px; }
  .m-contact-form label { font-size: 13px; font-weight: 600; color: #4747b5; display: block; margin-bottom: 5px; }
  .m-contact-form input,
  .m-contact-form select,
  .m-contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid rgba(71,71,181,0.25);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #303030;
  }
  .m-contact-form input:focus,
  .m-contact-form select:focus,
  .m-contact-form textarea:focus { border-color: #4747b5; box-shadow: 0 0 0 3px rgba(71,71,181,0.1); }
  .m-contact-form textarea { min-height: 130px; resize: vertical; }

  .m-contact-details {
    background: linear-gradient(135deg, rgba(71,71,181,0.07), rgba(113,198,158,0.1));
    border-radius: 20px;
    padding: 26px 20px;
    margin-top: 20px;
  }
  .m-contact-details h3 { font-family: 'Sitara', serif; font-size: 20px; color: #4747b5; margin: 0 0 12px 0; }
  .m-contact-details ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
  .m-contact-details li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #303030; }
  .m-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #4747b5;
    box-shadow: 0 2px 8px rgba(71,71,181,0.12);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ============================================================
     FOOTER (mobile)
     ============================================================ */
  .m-footer {
    background: #fbfbfb;
    padding: 40px 20px 32px;
  }
  .m-footer-brand { margin-bottom: 28px; }
  .m-footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
  .m-footer-brand p { font-size: 14px; color: #606060; line-height: 1.6; margin: 0 0 16px 0; }
  .m-footer-subscribe {
    border: 1.5px solid #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    max-width: 260px;
  }
  .m-footer-subscribe span { font-size: 14px; color: rgba(0,0,0,0.4); }
  .m-footer-subscribe img { width: 20px; height: 20px; }
  .m-footer-socials { display: flex; gap: 16px; margin-top: 14px; }
  .m-footer-socials img { width: 24px; height: 24px; }

  .m-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 28px;
  }
  .m-footer-col h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 0 0 14px 0;
  }
  .m-footer-col a, .m-footer-col div {
    display: block;
    font-size: 13px;
    color: #606060;
    line-height: 1.6;
    text-decoration: none;
    margin-bottom: 8px;
  }
  .m-footer-col a:hover { color: #4747b5; }
  .m-footer-divider { border: none; border-top: 1px solid rgba(0,0,0,0.08); margin: 0 0 20px 0; }
  .m-footer-bottom { text-align: center; font-size: 12px; color: #999; }

  .m-app-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .m-app-badges img { width: 110px; height: 38px; object-fit: contain; }

  /* ============================================================
     DIVIDER
     ============================================================ */
  .m-divider-blue {
    height: 3px;
    background: #4747b5;
    border-radius: 2px;
    margin: 8px 0 32px 0;
  }

  /* ============================================================
     ANIMATIONS
     ============================================================ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .m-animate { animation: fadeUp 0.5s ease both; }
}

/* ============================================================
   GLOBAL SCROLL ANIMATIONS (DESKTOP & MOBILE)
   ============================================================ */
.fade-in-element {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
