/* ===== Abbey Hill — Custom Styles ===== */
/* Layout handled by portfolio-boilerplate.css (pf- classes).
   This file: video hero, floating wiggly SVG lines, dark CTA. */


/* ===== HERO: VIDEO BACKGROUND ===== */

.ah-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: #121f41;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ah-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.ah-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 31, 65, 0.5) 0%,
    rgba(18, 31, 65, 0.35) 50%,
    rgba(18, 31, 65, 0.7) 100%
  );
  z-index: 1;
}

.ah-hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 90%;
}

.ah-hero__logo {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: brightness(0) invert(1);
}

.ah-hero .pf-hero-placeholder__title h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 auto;
  max-width: 620px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.ah-hero .pf-hero-placeholder__title h1 em {
  color: var(--pf-accent);
  font-style: normal;
}

/* Scroll indicator */
.ah-hero .pf-hero-placeholder__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: ahScrollBounce 2s ease-in-out infinite;
}

@keyframes ahScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ===== UNIQUE: WIGGLY SVG LINE DRAW-IN ===== */

.ah-unique {
  background: #fff;
  overflow: hidden;
}

.ah-unique__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ah-unique__line {
  position: absolute;
  overflow: visible;
}

.ah-unique__line--1 {
  width: 440px;
  top: -6%;
  left: -4%;
  transform: rotate(12deg);
  opacity: 0.5;
}

.ah-unique__line--2 {
  width: 400px;
  top: 18%;
  right: -5%;
  transform: rotate(-22deg) scaleX(-1);
  opacity: 0.4;
}

.ah-unique__line--3 {
  width: 520px;
  bottom: -4%;
  left: 8%;
  transform: rotate(6deg);
  opacity: 0.45;
}

.ah-unique__line--4 {
  width: 360px;
  top: 55%;
  left: -8%;
  transform: rotate(-18deg);
  opacity: 0.35;
}

.ah-unique__line--5 {
  width: 300px;
  top: -3%;
  right: 15%;
  transform: rotate(32deg);
  opacity: 0.38;
}

.ah-unique__line--6 {
  width: 140px;
  bottom: 18%;
  right: 8%;
  transform: rotate(-8deg);
  opacity: 0.5;
}

.ah-unique__line--7 {
  width: 120px;
  top: 38%;
  right: 12%;
  transform: rotate(14deg);
  opacity: 0.45;
}


/* ===== CTA: DARK NAVY BACKGROUND WITH SVG LINE DRAW-IN ===== */

.ah-cta {
  background: #121f41;
  position: relative;
  overflow: hidden;
}

/* Override the default pf-cta light radial gradient */
.ah-cta::before {
  background: radial-gradient(ellipse at center bottom, rgba(82, 255, 107, 0.08) 0%, transparent 60%);
}

.ah-cta .pf-cta__heading {
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.ah-cta .pf-cta__button {
  color: #121f41;
  background: var(--pf-accent);
  border-color: rgba(255, 255, 255, 0.2);
}

.ah-cta .pf-cta__button:hover {
  background: #3de050;
}

.ah-cta__bg-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ah-cta__lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  opacity: 0.18;
}

/* SVG draw-in path — stroke-dasharray/dashoffset controlled by JS */


/* ===== DESIGN SCROLL: constrain tall image ===== */

.pf-design-scroll__right img {
  width: 100%;
  height: auto;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .ah-hero {
    height: 80vh;
    min-height: 500px;
  }

  .ah-hero .pf-hero-placeholder__title h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .ah-unique__lines {
    display: none;
  }

  .ah-cta__lines {
    width: 200%;
    height: 200%;
  }
}

@media (max-width: 480px) {
  .ah-hero {
    height: 75vh;
    min-height: 450px;
  }

  .ah-hero__logo {
    width: 120px;
    margin-bottom: 1.5rem;
  }
}
