/* ============================================
   Adi Malka Drums — Design Tokens
   Palette: Ink Purple + Brass Yellow (dark mode)
   ============================================ */
:root {
  /* Color */
  --ink-900: #17141F;      /* main background — deep aubergine-black */
  --ink-700: #221C30;      /* secondary surface / alt sections / cards */
  --ink-500: #362B4A;      /* borders, subtle separation on dark */
  --yellow: #E8B93A;       /* primary accent — buttons, CTAs, eyebrows */
  --yellow-light: #F0CC5E;
  --purple: #7B5FA6;       /* secondary accent — links, highlights */
  --purple-light: #9A82C4;
  --text: #F3EFE6;         /* warm off-white */
  --text-dim: rgba(243, 239, 230, 0.7);
  --line: rgba(243, 239, 230, 0.14);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 4px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--purple-light); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); color: var(--text-dim); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: var(--space-1);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--ink-900); font-weight: 600; }
.btn-primary:hover { background: var(--yellow-light); color: var(--ink-900); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.cta-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-2) 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-900);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a { text-decoration: none; opacity: 0.85; color: var(--text); }
.nav-links a:hover { opacity: 1; color: var(--yellow); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--ink-900);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
  }
}

/* ---------- Hero (video background) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-900) center/cover no-repeat;
  color: var(--text);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,20,0.55) 0%, rgba(15,12,20,0.94) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-5) var(--space-3) var(--space-5);
  width: 100%;
}
.hero-content .eyebrow { color: var(--yellow-light); }
.hero-content p.lede {
  max-width: 42ch;
  font-size: 1.1rem;
  color: var(--text-dim);
}
.hero-cta { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

/* ---------- Beat divider (signature element) ---------- */
.beat-divider {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 40px;
  margin: var(--space-3) auto 0;
  padding: var(--space-5) 0 0;
}
.beat-divider span {
  width: 4px;
  background: var(--yellow);
  border-radius: 2px;
  animation: beat 1.6s ease-in-out infinite;
}
.beat-divider span:nth-child(1) { height: 12px; animation-delay: 0s; }
.beat-divider span:nth-child(2) { height: 26px; animation-delay: 0.15s; }
.beat-divider span:nth-child(3) { height: 38px; animation-delay: 0.3s; }
.beat-divider span:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.beat-divider span:nth-child(5) { height: 30px; animation-delay: 0.6s; }
.beat-divider span:nth-child(6) { height: 14px; animation-delay: 0.75s; }
@keyframes beat {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .beat-divider span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
section { padding: var(--space-6) 0; }
@media (max-width: 700px) {
  section { padding: var(--space-4) 0; }
}
.section-alt { background: var(--ink-700); }
.section-dark { background: var(--ink-900); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark .eyebrow { color: var(--yellow-light); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-3); }
}

.photo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-photo { aspect-ratio: 1000/1400; }
@media (max-width: 800px) {
  .bio-photo { width: 67.5%; aspect-ratio: 1/1; margin: 0 auto; }
  .gift-photo { order: -1; width: 60%; margin: 0 auto var(--space-3); }
  .contact-info {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
  }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .pricing-grid.pricing-grid-3 { grid-template-columns: 1fr; } }
.price-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.price-card .amount {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--purple-light);
  margin: var(--space-1) 0;
}
@media (max-width: 700px) {
  .pricing-grid.pricing-grid-3 { gap: 0.75rem; }
  .price-card { padding: 1.1rem 1.25rem; }
  .price-card h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
  .price-card .amount { font-size: 1.5rem; margin: 0.15rem 0; }
  .price-card p { margin-bottom: 0; font-size: 0.9rem; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.stars { color: var(--yellow); font-family: var(--font-mono); letter-spacing: 2px; }
.testimonial cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: var(--space-2);
  color: var(--text-dim);
}

/* ---------- Gallery (horizontal scroll) ---------- */
.gallery-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-1) var(--space-1) var(--space-3);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll img,
.gallery-scroll .gallery-item {
  flex: 0 0 auto;
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  cursor: pointer;
}
.gallery-scroll .gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-scroll .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-scroll img:hover,
.gallery-scroll .gallery-item:hover {
  border-color: var(--yellow);
}
@media (max-width: 600px) {
  .gallery-scroll img,
  .gallery-scroll .gallery-item { width: 220px; height: 270px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: min(90vw, 700px);
  max-height: 90vh;
}
.lightbox-inner img,
.lightbox-inner video {
  display: block;
  max-width: min(90vw, 700px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
}
.lightbox-inner img[hidden],
.lightbox-inner video[hidden] {
  display: none !important;
}
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: transparent;
  border: 1px solid var(--line-on-dark, rgba(243,239,230,0.3));
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: var(--space-1); }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: var(--space-2); max-width: 560px; }
label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-dim);
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink-900);
  color: var(--text);
  padding: var(--space-5) 0 var(--space-3);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
footer .wrap:not(.footer-bottom) {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 700px) { footer .wrap:not(.footer-bottom) { grid-template-columns: 1fr; gap: var(--space-3); } }
footer a { text-decoration: none; opacity: 0.85; color: var(--text); }
footer a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Visually-hidden skip link, shown on focus */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink-900);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); }
