/* Twinsburg Blue Ribbon Schools Committee — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --navy: #1B3A5C;
  --navy-dark: #12283F;
  --gold: #C89B3C;
  --gold-dark: #A87F2C;
  --warm-white: #FBFAF7;
  --card-bg: #F3F1EA;
  --card-bg-2: #EDE6D3;
  --border: #E4E0D6;
  --black: #000000;
  --base: #3A3A38;
  --muted: #8A8577;
  --footer-link: #C7CEDB;
  --footer-muted: #8FA0BE;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--base);
  background: var(--warm-white);
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 700px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1100px) {
  .container { padding: 0 64px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--navy); color: var(--warm-white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--warm-white); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 12.5px 26.5px; }
.btn-secondary:hover { background: var(--navy); color: var(--warm-white); }
.btn-secondary-light { background: transparent; color: var(--warm-white); border: 1.5px solid rgba(251,250,247,0.55); padding: 12.5px 26.5px; }
.btn-secondary-light:hover { background: rgba(251,250,247,0.12); color: var(--warm-white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--warm-white); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Eyebrow / kicker text */
.eyebrow {
  font-size: 13.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: relative;
}
@media (min-width: 700px) { .site-header { padding: 20px 40px; } }
@media (min-width: 1100px) { .site-header { padding: 22px 64px; } }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; display: block; }
@media (min-width: 700px) { .brand img { height: 44px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .name { font-family: var(--serif); font-weight: 600; font-size: 16.5px; color: var(--navy); }
.brand-text .tag { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 700px) {
  .brand-text .name { font-size: 19px; }
  .brand-text .tag { font-size: 11.5px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  color: var(--base);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy) !important; font-weight: 600; border-bottom: 2px solid var(--gold) !important; }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-block; } }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform .15s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

@media (max-width: 899px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    box-shadow: 0 8px 20px rgba(27,58,92,0.08);
    z-index: 20;
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav .nav-link.active { border-bottom: 1px solid var(--border) !important; }
  .main-nav .header-cta { display: inline-block; margin-top: 12px; }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 56px 0 60px;
}
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; gap: 64px; padding: 88px 0 88px; }
}
.hero-copy { flex: 1; max-width: 600px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 20px;
}
@media (min-width: 700px) { .hero h1 { font-size: 44px; } }
@media (min-width: 1100px) { .hero h1 { font-size: 52px; line-height: 1.12; } }
.hero p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  margin: 0 0 30px;
  max-width: 480px;
}
@media (min-width: 700px) { .hero p.lead { font-size: 18.5px; } }
.hero-art {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-art .frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 480 / 440;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--card-bg) 0%, var(--card-bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art .frame img { position: relative; height: 45%; width: auto; }

/* Section spacing */
section { padding: 56px 0; }
.section-tight { padding: 16px 0 56px; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--navy);
  margin: 0;
}
@media (min-width: 700px) { .section-head h2 { font-size: 30px; } }
@media (min-width: 1100px) { .section-head h2 { font-size: 32px; } }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); }

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.grid-2-support {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 700px) { .grid-2-support { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 26px;
  background: #FFFFFF;
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 10px 28px rgba(27,58,92,0.10); transform: translateY(-2px); }
.card svg { margin-bottom: 18px; }
.card h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--black); margin: 0; }
.card .num { font-family: var(--serif); font-size: 26px; color: var(--gold-dark); font-weight: 600; margin-bottom: 12px; }

/* Bands */
.band { padding: 64px 0; text-align: center; }
.band-navy { background: var(--navy); }
.band-navy h2 { color: var(--warm-white); font-size: 26px; margin: 0 0 14px; }
.band-navy p { color: var(--footer-link); font-size: 15px; margin: 0 0 26px; }
.band-card { background: var(--navy); border-radius: 8px; padding: 40px 28px; }
@media (min-width: 700px) { .band-navy h2 { font-size: 28px; } }

.split {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .split { flex-direction: row; gap: 64px; } }
.split > div { flex: 1; }

/* Video cards */
.video-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}
.video-thumb .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(251,250,247,0.15);
  display: flex; align-items: center; justify-content: center;
}
.video-title { font-size: 16.5px; font-weight: 600; color: var(--navy); margin: 14px 0 6px; }
.video-link { font-size: 14px; font-weight: 600; }

/* Real video card — click the poster to play it in place */
.video-embed {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-embed .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(18,40,63,0.72);
  border: 2px solid rgba(251,250,247,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.video-embed:hover .play {
  background: var(--gold-dark);
  transform: translate(-50%,-50%) scale(1.06);
}
.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 8px;
  display: block;
}

/* Story cards */
.story-card { transition: box-shadow .18s, transform .18s; }
.story-card:hover { box-shadow: 0 10px 28px rgba(27,58,92,0.10); transform: translateY(-2px); }
.avatar {
  border-radius: 50%;
  background: var(--navy);
  color: var(--warm-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.featured-story {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 860px) { .featured-story { flex-direction: row; } }
.featured-story .art {
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--card-bg) 0%, var(--card-bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
@media (min-width: 860px) { .featured-story .art { width: 360px; padding: 0; } }
.featured-story .art img { height: 110px; width: auto; }
@media (min-width: 860px) { .featured-story .art img { height: 140px; } }
.featured-story .copy { padding: 36px 28px; background: #fff; flex: 1; }
@media (min-width: 860px) { .featured-story .copy { padding: 52px 56px; } }
.featured-story blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: 19px; line-height: 1.55; color: var(--navy);
  margin: 0 0 24px;
}

/* Form */
.form-panel { background: var(--card-bg); border-radius: 8px; padding: 32px 24px; }
@media (min-width: 700px) { .form-panel { padding: 48px 56px; } }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; } }
@media (min-width: 640px) { .form-full { grid-column: 1 / -1; } }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--base);
  background: var(--warm-white);
}
.form-input:focus { outline: none; border-color: var(--navy); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.thankyou-banner {
  display: none;
  background: #E9F3EA;
  border: 1px solid #B7DABB;
  color: #22522A;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 28px;
}
.thankyou-banner.show { display: block; }

/* Footer */
.site-footer { background: var(--navy-dark); padding: 48px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--warm-white); }
.footer-desc { font-size: 13.5px; line-height: 1.6; color: var(--footer-link); max-width: 340px; margin: 0 0 20px; }
.social-row { display: flex; gap: 12px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-heading { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link { color: var(--footer-link); text-decoration: none; font-size: 14px; }
.footer-link:hover { color: var(--gold); }
.footer-email { font-size: 14px; color: var(--footer-link); margin: 0; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--footer-muted);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
