/* =========================================================
   Young's Collision Center — shared site styles
   Mobile-first. Breakpoints: 480 / 768 / 1024
   ========================================================= */

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #C8102E;
  --red-dark: #a20d25;
  --charcoal: #232326;
  --gray-900: #2f3033;
  --gray-700: #5B6169;
  --gray-400: #9aa0a6;
  --gray-200: #C9CDD3;
  --gray-100: #f2f3f5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.16);
  --max-width: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 14px; }
p { margin: 0 0 16px; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.center { text-align: center; }
.text-gray { color: var(--gray-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand svg, .brand img { height: 44px; width: auto; }

.nav-call {
  display: none;
}
.header-actions-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
  flex: none;
  transform: scaleX(-1); /* mirror the phone glyph so it points the usual way */
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle.no-anim,
.nav-toggle.no-anim::before,
.nav-toggle.no-anim::after,
.nav-toggle.no-anim span,
.main-nav.no-anim {
  transition: none !important;
}

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 12px 20px 40px;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid var(--gray-100); }
.main-nav a {
  display: block;
  padding: 16px 4px;
  font-weight: 600;
  font-size: 17px;
}
.main-nav a.active { color: var(--red); }
.main-nav .nav-cta { margin-top: 20px; }
.main-nav .nav-cta a { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 88vh;
  overflow: hidden;
  background: var(--charcoal);
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero video { z-index: 2; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(20,20,22,0.55) 0%, rgba(20,20,22,0.15) 32%, rgba(20,20,22,0.65) 100%);
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: 0 20px 40px;
  color: var(--white);
}
.hero-content .eyebrow { color: #ffb3bd; }
.hero-content h1 {
  font-size: 30px;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero-content p {
  font-size: 16px;
  color: #e9e9ec;
  max-width: 480px;
  margin-bottom: 22px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--charcoal);
  color: var(--white);
  padding: 22px 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.trust-item strong { font-size: 22px; font-weight: 700; color: var(--white); }
.trust-item span { font-size: 12.5px; color: var(--gray-200); letter-spacing: 0.03em; margin-top: 2px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(200,16,46,0.1);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--gray-700); margin-bottom: 0; }

/* ---------- Services preview ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-pill {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 14px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.testimonial-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
}
.stars { color: var(--red); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p { font-size: 15px; color: var(--gray-900); font-style: italic; }
.testimonial-card .name { font-weight: 700; font-size: 14px; font-style: normal; color: var(--charcoal); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 46px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: 24px; }
.cta-band p { color: #ffdfe3; margin-bottom: 22px; }
.cta-band .btn-primary { background: var(--white); color: var(--red); }
.cta-band .btn-primary:hover { background: var(--gray-100); }

/* ---------- Inner page hero banner ---------- */
.page-hero {
  position: relative;
  padding: 64px 0 40px;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.page-hero img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,22,0.75) 0%, rgba(20,20,22,0.55) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 30px; margin-bottom: 8px; }
.page-hero p { color: var(--gray-200); max-width: 560px; margin-bottom: 0; }
.breadcrumb { font-size: 13px; color: var(--gray-200); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  /* So a same-page anchor jump (e.g. from the "Get a Free Estimate"
     CTAs elsewhere on the site) lands below the sticky header instead
     of tucking the top of the form underneath it. */
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--gray-700); margin-bottom: 20px; }
.form-check input { width: auto; margin-top: 3px; }
.form-note { font-size: 12.5px; color: var(--gray-700); margin-top: 10px; }
.form-status { font-size: 14px; margin-top: 14px; display: none; }
.form-status.success { color: #1c7c3f; display: block; }
.form-status.error { color: var(--red); display: block; }

/* ---------- Info blocks (contact page) ---------- */
.info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.info-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.info-list .ico {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(200,16,46,0.1);
  color: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex: none;
}
.info-list strong { display: block; font-size: 14px; }
.info-list span, .info-list a { font-size: 14px; color: var(--gray-700); }
.map-frame {
  border: 0; width: 100%; height: 280px; border-radius: var(--radius);
  filter: grayscale(15%);
}

/* ---------- Careers page ---------- */
.careers-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.posting-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.posting-card-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.posting-card h3 { font-size: 18px; margin: 0; }
.posting-card .apply-btn { margin-top: 12px; }
/* Preserve line breaks/paragraphs typed or pasted into the admin dashboard
   (postings are plain text, not rich text, but a plain <p> still collapses
   every line break and run of spaces by default). */
.posting-description, #careersIntro { white-space: pre-line; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--red); background: rgba(200,16,46,0.1); border-radius: 999px;
  padding: 4px 12px; white-space: nowrap;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--gray-100); }
.timeline li { position: relative; padding: 2px 0 26px 24px; }
.timeline li::before {
  content: ''; position: absolute; left: -8px; top: 4px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gray-100);
}
.timeline strong { display: block; color: var(--red); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 4px; }
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-strip img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; }

/* ---------- Legal / policy text ---------- */
.policy-block {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px 22px;
  font-size: 14.5px;
  color: var(--gray-900);
}
.policy-block h3 { font-size: 15px; margin-bottom: 8px; }
.policy-block p { margin-bottom: 16px; }
.policy-block p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--gray-200);
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand svg, .footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: var(--gray-200); max-width: 340px; }
.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--gray-400);
  font-size: 12.5px;
}

/* =========================================================
   Tablet / Desktop
   ========================================================= */
@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .nav-toggle { display: none; }
  .nav-call-icon { display: none; }
  .nav-call { display: inline-flex; }
  :root { --header-h: 78px; }
  .brand svg, .brand img { height: 52px; }
  .main-nav {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
    width: auto;
  }
  .main-nav ul { display: flex; align-items: center; gap: 8px; }
  .main-nav li { border: none; }
  .main-nav a { padding: 10px 14px; font-size: 14.5px; }
  .main-nav .nav-cta { display: none; }

  .hero { aspect-ratio: 16/8; max-height: 82vh; }
  .hero-content { padding: 0 40px 64px; }
  .hero-content h1 { font-size: 46px; max-width: 720px; }
  .hero-content p { font-size: 18px; max-width: 560px; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  .page-hero { padding: 88px 0 56px; }
  .page-hero h1 { font-size: 42px; }
  .page-hero p { font-size: 17px; }

  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid.reverse .about-copy { order: 2; }
  .map-frame { height: 360px; }
}

@media (min-width: 900px) {
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .careers-layout { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

@media (min-width: 1024px) {
  .hero-content h1 { font-size: 54px; }
}
