/*
Theme Name: PPFC Photo Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A custom WordPress theme for Pikes Peak Futbol Club using real club photography, a strong homepage, and simple editable page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ppfc-photo-theme
*/

:root {
  --ppfc-purple: #4b1f83;
  --ppfc-purple-dark: #2d124e;
  --ppfc-green: #2f7a52;
  --ppfc-gold: #d7b25a;
  --ppfc-bg: #f7f4ef;
  --ppfc-white: #ffffff;
  --ppfc-text: #1d2430;
  --ppfc-muted: #5e6674;
  --ppfc-border: #e6e8ee;
  --ppfc-dark: #0f1724;
  --ppfc-radius: 24px;
  --ppfc-shadow: 0 16px 42px rgba(15, 23, 36, 0.08);
  --ppfc-max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ppfc-text);
  background: var(--ppfc-bg);
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.site-main a:not(.ppfc-button):not(.custom-logo-link):not(.menu a) { color: var(--ppfc-purple); }
.container {
  width: min(calc(100% - 2rem), var(--ppfc-max));
  margin: 0 auto;
}
.section { padding: 88px 0; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ppfc-purple);
  margin-bottom: .8rem;
}
.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-text {
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--ppfc-muted);
}
.grid-2, .grid-3, .grid-4, .grid-5 {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: var(--ppfc-white);
  border: 1px solid var(--ppfc-border);
  border-radius: var(--ppfc-radius);
  box-shadow: var(--ppfc-shadow);
  overflow: hidden;
}
.card-body { padding: 26px; }
.card h3 {
  margin: 0 0 .7rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--ppfc-muted); }
.ppfc-button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--ppfc-purple);
  color: var(--ppfc-white);
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.ppfc-button:hover { transform: translateY(-1px); opacity: .96; }
.ppfc-button.light { background: var(--ppfc-white); color: var(--ppfc-purple); }
.ppfc-button.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.ppfc-button.secondary { background: var(--ppfc-green); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--ppfc-border);
  backdrop-filter: blur(12px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: 0 0 auto;
}
.custom-logo {
  width: auto;
  max-height: 56px;
  height: auto;
}
@media (max-width: 640px) {
  .custom-logo {
    max-height: 46px;
  }
  .site-title { font-size: 1.05rem; }
  .site-tagline { font-size: .64rem; }
}
.site-title {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 900;
  color: var(--ppfc-purple);
}
.site-tagline {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-top: 5px;
  color: var(--ppfc-muted);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ppfc-border);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
}
.primary-nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav li { position: relative; }
.primary-nav a {
  font-size: .97rem;
  font-weight: 700;
  color: var(--ppfc-text);
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--ppfc-white);
  border: 1px solid var(--ppfc-border);
  border-radius: 18px;
  box-shadow: var(--ppfc-shadow);
  padding: 10px;
}
.primary-nav li:hover > .sub-menu { display: block; }
.primary-nav .sub-menu li { margin: 0; }
.primary-nav .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}
.primary-nav .sub-menu a:hover { background: var(--ppfc-bg); }
.hero {
  position: relative;
  color: var(--ppfc-white);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(12, 15, 23, .78), rgba(58, 23, 101, .76), rgba(47, 122, 82, .34));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 15, 23, .45), transparent 30%);
}
.hero-inner {
  position: relative;
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: end;
  padding: 84px 0 64px;
}
.hero-copy {
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #f0d395;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: .98;
  font-weight: 900;
}
.hero p {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: 1.14rem;
  color: rgba(255,255,255,.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-panel {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.hero-panel .kicker {
  color: #f0d395;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
}
.hero-panel h3 {
  margin: 10px 0 8px;
  font-size: 1.8rem;
  line-height: 1.15;
}
.hero-panel p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,.88);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 20px;
}
.mini-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.mini-card strong { display: block; margin-bottom: 8px; }
.mini-card p { font-size: .94rem; }
.split-feature {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.image-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--ppfc-shadow);
}
.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.value-card .card-body { padding-top: 22px; }
.value-card img {
  width: 100%;
  aspect-ratio: 4 / 2.7;
  object-fit: cover;
}
.pathway-wrap {
  display: block;
}
.pathway-tag {
  padding: 10px 14px;
  border-radius: 14px;
  background: #efe8fb;
  color: var(--ppfc-purple);
  font-size: .92rem;
  font-weight: 700;
}
.pathway-step {
  position: relative;
  padding: 24px;
  min-height: 150px;
}
.pathway-step .number {
  font-size: .84rem;
  font-weight: 900;
  color: var(--ppfc-purple);
  margin-bottom: 10px;
}
.program-thumb img,
.now-thumb img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.program-thumb,
.now-thumb { overflow: hidden; }
.muted-section { background: #f1f3f7; }
.quote-card {
  background: var(--ppfc-white);
  border: 1px solid var(--ppfc-border);
  border-radius: var(--ppfc-radius);
  box-shadow: var(--ppfc-shadow);
  padding: 28px;
}
.quote-card p {
  margin: 0;
  color: var(--ppfc-text);
  font-size: 1.08rem;
}
.quote-role {
  margin-top: 18px;
  color: var(--ppfc-purple);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}
.gallery-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--ppfc-shadow);
  background: var(--ppfc-white);
}
.gallery-card.tall img { aspect-ratio: 4 / 5; }
.gallery-card.wide img { aspect-ratio: 16 / 10; }
.dark-cta {
  border-radius: 30px;
  background: linear-gradient(125deg, rgba(75,31,131,1), rgba(20,28,42,1));
  color: var(--ppfc-white);
  padding: 48px;
  box-shadow: 0 24px 70px rgba(15,23,36,.22);
}
.dark-cta .section-kicker { color: #f0d395; }
.dark-cta .section-title { color: var(--ppfc-white); }
.dark-cta .section-text { color: rgba(255,255,255,.85); }
.site-footer {
  background: var(--ppfc-white);
  border-top: 1px solid var(--ppfc-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .9fr;
  gap: 24px;
  padding: 60px 0 30px;
}
.footer-title {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
}
.footer-contact,
.footer-links,
.footer-social {
  display: grid;
  gap: 8px;
  color: var(--ppfc-muted);
}
.footer-bottom {
  border-top: 1px solid var(--ppfc-border);
  padding: 18px 0 34px;
  color: var(--ppfc-muted);
  font-size: .95rem;
}
.page-content-wrap {
  padding: 70px 0 90px;
}
.page-hero {
  margin-bottom: 28px;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
}
.entry-content {
  background: var(--ppfc-white);
  border: 1px solid var(--ppfc-border);
  border-radius: 28px;
  box-shadow: var(--ppfc-shadow);
  padding: 34px;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
@media (max-width: 1080px) {
  .hero-inner,
  .split-feature,
  .footer-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4,
  .grid-2,
  .mini-grid { grid-template-columns: 1fr; }
  .pathway-wrap { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .primary-nav-wrap {
    display: none;
    position: absolute;
    top: 84px;
    right: 1rem;
    width: min(360px, calc(100% - 2rem));
    background: var(--ppfc-white);
    border: 1px solid var(--ppfc-border);
    border-radius: 18px;
    box-shadow: var(--ppfc-shadow);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav-wrap.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 12px; }
  .primary-nav .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 8px 0 0 12px;
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero-inner { min-height: auto; padding: 70px 0 54px; }
  .hero h1 { font-size: 2.55rem; }
  .grid-5 { grid-template-columns: 1fr; }
  .dark-cta,
  .entry-content { padding: 24px; }
}
