/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --deep:  #091520;
  --navy:  #1b3a5c;
  --brass: #c87f3a;
  --paper: #f5f6f8;
  --text:  #1a2332;
  --muted: #627891;
  --line:  #d5e0eb;
  --white: #ffffff;
  --fh: 'Fraunces', 'Palatino Linotype', Palatino, Georgia, serif;
  --fb: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --max: 1080px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }

.wrap { width: 88%; max-width: var(--max); margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .65rem 1.65rem;
  font-family: var(--fb); font-weight: 600; font-size: .92rem;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer; transition: .18s ease; text-align: center;
}
.btn-brass  { background: var(--brass);  color: var(--white); }
.btn-brass:hover { background: #b0702e; }
.btn-ghost  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.48); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-navy   { background: var(--navy);  color: var(--white); }
.btn-navy:hover { background: var(--deep); }
.btn-facebook { background: #1877f2; color: var(--white); }
.btn-facebook:hover { background: #1464d3; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.2rem 0;
  transition: background .25s, padding .25s, box-shadow .25s;
}
.navbar.scrolled {
  background: var(--deep);
  padding: .8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--fh); font-size: 1.15rem; font-weight: 400;
  color: var(--white); letter-spacing: .03em; transition: color .15s;
}
.nav-brand:hover { color: #c8d8e8; }
.nav-logo { width: 2.15rem; height: 2.15rem; flex-shrink: 0; }
.nav-items { list-style: none; display: flex; align-items: center; gap: 2.25rem; }
.nav-items li a { color: rgba(255,255,255,.8); font-size: .9rem; letter-spacing: .01em; transition: color .15s; }
.nav-items li a:hover { color: var(--white); }
.nav-cta { border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.nav-cta:hover { color: var(--brass) !important; }
.nav-icon svg { width: 1.1rem; height: 1.1rem; fill: rgba(255,255,255,.65); display: block; transition: fill .15s; }
.nav-icon:hover svg { fill: var(--white); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 1px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (homepage) ───────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 55% 1fr; min-height: 60vh; }
.hero-left {
  background: var(--deep);
  display: flex; align-items: center; justify-content: center;
  padding-inline: 5% 3.5rem;
}
.hero-body { max-width: 460px; width: 100%; padding-block: 8.5rem 5rem; }

.hero-eyebrow {
  display: block; font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.4rem;
}
.hero-body h1 {
  font-family: var(--fh);
  font-size: clamp(3rem, 5vw, 4.75rem);
  font-weight: 400; line-height: 1.0;
  color: var(--white); letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-body h1 em { font-style: italic; color: #c8d8e8; }

/* Musical staff lines — 5 spans, middle one in brass */
.staff-lines {
  display: flex; flex-direction: column; gap: 6px;
  margin: 1.6rem 0; height: 34px; justify-content: center;
}
.staff-lines span { display: block; height: 1px; background: rgba(255,255,255,.18); }
.staff-lines span:nth-child(3) { background: rgba(200,127,58,.5); }

.hero-tagline {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,.7); line-height: 1.75;
  margin-bottom: 2.25rem; max-width: 380px;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-right   { overflow: hidden; }
.hero-photo   { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ── Info strip ────────────────────────────────────────────── */
.info-strip { background: var(--navy); }
.info-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.info-item { padding: 2rem; border-right: 1px solid rgba(255,255,255,.12); }
.info-item:last-child { border-right: 0; }
.info-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--brass); margin-bottom: .5rem;
}
.info-value { font-family: var(--fh); font-size: 1.1rem; font-weight: 400; color: var(--white); line-height: 1.25; }
.info-sub   { font-size: .8rem; color: rgba(255,255,255,.48); margin-top: .25rem; }

/* ── About section (homepage) ──────────────────────────────── */
.about-section { padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 5rem; align-items: start; }

.aside-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.staff-deco { display: flex; flex-direction: column; gap: 7px; }
.staff-deco span { display: block; height: 1px; background: var(--line); }
.staff-deco span.s-brass { background: var(--brass); width: 45%; opacity: .65; }

.section-h {
  font-family: var(--fh);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400;
  color: var(--deep); line-height: 1.2;
  text-wrap: balance; letter-spacing: -.01em; margin-bottom: 1.25rem;
}
.lede   { font-size: 1.08rem; color: var(--text); line-height: 1.8; margin-bottom: 1rem; }
.body-p { color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }

/* ── CTA band ──────────────────────────────────────────────── */
.cta-section { background: var(--paper); border-top: 1px solid var(--line); padding: 5rem 0; }
.cta-inner   { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--fh); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--deep); margin-bottom: .5rem; text-wrap: balance; }
.cta-text p  { color: var(--muted); font-size: .975rem; }
.cta-btns    { display: flex; gap: .85rem; flex-wrap: wrap; flex-shrink: 0; }

/* ── Page header (inner pages) ─────────────────────────────── */
.page-hdr {
  background: var(--deep);
  padding: 7.5rem 0 3.75rem;
  position: relative;
}
.page-hdr::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, transparent 65%);
}
.pg-eyebrow {
  display: block; font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem;
}
.page-hdr h1 {
  font-family: var(--fh); font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400; color: var(--white);
  text-wrap: balance; letter-spacing: -.01em;
}
.page-hdr .sub { font-size: 1.05rem; color: rgba(255,255,255,.6); margin-top: .75rem; max-width: 500px; }

