/* ============================================================
   MAINTENANCE PAGE - PRODUCTION READY
   ============================================================ */

/* --------------------------------------------
   1. BASE LAYOUT
   -------------------------------------------- */

body.page-node-type-unformatted-pages {
  background: #e8edf2;
  margin: 0;
}

/* Hide Drupal chrome with high-specificity selectors */
body.page-node-type-unformatted-pages header[role="banner"],
body.page-node-type-unformatted-pages footer[role="contentinfo"],
body.page-node-type-unformatted-pages #system-breadcrumb,
body.page-node-type-unformatted-pages .skip-link,
body.page-node-type-unformatted-pages .gin-secondary-toolbar {
  display: none !important;
  /* !important justified: overriding core Drupal styles */
}

body.page-node-type-unformatted-pages .layout-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(1rem, 5vh, 3rem) clamp(1rem, 4vw, 2.5rem);
}

/* --------------------------------------------
   2. MAINTENANCE CARD
   -------------------------------------------- */

.maintenance-container {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 195, 77, 0.25);
  border-radius: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* --------------------------------------------
   3. LOGO
   -------------------------------------------- */

.maintenance-container .maintenance-logo {
  display: block;
  width: clamp(100px, 20vw, 150px);
  height: auto;
  margin: 0 auto clamp(1.5rem, 3vh, 2.5rem) auto;
}

/* --------------------------------------------
   4. TITLE (Semantic - use <h2> in HTML)
   -------------------------------------------- */

.maintenance-container .maintenance-title {
  color: #FFC34D;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

/* --------------------------------------------
   5. MESSAGE
   -------------------------------------------- */

.maintenance-container .maintenance-message {
  color: #00004D;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto clamp(1.5rem, 3vh, 2.5rem) auto;
}

/* --------------------------------------------
   6. COUNTDOWN - CSS GRID (No overflow!)
   -------------------------------------------- */

.maintenance-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 2rem);
  padding: clamp(1rem, 2vh, 1.75rem) 0;
  border-top: 1px solid rgba(0, 0, 77, 0.08);
  border-bottom: 1px solid rgba(0, 0, 77, 0.08);
}

/* --------------------------------------------
   7. COUNTDOWN ITEMS
   -------------------------------------------- */

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0; /* Prevents overflow in grid */
}

.countdown-item .number {
  color: #CC0000;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.countdown-item .label {
  color: #6F7773;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* --------------------------------------------
   8. RESPONSIVE TWEAKS
   -------------------------------------------- */

/* Tablets and below */
@media (max-width: 768px) {
  .maintenance-container {
    border-radius: 1.5rem;
  }
  
  .maintenance-countdown {
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }
}

/* Small phones - Grid handles it automatically */
@media (max-width: 400px) {
  .maintenance-container {
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
  }
  
  .maintenance-countdown {
    gap: 0.25rem;
  }
}

/* --------------------------------------------
   9. REDUCED MOTION (Accessibility)
   -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .maintenance-container {
    transition: none;
  }
}