/* =========================================
   SHARED TEXT / CTA (kept in sync with
   pages/services.css and pages/service-detail.css)
========================================= */

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.lead {
  font-size: 1.03rem;
  line-height: 1.9;
  color: var(--color-text-soft);
}

.final-cta {
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
}

.final-cta .section-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.final-cta h2 {
  color: #fff;
}

.final-cta .lead {
  max-width: 760px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   HERO
========================================= */

.hero--home {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  /* background-image is set inline per-page (see HTML), not here — url() inside a
     custom property resolves relative to the stylesheet it's substituted into, not
     the page that declared it, which broke every hero image sitewide. */
  background-color: #0a1018;
  color: #fff;
  text-align: center;
}

.hero--home .hero-overlay {
  width: 100%;
  max-width: 920px;
}

.hero--home .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero--home h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero--home .hero-sub {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

.hero--home .hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* =========================================
   GENERIC SECTION / CARDS
   (shared with pages/services.css and
   pages/service-detail.css)
========================================= */

.section-alt {
  background: var(--color-bg-soft);
}

.micro-note {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-top: 18px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
  min-width: 0;
}

.compare-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  min-width: 0;
}

.compare-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.compare-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.compare-item h3 {
  margin: 22px 22px 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.compare-item p {
  margin: 0 22px 18px;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.compare-item .btn-primary {
  margin: 0 22px 24px;
}

.choice-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  min-width: 0;
}

.choice-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.choice-item h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.choice-item p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.85;
}

.choice-item__icon {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero--home {
    min-height: auto;
    padding: 120px 20px 72px;
  }

  .hero--home .hero-sub {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .choice-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero--home h1 {
    font-size: 2rem;
  }
}

/* =========================================
   FEATURED SERVICES CAROUSEL
   Final clean version
========================================= */

.featured-rail{
  overflow: hidden;
}

.featured-rail__head{
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.featured-carousel{
  position: relative;
}

.featured-carousel__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.featured-carousel__viewport::-webkit-scrollbar{
  display: none;
}

.featured-carousel__track{
  display: flex;
  gap: 20px;
}

.rail-card{
  position: relative;
  flex: 0 0 min(78vw, 520px);
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  isolation: isolate;
}

.rail-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.rail-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.72) 8%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.08) 100%);
  z-index: 1;
}

.rail-card__body{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 560px;
  padding: 28px;
}

.rail-card__eyebrow{
  margin: 0 0 10px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.74);
}

.rail-card h3{
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.18;
  color: #fff;
}

.rail-card p{
  margin: 0 0 14px;
  max-width: 28ch;
  color: rgba(255,255,255,.84);
}

.rail-card__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.rail-card__link:hover{
  opacity: .86;
}

.rail-card__link::after{
  content: "›";
  line-height: 1;
  font-size: 1rem;
}

.featured-carousel__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: opacity .2s ease, background .2s ease;
}

.featured-carousel__nav:hover{
  background: rgba(15,23,42,.9);
}

.featured-carousel__nav:disabled{
  opacity: .35;
  cursor: default;
}

.featured-carousel__nav--prev{
  left: -8px;
}

.featured-carousel__nav--next{
  right: -8px;
}

.featured-carousel__dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.featured-carousel__dot{
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.22);
  cursor: pointer;
  transition: all .25s ease;
}

.featured-carousel__dot.is-active{
  width: 28px;
  background: rgba(15,23,42,.78);
}

@media (max-width: 1200px){
  .rail-card{
    flex: 0 0 min(82vw, 460px);
    min-height: 520px;
  }

  .rail-card__body{
    min-height: 520px;
  }
}

@media (max-width: 768px){
  .featured-rail__head{
    text-align: left;
    margin-bottom: 22px;
  }

  .featured-carousel__nav{
    display: none;
  }

  .featured-carousel__track{
    gap: 16px;
  }

  .rail-card{
    flex: 0 0 86%;
    min-height: 440px;
    border-radius: 22px;
    scroll-snap-align: start;
  }

  .rail-card__body{
    min-height: 440px;
    padding: 22px;
  }

  .featured-carousel__viewport{
    scroll-snap-type: x mandatory;
  }
}

/* ---------- HOME MAP (compact embed, CONTACT/LOCATION section) ---------- */

.home-map-wrap {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.home-map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.home-map-actions {
  margin-top: 20px;
  text-align: center;
}
