/* ═══════════════════════════════════════════════
   RepairTech Automotive — Design System
   World-class auto repair shop, Kissimmee FL
   Cloudflare Pages · Google-Centric
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Brand */
  --navy: #0B1D33;
  --navy-light: #132D4F;
  --navy-mid: #1B4068;
  --gold: #D4A843;
  --gold-light: #E8C76B;
  --gold-dark: #B8912E;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-200: #CBD5E1;
  --gray-300: #94A3B8;
  --gray-400: #64748B;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1E293B;
  --text: #0F172A;
  --text-secondary: #475569;

  /* Semantic */
  --success: #16A34A;
  --warning: #EAB308;
  --danger: #DC2626;
  --info: #2563EB;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-body);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; font-weight: 600; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section {
  padding: var(--space-4xl) 0;
}
.section-sm {
  padding: var(--space-3xl) 0;
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}
.section--gray {
  background: var(--off-white);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}
.section-header .overline {
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: var(--space-md);
}
.grid { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ── Overline Badge ── */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}
.overline::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}
.btn-icon {
  width: 20px;
  height: 20px;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--transition-base);
}
.header--top {
  background: transparent;
}
.header--scrolled {
  background: rgba(11, 29, 51, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.header__logo img {
  height: 48px;
  width: auto;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.header__nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  position: relative;
}
.header__nav a:hover,
.header__nav a.active {
  color: var(--gold);
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}
.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.header__phone svg {
  color: var(--gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}
.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A843' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.25);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__badge svg {
  width: 16px;
  height: 16px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}
.hero h1 .highlight {
  color: var(--gold);
}
.hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1875rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}
.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}
.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero__stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── Trust Bar ── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-xl) 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all var(--transition-slow);
}
.trust-bar__inner:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}
.trust-bar__inner img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ── Service Cards ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--gold-dark);
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap var(--transition-fast);
}
.service-card__link:hover {
  gap: 0.625rem;
}

/* ── Why Choose Us / Features ── */
.feature-card {
  text-align: center;
  padding: var(--space-xl);
}
.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.feature-card h4 {
  margin-bottom: var(--space-sm);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ── Reviews ── */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: #FBBF24;
}
.review-card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}
.review-card__author {
  font-weight: 700;
  font-size: 0.9375rem;
}
.review-card__source {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section__inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}
.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand p {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.footer__brand img {
  height: 44px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer__links a {
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}
.footer__links a:hover {
  color: var(--gold);
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}
.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  font-size: 0.8125rem;
}
.footer__social {
  display: flex;
  gap: var(--space-md);
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.footer__social a:hover {
  background: var(--gold);
  color: var(--navy);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}
.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a {
  color: var(--gold);
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── Content Sections ── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.content-split--reverse {
  direction: rtl;
}
.content-split--reverse > * {
  direction: ltr;
}
.content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.content-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
}
.check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Contact Form ── */
.form-group {
  margin-bottom: var(--space-lg);
}
.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Map Embed ── */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ── Info Cards ── */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.info-card h3 {
  margin-bottom: var(--space-md);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .content-split { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .content-split--reverse { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }

  .header__nav { display: none; }
  .header__actions .btn { display: none; }
  .menu-toggle { display: flex; }

  /* Mobile nav */
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
  }
  .header__nav.open a {
    font-size: 1.5rem;
    color: var(--white);
  }

  .hero { min-height: auto; padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl); }
  .hero__stats { flex-direction: column; gap: var(--space-lg); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer__bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  .section { padding: var(--space-3xl) 0; }
  .section-header { margin-bottom: var(--space-2xl); }

  .page-header { padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .trust-bar__inner { gap: var(--space-lg); }
  .trust-bar__inner img { height: 28px; }
}
