/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 1.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  padding-inline-start: env(safe-area-inset-left, 0px);
  padding-inline-end: env(safe-area-inset-right, 0px);
  color: var(--white);
  background-color: #081c22;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #081c22;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: translateZ(0) scale(1.02);
  backface-visibility: hidden;
  animation: heroZoom 24s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(255deg, rgba(8, 28, 34, 0.92) 0%, rgba(10, 79, 92, 0.78) 52%, rgba(10, 79, 92, 0.42) 100%),
    linear-gradient(0deg, rgba(8, 28, 34, 0.62) 0%, transparent 48%);
}

.hero__content {
  max-width: 640px;
}

.hero__brand-line {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--gold);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 16px rgba(0, 0, 0, 0.55);
  animation: riseIn 0.8s var(--ease) both;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  animation: riseIn 0.9s var(--ease) 0.08s both;
}

.hero__text {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  animation: riseIn 0.9s var(--ease) 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 0.9s var(--ease) 0.24s both;
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(8, 28, 34, 0.28);
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-brand--light:focus-visible,
.hero .btn-ghost:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.5);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

.hero__trust li {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding-inline-start: 1.1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero__trust li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 767.98px) {
  .hero {
    min-height: calc(100dvh - 0.5rem);
    align-items: flex-end;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero__brand-line,
  .hero__title,
  .hero__text {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.4rem, 6.2vw, 1.8rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (max-height: 560px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 0.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__text {
    margin-bottom: 1rem;
  }

  .hero__trust {
    margin-top: 1rem;
    gap: 0.35rem 1rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 0.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__brand-line {
    margin-bottom: 0.45rem;
  }

  .hero__title {
    margin-bottom: 0.65rem;
    font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  }

  .hero__text {
    margin-bottom: 0.85rem;
    line-height: 1.6;
  }

  .hero__actions {
    gap: 0.65rem;
  }

  .hero__trust {
    margin-top: 0.75rem;
    gap: 0.3rem 0.85rem;
  }
}

@keyframes heroZoom {
  from {
    transform: translateZ(0) scale(1.02);
  }
  to {
    transform: translateZ(0) scale(1.05);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats */
.stats {
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 166, 35, 0.18), transparent 40%),
    linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: var(--white);
  padding-block: 3.5rem;
}

.stats .stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.stats .stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.92;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.2), transparent 45%),
    linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: var(--white);
  padding-block: 3rem;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
  max-width: 36rem;
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(8, 28, 34, 0.2);
}

.cta-band .btn-ghost:hover,
.cta-band .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.cta-band .btn-brand--light:focus-visible,
.cta-band .btn-ghost:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.5);
}

/* Contact */
.contact-shell {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

@media (min-width: 992px) {
  .contact-shell {
    grid-template-columns: 1fr 1.05fr;
  }
}

.contact-info {
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 166, 35, 0.22), transparent 40%),
    linear-gradient(160deg, var(--teal-deep), var(--teal));
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.contact-info h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
}

.contact-info > div > p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
  transition: background 0.25s var(--ease);
}

.contact-whatsapp:hover,
.contact-whatsapp:focus-visible {
  background: var(--whatsapp);
  color: var(--white);
}

.contact-whatsapp .icon,
.contact-meta-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-meta-item a {
  color: var(--white);
}

.contact-meta-item a:hover,
.contact-meta-item a:focus-visible {
  text-decoration: underline;
}

.contact-form-wrap {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
}

/* Clear fixed navbar when landing on #contact (R7) */
#contact {
  scroll-margin-top: calc(var(--nav-h) + 0.5rem + env(safe-area-inset-top, 0px));
}

/* Enrollment honeypot — visually hidden, kept out of tab order */
.noor-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
