/* ============================================================
   KD International Public School – Under Construction Page
   style.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --brick:        #8B2E2E;
  --brick-dark:   #6a1e1e;
  --brick-light:  #b94040;
  --gold:         #D4A017;
  --gold-light:   #f0c040;
  --white:        #FFFFFF;
  --off-white:    #FAF8F6;
  --grey-light:   #F5F5F5;
  --grey-mid:     #e0dbd8;
  --grey-text:    #6B6460;
  --dark:         #1a0f0f;
  --shadow:       rgba(139,46,46,0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       14px;
  --radius-sm:    8px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;          /* single-page, no scroll */
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--dark);
}

/* ── Canvas particles ───────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Loader ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--brick-dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 6px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(0.95); }
}
.loader-bar {
  width: 220px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px; margin: 18px auto 12px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  animation: fillBar 2.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fillBar { from { width: 0; } to { width: 100%; } }
.loader-text { color: rgba(255,255,255,0.55); font-size: .85rem; letter-spacing: 1.5px; }

/* ── Page wrapper ───────────────────────────────────────────── */
#mainContent {
  position: relative; z-index: 1;
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
#mainContent.hidden { display: none; }

/* ── Fade-in animations ─────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(22px); animation: fadeUp .8s ease forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .35s; }
.delay-3 { animation-delay: .55s; }
.delay-4 { animation-delay: .75s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Top ribbon ─────────────────────────────────────────────── */
.ribbon {
  background: var(--brick-dark);
  color: rgba(255,255,255,0.75);
  font-size: .72rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  display: flex; justify-content: center; gap: 32px;
  padding: 6px 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ribbon i { margin-right: 5px; color: var(--gold); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--brick);
  padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 3px 16px var(--shadow);
}
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-emblem {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brick), var(--brick-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px var(--shadow);
  flex-shrink: 0;
}
.logo-emblem i { color: var(--gold); font-size: 1.4rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.school-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--brick-dark);
  letter-spacing: .5px;
}
.school-sub { font-size: .8rem; color: var(--grey-text); letter-spacing: 1px; text-transform: uppercase; }
.estd-badge {
  background: var(--gold);
  color: var(--brick-dark);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(212,160,23,.35);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(139,46,46,.06) 0%, transparent 70%),
    var(--off-white);
}

/* Brick side panels */
.brick-panel {
  position: absolute; top: 0; bottom: 0; width: 72px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 14px,
      rgba(139,46,46,.04) 14px, rgba(139,46,46,.04) 15px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 22px,
      rgba(139,46,46,.04) 22px, rgba(139,46,46,.04) 23px
    );
  pointer-events: none;
}
.brick-panel.left  { left: 0; border-right: 2px solid rgba(139,46,46,.08); }
.brick-panel.right { right: 0; border-left: 2px solid rgba(139,46,46,.08); }

.hero-content {
  max-width: 780px; width: 100%;
  text-align: center;
  padding: 18px 24px;
  position: relative; z-index: 1;
}

/* Construction icon */
.icon-cluster {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.icon-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid var(--brick);
  animation: expandRing 2.4s ease-out infinite;
}
.ring-outer { width: 80px; height: 80px; opacity: .18; animation-delay: 0s; }
.ring-mid   { width: 58px; height: 58px; opacity: .28; animation-delay: .6s; }
@keyframes expandRing {
  0%   { transform: scale(.6); opacity: .45; }
  100% { transform: scale(1.3); opacity: 0; }
}
.construction-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brick), var(--brick-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px var(--shadow);
  z-index: 1;
  animation: bobble 3s ease-in-out infinite;
}
@keyframes bobble {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.construction-icon i { color: var(--gold); font-size: 1.35rem; }

/* Badge pill */
.badge-pill {
  display: inline-block;
  background: rgba(139,46,46,.09);
  border: 1.5px solid rgba(139,46,46,.22);
  color: var(--brick);
  font-size: .78rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 18px; border-radius: 99px;
  margin-bottom: 14px;
}

/* Main heading */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 12px;
}
.hero-title .highlight {
  color: var(--brick);
  position: relative; display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--brick-light));
  border-radius: 99px;
}

