/* ============================================================
   Creative Souls Studio — Shared Stylesheet
   Brand: Terracotta · Cream · Ink · Gold · Sage · Pale Violet
   Fonts: Cormorant Garamond (display) + Jost (body)
   Accessibility: WCAG AA contrast throughout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --terra:   #C0673E;
  --terra-dk:#9E4F2C;      /* darker for contrast on light bg */
  --ink:     #1A1510;
  --cream:   #F8F3ED;
  --gold:    #B8841F;      /* darkened from #C5973A for AA contrast on cream */
  --sage:    #5A7055;      /* darkened from #8A9E85 for AA contrast */
  --violet:  #6B5A8A;      /* darkened from #E6DDF5 for text use */
  --violet-bg: #E6DDF5;
  --mid:     #4A3728;      /* dark warm brown — readable on cream */
  --light-terra: #F5E8E0;
  --light-sage:  #E8EDE7;
  --light-gold:  #FBF3E2;
  --white:   #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --nav-h: 72px;
  --max-w: 1100px;
  --section-pad: 96px 24px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; font-weight: 500; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }

p { font-size: 1.05rem; color: var(--mid); max-width: 68ch; }
.lead { font-size: 1.18rem; color: var(--mid); }

em, i { font-style: italic; }
strong { font-weight: 600; }

/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark p, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-violet { background: var(--violet-bg); }
.section-terra  { background: var(--light-terra); }
.section-sage   { background: var(--light-sage); }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-dk);
  display: block;
  margin-bottom: 12px;
}
.label-light { color: #E8C4B0; }

.rule {
  width: 48px; height: 2px;
  background: var(--terra);
  margin: 20px 0 28px;
}
.rule-gold { background: var(--gold); }
.rule-center { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-terra  { color: var(--terra-dk); }
.text-gold   { color: var(--gold); }
.text-sage   { color: var(--sage); }

/* ── Buttons ─────────────────────────────────────────────────*/
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
}
.btn-primary:hover { background: var(--terra-dk); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(248,243,237,0.5);
}
.btn-outline-light:hover { background: rgba(248,243,237,0.12); border-color: var(--cream); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #9A6C10; }

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

/* ── Navigation ──────────────────────────────────────────────*/
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(248,243,237,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,103,62,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo span { color: var(--terra); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--terra-dk); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid rgba(26,21,16,0.2);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle a {
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  background: transparent;
  transition: all 0.18s;
  white-space: nowrap;
}
.lang-toggle a.active {
  background: var(--terra);
  color: var(--white);
}
.lang-toggle a:hover:not(.active) { background: rgba(192,103,62,0.08); }

/* Connect CTA button in nav */
.nav-cta {
  padding: 10px 22px;
  font-size: 0.75rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.22s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(192,103,62,0.15);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid rgba(26,21,16,0.07);
  letter-spacing: 0.06em;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .lang-toggle {
  margin-top: 20px;
  align-self: flex-start;
}

/* Page offset for fixed nav */
.page-body { padding-top: var(--nav-h); }

/* ── Footer ──────────────────────────────────────────────────*/
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248,243,237,0.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--terra); }
.footer p { color: rgba(248,243,237,0.65); font-size: 0.9rem; max-width: 100%; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(248,243,237,0.7);
  font-size: 0.92rem;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(248,243,237,0.4);
}
.footer-bottom a { color: rgba(248,243,237,0.5); }
.footer-bottom a:hover { color: var(--cream); }

/* ── Hero (shared pattern) ───────────────────────────────────*/
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
}
.hero h1 { color: var(--cream); margin-bottom: 24px; }
.hero h1 em { color: var(--terra); font-style: normal; }
.hero .lead { color: rgba(248,243,237,0.78); margin-bottom: 40px; max-width: 56ch; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Decorative blob */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(192,103,62,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -8%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(138,158,133,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Cards ───────────────────────────────────────────────────*/
.card {
  background: var(--white);
  padding: 40px 36px;
  border-top: 3px solid var(--terra);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,21,16,0.08); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.97rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Stats strip ─────────────────────────────────────────────*/
.stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 140px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(248,243,237,0.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248,243,237,0.55);
  margin-top: 8px;
  display: block;
}

/* ── Phase cards ─────────────────────────────────────────────*/
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.phase {
  padding: 40px 32px;
  position: relative;
}
.phase:nth-child(1) { background: var(--light-sage); }
.phase:nth-child(2) { background: var(--light-gold); }
.phase:nth-child(3) { background: var(--light-terra); }
.phase:nth-child(4) { background: var(--violet-bg); }
.phase-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(26,21,16,0.12);
  line-height: 1;
  margin-bottom: 12px;
}
.phase h3 { margin-bottom: 10px; font-size: 1.4rem; }
.phase p { font-size: 0.93rem; max-width: 100%; }

/* ── Testimonial ─────────────────────────────────────────────*/
.testimonial {
  border-left: 3px solid var(--terra);
  padding: 24px 32px;
  background: var(--white);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.5;
}
.testimonial cite {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra-dk);
  font-style: normal;
}

/* ── Section intro ───────────────────────────────────────────*/
.section-intro {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-intro h2 { margin-bottom: 16px; }

/* ── Accessibility: skip link ────────────────────────────────*/
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--terra);
  color: var(--white);
  padding: 10px 20px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Responsive ──────────────────────────────────────────────*/
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --section-pad: 64px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .phases { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid rgba(248,243,237,0.1); }
  .stat:last-child { border-bottom: none; }
  .hero { min-height: 75vh; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Blog ────────────────────────────────────────────────────*/
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-top: 3px solid var(--terra);
  transition: transform 0.22s, box-shadow 0.22s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,21,16,0.08); }
.blog-card-body { padding: 36px 32px; }
.blog-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-dk);
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
}
.blog-card-title a { color: var(--ink); transition: color 0.18s; }
.blog-card-title a:hover { color: var(--terra-dk); }
.blog-card-excerpt { font-size: 0.97rem; color: var(--mid); margin-bottom: 16px; }
.blog-card-meta { font-size: 0.78rem; color: rgba(26,21,16,0.4); letter-spacing: 0.04em; }

/* ── Blog Post ──────────────────────────────────────────────*/
.post-header {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 0;
}
.post-header h1 { margin-bottom: 16px; }
.post-header h1 em { color: var(--terra); font-style: normal; }
.post-meta {
  font-size: 0.88rem;
  color: var(--mid);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(26,21,16,0.1);
}
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
}
.post-content p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: none;
}
.post-content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  border-left: 3px solid var(--terra);
  padding: 16px 0 16px 28px;
  margin: 40px 0;
  line-height: 1.5;
}
.post-content a { color: var(--terra-dk); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--terra); }
.post-content ul, .post-content ol {
  margin: 16px 0 24px 24px;
  color: var(--mid);
}
.post-content li { margin-bottom: 8px; line-height: 1.7; }