/* ── About/Om page ─────────────────────────────────────────── */
.content-section { padding: 5rem 0; }
.about-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; }

.facts-list { display: flex; flex-direction: column; gap: 1rem; }
.fact-item {
  display: grid; grid-template-columns: 2rem 1fr;
  gap: .75rem 1rem; align-items: start;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--brass);
  background: var(--paper);
}
.fact-icon svg { width: 1.1rem; height: 1.1rem; fill: var(--navy); margin-top: 2px; }
.f-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .25rem; }
.f-val   { font-family: var(--fh); font-size: 1.05rem; color: var(--deep); line-height: 1.25; }
.f-sub   { font-size: .82rem; color: var(--muted); margin-top: .15rem; }

.about-body > h2 {
  font-family: var(--fh); font-size: 1.5rem; font-weight: 400;
  color: var(--deep); margin-bottom: 1.25rem; margin-top: 2.5rem;
}
.about-body > h2:first-child { margin-top: 0; }
.about-body > p { color: var(--text); line-height: 1.8; margin-bottom: 1rem; }
.about-body > p + p { color: var(--muted); }

.doc-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  margin-top: 2rem;
  transition: border-color .15s, background .15s;
}
.doc-link:hover { border-color: var(--navy); background: var(--paper); }
.doc-link-icon svg { width: 1.25rem; height: 1.25rem; fill: var(--navy); }
.doc-link-text strong { display: block; font-size: .95rem; color: var(--deep); }
.doc-link-text span   { font-size: .83rem; color: var(--muted); }
.doc-link-arrow { margin-left: auto; }
.doc-link-arrow svg { width: 1rem; height: 1rem; fill: var(--muted); }

/* ── Contact page ──────────────────────────────────────────── */
.contact-section { padding: 5rem 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 5rem; align-items: start; }
.contact-aside > h2 { font-family: var(--fh); font-size: 1.5rem; font-weight: 400; color: var(--deep); margin-bottom: 1rem; }
.contact-aside > p  { color: var(--muted); line-height: 1.75; margin-bottom: 2rem; font-size: .97rem; }
.contact-facts { display: flex; flex-direction: column; gap: 1rem; }
.cf-item { display: flex; gap: .85rem; align-items: flex-start; }
.cf-icon { width: 2rem; height: 2rem; flex-shrink: 0; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.cf-icon svg { width: .9rem; height: .9rem; fill: var(--navy); }
.cf-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .15rem; }
.cf-val   { font-size: .92rem; color: var(--deep); line-height: 1.4; }

.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: .55rem;
}
.form-field input, .form-field textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: var(--fb); font-size: 1rem; color: var(--text);
  outline: none; border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,.1);
  background: var(--white);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.btn-submit { width: 100%; padding: .85rem; font-size: .95rem; border: none; cursor: pointer; letter-spacing: .04em; }

/* ── Notes page ────────────────────────────────────────────── */
.notes-section { padding: 6rem 0; }