/* Sub text */
.hero-sub {
  font-size: clamp(.82rem, 1.5vw, .95rem);
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-sub strong { color: var(--brick-dark); }

/* ── Countdown ──────────────────────────────────────────────── */
.countdown-section { margin-bottom: 22px; }
.countdown-label {
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--grey-text);
  margin-bottom: 10px;
}
.countdown-label i { color: var(--brick); }
.countdown-grid {
  display: flex; align-items: center;
  justify-content: center; gap: 4px;
}
.count-box {
  background: var(--white);
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 10px 18px;
  min-width: 72px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.06), 0 1px 0 var(--grey-mid) inset;
  transition: transform .2s;
}
.count-box:hover { transform: translateY(-3px); }
.count-box span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  color: var(--brick);
  line-height: 1;
}
.count-box label {
  display: block;
  font-size: .62rem; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--grey-text);
  margin-top: 3px;
}
.count-sep {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  color: var(--brick);
  line-height: 1;
  padding-bottom: 14px;
  animation: blink 1s step-start infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

/* ── Notify form ────────────────────────────────────────────── */
.notify-section { margin-bottom: 0; }
.notify-label {
  font-size: .8rem; color: var(--grey-text);
  letter-spacing: .5px; margin-bottom: 10px;
}
.notify-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.input-wrap {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  gap: 8px;
  flex: 1; min-width: 220px; max-width: 340px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: border-color .25s, box-shadow .25s;
}
.input-wrap:focus-within {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(139,46,46,.12);
}
.input-wrap i { color: var(--brick); font-size: .85rem; flex-shrink: 0; }
.input-wrap input {
  border: none; outline: none;
  font-family: var(--font-body); font-size: .88rem;
  background: transparent; width: 100%;
  padding: 11px 0;
  color: var(--dark);
}
.input-wrap input::placeholder { color: #b0aaaa; }

#notifyBtn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brick), var(--brick-dark));
  color: var(--white);
  border: none; border-radius: var(--radius-sm);
  padding: 11px 24px; font-size: .88rem;
  font-family: var(--font-body); font-weight: 600;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform .2s, box-shadow .2s, background .2s;
}
#notifyBtn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--shadow); }
#notifyBtn:active { transform: translateY(0); }
#notifyBtn i { font-size: .75rem; transition: transform .25s; }
#notifyBtn:hover i { transform: translateX(4px); }

.form-msg {
  font-size: .8rem; margin-top: 8px; height: 18px;
  transition: all .3s;
}
.form-msg.success { color: #2e7d32; }
.form-msg.error   { color: var(--brick); }

/* ── Contact strip ──────────────────────────────────────────── */
.contact-strip {
  background: linear-gradient(90deg, var(--brick-dark), var(--brick));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  padding: 14px 24px;
  flex-shrink: 0;
}
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 28px;
}
.contact-item i {
  font-size: 1.1rem; color: var(--gold);
  flex-shrink: 0;
}
.contact-item div { display: flex; flex-direction: column; }
.contact-item strong { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .65; }
.contact-item span  { font-size: .82rem; opacity: .9; }
.divider-v { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 12px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: .88rem; font-style: italic;
  color: var(--gold); letter-spacing: 1px;
}
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none;
  font-size: .85rem;
  transition: transform .2s, box-shadow .2s;
}
.social-btn:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.facebook  { background: #1877f2; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.twitter   { background: #000; }
.youtube   { background: #ff0000; }
.footer-copy { font-size: .7rem; color: rgba(255,255,255,.3); letter-spacing: .5px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .ribbon { gap: 12px; font-size: .66rem; }
  .site-header { padding: 10px 16px; }
  .school-name { font-size: 1rem; }
  .count-box { min-width: 58px; padding: 8px 10px; }
  .count-box span { font-size: 1.5rem; }
  .count-sep { font-size: 1.4rem; }
  .contact-item { padding: 4px 14px; }
  .divider-v { display: none; }
  .brick-panel { display: none; }
  .input-wrap { min-width: 180px; }
}
@media (max-width: 420px) {
  .notify-form { flex-direction: column; align-items: center; }
  .input-wrap, #notifyBtn { width: 100%; max-width: 320px; justify-content: center; }
}
