/* ==========================================================================
   Green Valley School - Upcoming / Under Construction Styles
   Derived from Official School Logo Color Palette:
   - Primary Emerald Green: #00843D / #051A11
   - Scarlet Ribbon Red: #E02B20 / #C5221F
   - Radiant Sun Gold: #FFD200 / #F59E0B
   - Open Book Royal Blue: #0056B3
   - Pure Crisp White: #FFFFFF
   Self-contained, zero-dependency, pure CSS
   ========================================================================== */

:root {
  /* Brand Theme Colors */
  --bg-dark: #051a11;
  --bg-surface: #0a271c;
  --bg-card: rgba(12, 43, 31, 0.72);
  --bg-card-hover: rgba(16, 56, 41, 0.85);

  /* Emerald Palette (Outer Ring & Crest) */
  --color-emerald-950: #04140d;
  --color-emerald-900: #051a11;
  --color-emerald-800: #0a271c;
  --color-emerald-700: #0d3827;
  --color-emerald-600: #075e33;
  --color-emerald-500: #00843d;
  --color-emerald-400: #10a855;
  --color-emerald-300: #34d37d;
  --color-emerald-200: #86efac;
  --color-emerald-100: #dcfce7;

  /* Scarlet Ribbon Red Palette (Estd. 2021 Ribbon & Radiance) */
  --color-red-ribbon: #e02b20;
  --color-red-hover: #c92218;
  --color-red-dark: #8e150f;
  --color-red-light: #ff6b62;
  --color-red-subtle: rgba(224, 43, 32, 0.15);

  /* Sun Gold Palette (School Name & Sunburst) */
  --color-gold-500: #d97706;
  --color-gold-400: #f59e0b;
  --color-gold-300: #ffd200;
  --color-gold-200: #fef08a;
  --color-gold-subtle: rgba(255, 210, 0, 0.15);

  /* Royal Book Blue (Academic Open Book) */
  --color-blue-500: #0056b3;
  --color-blue-400: #2563eb;
  --color-blue-300: #60a5fa;

  /* Neutrals */
  --color-white: #ffffff;
  --color-ivory: #fffdf7;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-emerald: rgba(0, 132, 61, 0.4);
  --border-gold: rgba(255, 210, 0, 0.35);
  --border-red: rgba(224, 43, 32, 0.4);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--color-neutral-100);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Ambient Background Glows & Grid
   ========================================================================== */

.ambient-glow {
  position: fixed;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

.glow-emerald {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 132, 61, 0.35) 0%, rgba(5, 26, 17, 0) 70%);
}

.glow-gold {
  width: 500px;
  height: 500px;
  top: 35%;
  left: -150px;
  background: radial-gradient(circle, rgba(255, 210, 0, 0.16) 0%, rgba(5, 26, 17, 0) 70%);
}

.glow-red {
  width: 550px;
  height: 550px;
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, rgba(224, 43, 32, 0.2) 0%, rgba(5, 26, 17, 0) 70%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Page Layout Wrapper
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 3.5rem;
  width: 100%;
}

/* ==========================================================================
   Header & Brand
   ========================================================================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-logo-frame {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-white);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--color-gold-300);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--color-gold-300);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.school-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.2;
}

.school-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-gold-300);
  text-transform: uppercase;
}

/* Ribbon Badge in Header */
.status-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(224, 43, 32, 0.2) 0%, rgba(142, 21, 15, 0.3) 100%);
  border: 1px solid var(--border-red);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff9d96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(224, 43, 32, 0.2);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-red-ribbon);
  box-shadow: 0 0 10px var(--color-red-ribbon);
  animation: pulse-ribbon 1.8s infinite ease-in-out;
}

@keyframes pulse-ribbon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ==========================================================================
   Hero Center Block
   ========================================================================== */

.hero-block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(0, 132, 61, 0.22);
  border: 1px solid var(--border-emerald);
  color: var(--color-emerald-200);
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.sun-icon {
  color: var(--color-gold-300);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.16;
  color: var(--color-white);
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
}

.headline-gradient {
  background: linear-gradient(135deg, var(--color-gold-300) 10%, var(--color-emerald-300) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tagline {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--color-neutral-300);
  max-width: 680px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
}

/* ==========================================================================
   Countdown Timer (Kept as praised by user)
   ========================================================================== */

.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3.25rem;
}

