/* ═══════════════════════════════════════════════════════════
   PAGES/HOME.CSS — Homepage-specific styles
   Load FOURTH in index.html (after base, layout, components)
═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding-top: 68px;
  /* overflow visible so estimator card drop shadow isn't clipped */
}

/* Gradient fade at bottom — dark toward top fading to white at bottom for smooth hero-to-section transition */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(17,24,39,.85) 0%, rgba(17,24,39,.35) 45%, rgba(17,24,39,.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  animation: kenburns 12s ease-out forwards;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.hero__left {
  max-width: 560px;
}

.hero__kicker { margin-bottom: 16px; }

.hero__heading {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero__sub {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,.75);
  max-width: 48ch;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  position: relative;
  overflow: hidden;
}

/* Subtle left-to-right shimmer on hover */
.chip::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s ease;
}

.chip:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.chip:hover::after {
  left: 150%;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Estimator card */
.estimator {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.estimator__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.estimator__sub {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.estimator__field {
  margin-bottom: 16px;
}

.estimator__label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.estimator__sqft-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.estimator__size-tag {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid var(--blue-border);
  padding: 2px 7px;
  border-radius: 999px;
}

.estimator__size-tag.size--small {
  color: var(--blue);
  background: var(--blue-pale);
  border-color: var(--blue-border);
}

.estimator__size-tag.size--medium {
  color: var(--green);
  background: var(--green-pale);
  border-color: rgba(22, 163, 74, 0.3);
}

.estimator__size-tag.size--large {
  color: var(--amber);
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.3);
}

.estimator__size-tag.size--xl {
  color: var(--red);
  background: var(--red-pale);
  border-color: rgba(220, 38, 38, 0.3);
}

.range-input {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  outline: none;
  -webkit-appearance: none;
}

.range-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(29,78,216,.3);
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(29,78,216,.35);
}

.floor-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.floor-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.floor-type:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.floor-type:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.floor-type.active {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 4px 12px rgba(29,78,216,.15);
  transform: translateY(-2px);
}

.ft-icon {
  color: var(--muted);
  transition: color .2s, transform .2s;
}

.floor-type.active .ft-icon {
  color: var(--blue);
  transform: scale(1.1);
}

.ft-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-2);
}

.estimator__result {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.estimator__result-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.estimator__price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
}


.estimator__price-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Services Section ── */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Process Section ── */
.process { background: var(--ink); }

.process .section__title { color: var(--white); }
.process .section__sub { color: rgba(255,255,255,.55); }

/* Dark-section tag variant */
.tag--dark-invert {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}

/* ── Stats Section ── */
.stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Gallery Section ── */
.gallery {
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.gallery::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.gallery__header { margin-bottom: 36px; }

.gallery__track {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gallery__track::-webkit-scrollbar { height: 4px; }
.gallery__track::-webkit-scrollbar-track { background: transparent; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

@media (max-width: 768px) {
  .gallery::after { display: none; }
}

/* ── Why Us Section ── */
.why-us { background: var(--white); }

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-us__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.why-us__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.why-us__visual:hover img {
  transform: scale(1.04);
}

.why-us__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Testimonials Section ── */
.testimonials {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── FAQ Section ── */
.faq { background: var(--white); }

/* ── Hero Entrance Animation ── */
.hero__left,
.estimator {
  animation: heroFadeUp .7s cubic-bezier(.22,.7,.2,1) both;
}

.hero__left { animation-delay: .15s; }
.estimator { animation-delay: .3s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 60px;
  }

  .hero__left {
    max-width: 100%;
  }

  .hero__heading {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__sub {
    max-width: 100%;
  }

  .floor-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  /* Hide vertical step connectors in 2-column layout — they become horizontal lines */
  .process__step::after { display: none; }
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__step-num { font-size: 2.4rem; }
}


