/* =============================================================================
   Home page — layout & visual upgrade (scoped to body.home-page)
   Uses theme tokens from style.css :root
   ============================================================================= */

.home-page .navbar.fixed-top {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.home-page .navbar.fixed-top.navbar--scrolled,
.home-page nav.sticky-top {
  background-color: rgba(245, 243, 237, 0.97) !important;
  box-shadow: 0 4px 24px rgba(var(--color-primary-rgb), 0.08);
}

/* ——— Hero ——— */
.home-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(var(--color-primary-rgb), 0.82) 0%,
    rgba(53, 43, 36, 0.55) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 5rem;
  text-align: center;
  color: #fff;
}

.home-hero__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 1rem;
  color: var(--color-sand);
}

.home-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.25);
}

.home-hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
  color: var(--color-cream);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.home-hero__btn--primary {
  background: var(--color-cream);
  color: var(--color-primary) !important;
  border: 2px solid var(--color-cream);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.home-hero__btn--primary:hover {
  background: var(--color-sand);
  border-color: var(--color-sand);
  color: var(--color-primary-hover) !important;
  transform: translateY(-2px);
}

.home-hero__btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.home-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.home-hero__chip i {
  color: var(--color-mauve);
  font-size: 0.85rem;
}

.home-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: home-bob 2.2s ease-in-out infinite;
}

.home-hero__scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

@keyframes home-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ——— Stats strip ——— */
.home-stats {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
  position: relative;
  z-index: 2;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.home-stat {
  background: #fff;
  border-radius: 12px;
  padding: 1.35rem 1rem;
  text-align: center;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  box-shadow: 0 8px 28px rgba(var(--color-primary-rgb), 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(var(--color-primary-rgb), 0.1);
}

.home-stat__value {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.home-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary-muted);
  line-height: 1.35;
}

/* ——— Section headers (home) ——— */
.home-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.home-section-head__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.5rem;
}

.home-section-head__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.home-section-head__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-mauve));
}

.home-section-head__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-primary-muted);
  line-height: 1.6;
}

/* ——— About block ——— */
.home-page .home-about-section {
  background: linear-gradient(180deg, var(--color-cream) 0%, #faf8f4 100%);
}

.home-page .home-about-section .border {
  border-width: 3px !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 16px 48px rgba(var(--color-primary-rgb), 0.08);
}

.home-page .home-about-section .title h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.home-page .home-about-section .title h1 small {
  display: block;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-terracotta);
  margin-bottom: 0.35rem;
}

.home-page .home-about-section .para p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-primary-muted);
}

.home-page .home-about-section button.ongo {
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

.home-page .home-about-section button.ongo a.read {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.home-page .home-about-section .about__media-stack .logo {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.home-page .home-about-section .about__media-stack .carousel-inner {
  border-radius: 0 0 12px 12px !important;
  overflow: hidden;
}

/* ——— Projects carousel header ——— */
.home-page .completed-projects {
  background: var(--color-section-muted);
}

.home-page .completed-projects .title {
  text-align: center;
}

.home-page .completed-projects .title h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
}

/* ——— Testimonials ——— */
.home-page .testimonials {
  background: #fff;
}

.home-page .testimonials .title h1 {
  font-weight: 800;
}

.home-page .testimonial-card {
  background: var(--color-cream);
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.07);
}

/* ——— Case studies ——— */
.home-page .case-studies {
  background: linear-gradient(180deg, var(--color-section-muted) 0%, var(--color-cream) 100%);
}

/* ——— Location / map ——— */
.home-map-section {
  background: var(--color-section-muted) !important;
  padding-bottom: 3rem !important;
}

.home-map-section .project-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.home-map-section .project-heading p {
  font-size: 0.72rem !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-terracotta) !important;
  font-weight: 600 !important;
}

.home-map-section .project-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
  font-weight: 800 !important;
}

.home-map-section .map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(var(--color-primary-rgb), 0.12);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.home-map-section .map-container #map-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  user-select: none;
  pointer-events: none;
}

/* Pin tip aligns to coordinates (bottom-center of marker) */
.home-map-section .map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.home-map-section .map-pin:focus {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

.home-map-section .map-pin:focus:not(:focus-visible) {
  outline: none;
}

.home-map-section .map-pin:hover .map-pin__icon,
.home-map-section .map-pin:focus-visible .map-pin__icon {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.home-map-section .map-pin__icon {
  display: block;
  width: 28px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.home-map-section .map-popup {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(300px, calc(100% - 24px));
  z-index: 10;
  background: var(--color-cream);
  border: 1px solid rgba(var(--color-primary-rgb), 0.18);
  border-radius: 12px;
  padding: 14px 40px 14px 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  text-align: left;
}

.home-map-section .map-popup[hidden] {
  display: none !important;
}

.home-map-section .map-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-map-section .map-popup__close:hover {
  background: var(--color-primary);
  color: #fff;
}

.home-map-section .map-popup__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
  background: var(--color-section-muted);
}

.home-map-section .map-popup__title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.35;
}

.home-map-section .map-hint {
  color: var(--color-primary-muted) !important;
  font-size: 0.9rem !important;
}

/* ——— Sticky contact rail ——— */
.home-page .sticky-offset .sp {
  filter: drop-shadow(0 4px 12px rgba(var(--color-primary-rgb), 0.2));
}

.home-page .s-phone button {
  border-radius: 999px;
  background: var(--color-primary);
}

.home-page .s-phone button:hover {
  background: var(--color-primary-hover);
}

.home-page .s-phone button a i {
  padding: 12px;
}

/* ——— Mobile hero ——— */
@media (max-width: 576px) {
  .home-hero__inner {
    padding: 5.5rem 1rem 4rem;
  }

  .home-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-hero__btn {
    width: 100%;
  }

  .home-hero__scroll {
    display: none;
  }
}
