/* ============================================================
   Create with Kate — shared site styles
   Adapted from the Bright Sparrow template: same fonts, tokens,
   and component patterns, restyled for a light background.
   ============================================================ */

/* ── BASE TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:       #0E1116;
  --paper:     #FFFFFF;
  --magenta:   #5C68FF;
  --flamingo:  #6E7AFF;
  --slate-700: #2C3540;
  --slate-500: #6B7480;
  --slate-300: #C9CFD8;
  --slate-200: #D9DDE2;
  --fog:       #F4F5F7;
}

/* ── RESET + BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  color: var(--slate-700);
  background: var(--paper);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4,
.hero .tagline, .bio h3, .card h3, nav a, .label, .btn {
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--magenta); }
@media (max-width: 640px) {
  nav#site-nav { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .nav-links { gap: 1.25rem 1.75rem; }
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 2rem 5rem;
  text-align: center;
  background-image:
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.55) 55%, rgba(255,255,255,0.95) 92%),
    url('./monet.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero .tagline {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: 'Mulish', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero .subhead {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--slate-700);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.95rem 1.85rem;
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}
.btn-primary {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--flamingo);
  border-color: var(--flamingo);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(92, 104, 255, 0.28);
}

/* ── LAYOUT HELPERS ──────────────────────────────────────────── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.label {
  color: var(--magenta);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
  text-align: center;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about { background: var(--fog); }
.about .container { max-width: 720px; text-align: center; }
.about-photo {
  width: 168px;
  height: 168px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow:
    0 0 0 5px var(--paper),
    0 0 0 8px var(--magenta),
    0 14px 32px rgba(14,17,22,0.16);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(4deg) scale(1.15);
}
.about h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.about p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.about p:last-child { margin-bottom: 0; }

/* ── EXPLORE / TOPIC CARDS ───────────────────────────────────── */
.explore h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 3rem;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.topic-card {
  background: var(--paper);
  padding: 0 0 1.9rem;
  border-radius: 6px;
  border-top: 3px solid var(--magenta);
  box-shadow: 0 2px 18px rgba(14,17,22,0.06);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275),
    box-shadow 0.45s ease,
    border-top-color 0.35s ease;
}
.topic-card:hover {
  transform: translateY(-10px) scale(1.02) rotate(-0.6deg);
  box-shadow:
    0 20px 40px rgba(14,17,22,0.16),
    0 0 0 1px rgba(92,104,255,0.1),
    0 0 42px rgba(92,104,255,0.28);
  border-top-color: var(--flamingo);
}
.topic-card:nth-child(even):hover { transform: translateY(-10px) scale(1.02) rotate(0.6deg); }
.topic-photo {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  margin-bottom: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.5s ease;
}
.topic-card:hover .topic-photo {
  transform: scale(1.12);
  filter: saturate(1.15);
}
.greats-strip {
  display: flex;
  height: 130px;
  margin-bottom: 1.25rem;
}
.greats-strip img {
  width: 33.334%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.topic-card:hover .greats-strip img { transform: scale(1.1); }
.topic-card:hover .greats-strip img:nth-child(2) { transition-delay: 0.05s; }
.topic-card:hover .greats-strip img:nth-child(3) { transition-delay: 0.1s; }
.topic-card h3 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--ink);
  padding: 0 1.75rem;
  transition: color 0.3s ease;
}
.topic-card:hover h3 { color: var(--magenta); }
.topic-card p {
  color: var(--slate-500);
  font-size: 0.93rem;
  line-height: 1.55;
  padding: 0 1.75rem;
}
@media (max-width: 900px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }

/* ── CLASS DETAILS ───────────────────────────────────────────── */
.classes {
  background-image:
    linear-gradient(rgba(244,245,247,0.2), rgba(244,245,247,0.42) 55%, rgba(244,245,247,0.85) 92%),
    url('./images/degas-dance-class-bg.jpg');
  background-size: cover;
  background-position: center 25%;
}
.classes h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 3rem;
}
.class-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 8px;
  border-top: 4px solid var(--magenta);
  box-shadow: 0 4px 28px rgba(14,17,22,0.08);
  padding: 2.75rem 2.5rem;
}
.class-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--slate-200);
}
.class-row:last-child { border-bottom: none; }
.class-row .term {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  white-space: nowrap;
}
.class-row .detail {
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}
.map-embed {
  margin-top: 1.25rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
}
.map-embed iframe { display: block; }
.map-link {
  display: inline-block;
  color: var(--magenta);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.map-link:hover { border-color: var(--magenta); }
.class-card .submit-row { text-align: center; margin-top: 1.25rem; }
.class-card .submit-row:first-of-type { margin-top: 0.75rem; }
@media (max-width: 500px) {
  .class-row { flex-direction: column; gap: 0.25rem; }
  .class-row .detail { text-align: left; }
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact { background: var(--paper); text-align: center; }
.contact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.contact .eyebrow {
  color: var(--slate-500);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.form-row { margin-bottom: 1.1rem; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--slate-200);
  border-radius: 5px;
  background: var(--fog);
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--slate-500); opacity: 1; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(92,104,255,0.14);
}
.form-row textarea { resize: vertical; min-height: 140px; font-family: 'Mulish', sans-serif; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-message {
  padding: 0.95rem 1.15rem;
  border-radius: 5px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  text-align: left;
}
.form-error {
  background: rgba(92,104,255,0.08);
  color: #33399E;
  border: 1px solid rgba(92,104,255,0.35);
}
.form-success {
  background: rgba(46,139,87,0.1);
  color: #1F6B44;
  border: 1px solid rgba(46,139,87,0.35);
  margin-top: 1.25rem;
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.form-success strong { font-size: 1.2rem; display: inline-block; margin-bottom: 0.35rem; }
.success-link { color: #1F6B44; text-decoration: underline; font-weight: 600; }
.success-link:hover { color: var(--ink); }
.contact-form .submit-row { text-align: center; margin-top: 1.5rem; }
[hidden] { display: none !important; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer#site-footer {
  background: var(--fog);
  color: var(--slate-500);
  padding: 2.5rem 2rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--slate-200);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 4.5rem 1.5rem; }
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.215,0.61,0.355,1), transform 0.8s cubic-bezier(0.215,0.61,0.355,1);
}
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.js-ready .stagger-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-ready .stagger-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-ready .stagger-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.js-ready .stagger-grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.js-ready .stagger-grid > .reveal:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
