/* Montserrat Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Brand Design Tokens */
:root {
  --color-oceanic-blue: #0A20CD;
  --color-midday-sun: #FFB600;
  --color-aquamarine: #06B7DB;
  --color-mediterranean-sky: #004DE7;
  --color-twilight-blue: #001E60;
  --color-sand-shells: #F0E6DA;
  --color-early-morning: #FFEDA7;
  --color-wooden-pier: #403C35;
  --color-light-gray: #F3F1EE;
  --color-white: #FFFFFF;
  
  --font-family: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-light-gray);
  font-family: var(--font-family);
  color: var(--color-twilight-blue);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Maintenance Wrapper - Full screen layout */
.maintenance-wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2.2vh, 1.75rem);
  padding: clamp(1.5rem, 4vh, 3rem) 2rem clamp(1.25rem, 3vh, 2rem);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Background Decorations - Positioned in corners of the centered wrapper */
.deco-left {
  position: absolute;
  left: -10px;
  bottom: -10px;
  width: 32vw;
  max-width: 440px;
  min-width: 280px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.deco-right {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 28vw;
  max-width: 380px;
  min-width: 240px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Central Content Container - Spacing optimized to reduce gap below patience note and prevent footer cutoff */
.maintenance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  max-width: 680px;
  width: 100%;
  z-index: 10;
  animation: fadeIn 0.8s ease-out;
}

/* Logo - Sized to exactly 550px width as requested */
.brand-logo {
  width: 550px;
  max-width: 90%;
  height: auto;
  margin-bottom: 1.5rem;
  user-select: none;
}

/* Typography */
.headline {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--color-twilight-blue);
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.description {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-wooden-pier);
  margin-bottom: 1.25rem;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-oceanic-blue);
  color: var(--color-oceanic-blue);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(10, 32, 205, 0.04);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-midday-sun);
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255, 182, 0, 0.25);
  animation: pulse 1.8s infinite ease-in-out;
}

/* Illustration */
.illustration-wrap {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-illustration {
  max-height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(10, 32, 205, 0.03));
  animation: float 4s ease-in-out infinite;
}

/* Patience Message */
.patience-note {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-oceanic-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
}

.heart-icon {
  font-size: 1.25rem;
  animation: heartbeat 1.5s infinite ease-in-out;
}

/* Footer Section */
.footer {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 0;
  margin-top: 0;
  z-index: 10;
}

/* Divider Line - Centered and narrow to prevent cutting/blocking background wave illustration view */
.footer-divider {
  width: 100%;
  max-width: 680px; /* Prevents line from extending to corners and overlaying background illustrations */
  height: 1px;
  background-color: rgba(240, 230, 218, 0.85); /* Sand Shells with soft opacity */
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}

.footer-message {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.4;
  color: var(--color-twilight-blue);
  font-weight: 600;
  max-width: 100%;
  min-width: 0;
}

.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.8vw, 2.25rem);
  flex-wrap: wrap;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--color-wooden-pier);
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
}

.footer-link-item span {
  line-height: 1.4;
}

.footer-link-item a {
  color: var(--color-oceanic-blue);
  text-decoration: none;
  font-size: clamp(1.08rem, 1.25vw, 1.25rem);
  line-height: 1.25;
  font-weight: 700;
  transition: color 0.2s ease;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

#support-phone-link {
  white-space: nowrap;
}

#support-email-link {
  overflow-wrap: anywhere;
}

.footer-link-item a:hover {
  text-decoration: underline;
  color: var(--color-mediterranean-sky);
}

.footer-separator {
  width: 1px;
  height: 24px;
  background-color: var(--color-sand-shells);
}

.footer-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 22px;
}

@media (min-width: 901px) {
  .maintenance-wrapper {
    padding-bottom: clamp(5.25rem, 11vh, 7rem);
  }

  .footer {
    position: absolute;
    left: 50%;
    bottom: clamp(0.65rem, 1.5vh, 1rem);
    transform: translateX(-50%);
  }

  .footer-link-item a {
    font-size: clamp(1.6rem, 1.1vw, 1.15rem);
  }

  .deco-left {
    bottom: -2.1rem;
  }

  .deco-right {
    bottom: -2.25rem;
  }
}

