/*
Theme Name: North Springs Spartan Bands
Theme URI: https://brownm451.wixsite.com/northspringsband
Author: Michael Brown
Description: Custom theme for the North Springs High School Spartan Bands program, recreating the look of the original Wix site (brand navy/orange palette, Oswald headings, card-based news and gallery layout).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nsband
*/

/* ==========================================================================
   Design tokens — pulled from the original Wix site's computed styles
   ========================================================================== */
:root{
  --nsb-navy:      #002B5C;
  --nsb-navy-soft: #163A63;
  --nsb-orange:    #FA5105;
  --nsb-orange-2:  #FF6B2B;
  --nsb-text:      #20303C;
  --nsb-bg:        #FFFFFF;
  --nsb-bg-alt:    #F8F8F8;
  --nsb-bg-panel:  #EFF1F2;
  --nsb-blue-gray-1: #7C92AA;
  --nsb-blue-gray-2: #BAC5D1;
  --nsb-blue-gray-3: #3E5E83;
  --nsb-white:     #FFFFFF;

  --nsb-font-display: 'Oswald', Arial, Helvetica, sans-serif;
  --nsb-font-heavy:   'Montserrat', Arial, Helvetica, sans-serif;
  --nsb-font-label:   'Roboto', Arial, Helvetica, sans-serif;
  --nsb-font-body:    'Open Sans', Helvetica, Arial, sans-serif;

  --nsb-radius: 6px;
  --nsb-shadow: 0 2px 10px rgba(0,43,92,0.12);
  --nsb-maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--nsb-font-body);
  color: var(--nsb-text);
  background: var(--nsb-bg);
  line-height: 1.6;
  font-size: 17px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--nsb-navy); text-decoration: none; }
