/* Museums of Europe — museumseurope.world
   Informational, non-commercial website. Shared stylesheet. */

:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #6b6258;
  --accent: #8a5a2b;
  --accent-dark: #5e3c1a;
  --line: #e3dccf;
  --gold: #b8893f;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 30, 15, 0.08);
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Georgia", serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .3px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  display: inline-block;
  width: 30px; height: 30px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  position: relative;
}
.brand .mark::before {
  content: "";
  position: absolute; inset: 5px 5px auto 5px;
  height: 3px; background: var(--accent);
}
.brand .mark::after {
  content: "";
  position: absolute; inset: 11px 8px 5px 8px;
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}

.main-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-dark); }

/* ---------- Language switch (always visible) ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--accent);
  border-radius: 999px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
}
.lang-switch a {
  padding: 6px 14px;
  text-decoration: none;
  color: var(--accent-dark);
  background: var(--surface);
  letter-spacing: .5px;
}
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #3a2a18, #6b4a24);
  color: #f7f1e6;
  padding: 64px 0;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 14px; line-height: 1.2; }
.hero p { font-size: 1.12rem; max-width: 680px; color: #ece2d2; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: .78rem;
  letter-spacing: .5px;
  margin-bottom: 18px;
}

/* ---------- Notice (non-commercial) ---------- */
.notice {
  background: #fbf6ec;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 28px 0;
  font-size: .98rem;
  color: #4a3b25;
}
.notice strong { color: var(--accent-dark); }

/* ---------- Sections ---------- */
main { padding: 40px 0 60px; }
section { margin-bottom: 40px; }
h2 { font-size: 1.7rem; margin: 0 0 16px; color: var(--accent-dark); }
h3 { font-size: 1.2rem; margin: 0 0 8px; }

/* ---------- Museum cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(40,30,15,.14); }
.card .thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card .body { padding: 18px 20px; }
.card .country {
  font-family: Arial, sans-serif;
  font-size: .75rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold);
}
.card h3 { margin: 4px 0 8px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Museum detail ---------- */
.museum-hero {
  background: linear-gradient(160deg, #2e2114, #5e3c1a);
  color: #f7f1e6;
  padding: 50px 0;
}
.museum-hero .country {
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold);
}
.museum-hero h1 { font-size: 2.1rem; margin: 8px 0 0; }

.museum-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid var(--gold);
}
@media (max-width: 600px) { .museum-banner { height: 190px; } }

.img-credit {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  color: var(--muted);
  text-align: right;
  margin: 6px 0 0;
}
.img-credit a { color: var(--accent-dark); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 8px 0 30px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.fact .label {
  font-family: Arial, sans-serif;
  font-size: .72rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.fact .value { font-size: 1rem; }
.fact table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fact table td { padding: 2px 0; }
.fact table td:last-child { text-align: right; color: var(--muted); }

.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  text-decoration: none;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 640px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: .95rem;
  background: #fdfbf7;
}
.field textarea { min-height: 130px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.form-status {
  margin-top: 14px;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  color: var(--accent-dark);
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 30px; }
.legal p, .legal li { color: #3d352b; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  font-size: .92rem;
}
.legal th { background: #f0e9dc; font-family: Arial, sans-serif; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2a2017;
  color: #cdbfa9;
  padding: 40px 0 26px;
  font-size: .9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer a { color: #e3d2b6; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .col { min-width: 180px; }
.footer-note {
  border-top: 1px solid #463826;
  margin-top: 26px;
  padding-top: 18px;
  color: #9d8d76;
  font-size: .82rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 920px;
  margin: 0 auto;
  background: #2a2017;
  color: #f0e7d7;
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  padding: 20px 22px;
  z-index: 200;
  display: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}
.cookie-banner.show { display: block; }
.cookie-banner .row {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 20px; font-size: .88rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid #6f5d44;
  color: #f0e7d7;
}
.btn-ghost:hover { background: #3a2d1e; }

@media (max-width: 600px) {
  :root { font-size: 16px; }
  .hero h1 { font-size: 1.9rem; }
  .site-header .container { justify-content: center; }
}
