/*
 * ClinicBooking maintenance page.
 * Standalone: tokens mirror css/config.reui.css and DESIGN.md, but nothing here
 * depends on the Next app, so the folder can be served on its own while the site is down.
 */

:root {
  --background: #ffffff;
  --foreground: #27272a; /* zinc-800 */
  --mono: #09090b; /* zinc-950 */
  --secondary-foreground: #4a5565; /* gray-600 */
  --muted-foreground: #71717a; /* zinc-500 */

  --primary: #1379f0;
  --primary-hover: #2b86f2; /* primary at 90% on white, as the app's button hover */
  --primary-foreground: #ffffff;
  --ring: #2b7fff; /* blue-500 */

  --header: #829cba;
  --header-foreground: #ffffff;
  --brand: #274166;
  --brand-foreground: #ffffff;
  --brand-tint: #e8eef6;
  --brand-tint-foreground: #274166;
  --warning: #d97706; /* amber-600 */

  --radius-lg: 8px;
  --radius-xl: 12px;
  --header-height: 64px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

@media (min-width: 1024px) {
  :root {
    --header-height: 70px;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* Header: same steel-blue bar and logo size as the public site */

.site-header {
  position: relative;
  z-index: 1;
  background: var(--header);
  color: var(--header-foreground);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
}

.site-header__logo {
  width: auto;
  height: 40px;
}

@media (min-width: 1024px) {
  .site-header__logo {
    height: 50px;
  }
}

/* Message */

.maintenance {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
  text-align: center;
}

@media (min-width: 1024px) {
  .maintenance {
    padding: 64px 24px 80px;
  }
}

.maintenance__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--brand-tint);
}

.maintenance__mark > img {
  width: 60px;
  height: 60px;
}

.maintenance__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--background);
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-foreground);
}

.maintenance__badge svg {
  width: 18px;
  height: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-tint-foreground);
  font-size: 13px;
  font-weight: 500;
}

.status-chip__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.status-chip__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.6;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.maintenance h1 {
  max-width: 20ch;
  margin: 0;
  color: var(--mono);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.maintenance__lead {
  max-width: 36rem;
  margin: 12px 0 0;
  color: var(--secondary-foreground);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .maintenance h1 {
    font-size: 36px;
  }

  .maintenance__lead {
    font-size: 18px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-top: 32px;
  padding: 0 20px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button--primary:hover {
  background: var(--primary-hover);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

/* Footer: navy band, as the public site */

.site-footer {
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 14px;
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}

@media (min-width: 1024px) {
  .site-footer__main {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1024px) {
  .site-footer__brand {
    flex-direction: row;
    gap: 20px;
  }
}

.site-footer__logo {
  width: auto;
  height: 32px;
}

.site-footer__brand p,
.site-footer__contact p {
  margin: 0;
  color: rgb(255 255 255 / 0.8);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .site-footer__contact {
    align-items: flex-end;
  }
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 6px;
  color: var(--brand-foreground);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
  word-break: break-all;
}

.site-footer__email svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.site-footer__email:hover {
  text-decoration: underline;
}

.site-footer__email:focus-visible {
  outline: 2px solid var(--brand-foreground);
  outline-offset: 2px;
}

.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(0 0 0 / 0.2);
  color: rgb(255 255 255 / 0.8);
  font-size: 12px;
}

.site-footer__legal p {
  margin: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  text-align: center;
}

@media (min-width: 1024px) {
  .site-footer__legal p {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-chip__dot::after {
    animation: none;
  }

  .button {
    transition: none;
  }
}
