/* ============================================
   Home Page Styles
   ============================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 29, 53, 0.9) 0%,
    rgba(27, 42, 74, 0.75) 50%,
    rgba(27, 42, 74, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-20) var(--space-5) var(--space-16);
}

.hero__label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.hero__title span {
  color: var(--gold);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--lh-relaxed);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}

.hero__trust {
  margin-top: var(--space-6);
}

/* ---- Services Grid (dark bg) ---- */
.home-services {
  background: var(--navy);
}

/* ---- About Teaser ---- */
.about-teaser__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser__image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-teaser__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-teaser__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-teaser__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--gray-600);
}

.about-teaser__list svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Featured Projects ---- */
.featured-project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.featured-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-project:hover img {
  transform: scale(1.08);
}

.featured-project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 74, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  transition: background var(--transition-base);
}

.featured-project:hover .featured-project__overlay {
  background: linear-gradient(to top, rgba(27, 42, 74, 0.95) 0%, rgba(27, 42, 74, 0.3) 100%);
}

.featured-project__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.featured-project__title {
  font-size: var(--fs-xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.featured-project__desc {
  font-size: var(--fs-sm);
  color: var(--gray-300);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.featured-project:hover .featured-project__desc {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Process Timeline ---- */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 576px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: var(--space-6);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}

.process-step__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.process-step__text {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}

/* ---- Stats Counter Bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__suffix {
  font-size: var(--fs-2xl);
}

.stat__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--navy-dark);
}

/* Attribution for the counters above: the first three are the founder's
   career figures, not the LLC's, and the bar must say so. */
.stats-bar__note {
  margin-top: var(--space-8);
  text-align: center;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--navy-dark);
  opacity: 0.75;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Testimonials ---- */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-carousel__track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: var(--space-6);
  text-align: center;
}

.testimonial-slide__stars {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  color: var(--gold);
}

.testimonial-slide__stars svg {
  width: 20px;
  height: 20px;
}

.testimonial-slide__text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: var(--lh-relaxed);
  color: var(--gray-700);
  margin-bottom: var(--space-6);
}

.testimonial-slide__author {
  font-weight: var(--fw-semibold);
  color: var(--navy);
}

.testimonial-slide__role {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}

/* Carousel controls */
.testimonial-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.testimonial-carousel__prev,
.testimonial-carousel__next {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  color: var(--navy);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.testimonial-carousel__prev:hover,
.testimonial-carousel__next:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.testimonial-carousel__dots {
  display: flex;
  gap: var(--space-2);
}

.testimonial-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.testimonial-carousel__dot--active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ---- Service Areas ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

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

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

.area-card {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.area-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

.area-card svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  margin: 0 auto var(--space-2);
}

.area-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--white);
}

/* CTA Banner styles moved to components.css (shared across all pages) */

/* ---- Single verified testimonial -------------------------------------
   Replaces the three-slide carousel. MIRAI has one real, attributable
   client quote; showing it alone is stronger than padding it out. */
.single-testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.single-testimonial .testimonial-slide__stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--space-5);
}

.single-testimonial .testimonial-slide__stars svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.single-testimonial blockquote {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 var(--space-6);
  border: none;
  padding: 0;
  color: inherit;
}

.single-testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.single-testimonial .testimonial-slide__author {
  font-weight: var(--fw-semibold);
  color: var(--gold);
}

.single-testimonial .testimonial-slide__role {
  font-size: var(--fs-sm);
  opacity: 0.75;
}

/* ---- Hero crop anchor -------------------------------------------------
   The hero image is a composite with Andrew standing in the right third.
   object-fit: cover with the default 50% centre crop cut him in half on a
   phone (at 375px only source x 938-1313 of 1600 was visible, and he
   occupies 1200-1441). Biasing the crop right keeps him in frame as the
   viewport narrows, without changing the desktop framing much. */
.hero__bg img {
  object-position: 62% center;
}

@media (max-width: 900px) {
  .hero__bg img { object-position: 78% center; }
}

@media (max-width: 600px) {
  .hero__bg img { object-position: 84% center; }
}

/* ---- CTA banner crop anchor -------------------------------------------
   The CTA background is a composite with Andrew standing in the right
   third of the source (x 1125-1366 of 1600). It is background-attachment:
   fixed, so the image is sized to the viewport rather than the section,
   and the default 50% centre crop pushed him out of frame entirely below
   1440px. Measured visible windows at 50%: 1440px showed source 288-1312,
   900px showed 480-1120, 390px showed 639-961. Biasing right keeps him in
   shot at every width. */
#cta {
  background-position: 68% center;
}

@media (max-width: 1100px) {
  #cta { background-position: 85% center; }
}
