/* ============================================================
   LITTLE DRUM CO. — STYLES
   Apple-inspired refined minimalism. Edit cautiously.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #0a0a0a;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-light-muted: rgba(255, 255, 255, 0.65);
  --border: rgba(0, 0, 0, 0.08);
  --link: #0066cc;
  --link-hover: #0052a3;
  --max-w: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-logo-img {
  /* Logo is now trimmed to its ink (was 74% whitespace), so this height is
     real wordmark instead of padding. Lowered from 76px to match. */
  height: 34px;
  width: auto;
  display: block;
}

.nav-logo-text {
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

@media (max-width: 600px) {
  .nav { padding: 6px 20px; }
  .nav-logo-img { height: 26px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; }
}

/* ============================================================
   COMMON SECTION ELEMENTS
   ============================================================ */
.section {
  padding: 96px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  max-width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.section-dark .section { max-width: var(--max-w); margin: 0 auto; padding: 0; }

.section-light-grey { background: var(--bg-soft); max-width: 100%; }
.section-light-grey > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow-light { color: var(--text-light-muted); }

.section-title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}

.section-title-light { color: var(--text-light); }

.section-sub {
  font-size: 21px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.4;
}

.section-sub-light { color: var(--text-light-muted); }

.link-cta {
  display: inline-block;
  font-size: 17px;
  font-weight: 400;
  color: var(--link);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.link-cta:hover { color: var(--link-hover); }

@media (max-width: 700px) {
  .section { padding: 64px 24px; }
  .section-title { font-size: 38px; }
  .section-sub { font-size: 17px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 32px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 84px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.35;
}

.hero-visual {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.hero-visual .hero-img,
.hero-visual .hero-svg,
.hero-visual img,
.hero-visual svg {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
}

.hero-visual .hero-img {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

@media (max-width: 700px) {
  .hero { padding: 60px 24px 0; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 19px; }
  .hero-visual { margin-top: 48px; padding-bottom: 56px; }
  .hero-visual .hero-img, .hero-visual .hero-svg, .hero-visual img, .hero-visual svg { max-width: 360px; }
}

/* ============================================================
   DARK BAND (between hero and gallery)
   ============================================================ */
.dark-band {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 32px;
  text-align: center;
}

.band-title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.band-title em { color: rgba(255, 255, 255, 0.7); }

.band-sub {
  font-size: 21px;
  color: var(--text-light-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .dark-band { padding: 80px 24px; }
  .band-title { font-size: 38px; }
  .band-sub { font-size: 17px; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.drum-card {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-card:hover { transform: translateY(-4px); }

.drum-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-card:hover img { transform: scale(1.04); }

/* Show placeholder when image fails */
.drum-card img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-soft);
}

.drum-card:has(img:not([src]):not([src=""])) {
  /* fallback styling */
}

.drum-card img:not([src*=".jpg"]):not([src*=".jpeg"]):not([src*=".png"]):not([src*=".webp"]) {
  display: none;
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
  .drum-card { border-radius: 12px; }
}

/* ============================================================
   SOUND
   ============================================================ */
.sound { padding-top: 96px; padding-bottom: 96px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.process-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card:hover { transform: translateY(-4px); }

.process-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .process-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .process-card { border-radius: 14px; }
}

/* ============================================================
   MAKERS
   ============================================================ */
.makers-photo {
  margin: 56px auto 40px;
  max-width: 520px;
  border-radius: 22px;
  overflow: hidden;
}

.makers-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.makers-bios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.maker-bio-card {
  padding: 4px;
}

.maker-bio-card h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.maker-role {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.maker-bio-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .makers-photo { margin-top: 36px; margin-bottom: 28px; max-width: 100%; border-radius: 16px; }
  .makers-photo img { border-radius: 16px; }
  .makers-bios { grid-template-columns: 1fr; gap: 24px; }
  .maker-bio-card h3 { font-size: 24px; }
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chat-widget {
  max-width: 460px;
  margin: 56px auto 0;
  background: #ffffff;
  border: 0.5px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 540px;
  text-align: left;
}

.chat-head {
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.chat-name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.chat-status { font-size: 12px; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }

.chat-msgs {
  padding: 18px 18px 8px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 18px;
  animation: bubble-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bubble-bot {
  background: var(--bg-soft);
  color: var(--text);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}

.bubble-user {
  background: var(--text);
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}

.bubble-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 13px 14px;
}
.bubble-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  animation: kit-typing 1.2s infinite;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes kit-typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 0.9;  transform: translateY(-3px); }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-options {
  padding: 12px 18px 18px;
  border-top: 0.5px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  align-items: center;
}

.chat-opt {
  font-size: 13px;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 0.5px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-opt:hover { background: var(--bg-soft); border-color: rgba(0, 0, 0, 0.18); }
.chat-opt:active { transform: scale(0.97); }

.chat-input {
  flex: 1;
  min-width: 160px;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.chat-input.invalid { border-color: #d93025; }

.chat-send {
  font-size: 13px;
  font-family: inherit;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.chat-send:hover { opacity: 0.85; }
.chat-send:active { transform: scale(0.97); }

@media (max-width: 600px) {
  .chat-widget { height: 580px; border-radius: 18px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: left;
  border-top: 0.5px solid var(--border);
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
  padding: 22px 4px;
}

.faq-item summary {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 32px 32px;
  border-top: 0.5px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-tag {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-contact a {
  font-size: 14px;
  color: var(--link);
}

.footer-contact a:hover { color: var(--link-hover); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

/* ============================================================
   IMAGE FALLBACK STYLING
   When images don't exist yet, show clean grey placeholders.
   ============================================================ */
img {
  background: linear-gradient(135deg, #f0f0f2, #e8e8ea);
}

.section-dark img {
  background: linear-gradient(135deg, #1a1a1a, #141414);
}
