/*
Theme Name: Chi-Town CATS Full Frame
Description: A clean, full-width theme in the style of the Full Frame layout (header with social and search, full-width nav bar, image slider, featured cards, footer menu), built for Chi-Town CATS Cheerleading. Content is managed with the built-in WordPress Customizer, page editor and meta boxes (no plugins required).
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chitown-fullframe
*/

:root {
  --accent: #01519b;
  --accent-dark: #013a6e;
  --ink: #222;
  --muted: #6b7480;
  --line: #e5e7eb;
  --bg: #fff;
  --bg-alt: #f5f6f8;
  --dark: #1b1b1b;
  --max: 1200px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.25; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 24px; background: var(--accent); color: #fff;
  text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: .06em;
  border: 2px solid var(--accent); border-radius: var(--radius); font-size: .8rem; transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--accent); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--sm { padding: 6px 14px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.more { font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }

/* Header */
.site-header { background: #fff; }
.site-header__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: 16px; }
.site-logo { max-height: 72px; width: auto; }
.site-title { margin: 0; font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-tagline { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.site-header__tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.header-links a { margin-left: 14px; font-size: .85rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.header-links a:first-child { margin-left: 0; }
.header-links a:hover { color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-form { display: flex; }
.search-form label { margin: 0; }
.search-field { padding: 8px 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; font-size: .9rem; width: 160px; }
.search-submit { padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font: inherit; font-size: .85rem; }

/* Alerts (colors come from the severity level) */
.alert { background: var(--alert-bg, var(--accent)); color: var(--alert-fg, #fff); border-bottom: 1px solid rgba(0,0,0,.15); }
.alert[hidden] { display: none; }
.alert__inner { display: flex; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.alert__label { border: 1px solid currentColor; border-radius: var(--radius); padding: 1px 8px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.alert__body { flex: 1; min-width: 200px; font-size: .92rem; line-height: 1.5; }
.alert__body p { margin: 0; }
.alert__title { font-weight: 700; }
.alert a { color: inherit; }
.alert__link { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.alert__close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; padding: 2px 6px; cursor: pointer; }
.alert__close:hover, .alert__close:focus-visible { opacity: .7; }

/* Navigation bar */
.nav-bar { background: var(--dark); position: relative; z-index: 40; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 14px 0; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 15px 20px; color: #fff; text-decoration: none; text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--accent); color: #fff; }
.main-nav .menu-item-has-children > a::after { content: " \25BE"; font-size: .7em; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--dark); flex-direction: column; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.main-nav .sub-menu a { border-top: 1px solid rgba(255,255,255,.08); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }

/* Slider */
.slider { position: relative; background: var(--accent-dark); overflow: hidden; }
.slide { display: none; min-height: 480px; background-size: cover; background-position: center; position: relative; align-items: flex-end; }
.slide.is-active { display: flex; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.65)); }
.slide--plain { background-image: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.slide .container { position: relative; width: 100%; }
.slide__caption { color: #fff; padding: 0 0 56px; max-width: 700px; }
.slide__title { margin: 0 0 8px; font-size: clamp(1.8rem, 4.5vw, 3rem); }
.slide__caption p { margin: 0 0 12px; font-size: 1.1rem; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: 0; width: 44px; height: 64px; font-size: 1.4rem; cursor: pointer; z-index: 5; }
.slider__nav:hover { background: var(--accent); }
.slider__nav--prev { left: 0; }
.slider__nav--next { right: 0; }
.slider__dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.slider__dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider__dots button.is-active { background: #fff; }

/* Promotion bar */
.promo { background: var(--accent); color: #fff; }
.promo__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.promo h2 { margin: 0; font-size: 1.5rem; }
.promo p { margin: 4px 0 0; opacity: .9; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__intro { text-align: center; margin-bottom: 36px; }
.section__title { margin: 0 0 16px; font-size: 1.8rem; text-transform: uppercase; letter-spacing: .05em; }
.section__intro .section__title { margin-bottom: 6px; }
.section__sub { margin: 0; color: var(--muted); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Cards */
.cards { display: grid; gap: 28px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__img--plain { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body p { margin: 0; color: var(--muted); }
.card__meta { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .more { margin-top: auto; padding-top: 6px; }
.empty { color: var(--muted); }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.about__body > * + * { margin-top: 1em; }
.about__image img { border-radius: var(--radius); }

/* BAND feed (inc/band.php) */
.band-post .card__img.is-video { position: relative; }
.band-post .card__img.is-video::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.band-post__more summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .9rem; }
.band-post__more[open] summary { margin-bottom: 8px; }
.band-post__more p + p { margin-top: .8em; }
.band-post__author { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .85rem; }
.band-post__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.band-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 28px; }
.band-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* Events */
.event { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.event__date { background: var(--accent); color: #fff; text-align: center; border-radius: var(--radius); min-width: 66px; padding: 8px; line-height: 1.1; }
.event__date strong { display: block; font-size: 1.6rem; }
.event__date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.event h3 { margin: 0 0 4px; font-size: 1.1rem; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { color: var(--accent); }
.event p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Events month calendar */
.view-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cal__head h2 { margin: 0; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.cal__today { text-align: center; margin: 6px 0 0; font-size: .85rem; }
.cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 18px; }
.cal__grid th { background: var(--dark); color: #fff; padding: 8px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.cal__grid abbr { text-decoration: none; }
.cal__day { border: 1px solid var(--line); vertical-align: top; height: 112px; padding: 6px; }
.cal__day--blank { background: var(--bg-alt); }
.cal__num { font-size: .85rem; font-weight: 700; color: var(--muted); }
.cal__day.is-today { background: #eef4fb; }
.cal__day.is-today .cal__num { color: var(--accent); }
.cal__date-full { display: none; }
.cal__events { list-style: none; margin: 4px 0 0; padding: 0; }
.cal__events li + li { margin-top: 4px; }
.cal__events a { display: block; background: var(--accent); color: #fff; text-decoration: none; font-size: .78rem; line-height: 1.3; padding: 3px 6px; border-radius: var(--radius); overflow-wrap: anywhere; }
.cal__events a:hover { background: var(--accent-dark); color: #fff; }
.cal__events .is-cont a { opacity: .7; }
.cal__time { display: block; font-size: .7rem; opacity: .85; }
.cal__empty { text-align: center; margin-top: 18px; }

/* Contact strip */
.contact-strip .grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact-strip h4 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-size: .85rem; }
.contact-strip p { margin: 0 0 18px; }
.contact-strip address { font-style: normal; }
.contact-form h4 + * { margin-top: 0; }
.contact-form .wpforms-container { margin: 0 !important; }
.contact-form .wpforms-form button[type=submit] { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; font-size: .8rem !important; border-radius: var(--radius) !important; }
.contact-form .wpforms-form button[type=submit]:hover { background: var(--accent-dark) !important; }
.map-embed { border-radius: var(--radius); width: 100%; border: 0; min-height: 240px; }

/* Content pages */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 44px 0; text-align: center; }
.page-hero h1 { margin: 0; font-size: 2.2rem; text-transform: uppercase; letter-spacing: .05em; }
.page-hero p { margin: 8px 0 0; color: var(--muted); }
.entry { max-width: 820px; margin: 0 auto; padding: 48px 0; }
.entry-content > * + * { margin-top: 1em; }
.coaches { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 36px; }
.coach { text-align: center; }
.coach img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.coach h3 { margin: 0; }
.coach p { margin: 4px 0 0; color: var(--muted); }
.pagination, .navigation.pagination { margin-top: 32px; text-align: center; }
.page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Footer */
.site-footer { background: var(--dark); color: #c8cdd3; padding: 36px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-nav a { text-decoration: none; text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer .social a { border-color: rgba(255,255,255,.3); color: #fff; }
.copyright { margin: 0; }
.scroll-up { text-decoration: none; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; font-weight: 700; }

@media (min-width: 700px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .about__grid.has-image { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (max-width: 899px) {
  .site-header__top { justify-content: center; text-align: center; }
  .site-branding { flex-direction: column; }
  .site-header__tools { justify-content: center; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; padding-bottom: 8px; }
  .main-nav ul { flex-direction: column; }
  .main-nav .sub-menu { display: flex; position: static; box-shadow: none; background: rgba(255,255,255,.05); }
  .main-nav .sub-menu a { padding-left: 36px; }
  .slide { min-height: 380px; }
  .cal__grid, .cal__grid tbody, .cal__grid tr, .cal__day { display: block; }
  .cal__grid thead, .cal__day--blank, .cal__day:not(.has-events), .cal__num { display: none; }
  .cal__day { height: auto; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .cal__day.is-today { background: none; }
  .cal__date-full { display: block; font-weight: 700; margin-bottom: 4px; }
  .cal__events a { font-size: .9rem; padding: 6px 10px; }
  .slider__nav { display: none; }
}
