/* ==========================================================================
   SwiftFrame Glazbena škola Slavonski Brod — theme CSS
   The static homepage mockup's assets/css/style.css (../gs-slavonski-brod/),
   adapted for WordPress: tokens resolve through the Global Settings palette
   (--sf-color-*), `.sf-inner` carries the section layout contract, plus the
   subpage system the mockup never had (page band, prose, document lists, link
   lists, galleries + lightbox, people, contact, calendar, post archive, CF7,
   404). Behaviour lives in assets/js/main.js.
   Tokens: Red #BD272C (logo) · Maroon #3A0810 · Ink #1A1517 · Mist #F4F1F0
   Headings: Newsreader (Cormorant Garamond was dropped on 2026-10-16: its š/ž/č carons are badly drawn) · Body/UI: Manrope
   ========================================================================== */

:root {
  --red: var(--sf-color-red, #bd272c);
  --red-deep: var(--sf-color-red-deep, #9e1f24);
  --maroon: var(--sf-color-maroon, #3a0810);
  --maroon-deep: var(--sf-color-maroon-deep, #24050a);
  --ink: var(--sf-color-ink, #1a1517);
  --gray: var(--sf-color-gray, #6e6468);
  --mist: var(--sf-color-mist, #f4f1f0);
  --white: var(--sf-color-white, #ffffff);
  --line: rgba(26, 21, 23, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --max: 1440px;
  --section: clamp(72px, 9vw, 150px);
  --section-post: clamp(40px, 4vw, 64px);
  --flow: clamp(20px, 1.6vw, 28px);           /* joined prose / gallery blocks: paragraph gap */
  --flow-heading: clamp(40px, 4vw, 64px);     /* joined block that opens with a heading */

  --h1: clamp(46px, 6.4vw, 104px);
  --h2: clamp(38px, 4vw, 64px);
  --h3: clamp(26px, 2.1vw, 34px);
  --body: clamp(16px, 1vw, 18px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, figure, dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: clamp(22px, 1.6vw, 26px); }
h1 em, h2 em { font-style: italic; font-weight: inherit; }

/* Layout: `.wrap` for chrome (header / footer / hero / page band), `.sf-inner` for contract
   sections. `.sf-inner` is content-box so its max-width is the content width — exactly
   `.wrap` (width: min(100% - 2 * gutter, 1440px)). */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sf-inner { box-sizing: content-box; }
.sf-inner > *:not(.reveal) { min-width: 0; }
.wp-site-blocks { position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { margin-top: 18px; color: var(--gray); font-size: clamp(17px, 1.15vw, 20px); line-height: 1.55; }
.section-head--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px 64px;
  align-items: end;
}
.section-head--row p { margin-top: 0; max-width: 560px; }
.section-head--row .btn { justify-self: end; margin-bottom: 10px; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--white); color: var(--maroon); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-nav { min-height: 44px; padding: 0 22px; font-size: 15px; background: var(--red); color: var(--white); }
.btn-nav:hover { background: var(--red-deep); }


/* Reveal on scroll (one calm fade; the hero is the only orchestrated moment).
   Only with JS running (html.js), so the pages read fine without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The animated arrow glyph (line grows on hover) */
.dept-arrow { position: relative; width: 40px; height: 16px; flex: 0 0 40px; }
.dept-arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: translateY(-50%) scaleX(.5); transform-origin: right; transition: transform .3s var(--ease-out); }
.dept-arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
a:hover > .dept-arrow::before, a:hover .dept-arrow::before { transform: translateY(-50%) scaleX(1); }

/* Inline UI icons (gz_icon) */
.icon { width: 24px; height: 24px; flex: 0 0 24px; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--white);
  transition: transform .85s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s .85s;
}
.loader[hidden] { display: none; }
.loader.is-done { transform: translateY(-100%); visibility: hidden; pointer-events: none; }
.loader-stave { position: absolute; left: 0; right: 0; top: 50%; display: grid; gap: 22px; transform: translateY(-50%); pointer-events: none; }
.loader-stave i {
  display: block; height: 1px; background: rgba(255,255,255,.28);
  transform: scaleX(0); transform-origin: left center;
  animation: stave-draw 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.09s + 0.1s);
}
@keyframes stave-draw { to { transform: scaleX(1); } }
.loader-mark { position: relative; display: grid; justify-items: center; gap: 26px; padding: 44px 56px; background: var(--maroon); }
.loader-logo { width: 87px; height: 100px; color: var(--white); clip-path: inset(100% 0 0 0); animation: mark-fill 1s var(--ease-out) .4s forwards; }
.loader-logo path { fill: currentColor; }
@keyframes mark-fill { to { clip-path: inset(0 0 0 0); } }
.loader-mark span { font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; text-align: center; opacity: 0; transform: translateY(14px); animation: mark-rise .9s var(--ease-out) .9s forwards; }
@keyframes mark-rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; color: var(--white); }
body.admin-bar .site-header { top: 32px; }
.topbar { font-size: 14px; font-weight: 500; background: rgba(36, 5, 10, .55); border-bottom: 1px solid var(--line-light); backdrop-filter: blur(6px); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 24px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar a { display: inline-block; padding: 4px 0; opacity: .85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }
.topbar-social { display: flex; gap: 14px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line-light); }
.topbar-social a, .footer-social a { display: grid; place-items: center; min-width: 24px; min-height: 24px; }

.navbar { transition: background-color .3s ease, box-shadow .3s ease; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 32px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 54px; }
.brand-light { display: none; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.menu { display: flex; gap: 30px; font-weight: 600; font-size: 15.5px; }
.menu > li { position: relative; }
.menu a { position: relative; display: inline-block; padding: 6px 0; white-space: nowrap; }
.menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.menu > li > a:hover::after, .menu > li.is-active > a::after, .menu > li.is-open > a::after { transform: scaleX(1); }
.menu .has-sub > a { padding-right: 16px; }
.menu .has-sub > a::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
/* Dropdowns (desktop): white panel, red bar on hover */
.submenu {
  position: absolute; left: -22px; top: 100%; z-index: 5;
  min-width: 260px; width: max-content; max-width: 380px;
  padding: 12px 0; background: var(--white); color: var(--ink);
  box-shadow: 0 18px 40px rgba(26, 21, 23, .14), 0 1px 0 var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s var(--ease-out), visibility 0s .25s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.submenu li a { display: block; padding: 9px 22px; font-size: 15px; font-weight: 500; white-space: normal; border-left: 2px solid transparent; transition: border-color .2s, background-color .2s; }
.submenu li a:hover, .submenu li.is-active a { border-left-color: var(--red); background: var(--mist); }
.menu > li:hover > .submenu, .menu > li.is-open > .submenu, .menu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; z-index: 2; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease, top .3s ease; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Scrolled state: header becomes fixed, white, red logo */
.site-header.is-scrolled { position: fixed; color: var(--ink); animation: header-in .35s var(--ease-out); }
.site-header.is-scrolled .topbar { display: none; }
.site-header.is-scrolled .navbar { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.site-header.is-scrolled .navbar .wrap { min-height: 74px; }
.site-header.is-scrolled .brand img { height: 46px; }
.site-header.is-scrolled .brand-dark { display: none; }
.site-header.is-scrolled .brand-light { display: block; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

/* Pages without a hero / page band: the header sits in the flow on maroon */
.site-header--solid { position: relative; background: var(--maroon); }
.site-header--solid .topbar { background: rgba(0,0,0,.2); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 140px;
  color: var(--white);
  background: var(--maroon);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.12); transition: transform 7s var(--ease-out); }
.hero.is-in .hero-bg img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36,5,10,.88) 0%, rgba(36,5,10,.7) 42%, rgba(36,5,10,.25) 100%),
    linear-gradient(180deg, rgba(36,5,10,.35) 0%, rgba(36,5,10,0) 35%, rgba(36,5,10,.75) 100%);
}
.hero-wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 820px; }
.hero-kicker { font-size: 15px; font-weight: 600; letter-spacing: .04em; opacity: .9; margin-bottom: 28px; }
.hero h1 { margin-bottom: 30px; font-weight: 340; }
.hero-lead { max-width: 560px; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; opacity: .92; margin-bottom: 40px; }
.hero-actions .line > span { display: flex; flex-wrap: wrap; gap: 14px; }

/* Line-mask reveal: each line of copy rises out of its own clipping box */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: var(--ld, 0s); }
.hero.is-in .line > span { transform: none; }
.hero-kicker .line > span { --ld: .05s; }
.hero h1 .line:nth-child(1) > span { --ld: .15s; }
.hero h1 .line:nth-child(2) > span { --ld: .27s; }
.hero-lead .line > span { --ld: .42s; }
.hero-actions .line > span { --ld: .55s; }

/* Floating notes: positioned by inline --x/--y over the right half, masked away from the copy.
   Two independent loops per glyph: a slow drift (--p) and an occasional brightening (--tw). */
.hero-notes {
  position: absolute; top: var(--header-h); bottom: 0; right: 0;
  width: 54%;
  z-index: 1;
  pointer-events: none;
  color: var(--white);
  -webkit-mask: radial-gradient(ellipse 95% 110% at 100% 100%, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%);
  mask: radial-gradient(ellipse 95% 110% at 100% 100%, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%);
}
.fn {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 40px; height: 60px;
  fill: currentColor;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px) scale(var(--s)) rotate(var(--r));
  transition: opacity .9s ease, transform 1.2s var(--ease-out);
  transition-delay: calc(var(--e) + .9s);
}
.fn[viewBox="0 0 56 60"] { width: 56px; }
.hero.is-in .fn {
  opacity: .16;
  transform: scale(var(--s)) rotate(var(--r));
  animation: note-drift var(--p) ease-in-out infinite, note-glow var(--tw) ease-in-out infinite;
  animation-delay: calc(var(--d) + var(--e) + 2.2s), calc(var(--td) + var(--e) + 2.2s);
}
@keyframes note-drift {
  0%, 100% { transform: translateY(0) scale(var(--s)) rotate(var(--r)); }
  50% { transform: translateY(-18px) scale(var(--s)) rotate(calc(var(--r) * -1)); }
}
@keyframes note-glow {
  0%, 82%, 100% { opacity: .16; }
  91% { opacity: .6; }
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  width: 26px; height: 42px; transform: translateX(-50%);
  border: 1.5px solid rgba(255,255,255,.55); border-radius: 13px;
  opacity: 0; transition: opacity .8s ease 1.8s, border-color .2s;
}
.hero.is-in .hero-scroll { opacity: 1; }
.hero-scroll:hover { border-color: var(--white); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--white); border-radius: 2px; animation: scroll-hint 1.8s ease-in-out infinite; }
@keyframes scroll-hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* --------------------------------------------------------------------------
   Page band — the subpage opener (maroon, faint stave, title + lead).
   The transparent header floats over it exactly like over the hero.
   -------------------------------------------------------------------------- */
.page-band {
  position: relative;
  padding: calc(var(--header-h) + 40px + clamp(48px, 6vw, 96px)) 0 clamp(56px, 6vw, 96px);
  color: var(--white);
  background: var(--maroon);
  overflow: hidden;
}
.page-band--image { background: var(--maroon-deep); }
.page-band-bg { position: absolute; inset: 0; }
.page-band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36,5,10,.85) 0%, rgba(36,5,10,.55) 60%, rgba(36,5,10,.3) 100%); }
.page-band-stave { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; z-index: 1; }
.page-band-stave i { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.14); }
.page-band-stave i:nth-child(1) { top: 10px; }
.page-band-stave i:nth-child(2) { top: 30px; }
.page-band-stave i:nth-child(3) { top: 50px; }
.page-band-stave i:nth-child(4) { top: 70px; }
.page-band-stave i:nth-child(5) { top: 90px; }
.page-band .wrap { position: relative; z-index: 2; }
.band-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; font-weight: 600; letter-spacing: .04em; opacity: .85; margin-bottom: 22px; }
.band-eyebrow a { display: inline-block; padding: 3px 0; }
.band-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.band-eyebrow .sep { opacity: .5; }
.page-band h1 { max-width: 16ch; font-size: clamp(40px, 5.2vw, 84px); }
.page-band--post h1 { max-width: 22ch; font-size: clamp(36px, 4.2vw, 68px); }
.band-lead { max-width: 640px; margin-top: 26px; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; opacity: .9; }
.band-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.page-band--404 { min-height: 70vh; display: flex; align-items: center; }
.page-band--404 .band-eyebrow { font-family: var(--font-display); font-size: clamp(64px, 9vw, 140px); line-height: .9; opacity: .18; font-weight: 400; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Programs — a real sequence (three stages), drawn as one stave line with stops
   -------------------------------------------------------------------------- */
.stages { counter-reset: stage; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; position: relative; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.stage { position: relative; padding-top: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.stage .btn { margin-top: auto; }
.stage::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; background: var(--red); transform: rotate(-20deg) scaleY(.72); border-radius: 50%; }
.stage-step { display: block; font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 18px; }
.stage h3 { margin-bottom: 16px; }
.stage p { color: var(--gray); margin-bottom: 28px; max-width: 38ch; }

/* --------------------------------------------------------------------------
   Departments / link lists — a list, not cards: name large, sub small, row reveals on hover
   -------------------------------------------------------------------------- */
.dept-list { border-top: 1px solid var(--line); }
.dept-list li { border-bottom: 1px solid var(--line); }
.dept-list a, .dept-list .dept-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  transition: background-color .3s ease, padding-left .3s var(--ease-out);
}
.dept-list--plain a { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 40px; }
.dept-list a:hover { background: var(--white); padding-left: 20px; }
.dept-list--white a:hover { background: var(--mist); }
.dept-icon { width: 44px; height: 44px; color: var(--ink); transition: color .3s; }
.dept-icon svg { width: 100%; height: 100%; }
.dept-list a:hover .dept-icon { color: var(--red); }
.dept-name { font-family: var(--font-display); font-size: clamp(26px, 2.3vw, 38px); line-height: 1.05; font-weight: 400; }
.dept-sub { color: var(--gray); font-size: 15px; }
.dept-list .dept-arrow { justify-self: end; }
.dept-list .file-badge { margin-left: 10px; vertical-align: middle; }

/* --------------------------------------------------------------------------
   Tradition / media + text
   -------------------------------------------------------------------------- */
.tradition-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.tradition-grid--flip .tradition-photo { order: 2; }
.tradition-photo { position: relative; }
.tradition-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.tradition-photo figcaption { margin-top: 14px; font-size: 14px; color: var(--gray); }
.tradition-copy h2 { margin-bottom: 26px; max-width: 15ch; }
.tradition-copy p { color: var(--gray); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.7; max-width: 60ch; }
.tradition-copy p + p { margin-top: 1em; }
/* Row list: the Odjeli treatment for any group of links (border rows + drawn arrow) */
.row-list { border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.row-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.1;
  transition: padding-left .3s var(--ease-out);
}
.row-list a:hover { padding-left: 14px; color: var(--red); }
.tradition-links { margin-top: 36px; max-width: 520px; }

/* --------------------------------------------------------------------------
   News cards (home + archive)
   -------------------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.news-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-card { display: flex; flex-direction: column; }
.news-media { display: block; overflow: hidden; background: var(--white); margin-bottom: 22px; }
.news-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease-out); background: var(--mist); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-card time, .news-card .news-meta { display: block; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 10px; }
.news-card .news-meta span + span::before { content: "·"; margin: 0 8px; color: var(--gray); }
.news-card .news-meta .cat { color: var(--gray); }
.news-card h3 { margin-bottom: 12px; }
.news-card h3 a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1.5px; background-position: 0 100%; transition: background-size .3s var(--ease-out); }
.news-card:hover h3 a { background-size: 100% 1.5px; }
.news-card p { color: var(--gray); font-size: 16px; }
.news-card--gallery .news-media img { aspect-ratio: 4 / 3; }

.post-list-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(40px, 4vw, 64px); }
.post-list-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.post-list-pagination .page-numbers.current, .post-list-pagination a.page-numbers:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.post-list-pagination .page-numbers.dots { border: 0; }
.post-list-empty { color: var(--gray); }
.post-list-filter { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.post-list-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.post-list-filter a:hover { border-color: var(--ink); }
.post-list-filter a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Band (enrol / CTA): red (or maroon) band with heading + text + link list
   -------------------------------------------------------------------------- */
.band { color: var(--white); }
.band--red { background: var(--red); }
.band--maroon { background: var(--maroon); }
.band--mist { background: var(--mist); color: var(--ink); }
/* Photo band (the home Upisi band: the school entrance under the hero's maroon shade, heavier on the left where the copy sits) */
.band--image { position: relative; color: var(--white); background: var(--maroon) var(--band-image) center 40% / cover no-repeat; }
.band--image::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(36,5,10,.9) 0%, rgba(36,5,10,.74) 45%, rgba(36,5,10,.45) 100%),
    linear-gradient(180deg, rgba(36,5,10,.3) 0%, rgba(36,5,10,0) 40%, rgba(36,5,10,.5) 100%);
}
.band--image > .sf-inner { position: relative; }
.enrol-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.enrol-copy h2 { margin-bottom: 20px; }
.enrol-copy p { max-width: 48ch; opacity: .92; font-size: clamp(16px, 1.1vw, 19px); }
.enrol-copy .btn { margin-top: 28px; }
.enrol-links { border-top: 1px solid rgba(255,255,255,.3); }
.enrol-links li { border-bottom: 1px solid rgba(255,255,255,.3); }
.enrol-links a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; font-family: var(--font-display); font-size: clamp(24px, 2vw, 32px); line-height: 1.1; transition: padding-left .3s var(--ease-out); }
.enrol-links a:hover { padding-left: 16px; }
.band--mist .enrol-links, .band--mist .enrol-links li { border-color: var(--line); }
.band--mist .enrol-copy p { color: var(--gray); opacity: 1; }
.band .btn-ghost { color: inherit; }
.band--red .btn-ghost:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   Prose (long text)
   -------------------------------------------------------------------------- */
