/*
Theme Name: Auto MOT Centre v2.7
Theme URI: https://www.automotcentre.com
Author: Islah Web Service
Author URI: https://www.islahwebservice.com
Description: A custom WordPress theme for Auto MOT Centre with Elementor support. Features include MOT testing, car servicing, repairs, and automotive services.
Version: 2.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amc
Tags: elementor, automotive, mot, car-service
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ====================================================
   Color Palette based on original design:
   Primary: #1e3a5f (dark blue)
   Primary Light: #2c5282
   Accent: #e31e24 (red)
   ==================================================== */

:root {
  --amc-primary: #1e3a5f;
  --amc-primary-light: #2c5282;
  --amc-primary-dark: #0d1b2a;
  --amc-accent: #e31e24;
  --amc-accent-hover: #c62828;
  --amc-white: #ffffff;
  --amc-gray-50: #f9fafb;
  --amc-gray-100: #f3f4f6;
  --amc-gray-200: #e5e7eb;
  --amc-gray-300: #d1d5db;
  --amc-gray-400: #9ca3af;
  --amc-gray-500: #6b7280;
  --amc-gray-600: #4b5563;
  --amc-gray-700: #374151;
  --amc-gray-800: #1f2937;
  --amc-gray-900: #111827;
  --amc-blue-100: #dbeafe;
  --amc-blue-200: #bfdbfe;
  --amc-blue-300: #93c5fd;
  --amc-blue-400: #60a5fa;
  --amc-primary-800: #0d47a1;
  --amc-primary-950: #061a42;
  --amc-emerald-400: #34d399;
  --amc-border: #e5e7eb;
  --amc-shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.05);
  --amc-shadow-md: 0 10px 25px rgba(16, 24, 40, 0.08);
  --amc-shadow-lg: 0 18px 45px rgba(16, 24, 40, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--amc-gray-800);
  background-color: var(--amc-white);
  line-height: 1.6;
}

a {
  color: var(--amc-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--amc-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--amc-accent);
  color: var(--amc-white);
}

.btn-primary:hover {
  background-color: var(--amc-accent-hover);
  color: var(--amc-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--amc-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--amc-white);
}



/* Shared hero styles */
/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--amc-primary-dark) 0%, var(--amc-primary) 50%, var(--amc-primary-light) 100%);
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.hero-title {
  color: var(--amc-white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: #f87171;
}

.hero-subtitle {
  color: var(--amc-blue-200);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amc-white);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--amc-blue-200);
  opacity: 0.7;
}

/* Shared layout utilities */
/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-gray {
  background-color: var(--amc-gray-50);
}

