/* =========================================================
   NTRUBOMAN SENIOR HIGH SCHOOL — MASTER STYLESHEET
   =========================================================
   HOW TO CHANGE THE COLOUR SCHEME:
   Edit only the values inside :root below.
   ========================================================= */

:root {
  /* ---------- COLOURS ---------- */
  --color-primary:        #0B5C2E;   /* Deep green */
  --color-primary-dark:   #063D1D;
  --color-primary-light:  #0F7A3E;
  --color-secondary:      #f8f405;   /* Gold */
  --color-secondary-dark: #fbff04;
  --color-accent:         #8B1A1A;   /* Deep red */

  --color-text:           #1A1A1A;
  --color-text-muted:     #4A4A4A;
  --color-bg:             #FFFFFF;
  --color-bg-alt:         #F5F7F6;
  --color-border:         #DCE3E0;
  --color-focus:          #ece1a4;

  --font-body:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head:  Georgia, "Times New Roman", serif;

  --container:  1140px;
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;

  --radius:     8px;
  --radius-lg:  14px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 14px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--color-primary-dark); margin: 0 0 var(--space-sm); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 var(--space-sm); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: .75rem 1rem; z-index: 1000; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.section { padding: var(--space-xl) 0; }
.section--alt { background: var(--color-bg-alt); }
.section__title { text-align: center; margin-bottom: var(--space-lg); }
.section__title p { color: var(--color-text-muted); max-width: 640px; margin: .5rem auto 0; }