.prose-head { margin-bottom: clamp(24px, 3vw, 40px); }
.prose-head h2 { max-width: 20ch; }
.sf-prose { max-width: 820px; font-size: clamp(16px, 1.05vw, 18px); line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.sf-prose--wide { max-width: none; }
.sf-prose--center { margin-inline: auto; }
.sf-prose > * + * { margin-top: 1.1em; }
.sf-prose > :last-child { margin-bottom: 0; }
.sf-prose h2, .sf-prose h3, .sf-prose h4 { margin-top: 1.6em; margin-bottom: .5em; }
.sf-prose h2 { font-size: clamp(30px, 2.6vw, 42px); }
.sf-prose h3 { font-size: clamp(24px, 2vw, 32px); }
.sf-prose h4 { font-size: clamp(20px, 1.5vw, 24px); }
.sf-prose > h2:first-child, .sf-prose > h3:first-child { margin-top: 0; }
.sf-prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sf-prose a:hover { color: var(--red-deep); }
.sf-prose ul, .sf-prose ol { padding-left: 24px; display: grid; gap: 8px; }
.sf-prose ul { list-style: disc; } .sf-prose ol { list-style: decimal; }
.sf-prose li > ul, .sf-prose li > ol { margin-top: 8px; }
.sf-prose img { height: auto; }
.sf-prose figure { margin: 0; }
.sf-prose figure img { width: 100%; }
.sf-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--gray); }
.sf-prose blockquote { margin: 0; padding: 20px 30px; border-left: 2px solid var(--red); background: var(--mist); font-family: var(--font-display); font-size: clamp(20px, 1.5vw, 26px); line-height: 1.3; }
.sf-prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; }
.sf-prose th, .sf-prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: center; vertical-align: middle; }
.sf-prose th { background: var(--red); color: #fff; font-weight: 700; }
.sf-prose tbody tr:nth-child(even) td { background: var(--mist); }
.sf-prose th:first-child, .sf-prose td:first-child { text-align: left; }
.sf-prose hr { border: 0; border-top: 1px solid var(--line); }
.sf-prose iframe { max-width: 100%; }
.sf-prose .sf-embed { position: relative; aspect-ratio: 16 / 9; background: var(--maroon); }
.sf-prose .sf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-prose .sf-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sf-prose .sf-logos img { display: block; width: auto; height: auto; max-height: 64px; }
.sf-prose strong { font-weight: 700; }
.sf-prose .wp-block-table { overflow-x: auto; }
@media (max-width: 768px) {
  .sf-prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .sf-prose th, .sf-prose td { padding: 8px 10px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Document lists (Dokumenti, Natječaji, Školsko glasilo …)
   -------------------------------------------------------------------------- */
.doc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.doc-head h2 { font-size: clamp(30px, 2.8vw, 44px); }
.doc-head p { color: var(--gray); max-width: 60ch; margin-top: 10px; }
.doc-list { border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
  padding: 18px 8px; transition: background-color .25s ease, padding-left .3s var(--ease-out);
}
.doc-list a:hover { background: var(--mist); padding-left: 16px; }
.doc-list .doc-title { font-weight: 600; font-size: clamp(16px, 1.05vw, 18px); line-height: 1.35; }
.doc-list .doc-meta { color: var(--gray); font-size: 14px; white-space: nowrap; }
.doc-list .icon { color: var(--red); }
.file-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 8px; border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gray); }
.doc-list a:hover .file-badge { border-color: var(--red); color: var(--red); }

/* --------------------------------------------------------------------------
   Gallery (grid + lightbox) and gallery index
   -------------------------------------------------------------------------- */
.gallery-head { margin-bottom: clamp(24px, 3vw, 40px); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gallery-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid a { display: block; overflow: hidden; background: var(--mist); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out), opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid figcaption { margin-top: 8px; font-size: 14px; color: var(--gray); }
.gallery-more { margin-top: clamp(24px, 3vw, 40px); text-align: center; }
.gallery-grid .is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(26, 21, 23, .94); color: var(--white); }
.lightbox.is-open { display: block; }
.lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px clamp(16px, 6vw, 96px); }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 14px; opacity: .8; padding: 0 80px; }
.lightbox-count { position: absolute; left: 24px; top: 20px; font-size: 14px; opacity: .8; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; color: var(--white); opacity: .8; transition: opacity .2s; }
.lightbox-btn:hover { opacity: 1; }
.lightbox-btn svg { width: 28px; height: 28px; }
.lightbox-close { right: 16px; top: 12px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-prev svg { transform: rotate(180deg); }
html.has-lightbox { overflow: hidden; }

/* --------------------------------------------------------------------------
   People (Zaposlenici)
   -------------------------------------------------------------------------- */
.people-intro { margin-bottom: clamp(32px, 4vw, 56px); }
.people-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(28px, 3vw, 48px); }
.people-group h3 { font-size: clamp(24px, 1.9vw, 30px); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.people-group li { padding: 7px 0; line-height: 1.4; }
.people-group .person-name { font-weight: 600; }
.people-group .person-role { display: block; font-size: 14px; color: var(--gray); }
.people-group--lead { grid-column: 1 / -1; }
.people-group--lead ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }
.people-group--lead li { padding: 14px 18px; background: var(--mist); }
/* Accordion (default): one <details> row per department in the row-list language */
.people-group--lead + .people-acc { margin-top: clamp(40px, 5vw, 72px); }
.people-acc { border-top: 1px solid var(--line); }
.people-item { border-bottom: 1px solid var(--line); }
.people-item summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 24px;
  padding: 22px 4px;
  font-family: var(--font-display); font-size: clamp(24px, 2vw, 32px); line-height: 1.1;
  cursor: pointer; list-style: none;
  transition: padding-left .3s var(--ease-out), color .3s;
}
.people-item summary::-webkit-details-marker { display: none; }
.people-item summary:hover, .people-item[open] > summary { padding-left: 14px; color: var(--red); }
.people-count { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--gray); }
.people-chevron { color: inherit; }
.people-chevron svg { width: 22px; height: 22px; transition: transform .3s var(--ease-out); }
.people-item[open] .people-chevron svg { transform: rotate(90deg); }
.people-panel { overflow: hidden; }
.people-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; padding: 6px 4px 30px; }
.people-list li { padding: 6px 0; line-height: 1.4; }
.people-list .person-name { font-weight: 600; }
.people-list .person-role { display: block; font-size: 14px; color: var(--gray); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 22px 24px; background: var(--mist); }
.contact-card .icon { width: 28px; height: 28px; flex-basis: 28px; margin-top: 2px; color: var(--red); }
.contact-card h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--gray); margin-bottom: 6px; }
.contact-card p { font-size: clamp(16px, 1.05vw, 18px); line-height: 1.5; }
.contact-card p + p { margin-top: 4px; }
.contact-card a:hover { color: var(--red); }
.contact-card dl { display: grid; gap: 6px; }
.contact-card dl div { display: flex; justify-content: space-between; gap: 16px; }
.contact-card dt { color: var(--gray); }
.contact-card dd { font-weight: 600; }
.contact-form h2 { margin-bottom: 12px; }
.contact-form > p { color: var(--gray); margin-bottom: 32px; max-width: 48ch; }
.map-box { margin-top: clamp(40px, 5vw, 72px); background: var(--mist); }
.map-box iframe { display: block; width: 100%; height: clamp(320px, 40vw, 520px); border: 0; }

