/* =============================================
   BayStrings — Violin Community Site
   Minimal, polished static CSS
   ============================================= */

:root {
  --bg:          #faf9f7;
  --bg-alt:      #f2ede6;
  --surface:     #ffffff;
  --border:      #e0d8cc;
  --text:        #1a1714;
  --text-muted:  #6b5f52;
  --accent:      #7b3f1e;       /* warm mahogany — like the violin body */
  --accent-dark: #5c2e12;
  --accent-light:#f0e0d0;
  --gold:        #c8982a;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --font-body:   'Georgia', 'Times New Roman', serif;
  --font-sans:   system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: .5rem; }
.brand-icon { font-size: 1.5rem; line-height: 1; }
.brand-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: .02em;
}
.brand-tagline {
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color .15s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #140d09;
}
.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 8, 5, 0.14) 0%, rgba(12, 8, 5, 0.14) 34%, rgba(12, 8, 5, 0.56) 62%, rgba(12, 8, 5, 0.82) 100%),
    linear-gradient(0deg, rgba(10, 5, 2, 0.16), rgba(10, 5, 2, 0.16)),
    url('assets/Roger_group_shot_violin_section.jpg');
  background-size: cover;
  background-position: 28% center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,2,.72) 0%, rgba(10,5,2,.18) 48%, rgba(10,5,2,0) 100%);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  padding: 2.75rem 1.5rem;
  color: #fff;
}
.hero-text h1,
.hero-text p,
.hero-text .btn-row {
  width: min(100%, 480px);
}
.hero-text h1 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: normal;
  margin-bottom: .5rem;
  letter-spacing: .01em;
}
.hero-text p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,.86);
  max-width: 500px;
}
.hero-text .btn-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: .55rem 1.3rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  margin-right: .5rem;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }
.btn-sm {
  padding: .35rem .9rem;
  font-size: .82rem;
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  margin-top: .75rem;
  display: inline-block;
}
.btn-sm:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: normal;
  color: var(--accent);
  margin-bottom: .4rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: .65rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: .4rem;
}

/* =============================================
   EVENTS GRID
   ============================================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  transition: box-shadow .2s;
}
.event-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.featured-event { border-color: var(--gold); border-width: 2px; }

.event-date-badge {
  background: var(--accent);
  color: #fff;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem .5rem;
  flex-shrink: 0;
}
.featured-event .event-date-badge { background: var(--gold); }
.event-date-badge .month {
  font-size: .65rem;
  letter-spacing: .1em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: .85;
}
.event-date-badge .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-body { padding: 1.2rem 1.2rem 1rem; flex: 1; min-width: 0; }

.event-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 20px;
}
.tag-orchestra  { background: #e8e0f5; color: #4a2d7a; }
.tag-chamber    { background: #dff0e8; color: #1a5c38; }
.tag-violin     { background: #fde8d8; color: #7b3f1e; }
.tag-free       { background: #fef6d8; color: #7a5c00; }
.tag-featured   { background: var(--gold); color: #fff; }

.event-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: .1rem;
}
.event-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  font-style: italic;
}

.event-meta {
  font-size: .84rem;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-meta li {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
  align-items: flex-start;
  min-width: 0;
}
.meta-icon { flex-shrink: 0; }

.event-note {
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-left: 3px solid var(--border);
  padding: .4rem .6rem;
  border-radius: 0 4px 4px 0;
  margin-top: .75rem;
  line-height: 1.5;
}

.events-disclaimer {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  margin-top: .5rem;
}

/* =============================================
   LEARN / INFO CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-card-img.placeholder-img {
  height: 160px;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-alt));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
  gap: .4rem;
}
.placeholder-label { font-size: .72rem; color: var(--text-muted); text-align: center; padding: 0 .5rem; }
.info-card-body { padding: 1.1rem; }
.level-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 20px;
  margin-bottom: .5rem;
}
.level-beginner    { background: #d8f0e0; color: #1a5c38; }
.level-intermediate{ background: #fde8d8; color: #7b3f1e; }
.level-advanced    { background: #e8e0f5; color: #4a2d7a; }
.info-card-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.info-card-body p  { font-size: .86rem; color: var(--text-muted); margin-bottom: .6rem; }
.link-arrow { font-size: .84rem; font-weight: 600; color: var(--accent); }

/* =============================================
   RESOURCES
   ============================================= */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.resource-item h4 {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: .4rem;
  margin-bottom: .8rem;
}
.resource-item li { margin-bottom: .5rem; font-size: .88rem; color: var(--text-muted); }
.resource-item a { color: var(--text); }
.resource-item a:hover { color: var(--accent); }

/* =============================================
   ABOUT
   ============================================= */
.about-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.about-img.placeholder-img {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
}
.about-text { flex: 1; min-width: 240px; }
.about-text h2 {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: .75rem;
}
.about-text p { font-size: .95rem; margin-bottom: .8rem; color: var(--text-muted); }
.disclaimer-small { font-size: .8rem !important; font-style: italic; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,.7);
  padding: 2rem 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
  margin-bottom: .6rem;
}
.footer-links { font-size: .85rem; margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.7); margin: 0 .2rem; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: .75rem; opacity: .6; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .hero {
    min-height: 320px;
  }
  .hero-image {
    background-position: 36% center;
  }
  .hero::after {
    background: linear-gradient(to top, rgba(10,5,2,.86) 0%, rgba(10,5,2,.24) 58%, rgba(10,5,2,0) 100%);
  }
  .hero-text {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
  }
  .hero-text h1,
  .hero-text p,
  .hero-text .btn-row {
    width: 100%;
  }
  .events-grid, .cards-grid, .resources-grid { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; }
  .about-img.placeholder-img { width: 160px; height: 160px; }
}
