/* ============================================
   IIMMSFL - Modern Mobile Mechanic Theme
   Colors: Navy #1a2332, Orange #ff6b35, White
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --navy-dark: #0f1621;
  --orange: #ff6b35;
  --orange-hover: #e85a25;
  --orange-light: #ff8c5a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-300: #ccd1d9;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --success: #28a745;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* === Typography === */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-600); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-header .accent-line {
  width: 60px; height: 4px; background: var(--orange);
  border-radius: 2px; margin: 16px auto 0;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}
.btn-secondary {
  background: transparent; color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white); color: var(--navy);
}
.btn-outline {
  background: transparent; color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange); color: var(--white);
}
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* === Top Bar === */
.top-bar {
  background: var(--navy-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--orange-light); }
.top-bar a:hover { color: var(--orange); }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }
.top-bar-right .badge {
  background: var(--orange); color: var(--white);
  padding: 2px 10px; border-radius: 20px; font-weight: 600;
}

/* === Navbar === */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-brand .logo-text {
  font-size: 1.1rem; font-weight: 800; color: var(--navy);
  line-height: 1.2;
}
.nav-brand .logo-text span { color: var(--orange); }
.nav-brand .logo-icon {
  width: 48px; height: 48px; background: var(--orange);
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white); font-weight: 800;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-weight: 500; color: var(--gray-800); position: relative;
  padding: 4px 0; transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 16px; }

/* Mobile Nav */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="%23ff6b35" stroke-width="0.5" opacity="0.1"/><circle cx="100" cy="100" r="120" fill="none" stroke="%23ff6b35" stroke-width="0.3" opacity="0.08"/><circle cx="100" cy="100" r="160" fill="none" stroke="%23ff6b35" stroke-width="0.2" opacity="0.05"/></svg>') center/contain no-repeat;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-content h1 { margin-bottom: 20px; color: var(--white); }
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  font-size: 1.15rem; margin-bottom: 32px;
  color: rgba(255,255,255,0.85); max-width: 500px;
}
.hero-badges {
  display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px; border-radius: 30px;
  font-size: 0.9rem; backdrop-filter: blur(4px);
}
.hero-badge .icon { color: var(--orange); font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px; backdrop-filter: blur(10px);
  text-align: center; width: 100%;
}
.hero-card .big-phone {
  font-size: 2rem; font-weight: 800; color: var(--orange);
  margin-bottom: 8px;
}
.hero-card .big-phone a { color: var(--orange); }
.hero-card .big-phone a:hover { color: var(--orange-light); }
.hero-card p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.hero-card .promo {
  background: var(--orange);
  padding: 16px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.2rem;
}

/* === Services Grid === */
.services-section { padding: 80px 0; background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 0; background: var(--orange);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 107, 53, 0.15);
}
.service-card:hover::before { height: 100%; }
.service-card .icon {
  width: 56px; height: 56px; background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px; color: var(--orange);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; }
.service-card .learn-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--orange); font-weight: 600; margin-top: 12px;
  font-size: 0.9rem; transition: var(--transition);
}
.service-card .learn-more:hover { gap: 8px; }

/* === Why Choose Us === */
.why-us { padding: 80px 0; }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-item {
  text-align: center; padding: 32px 24px;
}
.why-item .number {
  font-size: 2.5rem; font-weight: 800; color: var(--orange);
  margin-bottom: 8px;
}
.why-item h3 { margin-bottom: 12px; }
.why-item p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  color: var(--white); padding: 60px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { margin-bottom: 24px; font-size: 1.1rem; opacity: 0.9; }
.cta-banner .btn-secondary { border-color: var(--white); color: var(--white); }
.cta-banner .btn-secondary:hover { background: var(--white); color: var(--orange); }
.cta-banner .phone-cta {
  font-size: 1.8rem; font-weight: 800; margin-top: 16px;
}
.cta-banner .phone-cta a { color: var(--white); }

/* === Testimonials === */
.testimonials { padding: 80px 0; background: var(--gray-50); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: #f4b400; margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-card blockquote {
  font-style: italic; color: var(--gray-600);
  margin-bottom: 16px; line-height: 1.7;
}
.testimonial-card .author { font-weight: 600; color: var(--navy); }
.testimonial-card .author span { color: var(--gray-600); font-weight: 400; font-size: 0.9rem; }

