/* ============================================
   Richard Murray Repair — Styles
   Teal + Slate Grey · Warm & Friendly
   ============================================ */

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

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0f766e;
  --teal-700: #0d5f59;
  --teal-800: #0a4a45;
  --teal-900: #083d3a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12);

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-800);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-700);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal-600);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--center {
  text-align: center;
  max-width: 760px;
}

.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn--teal {
  background: var(--teal-600);
  color: #fff;
  border-color: var(--teal-600);
}

.btn--teal:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--teal-600);
  border-color: var(--teal-600);
}

.btn--outline:hover {
  background: var(--teal-50);
  color: var(--teal-700);
}

.btn--white {
  background: #fff;
  color: var(--teal-700);
  border-color: #fff;
}

.btn--white:hover {
  background: var(--teal-50);
  color: var(--teal-800);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--slate-800);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo:hover {
  color: var(--teal-600);
}

.nav__logo-icon {
  color: var(--teal-600);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--slate-700);
}

.nav__menu {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__list a {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav__list a:hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-50) 0%, #ffffff 50%, var(--slate-50) 100%);
}

.hero__bg-accent {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(15, 118, 110, 0.08);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

.hero__body {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
}

.hero__trust svg {
  color: var(--teal-500);
  flex-shrink: 0;
}

.hero__image {
  position: relative;
}

.hero__image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-800);
}

.hero__image-badge svg {
  color: var(--teal-500);
}

/* ========== SECTIONS ========== */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--slate-50);
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 560px;
  line-height: 1.7;
}

.section__header--center .section__subtitle {
  margin: 0 auto;
}

.body-lg {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  color: var(--teal-600);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.card:hover .card__icon {
  background: var(--teal-600);
  color: #fff;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.625rem;
}

.card__body {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ========== ABOUT / SPLIT ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split__media {
  position: relative;
}

.split__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #fff;
}

.split__img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content .section__eyebrow {
  margin-bottom: 0.75rem;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--slate-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal-600);
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
}

.feature:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.feature__bulb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  color: var(--teal-600);
  transition: all var(--transition);
}

.feature:hover .feature__bulb {
  background: var(--teal-600);
  color: #fff;
}

.feature__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.feature__body {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery__item--tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* ========== CTA ========== */
.cta {
  position: relative;
  padding: 6rem 0;
  background: var(--teal-700);
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-600) 100%);
  pointer-events: none;
}

.cta__bg::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta__bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-200);
  margin-bottom: 1rem;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cta__body {
  font-size: 1.125rem;
  color: var(--teal-100);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========== CONTACT ========== */
.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info__icon {
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-info__item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 0.25rem;
}

.contact-info__item span,
.contact-info__item a {
  font-size: 1rem;
  color: var(--slate-800);
  font-weight: 500;
}

.contact-info__item a:hover {
  color: var(--teal-600);
}

/* ========== FORM ========== */
.form {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: var(--slate-50);
  transition: all var(--transition);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--teal-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--slate-400);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-top: 1rem;
}

.form__success {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-md);
  color: var(--teal-700);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.form__success svg {
  color: var(--teal-500);
  flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--slate-800);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer__logo:hover {
  color: var(--teal-400);
}

.footer__logo-icon {
  color: var(--teal-400);
}

.footer__tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 280px;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links strong,
.footer__contact strong {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-300);
}

.footer__links ul,
.footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a,
.footer__contact a {
  color: var(--slate-400);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--teal-400);
}

.footer__contact svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* ========== MOBILE MENU ========== */
@media (max-width: 900px) {
  .container--split,
  .hero__inner,
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split__img-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    border: none;
    box-shadow: var(--shadow-md);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .nav__menu.is-open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__list a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav__list li:last-child {
    margin-top: 0.5rem;
  }

  .nav__list li:last-child .btn {
    justify-content: center;
  }

  .hero {
    padding: 6rem 0 3.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .hero__image-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    display: inline-flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .stats {
    gap: 1.5rem;
  }

  .form {
    padding: 1.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .feature,
  .gallery__item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--transition),
                box-shadow var(--transition);
  }

  .card.is-visible,
  .feature.is-visible,
  .gallery__item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .card:nth-child(2).is-visible,
  .feature:nth-child(2).is-visible,
  .gallery__item:nth-child(2).is-visible {
    transition-delay: 0.08s;
  }

  .card:nth-child(3).is-visible,
  .feature:nth-child(3).is-visible,
  .gallery__item:nth-child(3).is-visible {
    transition-delay: 0.16s;
  }

  .card:nth-child(4).is-visible,
  .feature:nth-child(4).is-visible {
    transition-delay: 0.24s;
  }

  .card:nth-child(5).is-visible {
    transition-delay: 0.32s;
  }

  .card:nth-child(6).is-visible {
    transition-delay: 0.40s;
  }
}
