/* Abingdon Cello Tutor — stylesheet
   Theme: varnished cello wood, rosin gold, manuscript paper and stave lines. */

:root {
  --wood: #6b2a12;
  --wood-dark: #2e1006;
  --wood-mid: #4a1a09;
  --wood-light: #9a4a22;
  --gold: #d4a656;
  --gold-soft: #ead1a0;
  --paper: #fffaf1;
  --cream: #f6eee0;
  --ink: #2a1d16;
  --muted: #6e5d52;
  --line: #e4d6c0;
  --radius: 6px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* five gold stave lines */
  --stave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='30'%3E%3Cg stroke='%23d4a656' stroke-width='1'%3E%3Cline x1='0' y1='3.5' x2='10' y2='3.5'/%3E%3Cline x1='0' y1='9.5' x2='10' y2='9.5'/%3E%3Cline x1='0' y1='15.5' x2='10' y2='15.5'/%3E%3Cline x1='0' y1='21.5' x2='10' y2='21.5'/%3E%3Cline x1='0' y1='27.5' x2='10' y2='27.5'/%3E%3C/g%3E%3C/svg%3E");
  /* faint manuscript-paper staves for the page background */
  --manuscript: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='90'%3E%3Cg stroke='%23b48a5a' stroke-opacity='.16' stroke-width='1'%3E%3Cline x1='0' y1='20.5' x2='10' y2='20.5'/%3E%3Cline x1='0' y1='27.5' x2='10' y2='27.5'/%3E%3Cline x1='0' y1='34.5' x2='10' y2='34.5'/%3E%3Cline x1='0' y1='41.5' x2='10' y2='41.5'/%3E%3Cline x1='0' y1='48.5' x2='10' y2='48.5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream) var(--manuscript) repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood-light); }
a:hover { color: var(--wood); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--wood-mid);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* Page headings get a short stave underline */
h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 15px;
  margin-top: .35em;
  background: var(--stave) repeat-x;
  background-size: 10px 15px;
}

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.clef { width: 1em; height: 1.15em; color: var(--gold); flex: none; }

/* ---------- Header ---------- */
.site-header {
  background:
    linear-gradient(180deg, rgba(30, 8, 2, .55), rgba(30, 8, 2, .75)),
    url(../images/wood.jpg) center / cover,
    var(--wood-dark);
  color: #fff;
  position: relative;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.brand:hover { color: #fff; }
.brand .clef { font-size: 2.6rem; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 1.9rem; font-weight: 600; line-height: 1.05; }
.brand-tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; flex-wrap: wrap; }
.site-nav a {
  position: relative; display: block; padding: .5rem .8rem;
  color: #f6ead8; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
}
.site-nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::before { content: "\266A"; margin-right: .3rem; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 1px solid rgba(212,166,86,.6); border-radius: 6px;
    padding: .55rem .6rem; cursor: pointer;
  }
  .nav-toggle .bar { width: 22px; height: 2px; background: var(--gold); display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: .75rem; }
  .site-nav a::after { display: none; }
}

/* Gold stave strip under header and above footer */
.stave-strip { height: 30px; background: var(--stave) repeat-x; background-size: 10px 30px; opacity: .75; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 1.5rem 0 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; }
.hero-text { padding-bottom: 3rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; margin-bottom: .75rem; }
.hero-title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; font-weight: 600; color: #fff; margin: 0 0 1rem; }
.hero-title em { color: var(--gold); font-weight: 500; }
.hero-sub { font-size: 1.15rem; color: #f0e2cc; max-width: 34em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  max-height: 380px; width: auto;
  filter: sepia(.9) saturate(2.2) hue-rotate(-12deg) brightness(.95) drop-shadow(0 18px 30px rgba(0,0,0,.5));
  transform: rotate(-8deg); transform-origin: bottom center;
}
.hero-notes { position: absolute; left: 0; right: 0; bottom: 40px; width: 100%; height: 120px; color: var(--gold); opacity: .18; z-index: 0; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-text { padding-bottom: 2rem; }
}