/* === Service Area === */
.service-area { padding: 80px 0; }
.area-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.area-list { columns: 2; column-gap: 24px; }
.area-list li {
  padding: 8px 0; padding-left: 24px; position: relative;
  break-inside: avoid; color: var(--gray-600);
}
.area-list li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}
.area-map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); height: 350px;
  background: var(--gray-100);
}
.area-map iframe { width: 100%; height: 100%; border: none; }

/* === About Page === */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 60px 0; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { opacity: 0.85; font-size: 1.1rem; }

.about-content { padding: 80px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; }
.about-image {
  background: var(--gray-100); border-radius: var(--radius);
  min-height: 350px; display: flex; align-items: center;
  justify-content: center; font-size: 4rem;
  box-shadow: var(--shadow-md); text-align: center;
}
.about-image > div {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; width: 100%;
}
.about-image img {
  max-width: 100%; height: auto; display: block;
  margin: 0 auto; border-radius: var(--radius-sm);
}

.values-section { padding: 80px 0; background: var(--gray-50); }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; text-align: center; box-shadow: var(--shadow-sm);
}
.value-card .icon {
  font-size: 2.5rem; margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--gray-600); font-size: 0.95rem; }

/* Certifications */
.certifications { padding: 80px 0; }
.cert-logos {
  display: flex; gap: 48px; justify-content: center;
  align-items: center; flex-wrap: wrap;
}
.cert-logo {
  background: var(--gray-50); padding: 24px 40px;
  border-radius: var(--radius); font-weight: 700;
  font-size: 1.1rem; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* === Contact Page === */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 6px;
  color: var(--navy); font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; gap: 16px; align-items: flex-start;
}
.info-card .icon {
  width: 48px; height: 48px; min-width: 48px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--orange);
}
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { color: var(--gray-600); font-size: 0.95rem; }
.info-card a { color: var(--orange); font-weight: 500; }

/* === Videos Page === */
.videos-section { padding: 80px 0; }
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.video-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.video-card .video-placeholder {
  background: var(--navy); height: 220px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 3rem; cursor: pointer;
  position: relative;
}
.video-card .video-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  transition: var(--transition);
}
.video-card:hover .video-placeholder::after { background: rgba(0,0,0,0.1); }
.video-card .video-info { padding: 20px; }
.video-card .video-info h3 { margin-bottom: 8px; font-size: 1.1rem; }
.video-card .video-info p { color: var(--gray-600); font-size: 0.9rem; }

/* === FAQ === */
.faq-section { padding: 80px 0; background: var(--gray-50); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 24px; background: none; border: none;
  font-size: 1rem; font-weight: 600; text-align: left;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: var(--navy); font-family: inherit;
  transition: var(--transition);
}
.faq-question:hover { color: var(--orange); }
.faq-question .arrow { transition: var(--transition); font-size: 1.2rem; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--gray-600); line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; }

/* === Footer === */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text {
  font-size: 1.2rem; font-weight: 800; color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .logo-text span { color: var(--orange); }
.footer-brand p { font-size: 0.9rem; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: var(--transition);
  font-size: 0.85rem; font-weight: 600;
}
.footer-social a:hover { background: var(--orange); }

.footer-col h4 {
  color: var(--white); margin-bottom: 16px;
  font-size: 1rem;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
  font-size: 0.85rem;
}

/* === Bilingual Badge === */
.bilingual-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange); padding: 6px 14px;
  border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}

/* === Skip Link (Accessibility) === */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--orange); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 8px;
}

/* === Animations === */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* === Google Ads Conversion Tracking Badge === */
.tracking-badge {
  display: none; /* Hidden, used for GTM */
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-badges { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .about-grid, .area-content, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar-left, .top-bar-right { width: 100%; justify-content: center; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0;
    width: 100%; background: var(--white);
    flex-direction: column; padding: 24px; gap: 16px;
    box-shadow: var(--shadow-md); z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-cta { margin-left: 0; }

  .hero { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .area-list { columns: 1; }
  .cert-logos { gap: 16px; }
  .cert-logo { padding: 16px 24px; font-size: 0.95rem; }
  .videos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* === Print === */
@media print {
  .navbar, .top-bar, .footer, .cta-banner { display: none; }
  body { color: #000; }
}
