/*
Theme Name:   SCHUYPAC Child
Theme URI:    https://schuypac.org
Description:  Divi 5 child theme for the Schuyler Performing Arts Council website.
Author:       SCHUYPAC
Author URI:   https://schuypac.org
Template:     Divi
Version:      1.0.0
Text Domain:  schuypac-child
*/

/* === SCHUYPAC brand styles === */
/* SCHUYPAC — Schuyler Performing Arts Council */
/* Brand */
:root {
  --brand-purple: #9B3EA8;
  --brand-pink: #E13B7B;
  --brand-purple-deep: #812C8D;
  --brand-pink-deep: #C0316A;
  --brand-gradient: linear-gradient(90deg, #9B3EA8 0%, #B5408F 35%, #D03B7E 70%, #E13B7B 100%);

  --gray-1: #333333;
  --gray-2: #4F4F4F;
  --gray-3: #828282;
  --gray-4: #E0E0E0;
  --gray-bg: #F8F8FA;
  --gray-line: #EEEEEE;

  --black-1: #1A1A1A;
  --black-2: #1D1D1D;
  --black-3: #282828;
  --white: #FFFFFF;

  --success: #27AE60;
  --warning: #E2B93B;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 32px rgba(155,62,168,0.18);
  --radius: 10px;
  --radius-lg: 14px;

  --container: 1280px;
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-1);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
  color: var(--gray-1);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-gray { background: var(--gray-bg); }

/* Type */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--gray-1); line-height: 1.1; }
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0; color: var(--gray-2); font-size: 16px; line-height: 1.6; }
.lead { font-size: 18px; color: var(--gray-2); line-height: 1.6; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-purple);
}

/* Navigation */
.nav {
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand .logo-mark { height: 40px; width: auto; }
.nav-brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand .wordmark .name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--gray-1);
}
.nav-brand .wordmark .sub {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--gray-3);
  margin-top: 3px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-2);
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--brand-purple); }
.nav-links a.active { color: var(--brand-purple); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 1px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand-gradient);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(155,62,168,0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(155,62,168,0.35); }

/* Hero */
.hero {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle equalizer pattern */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(255,255,255,0.12), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(0,0,0,0.10), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); font-size: 64px; max-width: 14ch; }
.hero p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 56ch; margin-top: 20px; }
.hero-row { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-narrow h1 { font-size: 48px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-purple);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(155,62,168,0.32);
}
.btn-primary:hover { background: var(--brand-purple-deep); transform: translateY(-1px); }
.btn-pink {
  background: var(--brand-pink);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(225,59,123,0.32);
}
.btn-pink:hover { background: var(--brand-pink-deep); transform: translateY(-1px); }
.btn-white {
  background: var(--white);
  color: var(--brand-purple);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--brand-purple); }
.btn-outline {
  background: transparent;
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}
.btn-outline:hover { background: var(--brand-purple); color: var(--white); }
.btn-ghost {
  background: var(--gray-4);
  color: var(--gray-3);
  cursor: not-allowed;
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.icon-circle {
  width: 64px; height: 64px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.icon-circle.purple { background: var(--brand-purple); }
.icon-circle.pink { background: var(--brand-pink); }
.icon-circle svg { width: 28px; height: 28px; stroke: currentColor; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: rgba(39,174,96,0.12); color: var(--success); }
.badge-warning { background: rgba(226,185,59,0.16); color: #B89026; }
.badge-info { background: rgba(155,62,168,0.10); color: var(--brand-purple); }
.badge-muted { background: var(--gray-4); color: var(--gray-2); }

/* Footer */
.footer {
  background: var(--black-1);
  color: var(--gray-4);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand .logo-mark { height: 44px; width: auto; }
.footer-brand .name { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.footer-brand .sub { font-size: 9px; letter-spacing: 0.18em; color: var(--gray-3); margin-top: 4px; }
.footer p { color: var(--gray-4); font-size: 14px; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: var(--gray-4); font-size: 14px; transition: color .15s ease; }
.footer-list a:hover { color: var(--brand-pink); }
.footer-contact { font-size: 14px; color: var(--gray-4); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--black-3);
  padding: 28px 0;
  text-align: center;
  color: var(--gray-3);
  font-size: 13px;
}
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--black-3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray-4);
  transition: background .15s ease, color .15s ease;
}
.socials a:hover { background: var(--brand-pink); color: var(--white); }
.socials svg { width: 16px; height: 16px; }

/* Marquee bar — subtle equalizer accent stripe */
.equalizer-strip {
  height: 4px;
  background: var(--brand-gradient);
}

/* Sections / heading blocks */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { max-width: 60ch; margin: 0 auto; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 44px; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  h1, .hero h1 { font-size: 36px; }
  h2 { font-size: 30px; }
}

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-1);
}
.field label .req { color: var(--brand-pink); }
.field input, .field textarea, .field select {
  border: 1px solid var(--gray-4);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: #B0B0B0; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(155,62,168,0.10);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .err { color: #D14F4F; font-size: 13px; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #D14F4F; }

/* Checkbox grid */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gray-4);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  font-size: 14px; font-weight: 500;
  color: var(--gray-2);
  user-select: none;
}
.check:hover { border-color: var(--brand-purple); }
.check input { accent-color: var(--brand-purple); }
.check.is-checked {
  border-color: var(--brand-purple);
  background: rgba(155,62,168,0.06);
  color: var(--brand-purple);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.muted { color: var(--gray-3); }
.brand-purple { color: var(--brand-purple); }
.brand-pink { color: var(--brand-pink); }

/* Equalizer bars decoration */
.eq-deco {
  display: inline-flex; align-items: flex-end; gap: 3px; height: 16px;
}
.eq-deco span {
  width: 3px; background: currentColor; opacity: 0.85; border-radius: 1px;
  animation: eqbar 1.2s ease-in-out infinite;
}
.eq-deco span:nth-child(1) { height: 30%; animation-delay: 0s; }
.eq-deco span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.eq-deco span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.eq-deco span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.eq-deco span:nth-child(5) { height: 40%; animation-delay: 0.6s; }
@keyframes eqbar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
  transform-origin: bottom;
}


/* === Divi overrides — hide default chrome on our template pages === */
body.schuypac-page #main-header,
body.schuypac-page #top-header,
body.schuypac-page #main-footer,
body.schuypac-page #et-main-area > .et_pb_section.et_pb_section_0 { /* nothing */ }

/* Strip the default Divi page padding when using Theme Builder header */
body.et-tb #main-header,
body.et-tb #top-header,
body.et-tb #main-footer { display: none !important; }
body.et-tb #page-container { padding-top: 0 !important; }

/* Make sure our nav sticks above Divi's wrappers */
.nav { z-index: 100; }