a:hover{ color: var(--nsb-orange); }
h1,h2,h3,h4{
  font-family: var(--nsb-font-display);
  color: var(--nsb-navy);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .5em;
  line-height: 1.15;
}
.nsb-container{
  max-width: var(--nsb-maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.nsb-btn{
  display: inline-block;
  font-family: var(--nsb-font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--nsb-orange);
  color: #fff;
  padding: .85em 1.8em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  font-size: .85rem;
}
.nsb-btn:hover{ background: var(--nsb-navy); color:#fff; transform: translateY(-1px); }
.nsb-btn.nsb-btn-outline{
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.nsb-btn.nsb-btn-outline:hover{ background:#fff; color: var(--nsb-navy); }

/* ==========================================================================
   Hero banner
   ========================================================================== */
.nsb-hero{
  background: linear-gradient(180deg, var(--nsb-orange) 0%, var(--nsb-orange-2) 100%);
  padding: 18px 0;
  overflow: hidden;
}
.nsb-hero-row{
  display:flex; align-items:center; justify-content:space-between; gap: 18px; flex-wrap: wrap;
}
.nsb-hero-brand{
  display:flex; align-items:center; gap: 14px; flex-wrap: wrap;
}
.nsb-hero img.nsb-mascot{ max-height: 150px; width:auto; }
.nsb-hero img.nsb-wordmark{ max-height: 130px; width:auto; }
.nsb-hero-social{
  display:flex; align-items:center; gap: 12px; flex-shrink:0;
}
.nsb-hero-social a{ display:inline-flex; transition: transform .15s ease; }
.nsb-hero-social a:hover{ transform: translateY(-2px); }
.nsb-hero-social img{ width:36px; height:36px; display:block; }

/* ==========================================================================
   Primary nav
   ========================================================================== */
.nsb-nav{
  background: #fff;
  border-bottom: 1px solid #e7e9eb;
  position: sticky; top:0; z-index: 50;
}
.nsb-nav .nsb-container{
  display:flex; align-items:center; justify-content:flex-start;
}
.nsb-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:flex-start;
}
.nsb-nav li{ position:relative; }
.nsb-nav a{
  display:block;
  font-family: var(--nsb-font-display);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
  font-size:.95rem;
  color: var(--nsb-navy);
  padding: 18px 20px;
  border-bottom: 3px solid transparent;
}
.nsb-nav a:hover,
.nsb-nav .current-menu-item > a,
.nsb-nav .current_page_item > a{
  color: var(--nsb-orange);
  border-bottom-color: var(--nsb-orange);
}
.nsb-nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  padding: 16px 20px;
  font-family: var(--nsb-font-display);
  text-transform: uppercase; font-weight:700; color: var(--nsb-navy);
}
.nsb-nav ul.nsb-menu{ display:flex; }

@media (max-width: 860px){
  .nsb-nav .nsb-container{ justify-content: space-between; }
  .nsb-nav-toggle{ display:block; }
  .nsb-nav ul.nsb-menu{
    display:none;
    position:absolute; left:0; right:0; top:100%;
    background:#fff; flex-direction:column;
    box-shadow: var(--nsb-shadow);
  }
  .nsb-nav ul.nsb-menu.is-open{ display:flex; }
  .nsb-hero img.nsb-mascot{ max-height: 110px; }
  .nsb-hero img.nsb-wordmark{ max-height: 90px; }
}

/* ==========================================================================
   Section helpers
   ========================================================================== */
.nsb-section{ padding: 64px 0; }
.nsb-section.alt{ background: var(--nsb-bg-panel); }
.nsb-section.navy{ background: var(--nsb-navy); color:#fff; }
.nsb-section.navy h2, .nsb-section.navy h3{ color:#fff; }
.nsb-section-title{ text-align:center; font-size:1.9rem; margin-bottom: 40px; }

/* ==========================================================================
   Featured news cards (home)
   ========================================================================== */
.nsb-card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.nsb-card{
  background:#fff;
  border-radius: var(--nsb-radius);
  overflow:hidden;
  box-shadow: var(--nsb-shadow);
  display:flex; flex-direction:column;
}
.nsb-card img{ aspect-ratio: 16/9; object-fit:cover; width:100%; }
.nsb-card .nsb-card-body{ padding: 18px 20px 22px; flex:1; display:flex; flex-direction:column; }
.nsb-card h3{ font-size: 1.15rem; margin-bottom:.4em; }
.nsb-card h3 a{ color: var(--nsb-navy); }
.nsb-card p{ margin:0; color:#4a5661; flex:1; }
.nsb-card .nsb-meta{
  font-family: var(--nsb-font-label);
  font-size:.78rem; color:#8a94a0; text-transform:uppercase; letter-spacing:.04em;
  margin-bottom:8px; display:flex; gap:10px; align-items:center;
}
.nsb-see-more{ text-align:center; margin-top: 36px; }
.nsb-see-more a{
  font-family: var(--nsb-font-display); text-transform:uppercase; font-weight:600;
  color: var(--nsb-orange); border-bottom:2px solid var(--nsb-orange); padding-bottom:2px;
}

/* ==========================================================================
   About / two-column with image
   ========================================================================== */
.nsb-split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center;
}
@media (max-width: 780px){ .nsb-split{ grid-template-columns: 1fr; } }
.nsb-split.reverse .nsb-split-media{ order:2; }

.nsb-split-media-pair{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px; height:100%;
}
.nsb-split-media-pair img{
  border-radius: var(--nsb-radius); box-shadow: var(--nsb-shadow);
  aspect-ratio: 4/3; object-fit:cover; width:100%; height:100%;
}

/* ==========================================================================
   Two-column band: main content + persistent sidebar
   (used for the Latest News band and the About/Alumni band, matching
   the original site's layout instead of full-width stacked sections)
   ========================================================================== */
.nsb-two-col{
  display:grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items:start;
}
.nsb-two-col .nsb-section-title{ text-align:left; }
.nsb-two-col-main > *:last-child{ margin-bottom:0; }
.nsb-two-col-side{
  background: rgba(255,255,255,.06);
  border-radius: var(--nsb-radius);
  padding: 24px;
}
.nsb-section:not(.navy) .nsb-two-col-side{
  background: var(--nsb-bg-panel);
}
.nsb-alumni-block{ margin-top: 56px; }
.nsb-alumni-block .nsb-section-title{ text-align:center; }

.nsb-side-title{
  font-size: 1.15rem; margin-bottom: .6em;
}
.nsb-two-col-side > .nsb-side-title:not(:first-child){ margin-top: 32px; }
.nsb-section.navy .nsb-side-title{ color:#fff; }

.nsb-mini-list{ display:flex; flex-direction:column; gap:10px; margin-bottom: 24px; }
.nsb-mini-list a{
  display:block; background:#fff; color: var(--nsb-navy);
  border-radius: var(--nsb-radius); padding: 12px 16px;
  font-family: var(--nsb-font-label); font-weight:700; font-size:.85rem;
  box-shadow: var(--nsb-shadow);
}
.nsb-mini-list a:hover{ color: var(--nsb-orange); }

.nsb-badge-circle{
  display:block; width:130px; height:130px; margin: 8px auto 0;
  border-radius:50%; object-fit:contain; background:#fff;
  box-shadow: var(--nsb-shadow); padding:10px;
}

.nsb-fees-grid-mini{
  grid-template-columns: repeat(2, 1fr); gap:10px;
}
.nsb-fees-grid-mini a{
  padding: 14px 8px; font-size:.72rem; background: var(--nsb-bg-panel); border-color: var(--nsb-bg-panel);
}
.nsb-section.navy .nsb-fees-grid-mini a{ background:#fff; }

.nsb-app-promo-side{
  margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(0,0,0,.08);
}
.nsb-section.navy .nsb-app-promo-side{ border-top-color: rgba(255,255,255,.15); }
.nsb-app-promo-side p{ font-size:.88rem; margin-bottom:14px; }
.nsb-app-promo-side .nsb-btn{ font-size:.75rem; padding:.7em 1.4em; }

@media (max-width: 900px){
  .nsb-two-col{ grid-template-columns: 1fr; }
  .nsb-two-col-side{ order:2; }
}

/* Gallery strip / lightbox grid */
.nsb-gallery-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:14px;
}
.nsb-gallery-grid a{ display:block; border-radius: var(--nsb-radius); overflow:hidden; box-shadow: var(--nsb-shadow); }
.nsb-gallery-grid img{ aspect-ratio: 4/3; object-fit:cover; transition: transform .3s ease; }
.nsb-gallery-grid a:hover img{ transform: scale(1.05); }

.nsb-lightbox{
  position:fixed; inset:0; background:rgba(0,20,40,.92);
  display:none; align-items:center; justify-content:center; z-index:1000; padding:24px;
}
.nsb-lightbox.is-open{ display:flex; }
.nsb-lightbox img{ max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.nsb-lightbox-close{
  position:absolute; top:20px; right:28px; color:#fff; font-size:2rem; cursor:pointer; line-height:1;
}

/* ==========================================================================
   Banner / magnet programs
   ========================================================================== */
.nsb-banner{
  background: var(--nsb-blue-gray-3);
  color:#fff;
  display:grid; grid-template-columns: 1fr 1.4fr;
  border-radius: var(--nsb-radius);
  overflow:hidden;
}
@media (max-width: 780px){ .nsb-banner{ grid-template-columns:1fr; } }
.nsb-banner-text{ padding: 40px; display:flex; flex-direction:column; justify-content:center; }
.nsb-banner-text h3{ color:#fff; font-size:1.5rem; }
.nsb-banner img{ height:100%; object-fit:cover; }

/* Alumni */
.nsb-alumni{ display:flex; gap:40px; align-items:center; flex-wrap:wrap; justify-content:center; text-align:left; }
.nsb-alumni img{ width:200px; height:200px; object-fit:contain; }
.nsb-alumni blockquote{ margin:0; max-width:520px; font-style:italic; color:#4a5661; }
.nsb-alumni cite{ display:block; margin-top:10px; font-style:normal; font-weight:700; color:var(--nsb-navy); }

/* Fees & donations */
.nsb-fees-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:16px;
}
.nsb-fees-grid a{
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:#fff; border:2px solid var(--nsb-bg-panel); border-radius: var(--nsb-radius);
  padding: 22px 14px; font-family: var(--nsb-font-label); font-weight:700; color:var(--nsb-navy);
  text-transform:uppercase; font-size:.85rem; letter-spacing:.02em;
}
.nsb-fees-grid a:hover{ border-color: var(--nsb-orange); color: var(--nsb-orange); }

/* Band app promo */
.nsb-app-promo{ text-align:center; }
.nsb-app-promo p{ max-width:640px; margin:0 auto 24px; }

/* Contact / visit / tell footer band */
.nsb-contact-split{ display:grid; grid-template-columns:1fr 1fr; }
.nsb-contact-split-3{ grid-template-columns:1fr 1fr 1fr; }
@media (max-width: 780px){ .nsb-contact-split{ grid-template-columns:1fr; } }
.nsb-contact-split > div{ padding: 56px 40px; }
.nsb-contact-split .contact-col{ background: var(--nsb-blue-gray-3); color:#fff; text-align:center; }
.nsb-contact-split .visit-col{ background: var(--nsb-blue-gray-2); text-align:center; }
.nsb-contact-split .tell-col{ background: var(--nsb-blue-gray-2); text-align:center; }
.nsb-contact-split h3{ color: var(--nsb-orange); font-size:2rem; }
.nsb-contact-split .visit-col h3,
.nsb-contact-split .tell-col h3{ color:#fff; }
.nsb-contact-split hr{ width:60px; border:1px solid var(--nsb-orange); margin: 14px auto 24px; }
.nsb-contact-split .badge{ width:150px; margin: 24px auto 0; }
.nsb-contact-split iframe{ width:100%; max-width:420px; height:280px; border:0; border-radius: var(--nsb-radius); margin: 0 auto; }
.nsb-contact-split .tell-col form{ text-align:left; max-width:340px; margin:0 auto; }

/* Site footer */
.nsb-footer{ background: var(--nsb-navy); color:#cfd8e3; padding: 30px 0; text-align:center; }
.nsb-footer .nsb-hero-social{ justify-content:center; margin: 0 auto 22px; }
.nsb-footer .nsb-partner-logos{ display:flex; justify-content:center; gap:40px; margin-bottom:20px; flex-wrap:wrap; }
.nsb-footer .nsb-partner-logos img{ height:70px; width:auto; background:#fff; border-radius:4px; padding:6px; }
.nsb-footer p{ margin:0; font-size:.85rem; }

/* ==========================================================================
   Blog (News) listing + single post
   ========================================================================== */
.nsb-blog-filters{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom: 40px;
  font-family: var(--nsb-font-display); text-transform:uppercase; font-size:.85rem;
}
.nsb-blog-filters a{
  padding:8px 18px; border-radius:999px; border:1px solid var(--nsb-bg-panel); color: var(--nsb-navy);
}
.nsb-blog-filters a.active, .nsb-blog-filters a:hover{ background: var(--nsb-navy); color:#fff; border-color: var(--nsb-navy); }

.nsb-post-list{ display:flex; flex-direction:column; gap:34px; max-width: 820px; margin:0 auto; }
.nsb-post-row{
  display:grid; grid-template-columns: 260px 1fr; gap:26px;
  background:#fff; border-radius: var(--nsb-radius); box-shadow: var(--nsb-shadow); overflow:hidden;
}
@media (max-width: 640px){ .nsb-post-row{ grid-template-columns:1fr; } }
.nsb-post-row img{ width:100%; height:100%; object-fit:cover; min-height:160px; }
.nsb-post-row .nsb-post-body{ padding: 22px 24px 22px 0; }
@media (max-width: 640px){ .nsb-post-row .nsb-post-body{ padding: 18px 20px; } }
.nsb-post-author{ display:flex; align-items:center; gap:10px; font-size:.85rem; color:#8a94a0; margin-bottom:10px; }
.nsb-post-author img{ width:32px; height:32px; border-radius:50%; object-fit:cover; }
.nsb-post-row h2{ font-size:1.4rem; margin-bottom:.3em; }
.nsb-post-row h2 a{ color: var(--nsb-navy); }

.nsb-single-post{ max-width: 760px; margin: 0 auto; }
.nsb-single-post .nsb-post-thumb{ margin-bottom:28px; border-radius: var(--nsb-radius); overflow:hidden; }
.nsb-single-post h1{ font-size:2.1rem; }
.nsb-single-post .nsb-post-content{ font-size:1.05rem; }
.nsb-single-post .nsb-post-content p{ margin: 0 0 1.2em; }

/* Staff bio rows (About page) */
.nsb-staff-row{ display:grid; grid-template-columns: 1fr 1.4fr; }
@media (max-width: 780px){ .nsb-staff-row{ grid-template-columns:1fr; } }
.nsb-staff-row img{ width:100%; height:100%; object-fit:cover; min-height:320px; }
.nsb-staff-row .nsb-staff-text{ padding: 48px; display:flex; flex-direction:column; justify-content:center; }
.nsb-staff-row.navy{ background: var(--nsb-navy); color:#fff; }
.nsb-staff-row.navy h3{ color:#fff; }
.nsb-staff-row.light{ background: var(--nsb-blue-gray-2); color: var(--nsb-navy); }
.nsb-staff-row.light h3{ color: var(--nsb-navy); }

/* Page header band used on inner pages */
.nsb-page-header{ background: var(--nsb-blue-gray-1); color:#fff; padding: 36px 0; }
.nsb-page-header h1{ color:#fff; margin:0; font-size:2rem; }

/* Calendar embed page */
.nsb-calendar-embed iframe{ width:100%; height: 720px; border:0; border-radius: var(--nsb-radius); box-shadow: var(--nsb-shadow); }

/* Generic content page */
.nsb-page-content{ max-width: 860px; margin:0 auto; }
