/* A Star Garage — Light, clean, mobile-first */

:root {
  --red: #C8102E;
  --red-dark: #A00D24;
  --navy: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border: #e8e8e8;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1140px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--red);
  color: 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: white; }
.top-bar a:hover { opacity: 0.9; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-right { display: flex; gap: 12px; }
.top-bar-right a { font-size: 1rem; }

/* ---- HEADER / NAV ---- */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img { height: 44px; width: auto; }

nav { display: flex; gap: 24px; align-items: center; }
nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d2d4e 60%, #1a1a3a 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(60deg, transparent 40%, rgba(255,255,255,0.02) 42%, transparent 44%),
    linear-gradient(-60deg, transparent 40%, rgba(255,255,255,0.02) 42%, transparent 44%),
    linear-gradient(120deg, transparent 48%, rgba(255,255,255,0.015) 50%, transparent 52%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
  border-radius: 2px;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-small { padding: 50px 0; }
.hero-small h1 { font-size: 2rem; margin-bottom: 8px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-red {
  background: var(--red);
  color: white;
}
.btn-red:hover {
  background: var(--red-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
}
.btn-white {
  background: white;
  color: var(--red);
}
.btn-white:hover {
  background: #f0f0f0;
  color: var(--red-dark);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline:hover {
  background: white;
  color: var(--navy);
}
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
section { padding: 64px 0; }
section.alt { background: var(--bg-light); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- SERVICE CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.2s;
  border-top: 3px solid transparent;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-top-color: var(--red);
}
.card-icon {
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.card .price {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }
.card .btn { width: 100%; text-align: center; padding: 10px; font-size: 0.9rem; }

/* ---- TRUST STRIP ---- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-item {
  padding: 24px 16px;
}
.trust-icon {
  margin: 0 auto 12px;
}
.trust-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- CONTENT PAGES ---- */
.content { max-width: 800px; margin: 0 auto; }
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
}
.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 8px;
}
.content p { margin-bottom: 16px; }
.content ul, .content ol {
  margin: 0 0 16px 24px;
}
.content li { margin-bottom: 6px; }
.content strong { color: var(--navy); }

/* ---- PRICING TABLE ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.price-table th {
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.price-table tr:hover td { background: var(--bg-light); }

/* ---- FAQ ACCORDION ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--red); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 0 16px;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.cta-banner .btn-white { margin: 0 8px; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.footer-col a:hover { color: white; }
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 { color: var(--navy); margin-bottom: 16px; }
.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-detail .icon { font-size: 1.2rem; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
  nav a { font-size: 1rem; padding: 4px 0; }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  section { padding: 40px 0; }
  .section-title h2 { font-size: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }

  .top-bar-left { gap: 12px; font-size: 0.8rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .price-table { font-size: 0.85rem; }
  .price-table th, .price-table td { padding: 8px 10px; }
  .mot-checker-form { flex-direction: column; }
  .mot-checker-form input { font-size: 1.2rem; letter-spacing: 2px; padding: 14px; }
}

/* ---- MOT CHECKER ---- */
.mot-checker {
  background: var(--bg-light);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}
.mot-checker h2 {
  color: var(--red);
  margin: 0 0 8px;
}
.mot-checker > p {
  color: var(--text-light);
  margin-bottom: 20px;
}
.mot-checker-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}
.mot-checker-form input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  color: var(--navy);
  background: white;
}
.mot-checker-form input:focus {
  outline: none;
  border-color: var(--red);
}
.mot-checker-form input::placeholder {
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: none;
  color: #aaa;
  font-size: 1rem;
}
.mot-checker-form .btn { white-space: nowrap; }
.mot-checker-note {
  font-size: 0.8rem;
  color: #999;
  margin-top: 12px;
}
.mot-result {
  margin-top: 24px;
  text-align: left;
}
.mot-result-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.mot-result-vehicle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.mot-result-vehicle strong {
  color: var(--navy);
  font-size: 1.1rem;
}
.mot-result-expiry {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.mot-result-expiry.passed { color: #2e7d32; }
.mot-result-expiry.expired { color: var(--red); }
.mot-result-expiry.due-soon { color: #e65100; }
.mot-result-days {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.mot-result-book {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mot-result-history {
  margin-top: 16px;
}
.mot-result-history summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  padding: 8px 0;
}
.mot-test-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.mot-test-item:last-child { border-bottom: none; }
.mot-test-pass { color: #2e7d32; font-weight: 600; }
.mot-test-fail { color: var(--red); font-weight: 600; }
.mot-defect {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 4px 0 0 16px;
}
.mot-defect.dangerous { color: var(--red); font-weight: 600; }
.mot-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: mot-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes mot-spin { to { transform: rotate(360deg); } }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}