/* Forms (Contact Form 7) */
.sf-cf7 .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.sf-cf7 .full { grid-column: 1 / -1; }
.sf-cf7 label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.sf-cf7 .wpcf7-form-control-wrap { display: block; }
.sf-cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]), .sf-cf7 textarea, .sf-cf7 select {
  width: 100%; min-height: 54px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); outline: 0; font: inherit; color: var(--ink); transition: border-color .2s;
}
.sf-cf7 textarea { min-height: 160px; resize: vertical; }
.sf-cf7 input:focus, .sf-cf7 textarea:focus, .sf-cf7 select:focus { border-color: var(--ink); }
.sf-cf7 input[type="submit"] { display: inline-flex; min-height: 54px; padding: 0 30px; background: var(--red); color: var(--white); border: 1.5px solid var(--red); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color .25s; }
.sf-cf7 input[type="submit"]:hover { background: var(--red-deep); border-color: var(--red-deep); }
.sf-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: var(--red); }
.sf-cf7 .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--ink); font-size: 14px; }
.sf-cf7 .wpcf7-form.sent .wpcf7-response-output { background: var(--ink); color: var(--white); }
.sf-cf7 .wpcf7-form.invalid .wpcf7-response-output, .sf-cf7 .wpcf7-form.failed .wpcf7-response-output { border-color: var(--red); color: var(--red); }
.sf-cf7 .wpcf7-spinner { display: block; margin: 12px 0 0; }
.sf-cf7 .wpcf7-turnstile { margin-bottom: 18px; }
.sf-cf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.sf-cf7 .wpcf7-acceptance input { width: auto; min-height: 0; margin-top: 4px; }
.sf-cf7 .form-note { font-size: 13px; color: var(--gray); margin-top: 14px; }