.section-white {
  background-color: var(--amc-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Card Styles */
.card {
  background-color: var(--amc-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}


/* Shared builder and animation utilities */
/* Elementor Page Builder Support */
.elementor-section.boxed > .elementor-container {
  max-width: 1280px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}


/* Shared labels and actions */
.section-label { color: var(--amc-accent); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; display: inline-block; margin-bottom: .75rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.card-link { display: inline-block; margin-top: 1rem; color: var(--amc-accent); font-weight: 800; }

/* Shared content helpers */
.faq-item {
  background-color: var(--amc-white);
  border: 1px solid var(--amc-gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 700;
  color: var(--amc-primary);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--amc-gray-600);
}

.about-grid,
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-box {
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 130px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.stat-box strong {
  display: block;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .5rem;
}

.stat-box span {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}

.stat-box.blue { background: linear-gradient(135deg,#1565c0,#0d47a1); }
.stat-box.red { background: linear-gradient(135deg,#e31e24,#ff6b6b); }
.stat-box.gold { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.stat-box.green { background: linear-gradient(135deg,#059669,#34d399); }

.service-card {
  color: inherit;
  display: block;
}

.service-card .card-link {
  color: var(--amc-accent);
  font-weight: 700;
  margin-top: 1rem;
  display: inline-block;
}

.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-faq-grid .faq-item {
  background: #fff;
  border: 1px solid var(--amc-gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(16,24,40,.05);
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

@media (max-width: 900px) {
  .service-detail-grid,
  .home-faq-grid {
    grid-template-columns: 1fr;
  }

  .service-summary-card {
    position: static;
  }
}

/* Shared image slots */
/* ====================================================
   AMC v1.5 Image Slots
   ==================================================== */
.hero-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 2.5rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-image-card,
.section-image-slot {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16,24,40,.14);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}
.hero-image-card img,
.section-image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 400px;
  object-fit: cover;
}
.hero-image-card .amc-image-placeholder,
.section-image-slot .amc-image-placeholder {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,.86);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px dashed rgba(255,255,255,.34);
}
.section-image-slot {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--amc-gray-100);
  border: 1px solid var(--amc-gray-200);
}
.section-image-slot .amc-image-placeholder {
  color: var(--amc-gray-800);
  background: linear-gradient(135deg, #f9fafb, #eef2f7);
  border: 1px dashed var(--amc-gray-300);
}
.about-image-slot img,
.about-image-slot .amc-image-placeholder,
.services-image-slot img,
.services-image-slot .amc-image-placeholder,
.team-image-slot img,
.team-image-slot .amc-image-placeholder,
.about-page-image-slot img,
.about-page-image-slot .amc-image-placeholder,
.service-detail-image-slot img,
.service-detail-image-slot .amc-image-placeholder {
  min-height: 280px;
  max-height: 400px;
}
.service-hero-image-slot {
  margin-top: 2rem;
  max-width: 720px;
}
.service-hero-image-slot img,
.service-hero-image-slot .amc-image-placeholder {
  min-height: 260px;
}

/* Shared template utilities */
/* ====================================================
   v1.7 Page Templates
   ==================================================== */
.page-template-grid,
.amc-template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.amc-template-grid.two { grid-template-columns:repeat(2,1fr); }
.amc-template-card { background:#fff; border:1px solid var(--amc-border); border-radius:18px; padding:28px; box-shadow:var(--amc-shadow-sm); transition:all .3s ease; }
.amc-template-card:hover { transform:translateY(-4px); box-shadow:var(--amc-shadow-lg); }
.amc-template-card h3 { margin-top:0; }
.amc-template-card .card-link { color:var(--amc-accent); font-weight:800; margin-top:16px; display:inline-block; }
.amc-template-image { border-radius:20px; overflow:hidden; background:linear-gradient(135deg,var(--amc-primary),var(--amc-primary-light)); min-height:280px; display:flex; align-items:center; justify-content:center; color:#fff; text-align:center; padding:30px; }
.amc-template-image img { width:100%; height:100%; object-fit:cover; display:block; }
.amc-form-placeholder { background:#fff; border:1px solid var(--amc-border); border-radius:20px; padding:32px; box-shadow:var(--amc-shadow-md); }
.amc-form-placeholder code { background:#f4f4f5; padding:4px 8px; border-radius:6px; }
.amc-gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.amc-gallery-item { border-radius:18px; min-height:230px; max-height:400px; overflow:hidden; background:linear-gradient(135deg,var(--amc-primary),var(--amc-primary-light)); color:#fff; display:flex; align-items:end; padding:24px; box-shadow:var(--amc-shadow-sm); }
.amc-gallery-item img { width:100%; height:100%; max-height:400px; object-fit:cover; display:block; }
.amc-gallery-item span { font-weight:800; }
.amc-legal-content { max-width:860px; margin:0 auto; background:#fff; border:1px solid var(--amc-border); border-radius:20px; padding:36px; box-shadow:var(--amc-shadow-sm); }
.amc-legal-content h2 { margin-top:32px; }
.amc-shop-note { background:#fff8f8; border:1px solid #ffd7d7; border-radius:18px; padding:24px; margin-bottom:28px; }
@media (max-width: 900px) { .page-template-grid, .amc-template-grid, .amc-template-grid.two, .amc-gallery-grid { grid-template-columns:1fr; } }

