/* ==========================================================================
   Leahy Music Camp — static site styles
   Faithful rebuild of leahymusiccamp.ca (formerly Divi/WordPress)
   Palette: navy #011e31 · ink #131414 · green #149631 · btn-green #3c6948
            maroon #840f0f
   Fonts:   Signika (headings/brand/nav) · Open Sans (body)
   ========================================================================== */

:root {
  --navy: #011e31;
  --ink: #131414;
  --green: #149631;
  --green-btn: #3c6948;
  --green-btn-hover: #325a3c;
  --maroon: #840f0f;
  --white: #ffffff;
  --grey-bg: #f3f3f3;
  --border: #e2e2e2;
  --header-h: 100px;
  --maxw: 1180px;
  --font-head: 'Signika', Helvetica, Arial, sans-serif;
  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-btn); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----- buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 4px;
  padding: 11px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease;
  text-align: center;
}
.btn-green { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }
.btn-green:hover { background: var(--green-btn-hover); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 72px; width: auto; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 12px;
  letter-spacing: .2px;
}
.main-nav a:hover { color: var(--green); }
.main-nav .has-children > a::after { content: " \25BE"; font-size: .7em; vertical-align: middle; }

/* dropdowns */
.submenu {
  position: absolute; top: 100%; left: 0;
  background: var(--navy);
  min-width: 210px;
  padding: 8px 0;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  flex-direction: column; gap: 0;
}
.main-nav li:hover > .submenu,
.main-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { width: 100%; }
.submenu a { text-transform: none; font-weight: 600; font-size: 15px; padding: 8px 18px; white-space: nowrap; }