/* --------------------------------------------------------------------------
   Calendar (event-calendar block)
   -------------------------------------------------------------------------- */
.sfcal-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.sfcal__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sfcal__month { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 38px); }
.sfcal__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.sfcal__btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sfcal__btn svg { width: 20px; height: 20px; }
.sfcal__btn--prev svg { transform: rotate(180deg); }
.sfcal__days, .sfcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sfcal__dayhdr { padding: 8px 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); text-align: center; }
.sfcal__cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--mist); font-size: 15px; transition: background-color .2s, color .2s; }
.sfcal__cell--empty { background: transparent; }
.sfcal__cell--today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sfcal__cell--event { background: var(--red); color: var(--white); cursor: pointer; font-weight: 700; }
.sfcal__cell--event:hover, .sfcal__cell--event.is-selected { background: var(--maroon); }
.sfcal__cell--event::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.sfcal__list h3 { font-size: clamp(24px, 1.9vw, 30px); margin-bottom: 18px; }
.sfcal__list ul { border-top: 1px solid var(--line); }
.sfcal__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.sfcal__list li.is-selected { background: var(--mist); }
.sfcal__list .ev-date { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--red); }
.sfcal__list .ev-date small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gray); margin-top: 4px; }
.sfcal__list .ev-title { font-weight: 600; line-height: 1.35; }
.sfcal__list .ev-time, .sfcal__list .ev-desc { display: block; font-size: 14px; color: var(--gray); margin-top: 4px; }
.sfcal__list .ev-desc p { margin: 0; }
.sfcal__list a.ev-title:hover { color: var(--red); }
.sfcal__empty { color: var(--gray); padding: 16px 4px; }