/* Login state */
.notes-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 440px; margin: 0 auto; }
.lock-wrap { width: 4.5rem; height: 4.5rem; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.lock-wrap svg { width: 1.9rem; height: 1.9rem; fill: var(--navy); }
.notes-center h2 { font-family: var(--fh); font-size: 1.7rem; font-weight: 400; color: var(--deep); }
.notes-center p { color: var(--muted); line-height: 1.75; }
.login-field { width: 100%; max-width: 320px; }
.login-error { display: none; font-size: .875rem; color: #c0392b; margin-top: -.5rem; }

/* Files state */
.notes-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.notes-header .section-h { margin-bottom: 0; }
.btn-logout { background: transparent; color: var(--muted); border: 1px solid var(--line); font-size: .82rem; padding: .4rem 1rem; cursor: pointer; font-family: var(--fb); font-weight: 600; letter-spacing: .04em; transition: .15s; }
.btn-logout:hover { border-color: var(--navy); color: var(--navy); }

.noter-filter-wrap { margin-bottom: 1.5rem; }
.noter-filter {
  width: 100%; max-width: 360px;
  padding: .65rem 1rem;
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: var(--fb); font-size: .95rem; color: var(--text);
  outline: none; border-radius: 0;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
}
.noter-filter:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,92,.1); background: var(--white); }

.noter-table { width: 100%; border-collapse: collapse; }
.noter-table th {
  text-align: left; padding: .75rem 1rem;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  border-bottom: 2px solid var(--line);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: color .15s;
}
.noter-table th:last-child { cursor: default; }
.noter-table th:hover:not(:last-child) { color: var(--navy); }
.noter-table th.sorted { color: var(--navy); border-bottom-color: var(--brass); }
.sort-arrow { margin-left: .3rem; opacity: .55; font-style: normal; }
.noter-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); font-size: .925rem; color: var(--text); vertical-align: middle; }
.noter-table tr:last-child td { border-bottom: 0; }
.noter-table tbody tr:hover td { background: var(--paper); }
.td-stemme { color: var(--muted); }
.td-date   { color: var(--muted); white-space: nowrap; }
.td-dl     { text-align: right; white-space: nowrap; }
.file-dl {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--navy); color: var(--white);
  padding: .28rem .7rem;
  font-family: var(--fb); font-weight: 600; font-size: .75rem; letter-spacing: .02em;
  transition: background .15s; white-space: nowrap;
}
.file-dl:hover { background: var(--deep); }
.noter-empty { color: var(--muted); font-size: .95rem; padding: 3rem 1rem; text-align: center; }

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--deep); color: rgba(255,255,255,.52); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-name { display: flex; align-items: center; gap: .6rem; font-family: var(--fh); font-size: 1.2rem; font-weight: 400; color: var(--white); margin-bottom: .5rem; }
.footer-logo { width: 2.15rem; height: 2.15rem; flex-shrink: 0; }
.footer-tag  { font-size: .88rem; line-height: 1.65; }
.footer-col h3 {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; color: rgba(255,255,255,.38); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a  { font-size: .87rem; transition: color .15s; }
.footer-col a:hover { color: #c8d8e8; }
.footer-bot { padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer-soc { display: flex; gap: .65rem; }
.footer-soc a { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.15); transition: border-color .15s, background .15s; }
.footer-soc a:hover { border-color: var(--brass); background: rgba(200,127,58,.15); }
.footer-soc svg { width: .85rem; height: .85rem; fill: rgba(255,255,255,.65); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { order: -1; height: 42vw; min-height: 220px; max-height: 360px; }
  .hero-left { justify-content: flex-start; padding: 4rem 6% 3.5rem; }
  .hero-body { padding-block: 4rem 3.5rem; }
  .info-strip-grid { grid-template-columns: 1fr 1fr; }
  .info-item:nth-child(2) { border-right: 0; }
  .info-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.12); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid > :first-child { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav-items {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--deep); padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    gap: 0; align-items: stretch;
  }
  .nav-items.open { display: flex; }
  .nav-items li a { display: block; padding: .9rem .25rem; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .95rem; }
  .nav-items li:last-child a { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .cta-inner { flex-direction: column; }
  .info-strip-grid { grid-template-columns: 1fr; }
  .info-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .info-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
