/* public/styles.css — Beltà. Swap tokens below to rebrand. */
:root {
  --bg: #000000;        /* pure black — matches the logo's background */
  --surface: #141414;
  --border: #2a2a2a;
  --text: #f5f5f5;      /* white */
  --muted: #9a9a9a;     /* grey */
  --accent: #ffffff;    /* white */
  --accent-ink: #000000;
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  position: relative;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, #1c1c1c 0%, #000 70%);
  animation: ambient 30s ease-in-out infinite alternate;
}

.lang-nav,
.portal-header,
.reassurance,
.service-menu,
.portal-footer {
  position: relative;
  z-index: 1;
}

.portal-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.25rem;
  text-align: center;
}

.lang-nav {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  min-height: 3.5rem;
  z-index: 20; /* keep the dropdown (and its taps) above later siblings like the header */
}

.lang-menu {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.lang-menu summary {
  list-style: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.lang-menu summary::-webkit-details-marker { display: none; }

.lang-menu summary::after {
  content: "▾";
  display: inline-block;
  margin-inline-start: 0.45rem;
}

.lang-menu[open] > summary {
  border-color: var(--accent);
  color: var(--text);
}

.lang-menu summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-menu ul {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 5;
  min-width: 9rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.lang-menu a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
}

.lang-menu a.active {
  color: var(--text);
  font-weight: 600;
}

.lang-menu a:hover {
  background: var(--border);
  color: var(--text);
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .lang-menu ul {
  right: auto;
  left: 0;
}

[dir="rtl"] .group-heading,
[dir="rtl"] .service-desc,
[dir="rtl"] .reassurance {
  text-align: right;
}

.brand-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.portal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.portal-sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 34rem;
}

.reassurance {
  max-width: 960px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.reassurance-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.reassure-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.deposit-policy {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.9rem 0 0;
  text-align: center;
}

.reassurance a {
  color: var(--text);
  text-underline-offset: 0.18em;
}

.service-menu {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.service-group {
  margin-bottom: 3.75rem;
}

.group-heading {
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.875rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.service-desc {
  color: var(--muted);
  font-size: 0.925rem;
  margin: 0;
  flex: 1;
}

.service-price {
  color: var(--text);
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin: 0.7rem 0;
}

.service-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-cta {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 140ms ease-out;
}

/* Primary: Pay in full — filled, highlighted, sits on top */
.service-cta--full {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.service-cta--full:hover,
.service-cta--full:focus-visible {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

/* Secondary: Reserve with 50% — visible but clearly below the primary */
.service-cta--deposit {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
  font-weight: 500;
}
.service-cta--deposit:hover,
.service-cta--deposit:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--muted);
}

.service-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-cta:active {
  transform: scale(0.98);
}

.service-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
}

.portal-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

@keyframes ambient {
  from { transform: translateY(-2%) scale(1.02); }
  to { transform: translateY(2%) scale(1.06); }
}


@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