/* --------------------------------------------------------------------------
   Single event (event-details block)
   -------------------------------------------------------------------------- */
.event-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; gap: 14px 32px; }
.event-card { display: flex; flex-wrap: wrap; gap: 14px; flex: 1 1 520px; min-width: 0; }
.event-card__item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 22px 24px; background: var(--mist); flex: 1 1 240px; }
.event-card__item .icon { width: 28px; height: 28px; flex-basis: 28px; margin-top: 2px; color: var(--red); }
.event-card__item h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.event-card__item p { font-size: clamp(16px, 1.05vw, 18px); line-height: 1.45; }
.event-add { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.event-add__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); }
.event-add__buttons { display: flex; gap: 10px; }
.event-add__btn { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, background-color .2s; }
.event-add__btn svg { width: 26px; height: 26px; }
.event-add__btn:hover { border-color: var(--ink); background: var(--mist); }
.event-nav-section .sf-inner { max-width: 1440px; margin-inline: auto; padding: 0 var(--gutter) var(--section-post); }
.event-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.event-nav a { display: grid; gap: 4px; }
.event-nav__next { text-align: right; }
.event-nav__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gray); }
.event-nav__title { font-family: var(--font-display); font-size: clamp(20px, 1.6vw, 26px); line-height: 1.15; }
.event-nav a:hover .event-nav__title { color: var(--red); }
@media (max-width: 640px) { .event-nav { grid-template-columns: 1fr; } .event-nav__next { text-align: left; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--maroon); color: rgba(255,255,255,.82); padding-top: clamp(64px, 7vw, 110px); }
.site-footer h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.site-footer a:hover { color: var(--white); }
/* Tap targets ≥ 24px: footer links and phone numbers get a little vertical padding */
.footer-nav a, .footer-contact a, .footer-phones dd a, .footer-bottom a:not(.footer-partner) { display: inline-block; padding: 2px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: clamp(48px, 5vw, 80px); font-size: 15.5px; line-height: 1.65; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 32ch; }
.footer-social { display: flex; gap: 18px; margin-top: 24px; }
.footer-contact p + p { margin-top: 12px; }
.footer-phones dl { display: grid; gap: 8px; }
.footer-phones dl div { display: flex; justify-content: space-between; gap: 16px; max-width: 280px; }
.footer-phones dt { opacity: .7; }
.footer-phones dd a { color: var(--white); font-weight: 600; }
.footer-hours { margin-top: 18px; font-size: 14px; opacity: .75; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line-light); font-size: 14px; }
.footer-partner { display: inline-block; background: var(--white); padding: 6px 10px; }
.footer-partner img { height: 34px; width: auto; display: block; }
.footer-bottom a:not(.footer-partner) { color: var(--white); font-weight: 600; }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.footer-credit img { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.footer-credit .sep { opacity: .4; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dept-list a, .dept-list .dept-row { grid-template-columns: 48px minmax(0, 1fr) 40px; }
  .dept-list--plain a { grid-template-columns: minmax(0, 1fr) 40px; }
  .dept-sub { grid-column: 2; }
  .dept-list--plain .dept-sub { grid-column: 1; }
  .dept-list .dept-arrow { grid-row: 1 / span 2; grid-column: 3; }
  .dept-list--plain .dept-arrow { grid-column: 2; }
  .news-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu { gap: 22px; }
  .site-nav { gap: 24px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .topbar-right > a { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    gap: 32px;
    padding: 100px var(--gutter) 60px;
    background: var(--maroon);
    color: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
  }
  body.admin-bar .site-nav { top: 46px; }
  .site-nav.is-open { transform: none; }
  .site-header.is-scrolled .site-nav.is-open ~ *, .site-header .site-nav.is-open { color: var(--white); }
  .menu { flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: 32px; font-weight: 400; width: 100%; }
  .menu a { white-space: normal; }
  .menu > li > a { padding: 8px 0; }
  .menu > li > a::after { display: none; }
  .menu .has-sub > a { padding-right: 28px; }
  .menu .has-sub > a::before { width: 10px; height: 10px; margin-top: -7px; right: 4px; transition: transform .3s; }
  .menu .has-sub.is-open > a::before { transform: rotate(225deg); margin-top: -2px; }
  .submenu { position: static; min-width: 0; max-width: none; width: auto; padding: 4px 0 10px 16px; background: transparent; color: inherit; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .menu > li.is-open > .submenu { display: block; }
  .menu > li:hover > .submenu:not(.x) { display: none; }
  .menu > li.is-open:hover > .submenu { display: block; }
  .submenu li a { padding: 8px 0 8px 14px; font-family: var(--font-body); font-size: 17px; font-weight: 500; border-left: 1px solid rgba(255,255,255,.25); }
  .submenu li a:hover, .submenu li.is-active a { background: transparent; border-left-color: var(--white); }
  .site-nav .btn-nav { min-height: 54px; padding: 0 30px; font-size: 16px; }
  .site-header.is-scrolled .nav-toggle[aria-expanded="true"] { color: var(--white); }
  .hero { padding-bottom: 150px; }
  .stages { grid-template-columns: 1fr; gap: 40px; }
  .stages::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .stage { padding-top: 0; padding-left: 40px; }
  .stage::before { top: 6px; }
  .section-head--row { grid-template-columns: 1fr; align-items: start; }
  .section-head--row .btn { justify-self: start; margin-bottom: 0; }
  .tradition-grid, .enrol-grid, .contact-grid, .sfcal-wrap { grid-template-columns: 1fr; }
  .tradition-grid--flip .tradition-photo { order: 0; }
  .news-grid, .news-grid--4 { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .page-band h1 { max-width: none; }
  .doc-head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .topbar .wrap { justify-content: center; }
  .topbar-right { display: none; }
  .topbar-left { gap: 16px; font-size: 13px; }
  .brand img, .site-header.is-scrolled .brand img { height: 42px; }
  .hero { padding-top: calc(var(--header-h) + 72px); }
  .hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .hero-notes { width: 80%; }
  .fn:nth-child(3n) { display: none; }
  .dept-list a, .dept-list .dept-row { grid-template-columns: 36px minmax(0, 1fr); padding: 20px 4px; gap: 16px; }
  .dept-list--plain a { grid-template-columns: minmax(0, 1fr); }
  .dept-list a:hover { padding-left: 4px; }
  .dept-icon { width: 30px; height: 30px; }
  .dept-list .dept-arrow { display: none; }
  .news-grid, .news-grid--4 { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid, .gallery-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-groups { grid-template-columns: 1fr; }
  .people-list { grid-template-columns: 1fr; padding-bottom: 22px; }
  .people-item summary { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 14px; padding: 18px 2px; }
  .people-item summary:hover, .people-item[open] > summary { padding-left: 2px; }
  .doc-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .doc-list .doc-meta { grid-column: 1; grid-row: 2; white-space: normal; }
  .doc-list .file-badge { display: none; }
  .doc-list .icon { grid-column: 2; grid-row: 1 / span 2; }
  .sf-cf7 .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sfcal__cell { font-size: 13px; }
  .lightbox-stage { padding: 56px 8px; }
  .lightbox-caption { padding: 0 16px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .line > span { transform: none; transition: none; }
  .hero-bg img { transform: none; transition: none; }
  .fn { opacity: .16; transform: scale(var(--s)) rotate(var(--r)); transition: none; }
  .hero.is-in .fn { animation: none; }
  .hero-scroll { opacity: 1; transition: none; }
  .hero-scroll span { animation: none; }
  .news-media img, .dept-list a, .enrol-links a, .gallery-grid img, .people-item summary, .people-chevron svg { transition: none; }
}

/* Large screens: scale the 1440 canvas up instead of stretching it */
@media (min-width: 2100px) { body { zoom: 1.2; } .hero { min-height: calc(100svh / 1.2); } }
@media (min-width: 2800px) { body { zoom: 1.5; } .hero { min-height: calc(100svh / 1.5); } }
