/*
Theme Name: VBODA District 4
Theme URI: https://vboda4.org
Author: Drew Ross
Author URI: https://vboda4.org
Description: Custom theme for VBODA District 4 — clean, professional, light design for the Virginia Beach-Norfolk area music educators district.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vboda4
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --navy:       #1a2744;
  --navy-mid:   #253560;
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --slate:      #4a5568;
  --light-bg:   #f7f6f3;
  --white:      #ffffff;
  --border:     #d6d1c4;
  --text:       #2d2d2d;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(26,39,68,0.08);
  --shadow-lg:  0 4px 24px rgba(26,39,68,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif; background: var(--light-bg); color: var(--text); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold); }

h1,h2,h3,h4,h5,h6 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); line-height: 1.3; }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }

/* HEADER */
#site-header { background: var(--navy); border-bottom: 4px solid var(--gold); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-lg); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 24px; }
.site-branding a { text-decoration: none; display: flex; flex-direction: column; }
.site-branding .site-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.1rem; color: var(--white); font-weight: 700; line-height: 1.2; }
.site-branding .site-subtitle { font-size: 0.72rem; color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; }

/* NAV */
#site-nav { display: flex; align-items: center; }
#primary-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
#primary-menu li { position: relative; }
#primary-menu > li > a { display: block; padding: 8px 14px; color: var(--gold-light); text-decoration: none; font-size: 0.88rem; font-weight: 600; border-radius: var(--radius); transition: background 0.2s, color 0.2s; white-space: nowrap; }
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a { background: rgba(201,168,76,0.15); color: var(--gold); }

/* Dropdown arrow indicator */
#primary-menu > li.menu-item-has-children > a::after { content: ' ▾'; font-size: 0.7rem; opacity: 0.7; }

/* Dropdowns — show on hover desktop */
#primary-menu .sub-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; list-style: none; margin: 0; padding: 6px 0; z-index: 200; }
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu li a { display: block; padding: 8px 18px; color: var(--navy); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: background 0.15s; }
#primary-menu .sub-menu li a:hover { background: var(--light-bg); color: var(--gold); }
#primary-menu .sub-menu .sub-menu { top: 0; left: 100%; }

/* Mobile hamburger */
.menu-toggle { display: none; background: var(--gold); border: none; color: var(--navy); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; font-size: 1.3rem; line-height: 1; font-weight: 700; }

/* HEROES */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: white; padding: 48px 24px 40px; border-bottom: 3px solid var(--gold); }
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero .hero-label { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.page-hero h1 { color: white; margin-bottom: 0; }
.home-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a5f 100%); color: white; padding: 64px 24px 56px; border-bottom: 4px solid var(--gold); text-align: center; }
.home-hero h1 { color: white; font-size: 2.6rem; margin-bottom: 12px; }
.home-hero .hero-sub { color: #b0bcd4; font-size: 1.05rem; max-width: 620px; margin: 0 auto 24px; }
.home-hero .hero-notice { display: inline-block; background: rgba(201,168,76,0.15); border: 1px solid var(--gold); color: var(--gold-light); padding: 10px 20px; border-radius: 30px; font-size: 0.88rem; margin-top: 8px; }
.home-hero .hero-notice a { color: var(--gold); font-weight: 700; }

/* MAIN */
#main-content { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.section-label { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; font-weight: 700; }

/* EVENT CARDS */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 48px; }
.event-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-decoration: none; color: var(--navy); transition: all 0.2s; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--navy); }
.event-card:hover { border-top-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--navy); text-decoration: none; }
.event-card .card-icon { font-size: 1.6rem; }
.event-card .card-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
.event-card .card-arrow { margin-top: auto; color: var(--gold); font-size: 0.82rem; font-weight: 700; }
.event-card.external { border-top-color: var(--gold); }

/* CALENDAR */
.calendar-section { margin-bottom: 48px; }
.calendar-section h2 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.calendar-embed { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calendar-embed iframe { width: 100%; border: none; display: block; }

/* CONTENT CARDS */
.content-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 32px; overflow: hidden; }
.content-card-header { background: var(--navy); color: white; padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.content-card-header h2, .content-card-header h3 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.1rem; color: white; margin: 0; font-weight: 400; }
.content-card-header .card-tag { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 2px 10px; border-radius: 12px; font-weight: 700; white-space: nowrap; }
.content-card-body { padding: 24px; }

