/* NTD International Violin Competition: styled after violin.org
   Colors and type live here; edit these to restyle the whole site. */
:root {
  --burgundy: #942430;
  --burgundy-dark: #6f1a24;
  --link: #3b67a8;
  --link-hover: #24467a;
  --ink: #222;
  --muted: #666;
  --rule: #dcdcdc;
  --paper: #fff;
  --tint: #f7f5f2;
  --footer: #2d2d2d;
  --footer-bottom: #232323;
  --gold: #b8964f;
  --wrap: 1180px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h3 { color: var(--burgundy); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header: centered logo, then a centered uppercase nav bar ---------- */
.site-header { background: var(--paper); }
.topbar { display: flex; justify-content: flex-end; gap: 18px; font-size: 13px; padding: 10px 0 0; }
.topbar a { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.brand { display: flex; flex-direction: column; align-items: center; padding: 6px 0 22px; text-align: center; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 128px; height: 128px; }
.brand-name { margin-top: 10px; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: #4a3a32; }

.nav-bar { border-top: 1px solid #eee; border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.nav-bar.stuck { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.nav { display: flex; justify-content: center; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 18px 20px;
  color: #000; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
}
.nav > li > a:hover, .nav > li > a[aria-current="page"] { color: var(--burgundy); text-decoration: none; }
.nav > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--burgundy); }
.nav .apply > a { color: var(--burgundy); }
.dropdown {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  min-width: 240px; list-style: none; margin: 0; padding: 8px 0;
  background: #fff; border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; }
.dropdown a { display: block; padding: 8px 20px; color: var(--ink); font-size: 15px; }
.dropdown a:hover { background: var(--tint); color: var(--burgundy); text-decoration: none; }
.menu-toggle { display: none; }

/* ---------- Section titles: burgundy uppercase between two thin rules ---------- */
.section { padding: 56px 0 8px; }
.section-title {
  display: flex; align-items: center; gap: 22px;
  color: var(--burgundy); font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 500;
  text-transform: uppercase; text-align: center; margin: 0 0 32px;
}
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.lede { font-size: 1.07rem; }
.center { text-align: center; }

/* ---------- Feature banner (like violin.org's laureates banner) ---------- */
.banner { margin-top: 14px; position: relative; overflow: hidden; background: #111; color: #fff; }
.banner img { width: 100%; height: clamp(320px, 46vw, 560px); object-fit: cover; opacity: .72; }
.banner-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45));
}
.banner-kicker { letter-spacing: .3em; text-transform: uppercase; font-size: 14px; color: #e9d6a5; }
.banner h1 { font-size: clamp(2rem, 5.2vw, 3.9rem); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 6px; }
.banner h1 strong { font-weight: 700; color: #f0dfb0; }
.banner-sub { font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: .08em; }
.banner-eras { margin-top: 18px; display: flex; gap: 14px; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: #ddd; }
.banner-eras span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
.banner .btn-row { margin-top: 26px; }
@media (min-width: 861px) {
  .banner-text { align-items: flex-start; text-align: left; padding-left: 6%; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, transparent 75%); }
  .banner h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 11em; }
  .banner .btn-row { justify-content: flex-start; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 28px; border: 2px solid var(--burgundy);
  background: var(--burgundy); color: #fff; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
}
.btn:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--burgundy); }
.btn.ghost:hover { background: var(--burgundy); color: #fff; }
.btn.light { background: transparent; border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); }

/* ---------- Countdown strip ---------- */
.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; align-items: baseline; margin: 28px 0 0; padding: 18px; border: 1px solid var(--rule); background: var(--tint); text-align: center; }
.countdown b { font-size: 2.2rem; color: var(--burgundy); font-weight: 700; line-height: 1; }
.countdown small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Tile grid (Season Subscriptions / Specials look) ---------- */
.tiles { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tiles.two { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; }
.tile { display: block; text-align: center; color: var(--link); }
.tile:hover { text-decoration: none; }
.tile-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #111; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78)); color: #fff; text-align: left;
}
.tile-overlay small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #e9d6a5; }
.tile-overlay strong { font-size: 1.5rem; line-height: 1.15; font-weight: 700; }
.tile-caption { display: block; margin-top: 12px; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.tile:hover .tile-caption { color: var(--link-hover); text-decoration: underline; }

/* ---------- Event cards (Laureate Series look) ---------- */
.events { display: grid; gap: 34px 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.event img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.event-when { margin: 12px 0 0; font-size: 15px; line-height: 1.45; }
.event-title { display: block; margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.4; }
.event-date-badge { position: relative; }
.event-date-badge span {
  position: absolute; top: 14px; left: 14px; background: var(--burgundy); color: #fff;
  padding: 6px 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Text + image split ---------- */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Award list ---------- */
.awards { display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); }
.award { padding: 28px 18px; text-align: center; border-right: 1px solid var(--rule); }
.award:last-child { border-right: 0; }
.award small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); }
.award b { display: block; font-size: 1.9rem; color: var(--burgundy); margin: 6px 0 2px; }
.award span { font-size: 15px; }

/* ---------- Facts table ---------- */
.facts { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 16px; }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts th { width: 34%; color: var(--burgundy); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .07em; padding-top: 15px; }

