/*
Theme Name: Spektra
Theme URI: https://spektraband.com
Author: Spektra
Description: Custom theme for Spektra, North Florida's classic rock and dance band. Includes an Events post type, calendar/list shortcode, booking contact form, and one-click starter content (pages, menu, events).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: spektra
*/

:root {
  --bg: #0b0b12;
  --bg-2: #14141f;
  --card: #1b1b2a;
  --text: #ecebf4;
  --muted: #a6a4bd;
  --accent: #ff3d7f;
  --accent-2: #ffb347;
  --radius: 14px;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.site-logo img { height: 56px; width: auto; }
.site-logo .site-title { font-size: 1.6rem; font-weight: 900; color: var(--text); }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--text); font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); }
.main-nav .menu-cta > a, .main-nav li:last-child > a.cta {
  background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 999px;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; }
.header-social a { color: var(--text); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer;
  font-size: 1rem; transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #e62a69; transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 2px solid var(--accent-2); color: var(--accent-2) !important; }
.btn.ghost:hover { background: var(--accent-2); color: #111 !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }

/* Hero */
.hero {
  position: relative; text-align: center; padding: 90px 0 80px;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(255,61,127,.28), transparent 70%),
    radial-gradient(700px 300px at 90% 110%, rgba(255,179,71,.18), transparent 70%),
    var(--bg);
}
.hero .logo { max-width: 420px; margin: 0 auto 26px; }
.hero h1 { max-width: 880px; margin-inline: auto; }
.hero .sub { color: var(--muted); font-size: 1.2rem; }
.hero-photo { margin: 40px auto 0; max-width: 900px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* Cards / grids */
.grid { display: grid; gap: 26px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,.05); }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimonials */
.testimonial { text-align: center; }
.testimonial img.thumb { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }
.testimonial .stars { color: var(--accent-2); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 8px; }
.testimonial blockquote { margin: 0 0 14px; font-style: italic; }
.testimonial .who { font-weight: 700; margin: 0; }
.testimonial .role { color: var(--muted); font-size: .9rem; margin: 0; }

/* Events */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.event-item { display: grid; grid-template-columns: 92px 1fr 150px; gap: 22px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid rgba(255,255,255,.05); }
.event-date { text-align: center; background: linear-gradient(160deg, var(--accent), #b3205a); border-radius: 12px; padding: 12px 6px; color: #fff; }
.event-date .m { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.event-date .d { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.event-body h3 { margin: 0 0 4px; }
.event-body .time { color: var(--accent-2); font-weight: 600; font-size: .95rem; }
.event-body p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.event-thumb img { border-radius: 10px; max-height: 90px; width: auto; margin-left: auto; object-fit: contain; }
.no-events { text-align: center; color: var(--muted); padding: 30px 0; }

/* Forms */
.contact-form label { display: block; font-weight: 600; margin-bottom: 14px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid rgba(255,255,255,.15); font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice.ok { background: rgba(60,190,120,.18); border: 1px solid #3cbe78; }
.notice.err { background: rgba(255,61,127,.18); border: 1px solid var(--accent); }

/* Event logos: always on white */
.event-thumb img {
  background: #fff;
  padding: 8px;
  border-radius: 10px;
}

/* Calendar page: white background */
body.page-slug-calendar #content { background: #fff; color: #1b1b2a; }
body.page-slug-calendar .page-title-wrap h1 { color: #1b1b2a; }
body.page-slug-calendar .event-item { background: #fff; border: 1px solid #e3e3ec; box-shadow: 0 2px 10px rgba(20,20,40,.06); }
body.page-slug-calendar .event-body h3 a,
body.page-slug-calendar .event-body h3 { color: #1b1b2a; }
body.page-slug-calendar .event-body h3 a:hover { color: var(--accent); }
body.page-slug-calendar .event-body .time { color: #c2185b; }
body.page-slug-calendar .event-body p,
body.page-slug-calendar .no-events { color: #555; }
body.page-slug-calendar .event-thumb img { border: 1px solid #e3e3ec; }

/* Page content */
.page-title-wrap { padding: 56px 0 10px; text-align: center; }
.entry-content { max-width: 800px; margin-inline: auto; }
.entry-content img { border-radius: 10px; }

/* Footer */
.site-footer { background: #07070c; padding: 34px 0; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid rgba(255,255,255,.06); }
.to-top { position: fixed; right: 18px; bottom: 18px; background: var(--accent); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; opacity: .85; }

@media (max-width: 860px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 16px 4%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .event-item { grid-template-columns: 72px 1fr; }
  .event-thumb { display: none; }
  .header-social { display: none; }
}