@media (min-width: 1440px) {
  .footer-divider {
    max-width: 760px;
    margin-bottom: 1.15rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-message {
    gap: 0.8rem;
    font-size: clamp(2rem, 1.05vw, 3rem);
    font-weight: 700;
  }

  .footer-contacts {
    gap: clamp(1.35rem, 3.2vw, 2.75rem);
  }

  .footer-link-item {
    gap: 0.85rem;
    padding: 0.55rem 0.85rem;
  }

  .footer-link-item a {
    font-size: clamp(1.6rem, 1.1vw, 1.15rem);
  }

  .footer-separator {
    height: 30px;
  }

  .footer-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

@media (min-width: 901px) and (max-height: 940px) {
  .footer-divider {
    max-width: 680px;
    margin-bottom: 0.75rem;
  }

  .footer-content {
    gap: 0.65rem;
  }

  .footer-message {
    gap: 0.65rem;
    font-size: 1.6rem;
    font-weight: 600;
  }

  .footer-contacts {
    gap: 1.45rem;
  }

  .footer-link-item {
    gap: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .footer-link-item a {
    font-size: 1.25rem;
  }

  .footer-separator {
    height: 22px;
  }

  .footer-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}

/* Micro-animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 182, 0, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 182, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 182, 0, 0);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.1);
  }
}

/* Responsive Styles */
@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }
  
  .maintenance-wrapper {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem 1.25rem 1.5rem;
    gap: 1rem;
    justify-content: center;
  }
  
  .maintenance-content {
    margin: 0;
  }
  
  .footer {
    margin-top: 0;
  }
  
  .deco-left, .deco-right {
    display: none; /* Hide background wave illustrations on mobile */
  }
  
  .brand-logo {
    width: 280px;
    margin-bottom: 1.1rem;
  }
  
  .headline {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .description {
    font-size: 0.95rem;
    width: 100%;
    max-width: 21rem;
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .description br {
    display: none; /* Let text wrap naturally on smaller viewports */
  }
  
  .status-pill {
    margin-bottom: 1.1rem;
  }
  
  .illustration-wrap {
    margin-bottom: 1rem;
  }
  
  .center-illustration {
    max-height: 110px;
  }
  
  .footer-divider {
    margin-bottom: 0.75rem;
  }
  
  .footer-content {
    width: 100%;
    gap: 0.6rem;
  }

  .footer-message {
    width: 100%;
    max-width: min(100%, 32rem);
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    line-height: 1.45;
  }

  .footer-message span {
    min-width: 0;
    max-width: 30rem;
    line-height: 1.45;
    overflow-wrap: normal;
    text-wrap: balance;
  }
  
  .footer-contacts {
    width: 100%;
    max-width: min(100%, 34rem);
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-link-item {
    width: auto;
    max-width: 100%;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
    padding: 0.25rem 0;
  }

  .footer-link-item a {
    font-size: clamp(1rem, 3.75vw, 1.15rem);
    line-height: 1.35;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .maintenance-wrapper {
    padding: 1.75rem 1.15rem 1.35rem;
    gap: 0.9rem;
  }

  .brand-logo {
    width: min(280px, 82vw);
  }

  .headline {
    max-width: 21rem;
    font-size: clamp(1.55rem, 7vw, 1.75rem);
  }

  .description {
    max-width: 20rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .patience-note {
    font-size: 1rem;
  }

  .footer-message,
  .footer-contacts {
    max-width: min(100%, 21rem);
  }
}

@media (max-width: 375px) {
  .maintenance-wrapper {
    padding: 1.45rem 1rem 1.15rem;
    gap: 0.8rem;
  }

  .brand-logo {
    width: min(260px, 84vw);
    margin-bottom: 0.95rem;
  }

  .headline {
    max-width: 19rem;
    font-size: 1.55rem;
    line-height: 1.22;
  }

  .description {
    max-width: 18.5rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .status-pill {
    padding: 0.48rem 1.05rem;
    font-size: 0.82rem;
  }

  .center-illustration {
    max-height: 100px;
  }

  .patience-note {
    font-size: 0.96rem;
  }

  .footer-message {
    max-width: 19rem;
    font-size: 0.94rem;
  }

  .footer-contacts {
    max-width: 19rem;
    gap: 0.6rem;
  }

  .footer-link-item a {
    font-size: 0.95rem;
  }
}

@media (max-width: 340px) {
  .brand-logo {
    width: min(235px, 84vw);
  }

  .headline {
    max-width: 17rem;
    font-size: 1.42rem;
  }

  .description {
    max-width: 17rem;
    font-size: 0.84rem;
  }

  .status-pill {
    padding: 0.44rem 0.9rem;
    font-size: 0.78rem;
  }

  .center-illustration {
    max-height: 88px;
  }

  .patience-note {
    font-size: 0.92rem;
  }

  .footer-message,
  .footer-link-item a {
    font-size: 0.9rem;
  }
}
