/* Conscious Touch Academy — holding site */

:root {
  --paper: #fbf7f1;
  --cream: #f7ead7;
  --cream-deep: #efdcc3;
  --plum: #8b5c7a;
  --plum-hover: #74486a;
  --plum-dark: #321f33;
  --ink: #2b1f2c;
  --muted: #6d5c6a;
  --line: rgba(50, 31, 51, 0.14);
  --white: #ffffff;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --section: clamp(64px, 9vw, 120px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-hover); }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--plum-dark);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 1.1em;
}

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.65; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--plum-dark); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 0.85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 48px;
}
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-hover); color: var(--white); }
.btn-dark { background: var(--plum-dark); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--plum-dark); background: transparent; }
.btn-ghost:hover { background: var(--plum-dark); color: var(--white); border-color: var(--plum-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,0.75); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--plum-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

/* Announcement bar */
.announce {
  background: var(--plum); color: var(--white);
  font-size: 0.85rem; letter-spacing: 0.06em; text-align: center;
  padding: 10px var(--gutter);
}
.announce a { color: var(--white); font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 76px; gap: 16px;
}
.brand { justify-self: center; display: block; line-height: 0; }
.brand img { width: clamp(170px, 20vw, 230px); height: auto; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 28px; }
.nav-right { justify-self: end; }
.nav-left a, .mobile-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav-left a:hover, .nav-left a[aria-current="page"] { border-bottom-color: var(--plum); color: var(--plum-dark); }
.nav-right .btn { min-height: 42px; padding: 0.6em 1.3em; }

.menu-toggle {
  display: none; justify-self: end;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--plum-dark);
  min-width: 44px; min-height: 44px;
}
.menu-toggle svg { width: 26px; height: 26px; }
.mobile-nav { display: none; }

@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .brand { justify-self: start; }
  .brand img { width: 180px; }
  .nav-left, .nav-right { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav {
    display: none; flex-direction: column; padding: 8px var(--gutter) 20px;
    border-top: 1px solid var(--line);
  }
  .mobile-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .site-header.open .mobile-nav { display: flex; }
}

/* Hero */
.hero {
  position: relative; color: var(--white);
  background: var(--plum-dark) url("../img/hero.jpg") center 40% / cover no-repeat;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(50,31,51,0.92) 0%, rgba(50,31,51,0.72) 45%, rgba(50,31,51,0.25) 100%);
}
.hero .wrap { position: relative; padding-top: clamp(80px, 14vw, 160px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero-content { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--cream); }
.hero .lead { color: rgba(255,255,255,0.86); }

.page-hero {
  background: linear-gradient(rgba(247,234,215,0.55), rgba(247,234,215,0.55)), var(--cream) url("../img/pattern.jpg") center / cover no-repeat;
  padding: clamp(64px, 10vw, 130px) 0 clamp(48px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { max-width: 640px; }

@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(50,31,51,0.35) 0%, rgba(50,31,51,0.88) 55%, rgba(50,31,51,0.95) 100%); }
  .hero { min-height: 88vh; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--plum-dark); color: rgba(255,255,255,0.86); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--cream-deep); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--paper); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--line);
}
.feature .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--plum); color: var(--white); font-size: 0.85rem; font-weight: 600;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.feature p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.course-card {
  display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(50,31,51,0.12); color: inherit; }
.course-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { margin-bottom: 0.4em; }
.course-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.course-card .more { margin-top: 18px; font-weight: 500; color: var(--plum); font-size: 0.95rem; }
@media (max-width: 760px) { .course-grid { grid-template-columns: 1fr; } }

.badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--cream); color: var(--plum-dark);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--plum);
  border-radius: 10px; padding: 20px 22px; margin-top: 28px;
}
.notice p { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery img:first-child { aspect-ratio: auto; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote {
  background: var(--paper); border-radius: var(--radius); padding: 32px 30px; margin: 0;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 24px; font-size: 1.12rem; line-height: 1.6; color: var(--ink); font-weight: 300; flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.2rem; line-height: 0.8; color: var(--plum); margin-bottom: 8px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--plum-dark); }
.quote figcaption img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Teacher */
.teacher-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 380px; margin: 0 auto; }

/* Forms */
.signup {
  background: linear-gradient(rgba(247,234,215,0.55), rgba(247,234,215,0.55)), var(--cream) url("../img/pattern.jpg") center / cover no-repeat;
}
.form-card {
  background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 50px rgba(50,31,51,0.10); border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; color: var(--plum-dark); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(50,31,51,0.22); border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--plum); outline-offset: 1px; border-color: var(--plum); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.hidden-field { position: absolute; left: -9999px; }
.form-card .btn { margin-top: 8px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); }
.contact-list a { font-size: 1.15rem; color: var(--plum-dark); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Prose / article */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.info-list li { padding-left: 28px; position: relative; }
.info-list li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 14px; height: 1.5px; background: var(--plum);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.vision { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vision .feature { background: var(--white); }
@media (max-width: 700px) { .vision { grid-template-columns: 1fr; } }

/* Course detail */
.course {
  padding: var(--section) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px;
}
.course:nth-of-type(odd) { background: var(--cream); }
.course .split { align-items: start; }
.course .split-media img { aspect-ratio: 4 / 3; }
@media (min-width: 861px) { .course .split-media { position: sticky; top: 110px; } }
.course-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 24px 0 0;
  padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 0.95rem;
}
.course-meta div { display: flex; flex-direction: column; }
.course-meta dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); }
.course-meta dd { margin: 2px 0 0; }
@media (max-width: 480px) { .course-meta { grid-template-columns: 1fr; } }

.course-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.course-jump a {
  text-decoration: none; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line); color: var(--plum-dark);
}
.course-jump a:hover { background: var(--white); border-color: var(--plum); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-size: 1.08rem; font-weight: 500; color: var(--plum-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300; color: var(--plum);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--plum-dark); color: rgba(255,255,255,0.78); padding: 64px 0 36px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 210px; filter: invert(1); margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.85rem; color: rgba(255,255,255,0.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Simple centered pages (thanks / 404) */
.center-page { min-height: 62vh; display: flex; align-items: center; text-align: center; padding: var(--section) 0; }
.center-page .wrap { max-width: 640px; }
.center-page .btn-row { justify-content: center; }
