/* ==========================================================================
   Artune Education — site stylesheet
   Elegant, restrained, conservatoire-quality. Ivory ground, burgundy accents,
   a whisper of warm orange and brass. Serif display, quiet sans body.
   ========================================================================== */

/* ---------- Fonts (local, no external requests) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  src: url("../fonts/cormorant-var.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  src: url("../fonts/cormorant-500i.woff2") format("woff2");
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #faf7f1;
  --bg-card: #fffdf8;
  --bg-soft: #f1eadc;
  --bg-dark: #241a15;
  --bg-dark-soft: #2f231c;
  --ink: #2b2420;
  --ink-soft: #5f564d;
  --ink-faint: #99897b;
  --ink-inverse: #f4ede2;
  --ink-inverse-soft: #c9bcac;
  --wine: #6f1d2b;
  --wine-deep: #571621;
  --wine-tint: #f4e7e2;
  --orange: #c8611f;
  --brass: #a8894f;
  --brass-light: #cbb083;
  --line: #e4dbc9;
  --line-dark: #46362a;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(43, 36, 32, 0.05);
  --shadow-md: 0 16px 38px rgba(43, 36, 32, 0.1);
  --container: 1140px;
  --font-body: ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--wine);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
::selection {
  background: var(--wine);
  color: var(--ink-inverse);
}
:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
  border-radius: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.45em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.06;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: 1.45rem;
}
h4 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46em;
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 42em;
}
.statement em {
  font-style: italic;
  color: var(--wine);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 26px;
}
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}
.section-tight {
  padding: clamp(44px, 6vw, 68px) 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-dark {
  background: var(--bg-dark);
  color: var(--ink-inverse);
}
.section-dark h2,
.section-dark h3 {
  color: var(--ink-inverse);
}
.section-dark .eyebrow {
  color: var(--brass-light);
}
.section-dark .lede {
  color: var(--ink-inverse-soft);
}
.section-head {
  max-width: 46em;
  margin-bottom: clamp(40px, 5.5vw, 64px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.rule {
  width: 64px;
  height: 2px;
  margin: 26px 0 0;
  background: var(--brass);
  border: 0;
}
.center .rule,
.rule.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--wine);
  color: var(--ink-inverse);
}
.btn-primary:hover {
  background: var(--wine-deep);
}
.btn-outline {
  border-color: var(--wine);
  color: var(--wine);
  background: transparent;
}
.btn-outline:hover {
  background: var(--wine-tint);
}
.btn-light {
  background: var(--bg);
  color: var(--wine);
}
.btn-light:hover {
  background: #fff;
}
.btn-outline-light {
  border-color: rgba(244, 237, 226, 0.55);
  color: var(--ink-inverse);
  background: transparent;
}
.btn-outline-light:hover {
  border-color: rgba(244, 237, 226, 0.9);
  background: rgba(244, 237, 226, 0.1);
}
.btn-lg {
  padding: 15px 34px;
  font-size: 0.98rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-sub {
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brass);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--wine);
}
.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 26px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 11px 0;
    font-size: 1.05rem;
  }
}

/* ---------- Home hero (full-screen photograph) ---------- */
.hero-full {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100vh - 76px), 920px);
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(
      165deg,
      rgba(26, 15, 11, 0.68) 0%,
      rgba(43, 17, 19, 0.58) 55%,
      rgba(26, 15, 11, 0.72) 100%
    ),
    url("../img/hero-orchestra.jpg") center 32% / cover no-repeat;
  color: var(--ink-inverse);
}
.hero-full .eyebrow {
  color: var(--brass-light);
}
.hero-full h1 {
  max-width: 12em;
  color: #f8f2e7;
}
.hero-full .lede {
  margin-top: 14px;
  max-width: 38em;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: rgba(244, 237, 226, 0.88);
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  padding: clamp(84px, 11vw, 132px) 0 clamp(52px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(
      900px 420px at 85% -20%,
      rgba(168, 137, 79, 0.12),
      transparent 60%
    ),
    var(--bg);
}
.page-hero h1 {
  max-width: 16em;
}
.page-hero .lede {
  margin-top: 10px;
}

/* ---------- Photo band ---------- */
.photo-band {
  margin: 0;
}
.photo-band img {
  width: 100%;
  height: clamp(260px, 44vw, 460px);
  object-fit: cover;
}

/* ---------- Grids & cards ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d4c5ab;
  box-shadow: var(--shadow-md);
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.section-dark .card {
  background: var(--bg-dark-soft);
  border-color: var(--line-dark);
}
.section-dark .card p {
  color: var(--ink-inverse-soft);
}

/* ---------- Ticked list ---------- */
.list-tick {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.list-tick li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.list-tick li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 9px;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}
.list-tick.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
}

