/* A&G Music Center — static rebuild
   Dark, moody, backstage palette — near-black warm brown as the base, amber
   as the hot accent (pulled from the existing Reverb widget CSS, not
   invented), sage as a quiet secondary. Went dark site-wide, not just the
   hero, per direct feedback that a light tan base still read as generic
   "brochure." Headings use a soft serif (Fraunces) for personality; body
   text stays a clean sans so it reads as trustworthy to parents booking
   lessons, not just atmospheric. */

:root {
  --color-bg: #1c140e;
  --color-bg-alt: #251a12;
  --color-card: #2c2018;
  --color-text: #ede1cf;
  --color-text-muted: #b3a28c;
  --color-border: #4a382a;
  --color-walnut: #4a3427;
  --color-walnut-dark: #120c08;
  --color-accent: #e28a1c;
  --color-accent-dark: #c26f0a;
  --color-sage: #8ba178;
  --color-sage-dark: #6b7c5e;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.6;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; color: #f0a940; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top phone bar */
.top-bar {
  background: var(--color-walnut-dark);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}
.top-bar a { color: #fff; font-weight: bold; }

/* Header */
header.site-header {
  background: var(--color-walnut-dark);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-logo img { height: 60px; display: block; }
.social-links a { margin-left: 0.75rem; color: var(--color-text-muted); font-size: 0.9rem; }
.social-links a:hover { color: var(--color-accent); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav > ul > li { position: relative; }
nav.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}
nav.main-nav > ul > li > a:hover { color: var(--color-accent); }

nav.main-nav .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--color-card); border: 1px solid var(--color-border); min-width: 200px; padding: 0.5rem 0; z-index: 10; list-style: none; margin: 0; }
nav.main-nav li:hover .dropdown { display: block; }
nav.main-nav .dropdown li { padding: 0; }
nav.main-nav .dropdown a { display: block; padding: 0.4rem 1rem; font-weight: 400; white-space: nowrap; color: var(--color-text); }
nav.main-nav .dropdown a:hover { color: var(--color-accent); }

/* Mobile nav toggle — CSS-only "checkbox hack," no JS needed. Hidden
   entirely above the mobile breakpoint; see the media query below for
   the collapsed/expanded states. */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  cursor: pointer;
}
.nav-toggle-label span { display: block; height: 3px; background: var(--color-text); border-radius: 2px; }

/* Hero — real store photos now in, replacing the Unsplash stand-in.
   Default (no photo yet for this page) falls back to solid walnut. */
.hero {
  background: var(--color-walnut-dark);
  padding: 5.5rem 0;
  text-align: center;
}
.hero-home {
  background:
    linear-gradient(rgba(30, 20, 13, 0.72), rgba(30, 20, 13, 0.85)),
    url("../images/hero-home.jpg") center/cover no-repeat;
}
.hero-lessons {
  background:
    linear-gradient(rgba(30, 20, 13, 0.72), rgba(30, 20, 13, 0.85)),
    url("../images/hero-lessons.jpg") center/cover no-repeat;
}
.hero-consignment {
  background:
    linear-gradient(rgba(30, 20, 13, 0.72), rgba(30, 20, 13, 0.85)),
    url("../images/hero-consignment.jpg") center/cover no-repeat;
}
.hero-repair {
  background:
    linear-gradient(rgba(30, 20, 13, 0.72), rgba(30, 20, 13, 0.85)),
    url("../images/pete-sollberger.jpg") center/cover no-repeat;
}
.hero-services {
  background:
    linear-gradient(rgba(30, 20, 13, 0.72), rgba(30, 20, 13, 0.85)),
    url("../images/hero-services.jpg") center/cover no-repeat;
}
.hero-about {
  background:
    linear-gradient(rgba(30, 20, 13, 0.72), rgba(30, 20, 13, 0.85)),
    url("../images/hero-about.jpg") center/cover no-repeat;
}
.hero h1 {
  color: #fdf6ea;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 0;
}
.hero h1::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--color-accent);
  margin: 1.25rem auto 1.5rem;
}
.hero p { max-width: 700px; margin: 0 auto 1.5rem; color: #d9cab2; font-size: 1.05rem; }
.hero .tags { color: var(--color-accent) !important; }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--color-accent-dark); text-decoration: none; transform: translateY(-2px); }

/* Generic section */
section { padding: 3.5rem 0; }
section.alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-accent); border-bottom: 1px solid var(--color-accent); }
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1.75rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}
section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-sage);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card:nth-child(3n+2) { border-top-color: var(--color-sage); }
.card:nth-child(3n+3) { border-top-color: var(--color-walnut); }
.card h3 { margin-top: 0; }

/* Instructor card (spotlight + bios) */
.instructor-card {
  display: flex;
  gap: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.instructor-card img { width: 160px; height: 200px; object-fit: cover; border-radius: 4px; }
.instructor-card .tags { color: var(--color-sage); font-size: 0.9rem; margin: 0.25rem 0 0.75rem; font-weight: 600; }

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.instructor-tile { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; }
.instructor-tile img { width: 100%; height: 220px; object-fit: cover; display: block; }
.instructor-tile .tile-body { padding: 1rem; }
.instructor-tile .tags { color: var(--color-sage); font-size: 0.85rem; font-weight: 600; }

/* Store info — map now stretches to match the hours column's full height
   instead of sitting at a fixed 300px (which left it short of the address
   block on wider viewports). Falls back to a fixed height at the mobile
   breakpoint below, where the columns stack and there's no sibling height
   to stretch to. */
.store-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.store-info h2 { margin-top: 0; }
.store-info iframe { width: 100%; height: 100%; min-height: 300px; border: 0; border-radius: 4px; filter: grayscale(0.3) contrast(1.05); }
table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 0.4rem 0; border-bottom: 1px solid var(--color-border); }
table.hours td:last-child { text-align: right; color: var(--color-text-muted); }

/* Brands We Carry (homepage only) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
.brand-chip {
  background: #fdf8f0;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  filter: grayscale(1) opacity(0.75);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.brand-chip:hover { filter: grayscale(0) opacity(1); transform: translateY(-2px); }
.brand-chip img { max-width: 100%; max-height: 55px; object-fit: contain; }

/* Footer */
footer.site-footer {
  background: var(--color-walnut-dark);
  color: #f0e8db;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--color-sage);
}
footer.site-footer a { color: #fff; }

@media (max-width: 640px) {
  .store-info { grid-template-columns: 1fr; }
  .header-inner { position: relative; flex-direction: column; align-items: flex-start; }

  .nav-toggle-label { display: flex; position: absolute; top: 1.4rem; right: 1.5rem; }

  .main-nav { display: none; width: 100%; order: 3; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .main-nav > ul > li { width: 100%; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }

  /* Dropdowns can't rely on :hover on touch devices, so show them
     inline and always-expanded under their parent item instead. */
  .main-nav .dropdown { display: block; position: static; border: none; box-shadow: none; background: none; padding-left: 1rem; margin: 0.4rem 0 0; }
  .main-nav .dropdown a { padding: 0.3rem 0; }

  .social-links { order: 4; }
}