/* ---------- Page header for inner pages ---------- */
.page-hero { position: relative; background: #111; color: #fff; margin-top: 14px; }
.page-hero img { width: 100%; height: 260px; object-fit: cover; opacity: .55; }
.page-hero .inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; font-weight: 400; letter-spacing: .06em; margin: 0; }
.page-hero p { margin: 8px 0 0; color: #eee; }
.crumbs { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }

/* Sub-navigation chips on inner pages */
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.subnav a { display: block; padding: 7px 16px; border: 1px solid var(--rule); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.subnav a:hover { border-color: var(--burgundy); color: var(--burgundy); text-decoration: none; }

/* ---------- Content blocks ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border: 1px solid var(--rule); padding: 26px; background: #fff; }
.card .num { display: inline-block; font-size: 13px; letter-spacing: .14em; color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.round { border-top: 3px solid var(--burgundy); }
.piece { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.piece:last-child { border-bottom: 0; }
.piece .letter { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--burgundy); color: var(--burgundy); font-weight: 700; font-size: 1.1rem; }
.piece h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.piece h4 em { font-style: normal; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-left: 8px; }
.piece ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 16px; }
.note { font-size: 15px; color: var(--muted); font-style: italic; }
.callout { border-left: 3px solid var(--gold); background: var(--tint); padding: 16px 20px; margin: 1.2em 0; font-size: 16px; }

/* Jury */
.judge { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.judge img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* Partners (Sponsors look) */
.partners { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; align-items: center; }
.partner { display: flex; align-items: center; gap: 18px; max-width: 480px; text-align: left; font-size: 15px; color: var(--ink); }
.partner img { width: 96px; height: 96px; flex: none; }
.partner strong { display: block; color: var(--burgundy); text-transform: uppercase; letter-spacing: .05em; }

/* FAQ accordion */
.faq-search { display: block; width: 100%; max-width: 520px; margin: 0 auto 28px; padding: 12px 16px; font: inherit; font-size: 16px; border: 1px solid #bbb; }
.faq-search:focus { outline: 2px solid var(--burgundy); outline-offset: 1px; }
.faq-group h3 { margin-top: 36px; }
details { border-bottom: 1px solid var(--rule); }
details summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 300; color: var(--burgundy); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 16px; font-size: 16.5px; }
.faq-empty { display: none; text-align: center; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 17px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contact-list b { display: inline-block; min-width: 130px; color: var(--burgundy); text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }

/* Closing CTA band */
.cta-band { margin-top: 64px; position: relative; color: #fff; background: #1a1a1a; text-align: center; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band .wrap { position: relative; padding: 70px 16px; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; font-weight: 400; letter-spacing: .06em; }
.cta-band p { max-width: 640px; margin: 0 auto 22px; color: #eee; }

/* ---------- Footer: charcoal with outlined buttons ---------- */
.site-footer { background: var(--footer); color: #ddd; font-size: 15px; }
.cta-band + .site-footer { margin-top: 0; }
main + .site-footer { margin-top: 70px; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 44px 16px; }
.footer-org { display: flex; gap: 20px; align-items: flex-start; }
.footer-org img { width: 96px; height: 96px; flex: none; }
.footer-org p { margin: 0 0 4px; line-height: 1.5; }
.footer-org a { color: #ddd; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 34px; height: 34px; border: 1px solid #aaa; border-radius: 50%; display: grid; place-items: center; color: #eee; }
.social a:hover { background: #fff; color: var(--footer); text-decoration: none; }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-btns { display: flex; flex-direction: column; gap: 12px; }
.footer-btns a {
  display: block; padding: 11px; border: 1px solid #ccc; color: #fff; text-align: center;
  text-transform: uppercase; font-weight: 700; font-size: 14px; letter-spacing: .06em;
}
.footer-btns a:hover { background: #fff; color: var(--footer); text-decoration: none; }
.footer-bottom { background: var(--footer-bottom); font-size: 12px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom a { color: #aaa; text-transform: uppercase; letter-spacing: .06em; }
.footer-bottom span { color: #999; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 2px solid #333; border-radius: 4px;
  background: #fff; color: #333; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 40;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: #333; color: #fff; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .awards { grid-template-columns: 1fr 1fr; }
  .award:nth-child(2) { border-right: 0; }
  .award:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .split, .judge { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .judge img { max-width: 300px; }
}
@media (max-width: 860px) {
  .menu-toggle {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px;
    background: none; border: 0; font: 700 15px var(--font); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; color: #000;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav { display: none; flex-direction: column; padding-bottom: 10px; }
  .nav.open { display: flex; }
  .nav > li > a { padding: 12px 16px; text-align: center; }
  .nav > li > a[aria-current="page"] { box-shadow: none; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; background: var(--tint); min-width: 0; }
  .nav li.expanded > .dropdown { display: block; }
  .dropdown a { text-align: center; }
  .footer-main { grid-template-columns: 1fr; }
  .brand img { width: 104px; height: 104px; }
  .topbar { justify-content: center; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .awards { grid-template-columns: 1fr; }
  .award { border-right: 0; border-bottom: 1px solid var(--rule); }
  .award:last-child { border-bottom: 0; }
  .section-title { gap: 12px; }
  .facts th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .facts td { display: block; }
  .footer-org { flex-direction: column; }
  .banner-eras { letter-spacing: .15em; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
