/*
Theme Name: Studio Pulse
Theme URI: https://example.com/studio-pulse
Author: Aeromations International
Description: An original theme for dance studios, arts nonprofits and community organizations. Features a bold hero, program cards, sponsor call-to-action, events from the blog, testimonials, and a donate button. Fully editable from the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-pulse
*/

:root {
  --ink: #15122b;
  --ink-soft: #2a2650;
  --coral: #ff5a4e;
  --coral-dark: #e0443a;
  --teal: #1fb5a8;
  --sand: #f7f1e8;
  --white: #ffffff;
  --muted: #6b6785;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 18, 43, .12);
  --font-head: "Syne", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 80px 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--coral); margin-bottom: .75rem; display: block; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: var(--font-body); font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: var(--white); }
.btn--primary:hover { background: var(--coral-dark); color: var(--white); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-soft); color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21, 18, 43, .97); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-branding a { color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.site-branding .custom-logo { max-height: 52px; width: auto; }
.brand-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 10px 0 0 var(--teal); margin-right: 10px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { color: var(--white); text-decoration: none; padding: 10px 12px; display: block; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--coral); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--ink-soft); padding: 8px; border-radius: 10px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--ink) center/cover no-repeat; padding: 140px 0 120px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(21,18,43,.94) 30%, rgba(21,18,43,.55)); }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,78,.55), transparent 70%); }
.hero .container { position: relative; z-index: 2; }
.hero p.lead { font-size: 1.25rem; max-width: 600px; color: #dcd9ee; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--teal), var(--ink-soft)); min-height: 340px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--coral); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease; }
.card:hover { transform: translateY(-5px); }
.card-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--coral), var(--ink-soft)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--coral-dark); }
.card-meta { font-size: .8rem; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* Sponsor CTA */
.cta-band { text-align: center; background: linear-gradient(120deg, var(--coral), #ff8a5e); color: var(--white); padding: 90px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 620px; margin: 0 auto 28px; font-size: 1.15rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { background: var(--ink-soft); border-radius: var(--radius); padding: 30px; position: relative; }
.quote::before { content: "\201C"; font-family: var(--font-head); font-size: 4rem; color: var(--coral); position: absolute; top: 4px; left: 22px; line-height: 1; }
.quote p { margin: 28px 0 18px; color: #e6e3f5; }
.quote cite { font-style: normal; font-weight: 700; color: var(--teal); }

/* Page content */
.page-hero { background: var(--ink); color: var(--white); padding: 70px 0; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.entry-content { max-width: 780px; margin: 0 auto; padding: 60px 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content > * + * { margin-top: 1.1em; }
.posts-grid { padding: 60px 0; }
.pagination { text-align: center; padding-bottom: 60px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 8px; background: var(--sand); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--coral); color: var(--white); }

/* Footer */
.site-footer { background: var(--ink); color: #cfcce6; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #cfcce6; text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.social { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.social a { border: 1px solid #4a4676; border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.footer-bottom { border-top: 1px solid #2f2b57; padding: 22px 0; font-size: .9rem; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .split, .grid-3, .testimonials, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--ink); padding: 12px 4%; max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .sub-menu { display: flex; position: static; background: transparent; box-shadow: none; padding-left: 14px; }
  .header-cta .btn { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 90px 0 80px; }
}
.screen-reader-text { position: absolute; left: -9999px; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