.countdown-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--color-gold-300);
  border-radius: 18px;
  padding: 1.35rem 1.6rem;
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.countdown-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-emerald-400);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-gold-300);
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(255, 210, 0, 0.25);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-neutral-300);
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-emerald-400);
  opacity: 0.7;
}

/* ==========================================================================
   Redesigned Launch Notification Section (Sleek, Clean, Modern)
   ========================================================================== */

.launch-notify {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 3rem;
  background: rgba(8, 32, 23, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.launch-notify::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-300), var(--color-red-ribbon), transparent);
}

.notify-header {
  margin-bottom: 1.5rem;
}

.notify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(224, 43, 32, 0.18);
  border: 1px solid rgba(224, 43, 32, 0.4);
  color: #ff9d96;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.notify-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.notify-subtext {
  font-size: 0.88rem;
  color: var(--color-neutral-300);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

.notify-form {
  width: 100%;
  max-width: 520px;
}

.notify-input-box {
  display: flex;
  align-items: center;
  background: rgba(3, 16, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notify-input-box:focus-within {
  border-color: var(--color-emerald-400);
  box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.notify-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  font-size: 0.94rem;
  font-family: inherit;
  min-width: 0;
}

.notify-input-box input::placeholder {
  color: var(--color-neutral-400);
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--color-red-ribbon) 0%, #c5221f 100%);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.45rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(224, 43, 32, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.notify-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 43, 32, 0.5);
}

.notify-btn:active {
  transform: translateY(0);
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  min-height: 1.25rem;
}

.form-feedback.success {
  color: var(--color-emerald-200);
  font-weight: 600;
}

.form-feedback.error {
  color: #ff8c85;
  font-weight: 600;
}

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.76rem;
  color: var(--color-neutral-400);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-emerald-400);
  box-shadow: 0 0 6px var(--color-emerald-400);
}

/* ==========================================================================
   School Identity Strip (Accurate, Minimal, No Fake Cards)
   ========================================================================== */

/* Official Facebook Connect */
.social-connect {
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: center;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(8, 38, 26, 0.7);
  border: 1px solid rgba(0, 132, 61, 0.4);
  color: var(--color-white);
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.facebook-link svg:first-child {
  color: #1877f2;
}

.facebook-link .link-arrow {
  color: var(--color-gold-300);
  transition: transform 0.2s ease;
}

.facebook-link:hover {
  transform: translateY(-2px);
  background: rgba(12, 54, 37, 0.9);
  border-color: var(--color-gold-300);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.facebook-link:hover .link-arrow {
  transform: translate(2px, -2px);
}

.school-identity-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: rgba(4, 18, 12, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.25rem 2rem;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.identity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.identity-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-300);
}

.identity-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
}

.identity-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
  display: none;
}

@media (min-width: 640px) {
  .identity-divider {
    display: block;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-neutral-400);
}

@media (min-width: 640px) {
  .footer {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--color-neutral-300);
}

.footer-title {
  color: var(--color-white);
  font-weight: 700;
}

.footer-dot {
  color: var(--color-gold-300);
}

.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-neutral-300);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-fb-link svg {
  color: #1877f2;
}

.footer-fb-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-copy {
  color: var(--color-neutral-400);
}

/* ==========================================================================
   Accessibility & Mobile Responsive Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }

  .page-wrapper {
    gap: 2.5rem;
    padding: 1.5rem 1rem 2.5rem;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown-wrapper {
    gap: 0.4rem;
    margin-bottom: 2.5rem;
  }

  .countdown-card {
    padding: 0.9rem 0.75rem;
    min-width: 68px;
  }

  .countdown-number {
    font-size: 1.9rem;
  }

  .countdown-sep {
    font-size: 1.5rem;
  }

  .launch-notify {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2.25rem;
  }

  .notify-input-box {
    flex-direction: column;
    padding: 0.6rem;
    border-radius: 16px;
    gap: 0.65rem;
  }

  .notify-input-box input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    text-align: center;
  }

  .notify-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }

  .school-identity-strip {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
}
