/* Maintenance / "Deschidem în curând" page (src/maintenance.njk). Ported from the original landing page. */
:root {
  --ink: #0B2B28;
  /* fundal, petrol închis */
  --glow: #17AD9A;
  /* lumina din spatele panoului */
  --gold: #C9A45C;
  --gold-hi: #E2C27F;
  --cream: #EFE8DA;
  --muted: #A2B9B5;
  --line: #22524B;
  --f-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(70% 55% at 50% 42%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 70%),
    var(--ink);
  color: var(--cream);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

main {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem max(20px, env(safe-area-inset-right)) 3rem max(20px, env(safe-area-inset-left));
}

.card {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 36rem;
}

.logo {
  margin: 0;
}

.logo img {
  display: block;
  width: 320px;
  max-width: 80vw;
  height: auto;
}

.eyebrow {
  font: 500 .75rem/1.4 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-family: var(--f-display);
  font-weight: 500;
  margin: .5rem 0 0;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.15;
  text-wrap: balance;
}

/* Prima linie din titlu: cuvintele cheie, mai mici și mai discrete */
h1 .kw {
  display: block;
  font-size: .55em;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: .35em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 30rem;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.services li {
  font-size: .875rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
}

.actions {
  display: grid;
  gap: .6rem;
  width: 100%;
  margin-top: .5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  font: 600 .9rem/1 var(--f-body);
  letter-spacing: .02em;
  border: 1px solid var(--line);
  transition: background .15s, border-color .15s;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-hi);
}

.btn:not(.btn--gold):hover {
  border-color: var(--gold);
}

.contact {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  display: grid;
  gap: .25rem;
}

.contact .mono {
  font-family: var(--f-mono);
  color: var(--cream);
}

footer {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  padding: 1.5rem max(20px, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
}

@media (min-width: 560px) {
  .actions {
    display: flex;
    justify-content: center;
    width: auto;
  }
}

/* Telefon: tot conținutul încape pe un ecran, fără scroll.
   Dimensiunile se adaptează la înălțimea ecranului (svh = înălțimea cu barele browserului vizibile). */
@media (max-width: 559px) {
  body {
    height: 100svh;
    min-height: 0;
  }

  main {
    padding: clamp(.75rem, 3svh, 2rem) 16px clamp(.5rem, 2svh, 1.5rem);
    overflow: hidden;
  }

  .card {
    gap: clamp(.5rem, 2.1svh, 1.25rem);
  }

  .logo img {
    width: min(62vw, 27svh);
  }

  .eyebrow {
    font-size: .6875rem;
  }

  h1 {
    margin: 0;
    font-size: clamp(1.35rem, 3.6svh, 1.9rem);
  }

  .lead {
    font-size: clamp(.875rem, 2.1svh, 1rem);
    line-height: 1.45;
  }

  .services {
    gap: .375rem;
  }

  .services li {
    font-size: .8125rem;
    padding: .3rem .7rem;
  }

  .actions {
    margin-top: 0;
    gap: .5rem;
  }

  .btn {
    min-height: clamp(44px, 6.2svh, 48px);
  }

  .contact {
    font-size: .8125rem;
  }

  footer {
    padding-top: .6rem;
    padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
  }
}

/* Telefoane foarte scunde (ex. iPhone SE): renunțăm la textul secundar */
@media (max-width: 559px) and (max-height: 640px) {
  .lead {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card>* {
    animation: rise .6s ease-out both;
  }

  .card>*:nth-child(2) {
    animation-delay: .05s;
  }

  .card>*:nth-child(3) {
    animation-delay: .1s;
  }

  .card>*:nth-child(n+4) {
    animation-delay: .15s;
  }

  @keyframes rise {
    from {
      opacity: .001;
      transform: translateY(8px);
    }
  }
}

/* Footer legal links */
footer a { color: var(--muted); }
footer a:hover { color: var(--cream); }

/* Cookie banner (partials/consent.njk), restyled for this page */
.consent { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: .75rem max(12px, env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.consent[hidden] { display: none; }
.consent-in { max-width: 720px; margin-inline: auto; display: grid; gap: 1rem; padding: 1.25rem; background: var(--ink); color: var(--cream); border: 1px solid var(--gold); border-radius: 4px; font-size: .875rem; text-align: left; }
.consent-in p { margin: 0; }
.consent-in a { color: var(--gold); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.consent .btn { cursor: pointer; background: transparent; color: var(--cream); }
.consent .btn--primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.consent .btn--primary:hover { background: var(--gold-hi); }
@media (min-width: 640px) { .consent-in { grid-template-columns: 1fr auto; align-items: center; } .consent-actions { display: flex; } }
