/* Coopers Solicitors — maintenance page theme (logo palette) */
:root {
  --bg-navy: #0e1b2b;
  --bg-navy-deep: #0a121c;
  --gold: #c5a047;
  --gold-hover: #d4b45a;
  --text-body: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.75);
  --footer-rule: rgba(255, 255, 255, 0.14);
  --footer-prefix: #9ca3af;
  --footer-link: #ffffff;
  --footer-link-hover: #e5e5e5;
  --content-max-width: 48rem;
}

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

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text-body);
  background: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(197, 160, 71, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg-navy-deep) 0%, var(--bg-navy) 40%, var(--bg-navy) 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.developer-footer {
  width: 100%;
  margin-top: auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 1.75rem);
  background: transparent;
  text-align: center;
}

.developer-footer__rule {
  height: 1px;
  width: min(18rem, 92vw);
  margin: 0 auto;
  background: var(--footer-rule);
}

.developer-footer__credit {
  margin: 0;
  padding: 0.85rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.developer-footer__prefix {
  color: var(--footer-prefix);
  font-weight: 400;
  margin-right: 0.35em;
}

.developer-footer__link {
  color: var(--footer-link);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.developer-footer__link:hover {
  color: var(--footer-link-hover);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.developer-footer__link:focus-visible {
  outline: none;
  color: var(--footer-link-hover);
  box-shadow: 0 0 0 2px var(--bg-navy), 0 0 0 4px var(--gold);
  border-radius: 2px;
}

.logo-wrap {
  margin-bottom: 0;
}

.logo-wrap img {
  display: block;
  margin: 0 auto;
  max-width: min(100%, 320px);
  height: auto;
}

h1 {
  margin: 0 0 clamp(1.25rem, 4vw, 1.75rem);
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1.2;
}

.content {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--text-body);
}

.content p {
  margin: 0 0 1rem;
}

.content p:last-child {
  margin-bottom: 0;
}

.email-row {
  margin: 1.25rem 0 1rem;
}

.email-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9em;
  color: var(--text-muted);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--gold-hover);
  border-bottom-color: var(--gold-hover);
  outline: none;
}

.email-link:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-navy), 0 0 0 4px var(--gold);
  border-radius: 2px;
}

/* Fade-in when JS adds class */
main.is-ready {
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  main.is-ready {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
