/* ── Home Hero ───────────────────────────────────────────── */

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

@keyframes glide {
  0%,  100% { transform: translateY(0)     translateX(0)    rotate(-0.4deg); }
  33%        { transform: translateY(-16px) translateX(9px)  rotate(0.9deg); }
  66%        { transform: translateY(-9px)  translateX(-5px) rotate(-0.2deg); }
}

.home-hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;

  padding-bottom: var(--space-16);
  padding-top: var(--space-16);

  /* Valle del Cauca — seen from altitude at golden hour */
  background:
    /* text readability scrim — dark at base, clears to sky */
    linear-gradient(
      to top,
      rgba(5, 12, 20, 0.92) 0%,
      rgba(5, 12, 20, 0.64) 20%,
      rgba(5, 12, 20, 0.22) 44%,
      transparent 68%
    ),
    /* The Colombian sky & valley */
    linear-gradient(
      170deg,
      #0F4E8C 0%,
      #1C68AA 8%,
      #3082C2 18%,
      #52A0D4 28%,
      #7BBDE6 38%,
      #AACFE8 46%,
      #D8C880 54%,
      #CDA060 63%,
      #96AD68 73%,
      #608040 83%,
      #3A5228 92%,
      #1E3218 100%
    );
}

/* Paraglider silhouette — floats in the blue sky portion */
.home-hero__glider {
  position: absolute;
  top: 14%;
  right: 7%;
  width: clamp(160px, 20vw, 320px);
  color: rgba(255, 255, 255, 0.78);
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.28));
  animation: glide 10s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

/* Andes mountain ridgeline at the bottom of the hero */
.home-hero__ridge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 13vw, 145px);
  pointer-events: none;
  user-select: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  /* ensure content clears the mountain ridge */
  padding-bottom: clamp(50px, 10vw, 100px);
}

/* GPS coordinate tag */
.home-hero__dispatch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-6);
  animation: heroFadeUp 0.7s ease both;
}

.home-hero__dispatch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(200, 82, 26, 0.3);
}

/* Main headline */
.home-hero__headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.93;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-8);
}

.home-hero__headline-line1 {
  animation: heroFadeUp 0.7s 0.1s ease both;
}

.home-hero__headline-line2 {
  color: var(--color-accent-light);
  animation: heroFadeUp 0.7s 0.2s ease both;
}

.home-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
  line-height: 1.62;
  margin-bottom: var(--space-8);
  animation: heroFadeUp 0.7s 0.3s ease both;
}

.home-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  animation: heroFadeUp 0.7s 0.4s ease both;
}

/* White outline button for use on the hero */
.home-hero__btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.88);
}
.home-hero__btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

/* CTA button — solid white for maximum contrast on dark hero base */
.btn--hero {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary-dark);
}
.btn--hero:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 82, 26, 0.4);
}

/* Stats row */
.home-hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  animation: heroFadeUp 0.7s 0.5s ease both;
}

.hero-stat { display: flex; flex-direction: column; gap: 2px; }

.hero-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1;
}

.hero-stat__label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-stat__divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}


/* ── Services ────────────────────────────────────────────── */

.home-services {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.home-services__header { margin-bottom: var(--space-12); }
.home-services__header h2 { margin-top: var(--space-2); }

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

/* Sky-to-accent gradient top stripe on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sky), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(160deg, rgba(200,82,26,0.03) 0%, #fff 60%);
}
.service-card--featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.service-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(200, 82, 26, 0.09);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(61, 143, 206, 0.1);
  color: var(--color-sky);
  margin-bottom: var(--space-5);
  transition: background var(--transition-base);
}
.service-card__icon--accent {
  background: rgba(200, 82, 26, 0.1);
  color: var(--color-accent);
}
.service-card:hover .service-card__icon { background: rgba(61, 143, 206, 0.18); }
.service-card--featured:hover .service-card__icon--accent { background: rgba(200, 82, 26, 0.18); }

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  line-height: 1;
}
.service-card__price span {
  font-size: var(--text-base);
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.service-card__link:hover {
  gap: var(--space-3);
  color: var(--color-accent-light);
  text-decoration: none;
}


/* ── Why Skyout — light section ─────────────────────────── */

.home-why {
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

/* Thermal column — concentric rings like an XCTrack thermal indicator */
.home-why::before {
  content: '';
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 34vw, 460px);
  height: clamp(260px, 34vw, 460px);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 30px,
    rgba(61,143,206,0.055) 30px,
    rgba(61,143,206,0.055) 32px
  );
  pointer-events: none;
}

.home-why__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.home-why__copy h2 {
  color: var(--color-text);
  margin-bottom: var(--space-5);
  margin-top: var(--space-2);
}

