/* =========================================================
   Small Nations – sitewide modernisation stylesheet
   Include LAST in <head>, after sn.css and lightbox.css:
   <link rel="stylesheet" href="/modern.css">
   No HTML changes needed.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap");

:root {
  --blue: #326fca;
  --blue-dark: #1d4a96;
  --navy: #0f1f3d;
  --accent: #ff7a3d;
  --accent-dark: #e45f22;
  --sun: #ffc83d;
  --bg: #f4f7fc;
  --card: #ffffff;
  --text: #1f2a3d;
  --text-soft: #5b6779;
  --border: #e3e9f3;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 31, 61, .10);
  --shadow-sm: 0 2px 10px rgba(15, 31, 61, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", var(--font);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0 !important;
  padding: 0 0 40px !important;
  font-family: var(--font) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
  background:
    linear-gradient(180deg, rgba(15,31,61,.55) 0, rgba(50,111,202,.0) 420px),
    url("img/header.jpg") no-repeat 50% 0 / cover fixed,
    linear-gradient(180deg, var(--blue) 0, var(--bg) 520px) !important;
  background-color: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout wrapper ---------- */
#topwrapper {
  width: min(1080px, 94%) !important;
  max-width: 1080px;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  float: none !important;
  position: relative;
}

/* ---------- Navigation ---------- */
#menus {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 18px auto 28px !important;
  padding: 8px !important;
  width: 100% !important;
  height: auto !important;
  background: rgba(15, 31, 61, .82) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

#menus a,
#menus a.menu,
#menus a.activemenu {
  display: inline-block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 18px !important;
  font: 600 14px/1.2 var(--font) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #e8efff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}

#menus a:hover {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

#menus a.activemenu {
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255,122,61,.45);
}

/* ---------- Main content card ---------- */
.content {
  position: relative;
  width: 100% !important;
  margin: 0 0 32px !important;
  padding: clamp(22px, 4vw, 52px) !important;
  background: var(--card) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content::after { content: ""; display: table; clear: both; }

.content > .lphoto:first-child,
img.lphoto {
  float: right;
  max-width: 220px;
  margin: 0 0 16px 28px !important;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head) !important;
  color: var(--navy) !important;
  line-height: 1.2 !important;
  letter-spacing: -.01em;
  margin: 1.4em 0 .5em !important;
  text-transform: none;
}
.content > h2:first-of-type, h1 { margin-top: 0 !important; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem) !important; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem) !important; font-weight: 700; }
h3 { font-size: 1.3rem !important; font-weight: 700; }
h4 { font-size: 1.1rem !important; font-weight: 600; }

h2::after {
  content: "";
  display: block;
  width: 48px; height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sun));
}
.dgbox h2::after, #footer h2::after, td h2::after { display: none; }

p { margin: 0 0 1.1em !important; color: var(--text); }
strong, b { font-weight: 700; color: inherit; }
small { color: var(--text-soft); }
hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }

/* ---------- Links ---------- */
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--accent-dark); }
a:visited { color: var(--blue-dark); }

/* ---------- Highlight box (news) ---------- */
.dgbox {
  position: relative;
  margin: 2em 0 !important;
  padding: clamp(20px, 3vw, 36px) !important;
  background: linear-gradient(135deg, #eef4ff 0%, #fff6ee 100%) !important;
  border: 1px solid var(--border) !important;
  border-left: 6px solid var(--accent) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dgbox::after { content: ""; display: table; clear: both; }
.dgbox h2 { margin-top: 0 !important; }
.dgbox h2 + p, .dgbox p { max-width: 70ch; }

.dgbox h2 a {
  display: inline-block;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(50,111,202,.35);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.dgbox h2 a:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,122,61,.4);
}

.dgbox a > strong {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
}
.dgbox a:hover > strong { background: var(--accent-dark); }

.dgbox img, .content img[style*="float"] {
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.dgbox img:hover { transform: scale(1.03) rotate(-.5deg); }
.dgbox br { display: none; }

/* ---------- Gallery / lightbox thumbnails ---------- */
.llineup {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 2em 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.llineup > p, .llineup > blockquote, .llineup > small { grid-column: 1 / -1; }
.llineup a[rel^="lightbox"] {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.llineup a[rel^="lightbox"] img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0 !important;
  margin: 0 !important;
  transition: transform .4s;
}
.llineup a[rel^="lightbox"]:hover img { transform: scale(1.1); }

/* ---------- Quotes ---------- */
blockquote {
  margin: 1.5em 0 !important;
  padding: 20px 26px !important;
  font-style: italic;
  color: var(--text-soft);
  background: var(--bg);
  border-left: 5px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

/* ---------- Generic content: lists ---------- */
.content ul, .content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.content li { margin-bottom: .4em; }
.content li::marker { color: var(--accent); }

/* ---------- Legacy tables (line-up, tickets, info...) ---------- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-head);
  color: #fff;
  background: var(--navy);
}
td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #f8faff; }
tbody tr:hover td { background: #eef4ff; }
table[border], table[cellpadding], table[cellspacing] { border-collapse: separate; }
td img { border-radius: 8px; }

/* ---------- Forms (contact, tickets) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  max-width: 560px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(50,111,202,.18);
}
textarea { min-height: 140px; resize: vertical; }
button, input[type="submit"], input[type="button"] {
  padding: 12px 26px;
  font: 600 1rem var(--font);
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,122,61,.4);
  transition: transform .2s, background .2s;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
#footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 28px 20px !important;
  text-align: center;
  background: var(--navy) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#fmenus { line-height: 2.2; }
#fmenus span { color: rgba(255,255,255,.3); margin: 0 4px; }
#fmenus a, #fmenus a.fmenu {
  display: inline-block;
  padding: 2px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cfdcf6 !important;
  text-decoration: none !important;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
#fmenus a:hover { color: #fff !important; background: rgba(255,255,255,.12); }

.copyright {
  margin: 18px 0 0 !important;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.85) !important;
}

/* Validator badges */
body > p[style*="center"] { margin-top: 24px; opacity: .55; transition: opacity .2s; }
body > p[style*="center"]:hover { opacity: 1; }

/* ---------- Lightbox polish ---------- */
#lightbox { z-index: 9999; }
#lightbox img { border-radius: 10px; }
#overlay { background: #0f1f3d !important; }
#outerImageContainer { border-radius: 14px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 16px !important; background-attachment: scroll !important; }
  #menus {
    position: static;
    border-radius: var(--radius);
    justify-content: flex-start;
  }
  #menus a { padding: 8px 14px !important; font-size: 13px !important; }
  .content > .lphoto:first-child, img.lphoto {
    float: none; display: block; margin: 0 auto 20px !important;
  }
  .dgbox img, .content img[style*="float"] {
    float: none !important;
    display: block;
    margin: 16px auto !important;
  }
  table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .llineup { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dgbox h2 a { display: block; text-align: center; }
}

/* ---------- Accessibility / print ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff !important; }
  #menus, #footer, .llineup { display: none !important; }
  .content { box-shadow: none; padding: 0 !important; }
}