/* FIELD ROWS */
.field-row { display: grid; grid-template-columns: 180px 1fr; gap: 4px 16px; margin-bottom: 8px; font-size: 0.92rem; align-items: baseline; }
.field-label { font-weight: 700; color: var(--slate); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-warning { background: #fff8e1; border-left: 4px solid #f9a825; color: #5d4037; }
.alert-info    { background: #e3f2fd; border-left: 4px solid #1976d2; color: #0d47a1; }
.alert-archive { background: #f3e5f5; border-left: 4px solid #7b1fa2; color: #4a148c; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 24px; font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: all 0.2s; margin: 4px 4px 4px 0; cursor: pointer; border: none; }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-mid); color: white; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8963f; color: var(--navy); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; text-decoration: none; }

/* SUBPAGE CARDS */
.subpage-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.subpage-card { background: var(--light-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.9rem; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.subpage-card:hover { background: var(--navy); color: white; text-decoration: none; border-color: var(--navy); }

/* STEPS */
.steps { counter-reset: steps; list-style: none; margin-left: 0; }
.steps > li { counter-increment: steps; display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.steps > li::before { content: counter(steps); background: var(--navy); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.step-content { flex: 1; }
.step-content strong { display: block; color: var(--navy); margin-bottom: 6px; }

/* CONDUCTOR GRID */
.conductor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.conductor-card { background: #f0f4ff; border-radius: var(--radius); padding: 14px 18px; }
.conductor-card .ensemble { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.conductor-card .name { font-weight: 700; color: var(--navy); }
.conductor-card .school { color: var(--slate); font-size: 0.84rem; }

/* ATTACHMENTS */
.attachments { background: var(--light-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; }
.attachments h4 { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; font-family: 'Source Sans 3', system-ui, sans-serif; }
.attachments ul { margin-left: 16px; }
.attachments li { font-size: 0.88rem; margin-bottom: 6px; }

/* ARCHIVE */
.archive-divider { border: none; border-top: 2px dashed var(--border); margin: 32px 0 20px; }
.archive-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #7b1fa2; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.archive-label::before { content: ''; display: block; width: 24px; height: 2px; background: #7b1fa2; }

/* LINKS GRID */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.ext-link-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.9rem; transition: all 0.2s; display: block; box-shadow: var(--shadow); border-left: 3px solid var(--navy); }
.ext-link-card:hover { background: var(--navy); color: white; text-decoration: none; border-left-color: var(--gold); }
.ext-link-card:hover .link-desc { color: var(--gold-light); }
.ext-link-card .link-desc { font-size: 0.78rem; color: var(--slate); font-weight: 400; margin-top: 4px; }

/* CONTACT STRIP */
.contact-strip { background: var(--navy); color: #b0bcd4; padding: 32px 24px; margin-top: 48px; border-radius: var(--radius); }
.contact-strip h3 { color: var(--gold); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.contact-row { margin-bottom: 6px; font-size: 0.9rem; }
.contact-row a { color: var(--gold-light); text-decoration: none; }
.contact-row a:hover { color: var(--gold); }

/* FOOTER */
#site-footer { background: var(--navy); border-top: 4px solid var(--gold); color: #8899bb; padding: 32px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand .footer-title { font-family: 'Libre Baskerville', Georgia, serif; color: white; font-size: 1rem; margin-bottom: 4px; }
.footer-brand p { font-size: 0.82rem; color: #8899bb; margin: 0; }
.footer-contact { font-size: 0.85rem; }
.footer-contact strong { display: block; font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer-contact a { color: var(--gold-light); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact p { margin-bottom: 4px; color: #8899bb; }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 20px; padding-top: 16px; font-size: 0.78rem; text-align: center; color: #6677aa; }

/* MISC */
.placeholder-tag { display: inline-block; background: #fff3cd; border: 1px dashed #c8a000; color: #856404; font-size: 0.78rem; padding: 2px 10px; border-radius: 4px; font-weight: 600; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.venue-image { width: 100%; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); object-fit: cover; max-height: 320px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; min-height: 60px; }
  .menu-toggle { display: block; }
  #primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    gap: 0;
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
    z-index: 300;
  }
  #primary-menu.open { display: flex; }
  #primary-menu > li > a { padding: 12px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--gold-light); }
  #primary-menu > li > a:hover { background: rgba(201,168,76,0.12); }
  #primary-menu .sub-menu {
    display: none;
    position: static;
    background: rgba(0,0,0,0.2);
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
  }
  #primary-menu li.open > .sub-menu { display: block; }
  #primary-menu .sub-menu li a { padding: 10px 20px 10px 36px; color: #b0bcd4; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.84rem; }
  #primary-menu .sub-menu .sub-menu li a { padding-left: 52px; }
  #primary-menu .sub-menu li a:hover { background: rgba(201,168,76,0.1); color: var(--gold); }
  .home-hero h1 { font-size: 1.8rem; }
  .field-row { grid-template-columns: 1fr; }
  .field-label { margin-top: 8px; }
  .conductor-grid { grid-template-columns: 1fr; }
  #main-content { padding: 24px 16px 60px; }
  .footer-inner { flex-direction: column; gap: 16px; }
}