/* registration pill */
.nav-register a {
  border: 2px solid var(--maroon);
  color: var(--maroon);
  background: #fff;
  border-radius: 4px;
  padding: 7px 16px;
  margin-left: 6px;
}
.nav-register a:hover { background: var(--maroon); color: #fff; }

/* hamburger */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO (home — full-width video)
   ========================================================================== */
.hero-video {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 420px;
  overflow: hidden;
  background: #000;
}
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;            /* 16:9 */
  min-height: 100%; min-width: 177.78vh;    /* cover */
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); cursor: pointer; z-index: 1; }
.sound-toggle {
  position: absolute; top: 24px; right: 30px; z-index: 5;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 2px solid rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.sound-toggle svg { fill: #333; }

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.page { padding: 56px 0 72px; }
.page-title { font-size: 45px; font-weight: 500; margin: 0 0 28px; }
.page-title.upper { text-transform: uppercase; }

.page-hero-img { width: 100%; border-radius: 4px; margin: 0 0 36px; max-height: 460px; object-fit: cover; }

.prose { max-width: 860px; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 23px; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 19px; margin: 1.2em 0 .3em; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: .25em 0; }

/* two-column content + sidebar */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .with-sidebar { grid-template-columns: 1fr; } }

.cta-box {
  background: var(--green); color: #fff; border-radius: 6px;
  padding: 30px 26px; text-align: center;
}
.cta-box h3 { color: #fff; font-size: 26px; margin: 0 0 16px; }
.cta-box .btn { background: #fff; color: var(--green-btn); border-color: #fff; }
.cta-box .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.sidebar-link { display: block; margin-top: 18px; font-weight: 600; }

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.accordion { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.accordion + .accordion { margin-top: 14px; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
  width: 100%; text-align: left; background: var(--grey-bg); border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink);
  padding: 16px 48px 16px 18px; position: relative;
}
.acc-head::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--green); line-height: 1;
}
.acc-item.open .acc-head::after { content: "\2013"; }
.acc-body { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.acc-item.open .acc-body { padding: 6px 18px 18px; max-height: 4000px; }

/* ==========================================================================
   INSTRUCTOR GRID
   ========================================================================== */
.section-intro { color: #555; margin: -14px 0 30px; }
.inst-section-title { font-size: 30px; margin: 48px 0 22px; font-weight: 500; }
.inst-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.inst-card { display: block; background: #fff; color: var(--ink); }
.inst-card:hover .inst-name { color: var(--green); }
.inst-card:hover .inst-photo { opacity: .9; }
.inst-photo { aspect-ratio: 400 / 250; object-fit: cover; width: 100%; border-radius: 4px; background: var(--grey-bg); transition: opacity .2s ease; }
.inst-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin: 10px 0 2px; }
.inst-instr { font-size: 13.5px; color: #666; line-height: 1.4; }
@media (max-width: 900px) { .inst-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .inst-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ----- instructor bio page ----- */
.bio { max-width: 760px; margin: 0 auto; }
.bio-photo { width: 340px; max-width: 75%; margin: 0 auto 26px; border-radius: 6px; display: block; }
.bio-name { text-align: center; font-size: 40px; font-weight: 500; margin: 0 0 8px; }
.bio-instr { text-align: center; color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: 18px; margin: 0 0 34px; }
.bio-body p { margin: 0 0 1.1em; }
.bio-body a { word-break: break-word; }
.bio-back { margin-top: 40px; font-family: var(--font-head); font-weight: 600; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  column-count: 4; column-gap: 12px;
}
@media (max-width: 980px) { .gallery { column-count: 3; } }
@media (max-width: 680px) { .gallery { column-count: 2; } }
.gallery a { display: block; margin: 0 0 12px; break-inside: avoid; }
.gallery img { width: 100%; border-radius: 3px; background: var(--grey-bg); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 40px;
  cursor: pointer; padding: 10px 20px; line-height: 1;
}
.lb-close { top: 10px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   SPONSORS
   ========================================================================== */
.sponsor-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: center;
  margin-top: 30px;
}
.sponsor-grid img { margin: 0 auto; max-height: 110px; width: auto; object-fit: contain; }
@media (max-width: 760px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-row .icon { flex: 0 0 26px; color: var(--ink); margin-top: 4px; }
.info-row .icon svg { width: 26px; height: 26px; fill: currentColor; }
.info-row h4 { margin: 0 0 2px; font-size: 19px; }
.info-row a { font-weight: 600; }

.map-embed { margin-top: 10px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* forms */
form .field { margin-bottom: 20px; }
form label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; }
form label .req { color: #cf2e2e; }
form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { form .row2 { grid-template-columns: 1fr; } }
form input, form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfcfcf; border-radius: 3px;
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
form .hint { font-size: 13px; color: #777; margin-top: 4px; }
form textarea { min-height: 150px; resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; }
.form-note.ok { color: var(--green-btn); }
.form-note.err { color: #cf2e2e; }
.newsletter { margin-top: 56px; }
.newsletter h2 { font-size: 34px; margin: 0 0 22px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: #cdd6dd; padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; align-items: start;
}
.footer-brand img { height: 90px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-family: var(--font-head); font-weight: 700; color: #fff; max-width: 240px; }
.footer-col h5 { display: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col a { color: #fff; font-weight: 600; }
.footer-col a:hover { color: var(--green); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.footer-social a svg { width: 20px; height: 20px; fill: #fff; }
.footer-social .fb { background: #1877f2; }
.footer-social .ig { background: #e1306c; }
.footer-bottom { background: var(--ink); color: #9fb0bb; margin-top: 48px; padding: 14px 0; font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   RESPONSIVE NAV
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(340px, 86vw);
    background: var(--navy); transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; padding: 14px 0; box-shadow: -10px 0 30px rgba(0,0,0,.4);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a { padding: 13px 22px; font-size: 16px; }
  .main-nav .has-children > a::after { float: right; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(0,0,0,.25); padding: 0; display: none;
  }
  .main-nav li.open > .submenu { display: block; }
  .main-nav li:hover > .submenu { opacity: 1; } /* no hover open on mobile */
  .nav-register a { display: inline-block; margin: 12px 22px; }
  .brand img { height: 60px; }
}
