/* =========================================================
   Garrison Performers Academy — Site Stylesheet
   ========================================================= */

:root{
  --navy:        #0d1a3b;
  --navy-mid:    #14275a;
  --navy-light:  #1c3170;
  --gold:        #d9a441;
  --gold-light:  #f0c364;
  --gold-dark:   #b3801f;
  --cream:       #faf7f0;
  --cream-dark:  #f0ead9;
  --ink:         #1b1f2a;
  --ink-soft:    #4b4f5a;
  --white:       #ffffff;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 30px rgba(13, 26, 59, 0.14);
  --shadow-soft: 0 4px 14px rgba(13, 26, 59, 0.08);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4{
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}
p{ margin: 0 0 1em; }
a{
  color: var(--gold-dark);
  text-decoration: none;
}
a:visited{ color: var(--gold-dark); }
a:hover, a:focus-visible{ color: var(--navy); text-decoration: underline; }

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

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link{
  position: absolute;
  left: 0; top: -60px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus{ top: 0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary{
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:visited{ color: var(--navy); }
.btn-primary:hover, .btn-primary:focus-visible{
  background: var(--gold-light);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-outline{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:visited{ color: var(--white); }
.btn-outline:hover, .btn-outline:focus-visible{
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header{
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 700;
  box-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img{
  height: 58px;
  width: auto;
  display: block;
}
.brand-text{
  display: none;
}
.eyebrow-bar{
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.main-nav{
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-list{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list > li{
  position: relative;
}
.nav-list > li{
  display: flex;
  align-items: center;
}
.nav-list > li > a{
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 16px;
  border-radius: 8px;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.nav-list > li > a:visited{ color: var(--cream); }
.nav-list > li > a:hover,
.nav-list > li > a:focus-visible{
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.nav-list > li > a.active{
  color: var(--gold);
  background: rgba(217,164,65,0.14);
}
.dropdown-toggle{
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 12px 10px 12px 0;
  display: flex;
  align-items: center;
}
.dropdown-toggle:hover, .dropdown-toggle:focus-visible{ color: var(--gold-light); }
.caret{
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
  display: inline-block;
}
.has-dropdown.open .caret,
.has-dropdown:hover .caret{
  transform: rotate(-135deg);
  margin-top: 4px;
}

.dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a{
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.94rem;
}
.dropdown a:visited{ color: var(--navy); }
.dropdown a:hover, .dropdown a:focus-visible{
  background: var(--cream-dark);
  color: var(--gold-dark);
  text-decoration: none;
}
.dropdown a.active{
  color: var(--gold-dark);
  background: var(--cream-dark);
}

.nav-toggle-mobile{
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 10px;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  overflow: hidden;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.90;
}
.hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,26,59,0.55) 0%, rgba(13,26,59,0.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding: 90px 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.hero-tag{
  display: inline-block;
  color: var(--navy);
  background: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 18px;
}
.hero p.lead{
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.88);
}
.hero-actions{
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero{
  background: var(--navy);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
}
.page-hero .hero-tag{ margin-bottom: 16px; }
.page-hero h1{ color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.page-hero p{ color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }
.breadcrumb{
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.breadcrumb a{ color: rgba(255,255,255,0.8); }
.breadcrumb a:visited{ color: rgba(255,255,255,0.8); }
.breadcrumb a:hover{ color: var(--gold-light); }

/* ---------- Sections ---------- */
.section{
  padding: 72px 0;
}
.section-alt{
  background: var(--white);
}
.section-navy{
  background: var(--navy);
  color: var(--cream);
}
.section-navy h2, .section-navy h3{ color: var(--white); }
.section-header{
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-header h2{ font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.eyebrow{
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.section-navy .eyebrow{ color: var(--gold); }

/* ---------- Pillars / cards grid ---------- */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--gold);
}
.card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.card h3{ font-size: 1.35rem; }
.card-icon{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.link-card{
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.link-card:visited{ color: var(--ink); }
.link-card:hover, .link-card:focus-visible{
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.link-card .link-card-img{
  height: 190px;
  overflow: hidden;
}
.link-card .link-card-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.link-card:hover .link-card-img img{ transform: scale(1.06); }
.link-card-body{ padding: 22px 24px; }
.link-card-body h3{
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.link-card-body .arrow{ color: var(--gold-dark); }
.link-card-body p{ margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Split content ---------- */
.split{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-reverse{ direction: rtl; }
.split-reverse > *{ direction: ltr; }

/* ---------- Admit One / ticket card ---------- */
.ticket{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  max-width: 900px;
  margin: 0 auto;
}
.ticket-stub{
  background: var(--navy);
  color: var(--white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.ticket-stub::after{
  content: "";
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 0;
  border-right: 3px dashed rgba(255,255,255,0.25);
}
.ticket-stub .admit{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
}
.ticket-details{
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.ticket-details dt{
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.ticket-details dd{
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

/* ---------- Team ---------- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow); }
.team-photo{
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-dark);
}
.team-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-body{ padding: 22px 24px 26px; }
.team-role{
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.team-body h3{ margin-bottom: 8px; font-size: 1.25rem; }
.team-body p{ font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Tutor profile (discipline pages) ---------- */
.tutor-profile{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.tutor-photo{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}
.tutor-photo img{ width: 100%; height: 100%; object-fit: cover; }
.tutor-name{
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.tutor-role{ color: var(--gold-dark); font-weight: 700; margin-bottom: 18px; display: block; }

/* ---------- Fees ---------- */
.price-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 26px;
  text-align: center;
  border: 2px solid var(--cream-dark);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.price-card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.price-card h3{ margin-bottom: 4px; }
.price-card .price{
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--navy);
  margin: 10px 0 6px;
}
.price-card .price small{ font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.price-card .meta{ color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.price-card .includes{
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--cream-dark);
  padding-top: 14px;
  margin-top: 14px;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--cream-dark);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery-item img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img{ transform: scale(1.08); }
.gallery-item .caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  background: linear-gradient(0deg, rgba(13,26,59,0.85), transparent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover .caption, .gallery-item:focus-visible .caption{
  opacity: 1;
  transform: translateY(0);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(13,26,59,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption{
  color: var(--cream);
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.lightbox-close{ top: 24px; right: 24px; }
.lightbox-prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
.info-list{ margin-top: 22px; }
.info-list li{
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.info-list .info-icon{
  color: var(--gold-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.map-frame{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: 26px;
}
.map-frame iframe{ width: 100%; height: 260px; border: 0; display: block; }

.form-group{ margin-bottom: 20px; }
.form-group label{
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.contact-form{
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.form-note{
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2{ color: var(--white); }
.cta-band .email-link{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  display: inline-block;
  margin: 18px 0 28px;
}
.cta-band .email-link:visited{ color: var(--gold); }
.cta-band .email-link:hover{ color: var(--gold-light); }
.venue-block{
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}
.venue-block strong{ color: var(--white); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 26px;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}
.footer-inner a{ color: rgba(255,255,255,0.75); }
.footer-inner a:visited{ color: rgba(255,255,255,0.75); }
.footer-inner a:hover{ color: var(--gold-light); }
.footer-links{ display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .split-reverse{ direction: ltr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .ticket{ grid-template-columns: 1fr; }
  .ticket-stub::after{ display: none; }
  .tutor-profile{ grid-template-columns: 180px 1fr; }
}

@media (max-width: 760px){
  .nav-toggle-mobile{ display: inline-flex; }
  .main-nav{
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--navy-mid);
    box-shadow: -12px 0 30px rgba(0,0,0,0.3);
    padding: 90px 22px 30px;
    transition: right 0.3s ease;
    z-index: 600;
    overflow-y: auto;
  }
  .main-nav.open{ right: 0; }
  .nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-list > li > a, .nav-list > li > button.nav-toggle{
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
  }
  .dropdown{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    display: none;
    margin-bottom: 6px;
  }
  .has-dropdown.open .dropdown{ display: block; }
  .dropdown a{ color: var(--cream); }
  .dropdown a:visited{ color: var(--cream); }
  .dropdown a:hover{ background: rgba(255,255,255,0.1); color: var(--gold-light); }
  .nav-backdrop{
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 550;
  }
  .nav-backdrop.open{ display: block; }
  .team-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .tutor-profile{ grid-template-columns: 1fr; }
  .tutor-photo{ max-width: 220px; }
  .ticket-details{ grid-template-columns: 1fr 1fr; padding: 28px 22px; }
  .lightbox-prev, .lightbox-next{ width: 40px; height: 40px; }
}

@media (max-width: 430px){
  .brand img{ height: 46px; }
  .hero-content{ padding: 60px 20px 56px; }
  .ticket-details{ grid-template-columns: 1fr; }
}
