/* ============================================================
   RILEY'S GUITAR SERVICES — STYLES
   Mobile-first, dark theme. Palette + type scale as CSS variables.
   ============================================================ */

:root {
  /* Palette (dark theme) */
  --fiesta-red: #ef4440;
  --fiesta-red-dark: #c42622;
  --accent-purple: #6d3bd6;
  --accent-purple-light: #9d7bf2;
  --electric-blue: #4cc9f0;

  --bg: #121014;
  --bg-alt: #1a1620;
  --surface: #1e1a24;
  --near-black: #0d0b10;
  --text: #f5f1ea;
  --text-soft: #c7c0cf;
  --border: rgba(255, 255, 255, 0.1);

  /* Type */
  --font-display: "Space Grotesk", "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", "DM Sans", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --med: 420ms;

  /* Layout */
  --container: 1120px;
  --radius: 18px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; font-weight: 600; color: var(--text); }
p { line-height: 1.6; color: var(--text-soft); margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fiesta-red);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 2px;
}

/* ---------- Scroll progress bar (guitar string) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress__fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    var(--electric-blue) 0 2px,
    var(--fiesta-red) 2px 4px
  );
  box-shadow: 0 0 6px rgba(239, 68, 64, 0.6);
  transform-origin: left;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding var(--med) var(--ease), background var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(13, 11, 16, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__brand span { color: var(--fiesta-red); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--bg);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  transform: translateX(100%);
  transition: transform var(--med) var(--ease);
}
.nav__menu.is-open { transform: translateX(0); }
.nav__menu a { padding: 6px 4px; color: var(--text); }
.nav__menu a:hover, .nav__menu a:focus-visible { color: var(--fiesta-red); }
.nav__cta {
  background: var(--fiesta-red);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 1rem;
  margin-top: 0.5rem;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    background: none;
    transform: none;
    gap: 1.5rem;
    font-size: 0.92rem;
    flex-wrap: nowrap;
  }
  .nav__menu li { display: flex; align-items: center; }
  .nav__cta { padding: 9px 18px; font-size: 0.88rem; margin-top: 0; }
}

@media (min-width: 900px) and (max-width: 1140px) {
  .nav__brand { font-size: 0.92rem; }
  .nav__menu { gap: 1.05rem; font-size: 0.84rem; }
  .nav__cta { padding: 8px 14px; font-size: 0.82rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(135deg, var(--fiesta-red), var(--accent-purple));
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 59, 214, 0.35);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(109, 59, 214, 0.5); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn--ghost:hover { background: var(--text); color: var(--near-black); transform: translateY(-3px); }
.btn--ghost:active { transform: translateY(0) scale(0.98); }

/* ---------- Hero (colour background only, no photo) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 60px;
  background: var(--near-black);
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a1230 0%, var(--near-black) 45%, #3a0f1a 100%);
  background-size: 200% 200%;
  animation: heroGradient 14s ease infinite;
}
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero__strings {
  position: absolute; inset: 0;
  display: flex;
  justify-content: space-evenly;
  padding: 0 10%;
}
.hero__strings span {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(76, 201, 240, 0.35), transparent);
  animation: stringShimmer 3.5s ease-in-out infinite;
}
.hero__strings span:nth-child(odd) { animation-delay: 0.6s; }
.hero__strings span:nth-child(2) { background: linear-gradient(to bottom, transparent, rgba(239, 68, 64, 0.35), transparent); }
.hero__strings span:nth-child(4) { background: linear-gradient(to bottom, transparent, rgba(157, 123, 242, 0.35), transparent); }
@keyframes stringShimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--electric-blue);
  margin: 0 0 1rem;
}

.hero__headline {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero__headline .line { display: block; overflow: hidden; }
.hero__headline .word { display: inline-block; }
.word--accent { color: var(--fiesta-red); }

.hero__bio {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn--ghost { border-color: #fff; color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--near-black); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.6rem;
  color: var(--text);
}
.section__lede {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  color: var(--text-soft);
}

/* ---------- Cards / grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  border: 1px solid var(--border);
  position: relative;
  transform: translateZ(0);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.card--tilt:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 0 20px 40px rgba(109, 59, 214, 0.25), 0 0 0 1px rgba(239, 68, 64, 0.2);
  border-color: transparent;
}
.card__icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.card p { margin: 0; font-size: 0.95rem; }

.honest-note {
  margin-top: 2.5rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: rgba(109, 59, 214, 0.12);
  border-left: 4px solid var(--accent-purple-light);
}
.honest-note h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.honest-note ul { margin: 0 0 0.8rem 1.2rem; }
.honest-note li { margin-bottom: 0.3rem; color: var(--text-soft); }
.honest-note p { margin: 0; font-size: 0.9rem; }

/* ---------- Prices (quote-only panel) ---------- */
.quote-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  max-width: 560px;
}
.quote-panel p { margin: 0 0 1rem; font-size: 1.05rem; }
.quote-panel__note { font-size: 0.9rem; opacity: 0.85; }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
}
.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fiesta-red), var(--accent-purple));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.steps__item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps__item p { margin: 0; font-size: 0.9rem; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 840px) { .about { grid-template-columns: 0.9fr 1.1fr; } }
.about__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.about__image { width: 100%; height: 100%; object-fit: cover; }
.about__content .section__title { margin-bottom: 1rem; }
.about__counter {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.about__counter-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--fiesta-red);
  font-weight: 700;
}
.about__counter-label {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Gallery (kept for later, unused while section is off) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--med) var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Reviews (kept for later, unused while section is off) ---------- */
.reviews-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  background: var(--surface);
  max-width: 560px;
}
.reviews-placeholder p { margin: 0 0 0.5rem; }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.contact__note { font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
}
.footer__inner { text-align: center; }
.footer__brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}
.footer__location { margin: 0 0 0.8rem; }
.footer__link { color: var(--electric-blue); font-weight: 600; }
.footer__link:hover { text-decoration: underline; }

/* ---------- Scroll reveal base state (JS adds .is-visible) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; }
  .hero__strings span { animation: none; opacity: 0.6; }
}