.topbar { background: var(--color-primary-dark); color: #E8EFEC; font-size: .85rem; padding: .4rem 0; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; justify-content: space-between; }
.topbar a { color: #E8EFEC; }
.topbar a:hover { color: var(--color-secondary); }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 1rem; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar__social { display: flex; gap: .75rem; }
.topbar__social svg { width: 16px; height: 16px; fill: currentColor; }

.site-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--color-primary); font-size: 1.05rem; }
.brand__motto { font-size: .75rem; color: var(--color-text-muted); font-style: italic; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem .65rem; color: var(--color-primary); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a { display: block; padding: .55rem .8rem; color: var(--color-text); border-radius: var(--radius); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover, .primary-nav a:focus { background: var(--color-bg-alt); text-decoration: none; color: var(--color-primary); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); background: var(--color-bg-alt); font-weight: 700; }
.primary-nav .btn-cta { background: var(--color-secondary); color: var(--color-primary-dark); font-weight: 700; }
.primary-nav .btn-cta:hover { background: var(--color-secondary-dark); color: #fff; }

.btn { display: inline-block; padding: .75rem 1.35rem; border-radius: var(--radius); font-weight: 600; text-align: center; border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--color-primary-dark); color: #fff; }
.btn--gold { background: var(--color-secondary); color: var(--color-primary-dark); }
.btn--gold:hover, .btn--gold:focus { background: var(--color-secondary-dark); color: #fff; }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover, .btn--outline:focus { background: #fff; color: var(--color-primary); }
.btn--outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline-dark:hover { background: var(--color-primary); color: #fff; }

.hero { position: relative; min-height: 480px; display: flex; align-items: center; color: #fff; background: linear-gradient(120deg, rgba(11,92,46,.85), rgba(11,92,46,.55)), url('../images/school-building.webp') center/cover no-repeat; }
.hero__inner { position: relative; z-index: 2; padding: var(--space-xl) 1rem; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .motto { font-style: italic; color: var(--color-secondary); font-size: 1.15rem; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.1rem; color: #E8EFEC; margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.card__icon svg { width: 24px; height: 24px; fill: currentColor; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.fact { text-align: center; padding: 1.25rem .75rem; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.fact__num { font-family: var(--font-head); font-size: 1.9rem; color: var(--color-primary); font-weight: 700; line-height: 1; }
.fact__label { color: var(--color-text-muted); font-size: .9rem; margin-top: .35rem; }

.news-item { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-item img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-item__body { padding: 1rem 1.25rem 1.25rem; }
.news-item__date { font-size: .8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.news-item__title { margin: .35rem 0 .5rem; font-size: 1.15rem; }
.news-item__excerpt { color: var(--color-text-muted); font-size: .95rem; }
.news-item__link { font-weight: 600; color: var(--color-primary); }

.event { display: flex; gap: 1rem; align-items: flex-start; background: #fff; padding: 1rem; border-radius: var(--radius); border-left: 4px solid var(--color-secondary); box-shadow: var(--shadow-sm); }
.event__date { min-width: 60px; text-align: center; background: var(--color-primary); color: #fff; border-radius: var(--radius); padding: .5rem; }
.event__day { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event__month { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.event__body h3 { margin: 0 0 .25rem; font-size: 1rem; }
.event__body p { margin: 0; color: var(--color-text-muted); font-size: .9rem; }

.member { text-align: center; padding: 1.25rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.member__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto .75rem; border: 4px solid var(--color-bg-alt); background: var(--color-bg-alt); }
.member h3 { margin: 0; font-size: 1.05rem; }
.member__role { color: var(--color-secondary-dark); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.member__bio { color: var(--color-text-muted); font-size: .9rem; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: var(--space-md); }
.gallery-filters button { border: 1px solid var(--color-border); background: #fff; padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; color: var(--color-text); }
.gallery-filters button[aria-pressed="true"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--color-bg-alt); cursor: zoom-in; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); color: #fff; padding: 1.5rem .75rem .65rem; font-size: .85rem; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox__caption { color: #fff; text-align: center; margin-top: .75rem; font-size: .95rem; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.3); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .85rem 1.1rem; margin-bottom: .75rem; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--color-primary-dark); list-style: none; position: relative; padding-right: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 700; color: var(--color-secondary-dark); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: .5rem; }

.cta-banner { background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light)); color: #fff; text-align: center; padding: var(--space-xl) 1rem; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #E8EFEC; max-width: 620px; margin: 0 auto 1.5rem; }

.breadcrumbs { font-size: .875rem; color: var(--color-text-muted); padding: .75rem 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-primary); }

.page-header { background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary)); color: #fff; padding: var(--space-lg) 0; text-align: center; }
.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header p { color: #D9E5E0; max-width: 640px; margin: 0 auto; }

.article__meta { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 1rem; }
.article__hero { width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-md); }
.article__body { max-width: 760px; margin: 0 auto; }
.article__body h2 { margin-top: var(--space-lg); }
.article__body img { border-radius: var(--radius); margin: var(--space-md) 0; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: var(--space-md); }
.share a { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .4rem .75rem; font-size: .85rem; color: var(--color-text); }
.share a:hover { background: var(--color-bg-alt); text-decoration: none; }

.form-note { background: #FFF8E1; border-left: 4px solid var(--color-secondary); padding: .75rem 1rem; border-radius: var(--radius); font-size: .9rem; }
.notice { background: #FFF6E5; border-left: 4px solid var(--color-secondary); padding: .75rem 1rem; border-radius: var(--radius); font-size: .92rem; color: var(--color-text-muted); }

.site-footer { background: var(--color-primary-dark); color: #D9E5E0; padding: var(--space-xl) 0 var(--space-md); margin-top: var(--space-xl); }
.site-footer a { color: #D9E5E0; }
.site-footer a:hover { color: var(--color-secondary); }
.footer__grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer__brand { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.footer__brand img { width: 48px; height: 48px; object-fit: contain; }
.footer__brand strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .35rem; font-size: .92rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: var(--space-lg); padding-top: var(--space-md); text-align: center; font-size: .85rem; color: #A9BDB6; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .primary-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: .5rem; }
  .primary-nav a { padding: .85rem 1rem; }
  .header__inner { position: relative; }
}
@media (min-width: 901px) { .primary-nav { display: block !important; } }
@media (max-width: 600px) {
  .topbar__contacts { font-size: .8rem; }
  .hero { min-height: 420px; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}