/* ============================================
   LOCARDE V2 — APRA CPS 230 Page Styles
   ============================================ */

/* ---------- Hero (Full-Bleed Image + Centered Text) ---------- */
.hero-fullbleed {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--section-padding) var(--grid-gutter);
  overflow: hidden;
}

.hero-fullbleed__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fullbleed__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fullbleed__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.hero-fullbleed__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--grid-col-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-1);
}

.hero-fullbleed__title {
  margin-bottom: 0;
}

.hero-fullbleed__desc {
  color: var(--color-white-muted);
  font-size: var(--type-body-size);
  line-height: var(--lh-body);
}

/* ---------- Service Layouts (3-col: heading | content | image) ---------- */
.services {
  padding: var(--section-padding) var(--grid-gutter);
}

.services__heading {
  margin-bottom: var(--section-padding);
}

.service-item {
  display: grid;
  grid-template-columns: var(--grid-col-3) 1fr var(--grid-col-4);
  gap: var(--grid-gap);
  padding: var(--gap-3) 0;
  position: relative;
}

.service-item .line.top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-white-border);
  overflow: hidden;
}

.service-item__heading {
  font-size: var(--type-h4);
  font-variation-settings: "wght" 400;
  line-height: 1.2em;
}

.service-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-15);
}

.service-item__text {
  font-size: var(--type-body-size);
  line-height: var(--lh-body);
}

.service-item__text .text-muted {
  color: var(--color-white-muted);
}

.service-item__list-label {
  font-family: var(--font-badges);
  font-size: var(--type-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white-muted);
  margin-bottom: var(--gap-05);
}

.bulleted-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-05);
}

.bulleted-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-075);
  font-size: var(--type-body-size);
  line-height: var(--lh-body);
}

.bullet-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand);
  border-radius: 50%;
  flex: none;
  margin-top: 0.55em;
}

.service-item__image .image-wrapper {
  aspect-ratio: 3 / 4;
}

/* ---------- Line Features (3-col with vertical accent lines) ---------- */
.line-features {
  padding: var(--section-padding) var(--grid-gutter);
  border-top: 1px solid var(--color-white-border);
}

.line-features__heading {
  margin-bottom: var(--section-padding);
}

.line-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.line-feature {
  position: relative;
  padding-left: var(--gap-1);
}

.line-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 91, 255, 0.6), var(--color-white-border) 60%);
}

.line-feature__label {
  font-family: var(--font-badges);
  font-size: var(--type-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white-muted);
  margin-bottom: var(--gap-075);
}

.line-feature__desc {
  font-size: var(--type-lead);
  font-variation-settings: "wght" 400;
  line-height: 1.3em;
}

/* ---------- Wide Section (Parallax + Centered Text) ---------- */
.wide-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wide-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.1);
}

.wide-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-section__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.centered-text-block {
  position: relative;
  z-index: 2;
  max-width: var(--grid-col-8);
  text-align: center;
  padding: var(--section-padding) var(--grid-gutter);
}

.centered-text-block__heading {
  font-size: var(--type-h4);
  font-variation-settings: "wght" 400;
  line-height: 1.2em;
  margin-bottom: var(--gap-2);
}

.centered-text-block__desc {
  font-size: var(--type-body-size);
  line-height: var(--lh-body);
}

.centered-text-block__desc .text-muted {
  color: var(--color-white-muted);
}

.centered-text-block .dot {
  z-index: 3;
}

/* ---------- CTA (2-col: dot-title | text + button) ---------- */
.cta-halves {
  padding: var(--section-padding) var(--grid-gutter);
}

.cta-halves__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.cta-halves__label {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-05);
}

.cta-halves__label .dot {
  margin-top: 0.3em;
}

.cta-halves__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  align-items: flex-start;
}

.cta-halves__text {
  font-size: var(--type-h4);
  font-variation-settings: "wght" 400;
  line-height: 1.3em;
}

.cta-halves__text .text-muted {
  color: var(--color-white-muted);
}

/* ---------- Scroll Reveal Animations (reuse from home) ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="fade"].is-visible {
  opacity: 1;
}

[data-animate="scale"] {
  transform: scale(0.95);
}

[data-animate="scale"].is-visible {
  opacity: 1;
  transform: scale(1);
}

[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.3s; }

[data-animate-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.image-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.image-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

.image-reveal-up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.image-reveal-up.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Light path animation */
@keyframes lightPathH {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes lightPathV {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.line.is-animated .gradient-line-h {
  animation: lightPathH 1.5s ease-in-out forwards;
}

.line.is-animated .gradient-line-v {
  animation: lightPathV 1.5s ease-in-out forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: var(--gap-2);
  }

  .service-item__image {
    order: -1;
  }

  .service-item__image .image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .line-features__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-3);
  }

  .cta-halves__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-2);
  }

  .hero-fullbleed {
    min-height: 50vh;
  }

  .hero-fullbleed__content {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-fullbleed {
    min-height: 60vh;
  }

  .wide-section {
    min-height: 50vh;
  }

  .centered-text-block {
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .hero-fullbleed {
    min-height: 50vh;
    padding-bottom: var(--gap-3);
  }
}
