/* Earthy, neutral palette - lets the colors of the artwork stand out */
:root {
  --bg: #f8f5f0;
  --linen: #efe8de;
  --stone: #ddd2c3;
  --taupe: #a2917d;
  --clay: #8a6a52;
  --espresso: #3d3029;
  --ink: #2f2924;
  --muted: #6e6359;
  --white: #fffdf9;
  --radius: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Nunito Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--clay); }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; color: var(--espresso); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.45rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--clay); margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-block; background: var(--espresso); color: var(--white); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 700; padding: 1em 2em; border: 1.5px solid var(--espresso); border-radius: 2px; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn-ghost { background: transparent; color: var(--espresso); }
.btn-ghost:hover { color: var(--white); }
.btn-small { padding: .7em 1.3em; font-size: .74rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header - logo left, uppercase menu */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248, 245, 240, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--stone); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--espresso); font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.6rem; letter-spacing: .03em; white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--clay); border-bottom-color: var(--clay); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--espresso); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--linen); }
.page-head { padding: 72px 0 40px; text-align: center; border-bottom: 1px solid var(--stone); }
.page-head .lead { margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Photo slots: drop a file with the matching name into images/ and it appears */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--linen); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1; }
.photo.empty { border: 1.5px dashed var(--taupe); background: var(--linen) url("images/logo.svg") center 42% / 22% no-repeat; }
.photo.empty img { display: none; }
.photo.empty::after { content: "Photo coming soon"; position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(61, 48, 41, .8); color: var(--white); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .3em .8em; border-radius: 2px; z-index: 1; }
.photo.empty figcaption { display: none; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero .two-col { grid-template-columns: 1.05fr 1fr; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

/* Feature tiles on home */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 30px 26px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--clay); transform: translateY(-2px); }
.tile h3 { margin-bottom: .3em; }
.tile p { color: var(--muted); margin: 0 0 1em; }
.tile .more { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--clay); }

/* Class cards */
.class-list { display: grid; gap: 18px; }
.class-card { display: grid; grid-template-columns: 84px 1fr auto; gap: 26px; align-items: center; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 24px 26px; }
.class-date { text-align: center; border-right: 1px solid var(--stone); padding-right: 22px; }
.class-date .m { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--clay); }
.class-date .d { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--espresso); }
.class-body h3 { margin: 0 0 .15em; }
.class-when { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.class-about { margin: .3em 0 .5em; color: var(--muted); }
.class-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.class-meta li { font-size: .78rem; background: var(--linen); padding: .2em .8em; border-radius: 2px; color: var(--muted); font-weight: 600; }
.tag { margin: 0 0 .3em; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--clay); }
.class-foot { text-align: right; display: grid; gap: 10px; justify-items: end; }
.price { font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 700; color: var(--espresso); line-height: 1; }
.sold { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--muted); border: 1px solid var(--stone); padding: .7em 1.3em; }
.class-card.is-full { opacity: .7; }
.empty-note { background: var(--white); border: 1px dashed var(--taupe); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0; counter-reset: step; }
.steps li { list-style: none; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; color: var(--clay); line-height: 1; margin-bottom: 8px; }
.steps strong { display: block; color: var(--espresso); }
.steps span { color: var(--muted); }

/* Notes */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.notes h3 { font-size: 1.3rem; }
.notes p { color: var(--muted); margin: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--stone); border-radius: 4px; padding: .75em .9em; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.field textarea { min-height: 120px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .92rem; color: var(--muted); min-height: 1.4em; }
.form-status.is-error { color: #9b3b2a; }
.form-card { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 34px; }
.form-success { text-align: center; padding: 30px 0; }

/* Booking dialog */
.booking { border: 0; border-radius: var(--radius); padding: 0; width: min(520px, calc(100% - 32px)); background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(47, 41, 36, .3); }
.booking::backdrop { background: rgba(47, 41, 36, .55); }
.booking-inner { padding: 32px; position: relative; }
.booking-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; line-height: 1; }
.booking-title { margin: 0 0 .1em; }
.booking-when { color: var(--muted); margin: 0 0 1.4em; font-weight: 600; }
.booking-done { text-align: center; padding: 10px 0; }

/* Gallery */
.gallery-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.chip { background: transparent; border: 1px solid var(--stone); padding: .55em 1.3em; font: inherit; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--ink); cursor: pointer; border-radius: 2px; }
.chip.is-active { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid .photo { aspect-ratio: 1; }
.photo.is-hidden { display: none; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--muted); }

/* Footer */
.site-footer { background: var(--espresso); color: var(--stone); padding: 60px 0 0; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; color: var(--white); margin: 0 0 .3em; }
.footer-head { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--taupe); margin: 0 0 1em; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--taupe); }
.social { display: flex; gap: 16px; margin-top: 16px; }
.footer-base { border-top: 1px solid rgba(221, 210, 195, .2); padding: 20px; text-align: center; font-size: .82rem; color: var(--taupe); }

/* Tablet & phone */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--bg); border-bottom: 1px solid var(--stone); padding: 16px 20px 24px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; width: 100%; }
  .site-nav .btn { margin-top: 10px; }
}
@media (max-width: 820px) {
  .two-col, .hero .two-col { grid-template-columns: 1fr; gap: 36px; }
  .tiles, .steps, .notes { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 60px; }
  .class-card { grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; }
  .class-date { padding-right: 14px; }
  .class-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--stone); padding-top: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card, .booking-inner { padding: 24px; }
}
