/* AC AUTO BODY REPAIR CENTRE — layout inspired by pulsebodyworks.com, colours from workshop branding */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-elevated: #181818;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --accent-bar: #b91c1c;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
  --header-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fca5a5;
}

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: min(200px, 48vw);
  height: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.55) 0%,
    rgba(5, 5, 5, 0.75) 45%,
    rgba(5, 5, 5, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 2rem;
  max-width: 44rem;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fecaca;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: #e4e4e7;
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Sections */
.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section--muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section--dark {
  background: #050505;
}

.section__head {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section__title--light {
  color: #fff;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Service cards */
.cards--services {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards--services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards--services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.35);
}

.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card__link:hover .card__cta {
  color: var(--accent-hover);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.card__text {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Workshop strip */
.workshop-strip {
  padding-block: 0;
}

.workshop-strip__grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .workshop-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .workshop-strip__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .workshop-strip__item:not(.workshop-strip__item--wide) {
    grid-column: span 2;
  }

  .workshop-strip__item--wide {
    grid-column: span 6;
  }
}

.workshop-strip__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.workshop-strip__item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

/* Testimonial */
.testimonial {
  max-width: 40rem;
  text-align: center;
}

.testimonial__quote {
  margin: 0;
}

.testimonial__text {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  font-style: italic;
  color: #fafafa;
}

.testimonial__cite {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Contact */
.section--contact {
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  border-top: 1px solid var(--border);
}

.contact {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 880px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.contact__address {
  font-style: normal;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: #e4e4e7;
}

.contact__sub {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.contact__hours {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact__links li {
  margin-bottom: 0.65rem;
}

.contact__link {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact__link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.contact__link--wa {
  display: inline-block;
}

.contact__note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  background: var(--surface);
}

.contact__map iframe {
  width: 100%;
  height: min(360px, 50vh);
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: #050505;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text);
}

/* Services page */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(220, 38, 38, 0.12), transparent 50%);
}

.page-hero__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.page-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.page-hero__lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.service-block {
  border-bottom: 1px solid var(--border);
}

.service-block__media {
  max-height: 420px;
  overflow: hidden;
}

.service-block__media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.service-block__content {
  padding: clamp(2rem, 5vw, 3rem) 0;
  max-width: 42rem;
}

.service-block--alt {
  background: var(--surface);
}

.service-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.service-block__content p {
  margin: 0 0 1rem;
  color: #d4d4d8;
}

.inline-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 38, 38, 0.45);
}

.inline-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
}