.home-why__copy p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.home-why__pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-pillar {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
.why-pillar:first-child { padding-top: 0; }
.why-pillar:last-child { border-bottom: none; padding-bottom: 0; }

.why-pillar__icon {
  font-size: 0.5rem;
  color: var(--color-accent);
  margin-top: 9px;
  flex-shrink: 0;
}

.why-pillar h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.why-pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}


/* ── Lead capture ────────────────────────────────────────── */

.home-lead {
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-accent) 0%, #A04018 100%);
  color: #fff;
}

.home-lead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -40deg,
    transparent 0, transparent 44px,
    rgba(255,255,255,0.04) 44px, rgba(255,255,255,0.04) 45px
  );
  pointer-events: none;
}

.home-lead__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.home-lead__label {
  font-size: var(--text-sm);
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-1) var(--space-4);
  border-radius: 100px;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-5);
}

.home-lead__copy h2 {
  color: #fff;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  margin-top: var(--space-2);
}

.home-lead__copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.home-lead__placeholder {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  margin-top: var(--space-3);
}
.home-lead__placeholder a { color: rgba(255, 255, 255, 0.9); }

/* Form overrides for dark orange background.
   Use parent-scoped selectors (specificity 0,2,0) to beat GeneratePress input[type=...] (0,1,1). */
.home-lead .contact-form .contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-lead .contact-form__label,
.home-lead .contact-form .contact-form__label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
}

.home-lead .contact-form .contact-form__input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--color-primary);
}

.home-lead .contact-form__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.home-lead .contact-form__input:focus-visible {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.home-lead .contact-form__status {
  color: rgba(255, 255, 255, 0.9);
}


/* ── Recent posts ────────────────────────────────────────── */

.home-posts {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.home-posts__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  gap: var(--space-4);
}
.home-posts__header h2 { margin-top: var(--space-2); margin-bottom: 0; }

.home-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.post-card__image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.post-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-card__image img { transform: scale(1.05); }

/* Sky gradient placeholder when no featured image */
.post-card__image--placeholder {
  background: linear-gradient(
    158deg,
    #0F4E8C 0%, #3082C2 30%,
    #D8C880 62%, #96AD68 80%,
    #3A5228 100%
  );
  aspect-ratio: 16/9;
}

.post-card__body { padding: var(--space-5) var(--space-6); }

.post-card__cats {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: var(--space-2);
}
.post-card__cats a { color: inherit; text-decoration: none; }

.post-card__title {
  font-size: var(--text-lg); font-weight: 700;
  margin-bottom: var(--space-2); line-height: 1.3;
}
.post-card__title a {
  color: var(--color-text); text-decoration: none;
  transition: color var(--transition-fast);
}
.post-card__title a:hover { color: var(--color-accent); }

.post-card__date {
  display: block; font-size: var(--text-xs);
  color: var(--color-text-light); letter-spacing: 0.04em;
}


/* ── Book CTA ────────────────────────────────────────────── */

.home-book {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  /* Vivid Valle del Cauca sky — same palette as hero but top-to-bottom */
  background:
    radial-gradient(ellipse 75% 55% at 50% 52%, rgba(5,12,20,0.52) 0%, transparent 100%),
    linear-gradient(
      to bottom,
      #3D8FCE 0%,
      #5AAAD0 12%,
      #88C0DE 26%,
      #AACFE8 38%,
      #D8C880 54%,
      #CDA060 66%,
      #96AD68 80%,
      #60803A 92%,
      #3A5228 100%
    );
}

/* Accent top rule */
.home-book::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 50%, transparent 80%);
  pointer-events: none;
}

/* Brand mark watermark */
.home-book::before {
  content: '';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42%, 380px);
  height: min(42%, 380px);
  background: url('../images/symbol-white.svg') center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.home-book__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.home-book__label { color: var(--color-accent-light); }

.home-book__inner h2 {
  color: #fff;
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-style: italic;
  margin-bottom: var(--space-5);
  margin-top: var(--space-2);
  line-height: 1.0;
}

.home-book__inner p {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: none;
}


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .home-why__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .home-lead__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .home-why__valley { display: none; }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 100svh;
    min-height: 100vh;
    padding-bottom: var(--space-10);
  }
  .home-hero__glider { top: 10%; right: 3%; width: clamp(120px, 30vw, 190px); opacity: 0.65; }
  .home-hero__stats { gap: var(--space-5); flex-wrap: wrap; }
  .home-services__grid { grid-template-columns: 1fr; }
  .home-posts__grid { grid-template-columns: 1fr; }
  .home-posts__header { flex-direction: column; align-items: flex-start; }
  .service-card__badge { display: none; }
}

@media (max-width: 480px) {
  .hero-stat__divider { display: none; }
  .home-hero__glider { display: none; }
  .home-hero__headline { line-height: 0.96; }
}