/* ---------- Programs: index grid ---------- */
.program-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.program-card {
  display: block;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--wine);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.program-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.program-card .program-num {
  display: block;
  margin-bottom: 10px;
}
.program-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
}
.program-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}

/* ---------- Programs: detail blocks ---------- */
.program-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) 0;
}
.program-block + .program-block {
  border-top: 1px solid var(--line);
}
.program-flip .program-body {
  order: 2;
}
.program-flip .program-media {
  order: 1;
}
.program-wide {
  display: block;
}
.program-wide .list-tick {
  max-width: 60em;
}
.program-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.program-kicker {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
}
.program-body h2 {
  margin-bottom: 0.4em;
}
.program-body > p {
  color: var(--ink-soft);
}
.who-for {
  margin-top: 18px;
  color: var(--ink-soft);
}
.who-for strong {
  color: var(--ink);
}
.price-line {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wine);
}
.price-note {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.price-rows {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.price-row strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Consultation strip ---------- */
.consult-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  border-radius: var(--radius);
}
.consult-strip h3 {
  margin: 0 0 4px;
}
.consult-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Founders ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 56px);
}
.founder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  max-height: 460px;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #6f1d2b 0%, #451219 62%, #2b0d12 100%);
  overflow: hidden;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-initials {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  color: rgba(244, 237, 226, 0.85);
}
.founder-card h3 {
  margin: 24px 0 4px;
  font-size: 1.65rem;
}
.founder-role {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.founder-bio {
  color: var(--ink-soft);
}
.read-more {
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--wine);
  cursor: pointer;
}
.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Forms ---------- */
.form-panel {
  padding: clamp(28px, 4.5vw, 48px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.form-wide {
  grid-column: 1 / -1;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(111, 29, 43, 0.12);
}
textarea {
  resize: vertical;
  min-height: 120px;
}
fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.check-item,
.radio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-item input,
.radio-item input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--wine);
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.form-success {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
}
.form-success h3 {
  color: var(--wine);
}
.form-success p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-inverse);
  background: radial-gradient(
      700px 320px at 80% -10%,
      rgba(168, 137, 79, 0.28),
      transparent 60%
    ),
    linear-gradient(150deg, #451219, #241a15 85%);
}
.cta-banner .eyebrow {
  color: var(--brass-light);
}
.cta-banner h2 {
  color: #f8f2e7;
}
.cta-banner p {
  max-width: 44em;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-inverse-soft);
}
.cta-banner .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-inverse-soft);
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr;
  gap: 44px;
  padding-top: clamp(52px, 7vw, 80px);
  padding-bottom: 44px;
}
.footer-brand .brand-name {
  color: var(--ink-inverse);
}
.footer-brand .brand-sub {
  color: var(--brass-light);
}
.footer-brand p {
  margin-top: 16px;
  max-width: 26em;
}
.footer-col {
  display: grid;
  gap: 9px;
  align-content: start;
  justify-items: start;
}
.footer-col h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.footer-col a {
  color: var(--ink-inverse-soft);
}
.footer-col a:hover {
  color: var(--ink-inverse);
  text-decoration: none;
}
.footer-col p {
  margin: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: #8d7f6f;
}
.footer-bottom p {
  margin: 0;
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .program-index {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 920px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .program-block {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .program-flip .program-body,
  .program-flip .program-media {
    order: 0;
  }
  .program-media img {
    aspect-ratio: 16 / 9;
    max-height: 340px;
  }
}
@media (max-width: 760px) {
  .grid-2,
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .list-tick.cols-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .form-grid,
  .check-grid,
  .program-index,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .consult-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .card:hover,
  .program-card:hover {
    transform: none;
  }
}
