/* cemantebelli.com: shared stylesheet */

:root {
  --clay: #b4572e;         /* terracotta, from the CA logo */
  --clay-deep: #8e3f1e;
  --clay-soft: #e9c9b4;
  --clay-wash: #f6e7dc;
  --cream: #fbf7f1;        /* page ground */
  --sand: #f3ebe0;         /* alternate sections */
  --paper: #ffffff;
  --ink: #2c2926;          /* headings, from the logo lettering */
  --text: #3d3834;
  --muted: #6d655d;
  --line: #e6dccf;
  --sage: #7c8a6c;

  --max: 1120px;
  --narrow: 720px;
  --radius: 14px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--clay-deep); }
a:hover { color: var(--clay); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
section { padding: 88px 0; }
.section-sand { background: var(--sand); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}

.lede { font-size: 1.2rem; color: var(--muted); }

/* hand-drawn underline under a key word */
.stroke {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.stroke::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 5, 80 16, 120 9 S 180 6, 197 11' fill='none' stroke='%23b4572e' stroke-width='5' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img { height: 54px; width: auto; }
nav.primary { display: flex; align-items: center; gap: 24px; }
nav.primary a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
}
nav.primary a:hover, nav.primary a.current { color: var(--clay); }
nav.primary a.nav-cta {
  background: var(--clay);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
nav.primary a.nav-cta:hover { background: var(--clay-deep); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  nav.primary a.nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero .lede { max-width: 560px; margin-top: 18px; }
.credibility {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.95rem;
  color: var(--muted);
}
.credibility span { display: inline-flex; align-items: center; gap: 8px; }
.credibility span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}

/* photo in an arch (a quiet nod to ceramics), on a soft clay shape */
.photo-clay { position: relative; max-width: 440px; margin-left: auto; margin-right: auto; }
.photo-clay::before {
  content: "";
  position: absolute;
  inset: 6% -6% -5% 8%;
  background: var(--clay-soft);
  border-radius: 999px 999px 22px 22px;
  z-index: 0;
}
.photo-clay img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 999px 999px 22px 22px;
}
.photo-plain img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid .photo-clay { max-width: 360px; margin: 0 auto; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 72px 0 40px; }
.page-head .lede { max-width: 640px; }

/* ---------- two columns ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.text-heavy { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
@media (max-width: 860px) {
  .split, .split.text-heavy { grid-template-columns: 1fr; gap: 40px; }
  .split .photo-clay, .split .photo-plain { max-width: 380px; }
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 0.7em; }
.card p:last-child { margin-bottom: 0; }
.card-mark {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  background: var(--clay-wash);
  border: 2px solid var(--clay-soft);
}

a.card-link { text-decoration: none; color: inherit; display: block; transition: border-color 0.18s ease, transform 0.18s ease; }
a.card-link:hover { border-color: var(--clay); transform: translateY(-3px); color: inherit; }
.card-more { display: inline-block; margin-top: 12px; color: var(--clay-deep); font-weight: 600; font-size: 0.97rem; }

/* ---------- lists ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 32px; }
.tick-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .tick-list.cols-2 { grid-template-columns: 1fr; } }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  background: var(--clay);
  opacity: 0.8;
}

/* ---------- featured statement ---------- */
.statement {
  position: relative;
  text-align: center;
  padding: 96px 0;
  background: var(--clay-wash);
  overflow: hidden;
}
.statement blockquote {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
  color: var(--ink);
}
.statement blockquote p { margin: 0 0 0.6em; }
.statement blockquote p:last-child { margin: 0; font-size: 0.8em; color: var(--clay-deep); font-style: italic; }
.statement::before, .statement::after {
  content: "";
  position: absolute;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  background: var(--clay-soft);
  opacity: 0.45;
}
.statement::before { width: 220px; height: 200px; left: -70px; top: -60px; }
.statement::after { width: 180px; height: 170px; right: -50px; bottom: -60px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
  background: var(--clay);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- lesson details ---------- */
.details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.details h3 { margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .narrow { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- also available ---------- */
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  font-size: 1.05rem;
}
.also strong { color: var(--ink); }

/* ---------- credentials ---------- */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.creds li { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.creds li:last-child { border-bottom: 0; padding-bottom: 0; }
.creds strong { display: block; color: var(--ink); font-weight: 600; }
.creds span { color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

form.contact-form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid #d9cdbd;
  border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--clay-soft);
  border-color: var(--clay);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .error { display: none; color: #a23a1a; font-size: 0.88rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a23a1a; }
.field.invalid .error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 18px 20px; border-radius: 10px; }
.form-status.ok { display: block; background: #eef2e8; border: 1px solid #c9d4bb; color: #3e4a31; }
.form-status.err { display: block; background: #f8e6df; border: 1px solid #e6c0b2; color: #7d2c12; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 6px; }
.contact-form button[type="submit"] { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form button[disabled] { opacity: 0.7; cursor: wait; }

.contact-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-side h3 { font-size: 1.15rem; }
.contact-side a.email { font-size: 1.1rem; font-weight: 600; word-break: break-all; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: #cfc6bc;
  padding: 56px 0 30px;
  font-size: 0.95rem;
}
footer.site a { color: #efe6dc; text-decoration: none; }
footer.site a:hover { color: var(--clay-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: #fff; font-weight: 600; margin-bottom: 6px; }
footer.site h4 { margin: 0 0 12px; color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: #a99f94; }

/* ---------- bilingual additions (2026-09-29) ---------- */
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; }
.lang-switch a, .lang-switch span { padding: 6px 11px; text-decoration: none; color: var(--muted); line-height: 1; }
.lang-switch span[aria-current] { background: var(--ink); color: #fff; }
.lang-switch a:hover { color: var(--clay); }
@media (max-width: 1140px) { .nav-right { gap: 8px; } }

.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.facts li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.92rem; color: var(--ink); font-weight: 600; }
.section-sand .facts li { background: var(--paper); }

.card-primary { border: 2px solid var(--clay); background: var(--clay-wash); }
.card .level { display: block; font-weight: 700; color: var(--clay-deep); font-size: 0.92rem; margin-bottom: 8px; }

.cta-band .or-email { margin-top: 18px; font-size: 0.97rem; color: var(--muted); }
.cta-band { padding: 72px 0; }

.not-found { padding: 110px 0 120px; }

/* keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.foot-lang { border-color: rgba(255, 255, 255, 0.25); }
footer.site .foot-lang a { color: #efe6dc; }
footer.site .foot-lang span[aria-current] { background: #efe6dc; color: var(--ink); }
.lesson-info { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.lesson-info div { padding: 14px 20px; border-right: 1px solid var(--line); }
.lesson-info div:last-child { border-right: 0; }
.lesson-info dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: 4px; }
.lesson-info dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .lesson-info { grid-template-columns: 1fr; } .lesson-info div { border-right: 0; border-bottom: 1px solid var(--line); } .lesson-info div:last-child { border-bottom: 0; } }
.hero .facts { margin-top: 28px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
