/* ============================================================
   Mobile Auto Clinic LLC — Stylesheet
   Fonts: Oswald (display), Inter (body) via Google Fonts
   ============================================================ */

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

:root {
  --navy-deep:   #0A1628;
  --navy-mid:    #1A3A5C;
  --navy-light:  #1E4470;
  --amber:       #E8A020;
  --amber-light: #F5B840;
  --off-white:   #F5F7FA;
  --steel:       #6B7A8D;
  --steel-light: #A8B4C0;
  --white:       #FFFFFF;
  --card-bg:     #122036;
  --border:      rgba(255,255,255,0.08);

  --font-display: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

html, body {
  height: 100%;
  background-color: var(--navy-deep);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Layout Shell ---------- */
.page-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-area img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--steel-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--off-white);
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--amber);
}

.phone-link svg {
  color: var(--amber);
  flex-shrink: 0;
}

.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-emergency:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}

/* Emergency pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--navy-deep);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--navy-deep);
  animation: pulse-ring 1.6s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.9; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Main Grid ---------- */
.main-content {
  padding: 28px 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* ---------- Trust Column (left) ---------- */
.trust-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Trust Card base */
.trust-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* BBB Card */
.bbb-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 3px solid var(--amber);
}

.bbb-score {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
}

.bbb-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--off-white);
  line-height: 1.3;
}

.bbb-sub {
  font-size: 0.7rem;
  color: var(--steel-light);
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* Experience Card */
.exp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 3px solid var(--navy-light);
}

.exp-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--off-white);
  line-height: 1;
  flex-shrink: 0;
}

.exp-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--off-white);
  line-height: 1.3;
}

.exp-sub {
  font-size: 0.7rem;
  color: var(--steel-light);
  margin-top: 3px;
}

/* Services Card */
.services-card {
  flex: 1;
}

.services-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-light);
  margin-bottom: 14px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--off-white);
  line-height: 1.35;
}

.service-icon {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-item strong {
  font-weight: 600;
  display: block;
  font-size: 0.93rem;
}

.service-item span {
  color: var(--steel-light);
  font-size: 0.78rem;
}

/* ---------- Hero Column (right) ---------- */
.hero-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero image grid — clean mosaic */
.hero-image-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Selfie spans both rows on the left — featured */
.hero-image-grid .hero-img:first-child {
  grid-row: 1 / 3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background-color: var(--navy-mid);
  transition: opacity 0.2s;
}

.hero-img:hover {
  opacity: 0.88;
}

/* Image placeholder */
.img-placeholder {
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero text block */
.hero-text {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 8px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 10px;
}

.hero-headline em {
  color: var(--amber);
  font-style: normal;
}

.hero-body {
  font-size: 0.9rem;
  color: var(--steel-light);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 20px;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--steel-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Bottom Row ---------- */
.bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.info-card-text {
  font-size: 0.8rem;
  color: var(--steel-light);
  line-height: 1.5;
}

.contact-link {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--amber-light);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.73rem;
  color: var(--steel);
}

.footer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--steel-light);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::before {
    animation: none;
  }
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-emergency:hover {
    transform: none;
  }
}

/* ---------- Responsive — Tablet ---------- */
@media (max-width: 960px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .trust-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .services-card {
    grid-column: 1 / -1;
  }

  .bottom-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 150px 150px;
  }
}

/* ---------- Responsive — Mobile ---------- */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 0 16px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .phone-link {
    font-size: 1rem;
  }

  .trust-column {
    grid-template-columns: 1fr;
  }

  .bottom-row {
    grid-template-columns: 1fr;
  }

  .hero-image-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-image-grid .hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .hero-headline {
    font-size: 1.6rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
