/* ============================================================
   css/pages/home.css — HOME PAGE SPECIFIC STYLES
   Only styles that are unique to the home page go here.
   Global styles (buttons, nav, footer) are in components.css
   ============================================================ */

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 0;
  height: min(760px, calc(100vh - var(--nav-height)));
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Background image layer */
.hero__bg {
  position: absolute;
  inset: 0;
  background: #181818;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 7s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Dark overlay so text is readable over the image */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.66), rgba(8, 6, 4, 0.42));
}

/* Content sits above the image and overlay */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 0 20px;
}

.hero__service {
  min-height: 1.4em;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* Pill badge: "SOUTH AFRICA'S PREMIER AUTO UPHOLSTERY" */
.hero__badge {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid rgba(200, 168, 75, 0.5);
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 28px;
}

/* Main hero heading */
.hero__title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.12;
  margin-bottom: 22px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
}

/* Hero description paragraph */
.hero__desc {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Row of two buttons */
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── STATS SECTION ────────────────────────────────────────── */
.stats {
  padding: 10px 16px 60px;
  background-color: var(--bg-primary);
}

/* 4 stats in a row */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Each individual stat */
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* The gold icon box for each stat */
.stats__icon {
  width: 60px;
  height: 60px;
  background-color: var(--gold-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

/* The big number */
.stats__number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
}

/* The label below the number */
.stats__label {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* ── SERVICES SECTION ─────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Individual service card */
.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

/* Gold icon box at the top of each card */
.service-card__icon {
  margin-bottom: 22px;
}

/* Service name */
.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

/* Short description */
.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Bullet point list of features */
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Gold bullet dot */
.service-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* "Get Quote →" link at the bottom */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}

.service-card__link:hover { gap: 10px; }

/* "View All Services →" link below the grid */
.services__view-all {
  text-align: center;
  margin-top: 40px;
}

.services__view-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}

.services__view-all a:hover { gap: 12px; }

/* ── PORTFOLIO PREVIEW SECTION ────────────────────────────── */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Each portfolio card */
.portfolio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

/* Image container */
.portfolio-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card__image .portfolio-card__after {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-card__before {
  opacity: 0;
}

.portfolio-card:hover .portfolio-card__after {
  opacity: 1;
  transform: scale(1);
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.05);
}

/* Category badge on top of image */
.portfolio-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
}
.portfolio-card__state {
	display: none;
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.78);
  color: var(--text-white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.portfolio-card.is-after .portfolio-card__state {
  background: var(--gold);
  color: #1A1200;
}

/* Text area below image */
.portfolio-card__body {
  padding: 20px 22px;
}

.portfolio-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.portfolio-card__desc {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* "View Full Portfolio →" link */
.portfolio__view-all {
  text-align: center;
  margin-top: 40px;
}

.portfolio__view-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}

.portfolio__view-all a:hover { gap: 12px; }

/* ── WHY CHOOSE US SECTION ────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

/* Each reason: icon + title + desc, all centered */
.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.why-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.why-item__desc {
  font-size: 0.87rem;
  color: var(--text-gray);
  line-height: 1.65;
}

/* ── TESTIMONIALS SECTION ─────────────────────────────────── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Individual testimonial card */
.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-gold);
}

/* Top row: stars on left, quote mark on right */
.testimonial-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* Gold star rating */
.testimonial-card__stars {
  display: flex;
  gap: 3px;
}

.testimonial-card__stars span {
  color: var(--gold);
  font-size: 1rem;
}

/* Large decorative quote mark */
.testimonial-card__quote-mark {
  font-size: 2.8rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  font-family: Georgia, serif;
}

/* The review text */
.testimonial-card__text {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
}

/* Author row: avatar circle + name + car info */
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Circular avatar with initial letter */
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--gold-bg);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
}

.author-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── CTA BANNER SECTION ───────────────────────────────────── */
.cta {
  padding: var(--section-pad) 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.cta__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
