/* ============================================================
   Land in Tarxien — Expression of Interest
   Simple, modern microsite with MT/EN language toggle
   ============================================================ */

:root {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --ink: #2b2318;
  --muted: #6f6454;
  --faint: #988d7b;
  --accent: #7c4a21;
  --accent-deep: #4a2d13;
  --accent-soft: #f0e5d7;
  --line: #e7dfd0;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Language switching ----------
   Content is stored bilingual via lang="mt"/"en" spans.
   The active language is set on <html data-lang="...">. */

[data-lang="mt"] [lang="en"],
[data-lang="en"] [lang="mt"] { display: none !important; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.crest {
  width: 46px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  margin-right: auto;
}

.header-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
}

.header-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lang-toggle {
  display: inline-flex;
  background: var(--accent-soft);
  border: 1px solid #e3d2bc;
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent-deep);
  color: #fdf9f2;
}

.lang-toggle button:not([aria-pressed="true"]):hover {
  color: var(--accent-deep);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #e3d2bc;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent-deep);
  color: #fdf9f2;
  box-shadow: 0 6px 18px -8px rgba(74, 45, 19, 0.55);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(74, 45, 19, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1.5px solid #d8c9b2;
}

.btn-ghost:hover { background: var(--surface); }

/* ---------- Fact cards ---------- */

.facts { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3.5rem, 8vw, 5.5rem); }

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

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fact-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.fact-head .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.fact-head h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.fact-card p { font-size: 0.94rem; }

.deadline-chip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 1.8rem auto 0;
  max-width: 44rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.deadline-chip .icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: var(--accent);
}

.countdown {
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

/* ---------- Section title ---------- */

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 46rem;
  margin: 0 auto;
}

/* ---------- Notice ---------- */

.notice {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
}

.notice-card {
  margin: 2rem auto 0;
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  box-shadow: 0 20px 40px -32px rgba(74, 45, 19, 0.35);
}

.notice-card p {
  font-size: 0.98rem;
  line-height: 1.75;
}

.notice-card p + p { margin-top: 1.1rem; }

.notice-card strong { color: var(--accent-deep); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--accent-deep);
  color: #f3ead9;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.site-footer address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.footer-links {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #ecd9ba;
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 217, 186, 0.35);
  padding-bottom: 1px;
}

.footer-links a:hover { border-bottom-color: #ecd9ba; }

.copyright {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: #b3a284;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .header-sub { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .fact-card { padding: 1.15rem; }
}
