/* ================================================================
   Geiger Piano — Main Stylesheet
   ================================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a  { color: inherit; }

/* ── CSS variables (overridden inline from PHP theme) ── */
:root {
  --red:       #cc0000;
  --red-dark:  #880000;
  --red-glow:  rgba(204,0,0,.25);
  --border:    rgba(255,255,255,.1);
  --card-bg:   rgba(255,255,255,.04);
  --ease:      .3s ease;
}

/* ── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.7; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--red-dark);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo a  { text-decoration: none; }
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity var(--ease);
}
.logo a:hover .logo-img { opacity: .85; }

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav ul li a {
  color: #fff; text-decoration: none;
  font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.main-nav ul li a:hover,
.main-nav ul li a.active { color: var(--red); border-color: var(--red); }
.main-nav ul li a.admin-link {
  background: var(--red); color: #fff;
  padding: .3rem .9rem; border-radius: 3px; border: none;
}
.main-nav ul li a.admin-link:hover { background: var(--red-dark); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; transition: var(--ease);
}

/* ── Main ──────────────────────────────────────────────── */
.main-content { padding-top: 70px; }

/* ── Generic section wrapper ──────────────────────────── */
.section      { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
  position: relative; display: inline-block;
}
.section-heading::after {
  content: ''; display: block; height: 3px;
  background: var(--red); margin-top: .4rem;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--red-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 2rem; }
.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: .08em; line-height: 1;
  margin-bottom: .75rem;
  text-shadow: 0 0 80px var(--red-glow);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,.65);
  letter-spacing: .25em; text-transform: uppercase;
  font-family: var(--body-font); margin-bottom: 2.5rem;
}
.hero-cta { margin-top: 1rem; }
.hero-scroll {
  position: absolute; bottom: calc(2rem - 20px); left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.35);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero-scroll::before {
  content: '↓'; display: block; font-size: 1.2rem;
  text-align: center; margin-bottom: .25rem;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

/* ── Text block ────────────────────────────────────────── */
.text-section {
  background: var(--card-bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.text-section p {
  max-width: 820px;
  font-size: 1.05rem; line-height: 1.9;
  color: rgba(255,255,255,.82);
}

/* ── Rich Content ──────────────────────────────────────── */
.rich-content-body { max-width: 860px; font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,.82); }
.rich-content-body h1, .rich-content-body h2, .rich-content-body h3,
.rich-content-body h4, .rich-content-body h5, .rich-content-body h6 {
  color: var(--heading-color); font-family: var(--heading-font); margin: 1.5rem 0 .6rem;
}
.rich-content-body p  { margin-bottom: 1rem; }
.rich-content-body ul, .rich-content-body ol { padding-left: 1.6rem; margin-bottom: 1rem; }
.rich-content-body li { margin-bottom: .35rem; }
.rich-content-body a  { color: var(--red); text-decoration: underline; }
.rich-content-body img {
  max-width: 100%; height: auto; border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0,0,0,.45); margin: .75rem 0;
}
.rich-content-body img.align-left  { float: left;  margin: .5rem 1.5rem .75rem 0; }
.rich-content-body img.align-right { float: right; margin: .5rem 0 .75rem 1.5rem; }
.rich-content-body::after { content:''; display:table; clear:both; }

/* ── Gallery ───────────────────────────────────────────── */
.gallery-section { padding: 5rem 0; overflow: hidden; }
.gallery-section .section-inner { padding: 0 2rem; margin-bottom: 2.5rem; }
.gallery-strip {
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.gallery-track {
  display: flex; gap: 12px;
  animation: scroll-gallery 35s linear infinite;
  width: max-content;
}
.gallery-strip:hover .gallery-track { animation-play-state: paused; }
@keyframes scroll-gallery {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.gallery-item {
  flex-shrink: 0; width: 300px; height: 220px;
  overflow: hidden; border-radius: 4px;
  border: 1px solid var(--border); position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff; padding: .5rem .75rem; font-size: .82rem;
  opacity: 0; transition: opacity var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-placeholder {
  flex-shrink: 0; width: 300px; height: 220px;
  border: 1px dashed rgba(255,255,255,.15); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.25); font-size: .8rem;
}

/* ── Services grid ─────────────────────────────────────── */
.services-section { background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: .5rem;
}
.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 1.75rem 1.5rem; text-align: center;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover { border-color: rgba(204,0,0,.5); transform: translateY(-4px); }
.service-icon { font-size: 2.25rem; margin-bottom: .85rem; display: block; }
.service-card h3 { color: var(--heading-color); font-family: var(--heading-font); font-size: 1.05rem; margin-bottom: .6rem; }
.service-card p  { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.7; }

/* ── Contact page ──────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.contact-info-item {
  display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start;
}
.contact-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-text { color: rgba(255,255,255,.82); }
.contact-info-text strong { color: #fff; display: block; margin-bottom: .15rem; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { max-width: 820px; }
.faq-item  { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: #fff; font-family: var(--body-font); font-size: 1.05rem;
  padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; transition: color var(--ease);
}
.faq-question:hover { color: var(--red); }
.faq-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border: 1px solid var(--red); border-radius: 50%;
  color: var(--red); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  color: rgba(255,255,255,.75); line-height: 1.85;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.25rem; }

/* ── Forms ─────────────────────────────────────────────── */
.form-group          { margin-bottom: 1.5rem; }
.form-group label    {
  display: block; margin-bottom: .4rem;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .75rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15); border-radius: 4px;
  color: #fff; font-family: var(--body-font); font-size: 1rem;
  transition: border-color var(--ease), background var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.1); }
.form-group textarea { height: 150px; resize: vertical; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 2rem;
  background: var(--red); color: #fff;
  border: none; border-radius: 4px;
  font-family: var(--body-font); font-size: .9rem;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover        { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px var(--red-glow); }
.btn-outline      { background: transparent; border: 1px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-sm           { padding: .4rem 1.1rem; font-size: .8rem; }

/* ── Alerts ────────────────────────────────────────────── */
.alert         { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; }
.alert-success { background: rgba(0,180,0,.12); border: 1px solid rgba(0,180,0,.4); color: #88ee88; }
.alert-error   { background: rgba(204,0,0,.12); border: 1px solid rgba(204,0,0,.4); color: #ff9999; }
.alert-info    { background: rgba(0,120,200,.12); border: 1px solid rgba(0,120,200,.4); color: #88bbff; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: rgba(0,0,0,.6);
  border-top: 1px solid var(--red-dark);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.1rem; text-align: center;
}
.footer-logo  { font-family: var(--heading-font); font-size: 1.5rem; color: var(--red); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--ease); font-size: .9rem; }
.footer-links a:hover { color: var(--red); }
.footer-copy    { color: rgba(255,255,255,.3); font-size: .82rem; }
.footer-tagline { color: rgba(255,255,255,.4); font-size: .88rem; margin: -.5rem 0 .25rem; }
.footer-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; font-size: .88rem; color: rgba(255,255,255,.45); }
.footer-contact a { color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--ease); }
.footer-contact a:hover { color: var(--red); }
.footer-admin-link { color: rgba(255,255,255,.2); text-decoration: none; transition: color var(--ease); }
.footer-admin-link:hover { color: rgba(255,255,255,.6); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle  { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid var(--red-dark); padding: .75rem 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 1.5rem; }
  .main-nav ul li a {
    display: block; padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section { padding: 3.5rem 1.5rem; }
}
