/* ============================================================
   HARBOUR GLASS - Homepage Styles
   Ported from harbour-glass/css/homepage.css (Session 10)
   Pure ASCII. CSS arrow uses unicode escape \2192.
   ============================================================ */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 20, 0.3) 0%,
      rgba(10, 10, 20, 0.1) 40%,
      rgba(10, 10, 20, 0.6) 70%,
      rgba(10, 10, 20, 0.95) 100%
    );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero__overline {
  margin-bottom: var(--space-sm);
}
.hero__title {
  font-size: var(--text-display);
  margin-bottom: var(--space-md);
  line-height: 0.95;
}
.hero__title em {
  font-style: normal;
  color: var(--lime);
}

/* --- ROTATING HERO HEADLINES --- */
.hero__title--rotating {
  position: relative;
}
.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
}
.hero__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero__subtitle {
  font-size: var(--text-lg);
  max-width: 55ch;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__scroll-dot {
  animation: scrollBounce 2s var(--ease-in-out) infinite;
}
@keyframes scrollBounce {
  0%, 100% { cy: 7; opacity: 1; }
  50% { cy: 16; opacity: 0.3; }
}

/* --- SERVICES SNAPSHOT --- */
.services-snapshot {
  padding-block: var(--space-2xl);
}
.services-snapshot__header {
  max-width: 600px;
  margin-bottom: var(--space-xl);
}
.services-snapshot__header .overline {
  margin-bottom: var(--space-xs);
  display: block;
}
.services-snapshot__header h2 {
  margin-bottom: var(--space-sm);
}
.services-snapshot__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.service-card {
  background: var(--bg-surface);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background var(--duration-normal) var(--ease-out);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}
.service-card:hover {
  background: var(--bg-elevated);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card__number {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--purple-light);
  transition: color var(--duration-normal) var(--ease-out);
}
.service-card:hover .service-card__icon {
  color: var(--lime);
}
.service-card__title {
  font-family: inherit;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}
.service-card__link {
  font-size: var(--text-xs);
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card__link::after {
  content: '\2192';
  transition: transform var(--duration-normal) var(--ease-out);
}
.service-card:hover .service-card__link {
  color: var(--lime);
}
.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* --- MORPH SECTION --- */
.morph-section {
  padding-block: var(--space-2xl);
}
.morph-section__intro {
  max-width: 600px;
  margin-bottom: var(--space-xl);
}
.morph-section__intro .overline {
  display: block;
  margin-bottom: var(--space-xs);
}
.morph-section__intro h2 {
  margin-bottom: var(--space-sm);
}
.morph-container {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-surface);
}

/* --- WHY SECTION --- */
.why-section {
  padding-block: var(--space-2xl);
}
.why-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}
.why-section__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}
.stat-block {
  background: var(--bg-base);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.stat-block__number {
  font-family: 'fredericka-the-greatest', cursive;
  font-size: var(--text-3xl);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-block__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.why-section__content .overline {
  display: block;
  margin-bottom: var(--space-xs);
}
.why-section__content h2 {
  margin-bottom: var(--space-md);
}
.why-section__content p {
  margin-bottom: var(--space-sm);
}
.why-section__cta {
  margin-top: var(--space-md);
}

/* --- HORIZONTAL SCROLL: FEATURED WORK --- */
.featured-work {
  padding-block: var(--space-2xl);
  background: var(--bg-surface);
}
.featured-work__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: var(--space-lg) var(--space-md);
}
.featured-work__header .overline {
  display: block;
  margin-bottom: var(--space-xs);
}
.horizontal-scroll__panel--heading {
  display: flex;
  align-items: center;
  width: 50vw;
  max-width: 600px;
  flex-shrink: 0;
}
.horizontal-scroll__panel--heading h2 {
  font-size: var(--text-3xl);
  line-height: 1.1;
}
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform var(--duration-normal) var(--ease-out);
  max-height: 100%;
}
.project-card:hover {
  transform: translateY(-4px);
}
.project-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 1;
  min-height: 0;
}
.project-card__image--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.10) 0%,
    rgba(10, 10, 20, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__image img {
  transform: scale(1.04);
}
.project-card__info {
  padding: var(--space-md);
  flex-grow: 1;
}
.project-card__info h3 {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}
.project-card__info p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- TRUST SECTION (Glassmorphism) --- */
.trust-section {
  position: relative;
  padding-block: var(--space-2xl);
  overflow: hidden;
}
.trust-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.trust-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(2px);
}
.trust-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-base), rgba(10, 10, 20, 0.85), var(--bg-base));
}
.trust-section__content {
  position: relative;
  z-index: 1;
}
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  overflow: hidden;
  padding: var(--space-md);
  margin: calc(-1 * var(--space-md));
}
.trust-card {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
.trust-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.trust-card h3 {
  font-family: inherit;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
}
.trust-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA BANNER --- */
.cta-banner {
  position: relative;
  padding-block: var(--space-2xl);
  overflow: hidden;
  text-align: center;
}
.cta-banner__inner {
  max-width: 700px;
  margin-inline: auto;
}
.cta-banner__inner h2 {
  margin-bottom: var(--space-sm);
}
.cta-banner__inner p {
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  text-align: center;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* --- HOMEPAGE RESPONSIVE OVERRIDES --- */
@media (max-width: 1023px) {
  .services-snapshot__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .trust-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .hero {
    align-items: flex-end;
    padding-bottom: var(--space-lg);
  }
  .hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  .hero__scroll-hint {
    display: none;
  }
  .services-snapshot__grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: var(--space-md);
  }
  .why-section__stats {
    grid-template-columns: 1fr 1fr;
  }
  .trust-cards {
    grid-template-columns: 1fr;
  }
  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
}
