/* ==========================================================
   ELITE AUTO — services.css
   Shared styles for /services and all service subpages
   ========================================================== */

/* ── PAGE HERO (short) ──────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 4rem 2rem 3.5rem;
  border-bottom: 2px solid var(--green);
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 580px;
  margin-top: 0.85rem;
}

/* ── SERVICES HUB GRID ──────────────────────────────────── */
.services-hub-section {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 0;
}

.hub-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

/* Featured card (Paint & Body) gets a green top accent */
.hub-card--featured {
  border-top: 3px solid var(--green);
}

/* Photo placeholder */
.hub-card-img {
  height: 200px;
  background: linear-gradient(150deg, #252b30 0%, #14191d 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.hub-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.hub-card-img--quick      { background-image: url('../images/quick-services.jpg'); }
.hub-card-img--mechanical { background-image: url('../images/mechanical.jpg'); }
.hub-card-img--body       { background-image: url('../images/body-work.jpg'); }

/* Card body */
.hub-card-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.hub-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.hub-card-desc {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.68;
}

/* Service list */
.hub-service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
  flex: 1;
}

.hub-service-list li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.hub-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.hub-card-btn {
  margin-top: 1.25rem;
  align-self: flex-start;
}

/* ── CTA STRIP ──────────────────────────────────────────── */
.cta-strip {
  background: var(--dark);
  padding: 3.5rem 2rem;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.cta-strip-sub {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
  line-height: 1.6;
}

.cta-strip-actions {
  display: flex;
  gap: 0.85rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* page-hero styles live in main.css — available to all pages */

/* ── SERVICE DETAIL SECTION ─────────────────────────────── */
.service-detail-section {
  background: var(--bg);
  padding: 5rem 2rem;
}

.service-detail-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 680px;
  margin-bottom: 3rem;
  margin-top: 0.5rem;
}

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

.service-detail-item {
  padding: 1.75rem 2.5rem 1.75rem 0;
  border-bottom: 1px solid var(--surface);
}

.service-detail-item:nth-child(even) {
  padding-left: 2.5rem;
  padding-right: 0;
  border-left: 1px solid var(--surface);
}

.service-detail-item:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.service-detail-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.service-detail-name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.service-detail-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── VIDEO GALLERY ──────────────────────────────────────── */
.video-gallery-section {
  background: var(--dark);
  padding: 5rem 2rem;
}

.video-gallery-section .section-title { color: #fff; }
.video-gallery-section .section-sub   { color: rgba(255,255,255,0.6); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid #2e2e2e;
  transition: border-color 0.2s;
}

.video-card:hover { border-color: var(--green); }

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

/* ── CUSTOM PAINT SPOTLIGHT ─────────────────────────────── */
.custom-paint-section {
  background: var(--bg-alt);
  padding: 5rem 2rem;
}

.custom-paint-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.custom-paint-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-top: 0.5rem;
}

.custom-paint-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
  margin: 0.75rem 0 1.75rem;
}

.custom-paint-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}

.custom-paint-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.custom-paint-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.custom-paint-media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
}

.custom-paint-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hub-grid              { grid-template-columns: 1fr 1fr; }
  .video-grid            { grid-template-columns: repeat(2, 1fr); }
  .custom-paint-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .custom-paint-media    { order: -1; }
  .custom-paint-img      { height: 300px; }
}

@media (max-width: 600px) {
  .hub-grid                { grid-template-columns: 1fr; }
  .custom-paint-section    { padding: 3.5rem 1.25rem; }
  .custom-paint-list       { grid-template-columns: 1fr; }
  .custom-paint-img        { height: 240px; }
  .video-grid              { grid-template-columns: 1fr 1fr; }
  .services-hub-section    { padding: 3.5rem 1.25rem; }
  .service-detail-section  { padding: 3.5rem 1.25rem; }
  .video-gallery-section   { padding: 3.5rem 1.25rem; }
  .cta-strip               { padding: 3rem 1.25rem; }
  .cta-strip-inner         { flex-direction: column; align-items: flex-start; }
  .cta-strip-actions       { width: 100%; flex-direction: column; }
  .cta-strip-actions .btn  { width: 100%; }
  .hub-card-btn            { width: 100%; text-align: center; justify-content: center; }
  .service-detail-grid     { grid-template-columns: 1fr; }
  .service-detail-item:nth-child(even) { padding-left: 0; border-left: none; }
  .service-detail-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--surface); padding-bottom: 1.75rem; }
  .service-detail-item:last-child { border-bottom: none; padding-bottom: 0; }

}
