/* ──────────────────────────────────────────────────────────
   THE SOURCE CODE — sourcecodemethod.com
   Warm, easy-on-the-eye palette · button-led navigation
   ────────────────────────────────────────────────────────── */

:root {
  --cream:        #FAF1DD;
  --cream-dark:   #F2E4C4;
  --cream-deep:   #E9D9B5;
  --text:         #3D2E25;
  --text-soft:    #6B5444;
  --terracotta:   #A8472E;
  --terracotta-dark: #843720;
  --gold:         #C99A2E;
  --gold-light:   #DEB658;
  --sage:         #A8B49B;
  --sage-dark:    #7A8B6E;
  --teal-soft:    #5A7A7E;
  --white-soft:   #FFFAF0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 580px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER (shared across all pages) ─── */
.site-header {
  background: var(--cream);
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--cream-deep);
}
.site-header a { text-decoration: none; }
.site-header .logo-line {
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.site-header .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.site-header .tagline {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  font-style: italic;
}

/* ─── BACK LINK on inner pages ─── */
.back-link {
  display: inline-block;
  margin: 24px 0 0;
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 500;
}
.back-link::before { content: '←  '; }

/* ─── HOME — BUTTON GRID ─── */
.home-hero {
  text-align: center;
  padding: 60px 24px 40px;
}
.home-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 8vw, 60px);
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.home-hero h1 em { color: var(--gold); font-style: italic; }
.home-hero .subtitle {
  font-size: 16px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 4px;
}
.home-hero .who {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--text);
  margin-top: 12px;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 560px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
@media (min-width: 600px) {
  .button-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
.btn-card {
  background: var(--white-soft);
  border: 2px solid var(--cream-deep);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s;
  cursor: pointer;
  min-height: 120px;
  justify-content: center;
}
.btn-card:hover {
  border-color: var(--gold);
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 71, 46, 0.10);
}
.btn-card .btn-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.btn-card .btn-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1.15;
}
.btn-card .btn-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.4;
}
.btn-card.primary {
  background: var(--terracotta);
  border-color: var(--terracotta-dark);
}
.btn-card.primary .btn-title { color: var(--cream); }
.btn-card.primary .btn-sub { color: rgba(250, 241, 221, 0.85); }
.btn-card.primary:hover { background: var(--terracotta-dark); }

.btn-card.whatsapp {
  background: #25D366;
  border-color: #1FA851;
}
.btn-card.whatsapp .btn-title,
.btn-card.whatsapp .btn-sub { color: white; }
.btn-card.whatsapp:hover { background: #1FA851; }

/* ─── INNER PAGES ─── */
.page-title {
  text-align: center;
  padding: 30px 24px 20px;
}
.page-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 6vw, 46px);
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.page-title h1 em { color: var(--gold); font-style: italic; }
.page-title .lede {
  font-size: 15px;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
hr.gold {
  border: none;
  border-top: 2px solid var(--gold);
  width: 60px;
  margin: 18px auto;
  opacity: 0.6;
}

.section { padding: 30px 0 50px; }
.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--terracotta);
  margin-bottom: 16px;
  font-weight: 600;
}
.section p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}
.section .lede {
  font-size: 19px;
  font-style: italic;
  color: var(--text-soft);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.5;
  margin: 18px 0;
}

/* ─── MODALITY CARDS ─── */
.cluster-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--terracotta);
  font-weight: 600;
  margin: 28px 0 14px;
  border-bottom: 1px solid var(--cream-deep);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cluster-title .icon { font-size: 18px; }

.modality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .modality-grid { grid-template-columns: 1fr 1fr; }
}
.modality {
  background: var(--white-soft);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 8px;
}
.modality .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 3px;
}
.modality .desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ─── LOCATION CARDS ─── */
.location {
  background: var(--white-soft);
  border-radius: 12px;
  padding: 24px 22px;
  margin-bottom: 16px;
  border-top: 4px solid var(--gold);
}
.location h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.location .addr {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.location .hours {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 12px;
}
.location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--cream); }
.btn-outline { background: transparent; color: var(--terracotta); border: 2px solid var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--cream); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1FA851; color: white; }

/* ─── ABOUT ─── */
.about-portrait {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--terracotta) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 30px;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(168, 71, 46, 0.20);
}

/* ─── QUOTE ─── */
.quote-box {
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
}
.quote-box p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.quote-author {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ─── SOURCE CODE TRAINING PAGE ─── */
.training-hero {
  background: var(--terracotta);
  color: var(--cream);
  padding: 50px 0 60px;
  position: relative;
  overflow: hidden;
}
.training-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 280px; height: 280px;
  background-image: url('/inner-code.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
}
.training-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.1;
}
.training-hero h1 em { color: var(--gold-light); font-style: italic; }
.training-hero .lede {
  font-size: 16px;
  opacity: 0.92;
  max-width: 540px;
  margin-bottom: 24px;
}
.tag-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--terracotta-dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.training-divider {
  background: var(--cream);
  height: 50px;
  border-radius: 100% 100% 0 0 / 50px;
  margin-top: -30px;
  position: relative;
}

.module-card {
  background: var(--white-soft);
  border-left: 4px solid var(--gold);
  padding: 22px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.module-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.module-card p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.6; }
.module-card .module-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--cream);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ─── FORM ─── */
.form-section { background: var(--cream-dark); padding: 50px 0; }
form {
  background: var(--white-soft);
  padding: 28px 24px;
  border-radius: 12px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 18px rgba(168, 71, 46, 0.08);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-deep);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white-soft);
}
.field textarea { min-height: 80px; resize: vertical; }
.submit-btn {
  width: 100%;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--terracotta-dark); }
.success {
  display: none;
  text-align: center;
  padding: 30px 20px;
  background: var(--cream-dark);
  border-radius: 12px;
}
.success.show { display: block; }
.success-icon {
  width: 64px; height: 64px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--terracotta);
  margin-bottom: 8px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--cream-deep);
  color: var(--text-soft);
  padding: 36px 24px 30px;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}
footer p { margin-bottom: 6px; }
footer a { color: var(--terracotta); }
footer .small { font-size: 11px; opacity: 0.7; margin-top: 10px; }
