/* ============================================================
   isleep.css  –  Custom structural + animation styles
   Used by: app/views/layouts/main/isleep-layout.erb
   ============================================================ */

:root {
  --isleep-primary:   #445490;
  --isleep-secondary: #434DA0;
  --isleep-light:     #F3F6FF;
  --isleep-mid:       #6D7FB8;
}

body {
  overflow-x: hidden;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ── Full-screen hero section ─────────────────────────────── */
.page-header {
  min-height: 100vh;
  padding: 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-header-small {
  min-height: 50vh;
  padding: 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-header-image {
  position: absolute;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ── Background section ───────────────────────────────────── */
.section {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Hero image (GSAP target) ─────────────────────────────── */
.hero-img {
  min-height: 100vh;
}

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

/* ── clear-filter (softui compat) ────────────────────────── */
.clear-filter::before {
  display: none;
}

/* ── Form helpers ─────────────────────────────────────────── */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  outline: none;
  border-color: #3b4190;
  box-shadow: 0 0 0 3px rgba(59, 65, 144, 0.2);
}

/* ── Blur shadow image (used in news/info) ────────────────── */
.blur-shadow-image {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* ── Border radius ────────────────────────────────────────── */
.border-radius-lg {
  border-radius: 0.75rem;
}

/* ── Horizontal rule ──────────────────────────────────────── */
.horizontal {
  background-color: #dee2e6;
  border: 0;
  height: 1px;
}

/* ============================================================
   GSAP-driven animation stubs
   GSAP sets initial state via JS — these are fallback defaults
   ============================================================ */
.fade-up,
.fade-up-mobile,
.rise,
.revealUp {
  /* GSAP will set opacity: 0 + translateY before animating in.
     No explicit hidden state needed here — GSAP handles it. */
}

.fade-section {
  /* GSAP handles clip-path reveal */
}

.title-scaling {
  /* GSAP handles scale reveal */
}

/* ── Hover interactions (GSAP + CSS fallback) ─────────────── */
.hover-scaling {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hover-float {
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* ── Hero carousel (hero_carousel_controller.js) ─────────── */
.hero-carousel__slide {
  display: none;
}

.hero-carousel__slide--active {
  display: block;
}

.hero-carousel__dot {
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-carousel__dot--active {
  background-color: #ffffff;
}

/* ── WhatsApp floating button ─────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  animation: wa-come-in 0.8s ease forwards;
}

@keyframes wa-come-in {
  0%   { transform: translateY(100px); opacity: 0; }
  70%  { transform: translateY(0) scale(1.1); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  transition: transform 0.3s ease;
}
