:root {
  --ink: #112831;
  --navy: #102d36;
  --navy-deep: #071e26;
  --paper: #faf8f4;
  --white: #fffdf9;
  --line: #d9dfda;
  --accent: #db7259;
  --muted: #627178;
  --serif: Georgia, 'Times New Roman', serif;
}

body { background: var(--paper); color: var(--ink); font-size: 17px; }
a { text-underline-offset: .2em; }

/* Header */
.site-header { background: #071e26; border-bottom: 1px solid rgba(255,255,255,.14); }
.header-inner { max-width: 1480px; min-height: 96px; }
.brand { width: 172px; height: 66px; padding: .35rem .55rem; background: #fff; border-radius: 0; }
.nav-list { gap: clamp(.2rem, 1.3vw, 1.15rem); }
.nav-item > a, .nav-dropdown-toggle { font-size: .77rem; letter-spacing: .14em; font-weight: 700; }
.nav-item > a:hover, .nav-dropdown-toggle:hover, .nav-item.is-active > a, .nav-item.is-active > button { color: #f2b39c; }
.nav-sublist { border-top: 3px solid var(--accent); border-radius: 0; padding: .7rem; }
.nav-sublist a { border-radius: 0; }
.nav-sublist a:hover, .nav-sublist a[aria-current="page"] { background: #f3eee8; color: var(--navy); }

/* Opening image and identity */
.hero { min-height: min(760px, 82svh); display: flex; align-items: flex-end; }
.hero-photo { object-position: center 43%; }
.hero-shade { background: linear-gradient(90deg, rgba(4,19,27,.86) 0%, rgba(4,19,27,.54) 38%, rgba(4,19,27,.05) 80%), linear-gradient(0deg, rgba(4,19,27,.48), transparent 50%); }
.hero-panel { z-index: 2; width: min(1320px, 100%); margin: 0 auto; padding: 7rem clamp(1.25rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); background: none; border: 0; box-shadow: none; color: #fff; }
.hero-overline { display: block; margin-bottom: 1.4rem; color: #f1c3ae; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .27em; }
.hero-panel h1 { margin: 0; color: #fff; font: 400 clamp(4.1rem, 8vw, 8.8rem)/.93 var(--serif); letter-spacing: -.055em; }
.hero-panel p { width: fit-content; margin: 2.2rem 0 0; padding-top: 1.15rem; border-top: 2px solid var(--accent); color: #fff; font-size: clamp(.77rem, 1.15vw, .92rem); font-weight: 700; letter-spacing: .17em; }
.hero-logo { display: none; }
.hero-year { position: absolute; z-index: 2; right: clamp(1.25rem, 5vw, 5rem); bottom: 2.6rem; color: rgba(255,255,255,.8); font: 400 1rem var(--serif); letter-spacing: .18em; }

/* Home sections */
.section { max-width: 1320px; padding-top: clamp(4.5rem, 7vw, 7.5rem); padding-bottom: clamp(4.5rem, 7vw, 7.5rem); }
.section-heading { align-items: end; gap: 2rem; margin-bottom: 2.35rem; }
.section-heading h1, .section-heading h2 { font: 400 clamp(2.6rem, 4.4vw, 4.6rem)/1 var(--serif); letter-spacing: -.04em; text-transform: none; }
.section-heading span { margin-bottom: .55rem; background: #bdc9c6; }
.news-section { padding-bottom: 7rem; }
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(2, minmax(180px, 1fr)); gap: 1rem; }
.news-card { border: 1px solid #e7e5df; border-radius: 0; box-shadow: none; background: #fff; transition: border-color .2s ease, transform .2s ease; }
.news-card:first-child { grid-row: span 2; }
.news-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: none; }
.news-card a { height: 100%; }
.news-card img { height: 100%; min-height: 190px; }
.news-card:first-child img { height: 360px; }
.news-card-body { padding: 1.35rem 1.55rem 1.6rem; }
.news-card time, .news-list-card time { color: #97543e; font-size: .75rem; letter-spacing: .16em; font-weight: 750; }
.news-card h2 { margin-top: .65rem; font: 400 clamp(1.4rem, 2vw, 2.05rem)/1.2 var(--serif); }
.news-card:not(:first-child) a { display: grid; grid-template-columns: 40% 1fr; }
.news-card:not(:first-child) img { width: 100%; height: 100%; }
.news-card:not(:first-child) h2 { font-size: clamp(1.2rem, 1.7vw, 1.65rem); }
.text-link { margin-top: 2.6rem; border: 0; color: var(--navy); letter-spacing: .13em; }
.text-link span { color: var(--accent); font-size: 1.5rem; }

.gallery-teaser { max-width: none; padding: 6rem max(1.5rem, calc((100vw - 1240px) / 2)); background: #0b2831; color: #fff; }
.gallery-teaser .section-heading h2 { color: #fff; }
.gallery-teaser .section-heading span { background: rgba(255,255,255,.3); }
.teaser-grid { gap: 1rem; }
.teaser-card { border-radius: 0; background: #09212a; box-shadow: none; }
.teaser-card img { height: clamp(280px, 32vw, 430px); transition: transform .45s ease; }
.teaser-card:hover img { transform: scale(1.055); }
.teaser-card::after { inset: 20% 0 0; background: linear-gradient(transparent 15%, rgba(2,14,19,.88)); }
.teaser-card span { left: 1.55rem; right: 1.25rem; bottom: 1.5rem; font: 400 clamp(1.35rem, 2vw, 2.05rem)/1.18 var(--serif); }
.video-section { max-width: 1180px; padding-top: 6rem; }
.video-frame { max-width: none; box-shadow: none; border: 12px solid #e8e5df; }

/* Interior structure */
.page-main { background: var(--paper); }
.page-shell { max-width: 1320px; min-height: calc(100svh - 260px); padding: 2.4rem clamp(1.25rem, 5vw, 4rem) 7rem; }
.interior-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; padding-bottom: 1.3rem; border-bottom: 1px solid #cdd8d3; }
.interior-intro h1 { max-width: 880px; margin: 0; color: var(--navy); font: 400 clamp(2.8rem, 5.4vw, 5.5rem)/1.02 var(--serif); letter-spacing: -.055em; }
.interior-intro span { display: block; flex: 0 0 80px; height: 3px; margin-bottom: .4rem; background: var(--accent); }
.content-layout { display: block; }
.content-layout.has-section-nav { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.content-primary { min-width: 0; }
.section-nav { position: sticky; top: 2rem; display: grid; gap: 0; border-top: 3px solid var(--accent); }
.section-nav > span { padding: 1.15rem 0 .6rem; color: #8a5a49; font-size: .69rem; font-weight: 750; letter-spacing: .18em; }
.section-nav a { padding: .8rem 0; border-bottom: 1px solid #d7ded9; text-decoration: none; color: var(--ink); font-size: .88rem; line-height: 1.3; }
.section-nav a:hover, .section-nav a[aria-current="page"] { color: #a4503d; }
.page-shell .item-page, .page-shell .blog, .page-shell .category-blog { padding: 0; background: transparent; box-shadow: none; }
.page-shell .item-page > .page-header h1, .page-shell .blog .page-header h2 { color: var(--ink); font: 400 clamp(2.3rem, 4vw, 4rem)/1.08 var(--serif); letter-spacing: -.04em; }
.page-shell .item-page > .page-header h1 { margin: 0 0 1.5rem; }
.page-shell .blog .blog-item, .page-shell .blog .item { padding: 0; border: 0; }
.page-shell p, .page-shell li { max-width: none; }
.page-shell p { line-height: 1.8; }
.page-shell a:not(.pascan-album-card):not(.pascan-gallery a) { color: #1a5d6d; }
.page-shell a:hover { color: #ab5844; }
.article-info { margin: 1.25rem 0 1.8rem; color: #7e6660; }
.article-info dd { margin: 0; }
.page-shell figure { margin: 0; }
.page-shell .item-page > img, .page-shell .item-page p > img { max-height: none; border-radius: 0; }

/* Single article category pages: original image and text */
.page-juniorski-orkestar .blog .page-header,
.page-seniorski-orkestar .blog .page-header,
.page-kamerni-ansambl .blog .page-header,
.page-dirigenti-i-solisti .blog .page-header,
.page-istorijat-orkestra .blog .page-header { display: none; }
.page-juniorski-orkestar .blog .item-content,
.page-seniorski-orkestar .blog .item-content,
.page-kamerni-ansambl .blog .item-content,
.page-dirigenti-i-solisti .blog .item-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.page-juniorski-orkestar .blog .item-content > p:first-of-type,
.page-seniorski-orkestar .blog .item-content > p:first-of-type,
.page-kamerni-ansambl .blog .item-content > p:first-of-type,
.page-dirigenti-i-solisti .blog .item-content > p:first-of-type { margin: 0; }
.page-juniorski-orkestar .blog .item-content > p:first-of-type img,
.page-seniorski-orkestar .blog .item-content > p:first-of-type img,
.page-kamerni-ansambl .blog .item-content > p:first-of-type img,
.page-dirigenti-i-solisti .blog .item-content > p:first-of-type img { display: block; width: 100%; min-height: 390px; object-fit: cover; }
.page-juniorski-orkestar .blog .item-content > p:nth-of-type(2),
.page-seniorski-orkestar .blog .item-content > p:nth-of-type(2),
.page-kamerni-ansambl .blog .item-content > p:nth-of-type(2),
.page-dirigenti-i-solisti .blog .item-content > p:nth-of-type(2) { margin: 0; font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.52 var(--serif); }

/* Long editorial articles */
.page-istorijat-orkestra .blog .item-content,
.page-borisav-pascan .item-page { max-width: 880px; }
.page-istorijat-orkestra .blog .item-content > p:first-of-type img,
.page-borisav-pascan .item-page > .com-content-article__body > p:first-of-type img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.page-istorijat-orkestra .blog .item-content > p:not(:first-of-type),
.page-borisav-pascan .item-page .com-content-article__body p { max-width: 100%; font-size: 1.06rem; }
.page-istorijat-orkestra .blog .item-content > h2,
.page-borisav-pascan .item-page .com-content-article__body h2 { max-width: 100%; margin: 3.2rem 0 1.1rem; padding-top: 1.3rem; border-top: 1px solid #cbd7d2; color: var(--navy); font: 400 clamp(1.6rem, 2.3vw, 2.25rem)/1.2 var(--serif); }
.page-borisav-pascan .item-page > .page-header h1 { display: none; }

/* News archive and detail */
.news-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.news-list-card { min-width: 0; background: #fff; border: 1px solid #e4e6df; }
.news-list-card a { display: block; height: 100%; text-decoration: none; color: var(--ink) !important; }
.news-list-card img { display: block; width: 100%; height: 260px; object-fit: cover; }
.news-list-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.news-list-card h2 { margin: .7rem 0 1.7rem; font: 400 clamp(1.35rem, 2vw, 1.85rem)/1.2 var(--serif); }
.news-list-card-body > span { color: var(--accent); font-size: 1.5rem; }
.news-list-card:hover { border-color: var(--accent); }
.is-news-article .content-primary { max-width: 980px; margin: auto; }
.is-news-article .item-page > .page-header h1 { max-width: 900px; font-size: clamp(2.7rem, 5vw, 5rem); }
.is-news-article .item-page .item-image img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.is-news-article .item-page .com-content-article__body { max-width: 760px; margin: 2.6rem auto 0; font-size: 1.06rem; }
.is-news-article .item-page .com-content-article__body img { max-width: 100%; height: auto; margin: 1.8rem 0; }

/* Albums, gallery and contact */
.page-foto .item-page > .page-header,
.page-stare-slike .item-page > .page-header,
.page-novi-becej .item-page > .page-header,
.page-fmbp-u-saradnji-sa-minskom-akademijom .item-page > .page-header,
.page-kontakt .item-page > .page-header { display: none; }
.pascan-album-list { gap: 1rem; }
.pascan-album-card { background: #fff; border: 1px solid #e1e4df; border-radius: 0; }
.pascan-album-card img { height: 300px; }
.pascan-album-card span { padding: 1.15rem 1.3rem 1.4rem; font: 400 clamp(1.25rem, 1.8vw, 1.8rem)/1.2 var(--serif); }
.pascan-album-card:hover { border-color: var(--accent); }
.pascan-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 0; }
.pascan-gallery a { aspect-ratio: 1 / 1; }
.pascan-gallery a:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.pascan-gallery img { display: block; }
.is-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.page-kontakt .item-page p { margin: .4rem 0 1rem; }
.page-kontakt .item-page strong { color: var(--navy); font: 400 1.35rem var(--serif); }
.contact-extra { margin: 0; padding: 1.7rem; border-top: 3px solid var(--accent); box-shadow: none; background: #f1eee8; }
.contact-extra p { margin: .2rem 0; }
.contact-extra img { max-width: 170px; }
.empty-section-space { min-height: 180px; }

/* Footer */
.site-footer { background: #071e26; }
.footer-inner { max-width: 1320px; min-height: 145px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-inner p { max-width: 520px; color: #b5c4c4; }
.footer-links a { letter-spacing: .12em; }

@media (max-width: 1000px) {
  .content-layout.has-section-nav { grid-template-columns: minmax(0, 1fr) 190px; gap: 2rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:first-child { grid-column: span 2; grid-row: auto; }
  .news-card:first-child a { display: grid; grid-template-columns: 1fr 1fr; }
  .news-card:first-child img { height: 100%; }
  .news-card:not(:first-child) a { display: block; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 76px; }
  .brand { width: 145px; height: 57px; }
  .nav-sublist { border: 0; }
  .hero { min-height: 610px; }
  .hero-panel h1 { font-size: clamp(3.8rem, 11vw, 6.4rem); }
  .content-layout.has-section-nav { display: block; }
  .section-nav { position: static; display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: 3.5rem; }
  .section-nav > span { flex-basis: 100%; }
  .section-nav a { flex: 0 1 auto; }
  .news-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pascan-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero { min-height: 620px; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,19,27,.9), rgba(4,19,27,.15) 77%); }
  .hero-panel { padding: 4rem 1.25rem 5.5rem; }
  .hero-panel h1 { font-size: clamp(3.7rem, 15vw, 5.2rem); }
  .hero-panel p { max-width: 280px; line-height: 1.5; }
  .hero-year { right: 1.3rem; bottom: 1.4rem; font-size: .8rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .news-grid { display: block; }
  .news-card { margin-bottom: 1rem; }
  .news-card:first-child a, .news-card:not(:first-child) a { display: block; }
  .news-card img, .news-card:first-child img, .news-card:not(:first-child) img { height: 230px; }
  .gallery-teaser { padding: 4rem 1rem; }
  .teaser-card img { height: 300px; }
  .video-section { padding-top: 4rem; }
  .video-frame { border-width: 6px; }
  .page-shell { padding: 1.6rem 1.15rem 4.5rem; }
  .interior-intro { margin-bottom: 2rem; }
  .interior-intro h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .interior-intro span { flex-basis: 35px; }
  .page-juniorski-orkestar .blog .item-content,
  .page-seniorski-orkestar .blog .item-content,
  .page-kamerni-ansambl .blog .item-content,
  .page-dirigenti-i-solisti .blog .item-content { display: block; }
  .page-juniorski-orkestar .blog .item-content > p:first-of-type img,
  .page-seniorski-orkestar .blog .item-content > p:first-of-type img,
  .page-kamerni-ansambl .blog .item-content > p:first-of-type img,
  .page-dirigenti-i-solisti .blog .item-content > p:first-of-type img { min-height: 0; max-height: 390px; }
  .page-juniorski-orkestar .blog .item-content > p:nth-of-type(2),
  .page-seniorski-orkestar .blog .item-content > p:nth-of-type(2),
  .page-kamerni-ansambl .blog .item-content > p:nth-of-type(2),
  .page-dirigenti-i-solisti .blog .item-content > p:nth-of-type(2) { margin-top: 1.6rem; }
  .news-list-grid { grid-template-columns: 1fr; }
  .news-list-card img { height: 230px; }
  .pascan-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pascan-gallery a:nth-child(7n+1) { grid-column: span 1; grid-row: span 1; }
  .is-contact-layout { display: block; }
  .contact-extra { margin-top: 2.5rem; }
}

/* Light, steady sticky header. Compact state changes only after JS thresholds. */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; color: var(--ink); border-bottom: 1px solid #e5e5e0; box-shadow: 0 3px 18px rgba(7,30,38,.06); }
.header-inner { min-height: 96px; transition: min-height .22s ease; }
.brand { width: 172px; height: 76px; padding: 0; background: #fff; transition: width .22s ease, height .22s ease; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-header.is-compact .header-inner { min-height: 62px; }
.site-header.is-compact .brand { width: 103px; height: 46px; }
.nav-item > a, .nav-dropdown-toggle { color: var(--ink); }
.nav-item > a:hover, .nav-dropdown-toggle:hover, .nav-item.is-active > a, .nav-item.is-active > button { color: #ae4c39; }
.nav-sublist { background: #fff; color: var(--ink); }
.primary-nav { background: #fff; }
.mobile-menu-toggle { border-color: #a9b8b9; }
.mobile-menu-toggle span { background: var(--ink); }
.nav-sublist a { color: var(--ink); }
.nav-sublist a:hover, .nav-sublist a[aria-current="page"] { background: #f3eee8; color: var(--navy); }

/* Keep the conductor's head visible; show the complete photo on narrow screens. */
.hero { min-height: 0; height: clamp(500px, 53vw, 800px); }
.hero-photo { object-position: center top; }

/* Contact article text and links remain editable in Joomla. */
.is-contact-layout { display: block; }
.page-kontakt .content-primary { width: 100%; }
.contact-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.contact-card, .contact-card-grid .contact-extra { min-width: 0; margin: 0; padding: clamp(1.5rem, 2.5vw, 2.25rem); background: #fff; border: 1px solid #e1e4df; border-top: 4px solid var(--accent); box-shadow: 0 14px 35px rgba(7,30,38,.04); }
.contact-card h2 { margin: 0 0 1.4rem; color: var(--navy); font: 400 clamp(1.5rem, 2.3vw, 2rem)/1.2 var(--serif); }
.contact-card p { margin: .6rem 0; line-height: 1.5; }
.contact-card a, .contact-extra a { color: #a84a38; overflow-wrap: anywhere; }
.contact-card-grid .contact-extra { display: flex; flex-direction: column; gap: .8rem; }
.contact-extra > span { color: var(--navy); font: 400 clamp(1.5rem, 2.3vw, 2rem)/1.2 var(--serif); }
.social-follow { margin-top: clamp(3rem, 6vw, 5rem); }
.social-follow h2 { margin: 0 0 1.3rem; font: 400 clamp(1.8rem, 3vw, 2.5rem)/1.2 var(--serif); color: var(--navy); }
.social-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.social-card { display: flex; align-items: center; justify-content: space-between; min-height: 105px; padding: 1.5rem 2rem; border: 1px solid #e1e4df; background: #f1eee8; color: var(--navy); text-decoration: none; font: 700 1.05rem/1.2 'Segoe UI', Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.social-card::after { content: '↗'; color: var(--accent); font-size: 1.8rem; }
.social-card span, .social-card strong { color: inherit; font: inherit !important; }
.social-card:hover { border-color: var(--accent); background: #fff; }

/* The footer's content is a regular Joomla Custom module. */
.footer-inner .footer-module { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner .footer-links { flex-wrap: wrap; }

/* Video articles retain their Joomla ordering; the URL becomes a player. */
.page-video .blog .blog-items, .page-vid .blog .blog-items, .pascan-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.page-video .blog .blog-item, .page-vid .blog .blog-item { min-width: 0; padding: 0; border: 1px solid #e1e4df; background: #fff; }
.page-video .blog .video-card .item-content, .page-vid .blog .video-card .item-content { display: flex; flex-direction: column; height: 100%; }
.page-video .blog .video-card .page-header, .page-vid .blog .video-card .page-header { padding: 1.25rem 1.5rem 1.5rem; }
.page-video .blog .video-card .page-header h2, .page-vid .blog .video-card .page-header h2 { margin: 0; font: 400 clamp(1.25rem, 1.8vw, 1.8rem)/1.25 var(--serif); }
.video-embed { width: 100%; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.page-video .item-page .video-embed, .page-vid .item-page .video-embed { max-width: 980px; margin-bottom: 2rem; }

@media (max-width: 900px) {
  .header-inner { min-height: 76px; }
  .brand { width: 145px; height: 64px; }
  .site-header.is-compact .header-inner { min-height: 54px; }
  .site-header.is-compact .brand { width: 87px; height: 38px; }
  .primary-nav { border-top: 1px solid #e5e5e0; }
  .nav-sublist { background: #f4f3ef; }
  .hero { height: clamp(460px, 58vw, 650px); }
}

@media (max-width: 680px) {
  .page-video .blog .blog-items, .page-vid .blog .blog-items, .pascan-video-grid { grid-template-columns: 1fr; }
  .hero { display: block; height: auto; background: #071e26; }
  .hero-photo { position: relative; display: block; inset: auto; width: 100%; height: auto; object-fit: contain; }
  .hero-shade { display: none; }
  .hero-panel { width: 100%; margin: 0; padding: 2.4rem 1.25rem 3.4rem; }
  .hero-panel h1 { font-size: clamp(3rem, 12vw, 5.2rem); }
  .hero-year { right: 1.25rem; bottom: 1.15rem; }
  .contact-card-grid, .social-card-grid { grid-template-columns: 1fr; }
  .contact-card-grid .contact-extra { margin: 0; }
  .footer-inner .footer-module { display: block; }
  .footer-inner .footer-links { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner, .brand { transition: none; }
}
