/* ==========================================================
   Paithal Hill Resorts - Coming Soon
   ========================================================== */

:root {
  --ink: #fffaf2;
  --ink-soft: rgba(255, 246, 232, .82);
  --ink-mute: rgba(255, 240, 222, .62);
  --leaf: #9ed836;
  --leaf-deep: #4f9a1c;
  --sun: #ffd27a;
  --ember: #ff9c5b;
  --glass: rgba(255, 255, 255, .09);
  --glass-strong: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .22);
  --night: #0b0f2a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Canvas layers ---------- */
#scene, #fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#scene { z-index: 0; }
#fx { z-index: 3; pointer-events: none; }

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 214, 150, .22) 0%, rgba(255, 190, 130, .08) 35%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) max(18px, env(safe-area-inset-bottom));
  max-width: 1440px;
  margin: 0 auto;
}

/* A soft shade behind the copy, so text stays readable over a bright sky */
.wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 30%, rgba(8, 10, 34, .55) 0%, rgba(8, 10, 34, .18) 45%, transparent 70%);
}

.brand { padding-top: clamp(4px, 2vh, 24px); }

.logo {
  display: block;
  width: clamp(190px, 26vw, 320px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
  animation: float 7s ease-in-out infinite;
  transform-origin: 30% 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-6px) rotate(.6deg); }
}

.hero {
  max-width: 760px;
  margin-top: clamp(18px, 4vh, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(158, 216, 54, .7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(158, 216, 54, .7); }
  70% { box-shadow: 0 0 0 10px rgba(158, 216, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(158, 216, 54, 0); }
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(10, 10, 40, .45);
}
.title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #fff1c4 0%, var(--sun) 35%, var(--ember) 75%, #ffb38a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.lead {
  margin: 18px 0 22px;
  max-width: 34em;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 300;
  color: var(--ink-soft);
  text-shadow: 0 2px 14px rgba(10, 10, 40, .5);
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: stretch;
  gap: clamp(6px, 1.2vw, 14px);
}

.unit {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 132px;
  padding: clamp(12px, 1.8vw, 20px) 6px clamp(10px, 1.4vw, 16px);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--glass-strong), rgba(255, 255, 255, .04));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  text-align: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .3s ease;
  will-change: transform;
}
.unit::after {
  /* moving shine */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 230, 180, .22), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.unit:hover::after { opacity: 1; }
.unit:hover { border-color: rgba(255, 220, 160, .5); }

.num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 30%, #ffe2b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num.tick { animation: tick .55s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes tick {
  0% { transform: translateY(-40%) scale(.9); opacity: 0; filter: blur(3px); }
  100% { transform: none; opacity: 1; filter: none; }
}

.label {
  display: block;
  margin-top: 8px;
  font-size: clamp(.62rem, .9vw, .74rem);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.sep {
  align-self: center;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: rgba(255, 230, 190, .55);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* Sunrise progress */
.progress { margin-top: 18px; max-width: 590px; }
.progress-track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b5aa8, var(--ember), var(--sun));
  transition: width 1s linear;
}
.progress-sun {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d6 0%, var(--sun) 55%, var(--ember) 100%);
  box-shadow: 0 0 14px 4px rgba(255, 200, 110, .55);
  transition: left 1s linear;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.launched {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--sun);
}

/* ---------- Booking ---------- */
.booking {
  margin-top: clamp(6px, 1.5vh, 16px);
  max-width: 780px;
}
.booking h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.booking-sub {
  margin: 6px 0 16px;
  color: var(--ink-soft);
  font-weight: 300;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background: rgba(14, 18, 44, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.btn small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.btn svg {
  flex: none;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  fill: #fff;
}
.btn-call svg { background: linear-gradient(140deg, #ffb35c, #ff7a45); }
.btn-wa svg   { background: linear-gradient(140deg, #5be37d, #1fae54); }
.btn-mail svg { background: linear-gradient(140deg, #b6e34b, var(--leaf-deep)); }

.btn::before {
  /* hover sheen */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .16) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover {
  border-color: rgba(255, 220, 160, .55);
  background: rgba(20, 24, 56, .5);
  box-shadow: 0 16px 36px -16px rgba(255, 160, 90, .5);
}
.btn:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

/* ---------- New website countdown ---------- */
.site-soon {
  margin-top: clamp(26px, 5vh, 52px);
  max-width: 640px;
}
.soon-title {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.site-soon .num { font-size: clamp(1.8rem, 4vw, 3rem); }

/* ---------- Footer ---------- */
.foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--ink-mute);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hint::before { content: "\2726  "; color: var(--sun); }

/* ---------- Entrance animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: reveal 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
.logo.reveal, .brand.reveal { filter: none; }
@keyframes reveal {
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { text-align: center; align-items: center; }
  .wrap::before {
    background: radial-gradient(140% 70% at 50% 30%, rgba(8, 10, 34, .55) 0%, rgba(8, 10, 34, .2) 50%, transparent 75%);
  }
  .logo { margin: 0 auto; transform-origin: 50% 50%; }
  .hero { margin-left: auto; margin-right: auto; }
  .lead { margin-left: auto; margin-right: auto; }
  .countdown { justify-content: center; }
  .progress { margin-left: auto; margin-right: auto; }
  .booking { margin-left: auto; margin-right: auto; }
  .site-soon { margin-left: auto; margin-right: auto; width: 100%; }
  .actions { justify-content: center; }
  .foot { width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .title br { display: none; }
  .sep { display: none; }
  .countdown { gap: 8px; }
  .unit { border-radius: 14px; }
  .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { width: 100%; text-align: left; }
  .booking { width: 100%; }
  .hint { display: none; }
}

@media (max-height: 640px) and (min-width: 901px) {
  .hero { margin-top: 12px; }
  .booking { margin-top: 8px; }
  .site-soon { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .dot, .sep { animation: none; }
  .reveal { animation-duration: .01s; animation-delay: 0s; }
  .num.tick { animation: none; }
}