/* ---------- Buttons ---------- */
.btn, .cta {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .75rem 1.5rem; border-radius: 999px; transition: background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--wood-dark); }
.btn-gold:hover { background: var(--gold-soft); color: var(--wood-dark); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(212,166,86,.15); color: #fff; }
.cta { margin-top: .5rem; background: var(--wood); color: #fff; }
.cta:hover { background: var(--wood-dark); color: var(--gold-soft); }

/* ---------- Main content ---------- */
main.wrap { flex: 1; padding-top: 2.75rem; padding-bottom: 3.5rem; }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--wood);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.75rem);
  box-shadow: 0 14px 34px rgba(46, 16, 6, .10);
}

.lead { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--wood); margin-bottom: .5rem; }

.split { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.portrait-frame { margin: 0; padding: 10px; background: linear-gradient(145deg, var(--wood-light), var(--wood-dark)); border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.portrait-frame img { width: 260px; border-radius: 2px; }
.portrait-frame figcaption { font-family: var(--serif); font-style: italic; color: var(--gold-soft); text-align: center; padding-top: .4rem; font-size: 1.1rem; }
@media (max-width: 820px) { .portrait-frame { order: -1; justify-self: start; } .portrait-frame img { width: 220px; } }

.side-cello { width: 150px; filter: sepia(.6) saturate(1.6) hue-rotate(-12deg); opacity: .85; }
@media (max-width: 820px) { .side-cello { display: none; } }

.quals { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.quals li {
  background: var(--wood-dark); color: var(--gold-soft); border-radius: 999px;
  padding: .25rem .9rem; font-size: .85rem; font-weight: 600; letter-spacing: .03em;
}
.quals li::before { content: "\266A"; color: var(--gold); margin-right: .35rem; }

/* ---------- Fees ---------- */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.fee-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.35rem 1.6rem; background: #fff; position: relative; overflow: hidden; }
.fee-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--gold), var(--wood)); }
.fee-box h2 { font-size: 1.55rem; display: flex; align-items: baseline; gap: .5rem; }
.fee-box h2::before { content: "\266A"; color: var(--gold); font-family: "Segoe UI Symbol", "DejaVu Sans", var(--sans); font-size: 1.4rem; line-height: 1; }
table.fees { width: 100%; border-collapse: collapse; }
table.fees th, table.fees td { padding: .55rem .25rem; text-align: left; border-bottom: 1px solid var(--line); }
table.fees th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
table.fees td.price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--wood); }
table.fees tr:last-child td { border-bottom: 0; }

/* ---------- Ensemble ---------- */
.address {
  font-style: normal; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1.5rem; display: inline-block;
}
.venue { width: 320px; border-radius: 4px; border: 8px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.15); transform: rotate(1.5deg); }
@media (max-width: 820px) { .venue { width: 100%; transform: none; margin-bottom: 1.5rem; } }
.callout { background: var(--wood-dark); color: var(--gold-soft); border-radius: var(--radius); padding: .7rem 1.2rem; display: inline-block; font-weight: 600; }
.callout::before { content: "\266B"; color: var(--gold); margin-right: .5rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; border: 6px solid #fff; box-shadow: 0 8px 20px rgba(46,16,6,.15); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; background: rgba(20, 6, 2, .94); display: none; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 92vw; border-radius: 4px; border: 6px solid #fff; }
.lightbox button { position: absolute; background: rgba(212,166,86,.18); color: var(--gold-soft); border: 0; font-size: 2rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(212,166,86,.35); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; color: var(--gold-soft); font-size: .9rem; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 1rem; max-width: 540px; }
.form label { font-weight: 600; display: block; margin-bottom: .25rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid #cdbba0; border-radius: 4px; background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form textarea { min-height: 150px; resize: vertical; }
.form button { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; background: var(--wood); color: #fff; border: 0; padding: .8rem 1.7rem; border-radius: 999px; }
.form button:hover { background: var(--wood-dark); color: var(--gold-soft); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }

.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice.ok { background: #eef6ec; border: 1px solid #b7d7b0; }
.notice.err { background: #fbeceb; border: 1px solid #e3b4b0; }
.notice ul { margin: .25rem 0 0; padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wood-dark); color: #ecdcc4; text-align: center; padding: 0 0 1.75rem; }
.site-footer .stave-strip { opacity: .35; margin-bottom: 1.25rem; }
.site-footer p { margin: .2rem 0; }
.site-footer a { color: var(--gold-soft); }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; }
.footer-brand .clef { font-size: 1.6rem; }
.small { font-size: .85rem; opacity: .75; }
