/* ============================================================
   ClearMindHypno — styles.css
   Soft Dusk palette · DM Serif Display + Source Sans 3
   ============================================================ */

/* === CUSTOM PROPERTIES === */
:root {
  --c-navy:    #2D2438;
  --c-mauve:   #8C6B8A;
  --c-gold:    #C4956A;
  --c-blush:   #D4B8D0;
  --c-lavender:#F5F0F6;
  --c-mist:    #F0E8EF;
  --c-text:    #3D2F3D;
  --c-subtle:  #6B5B7A;
  --c-white:   #FFFFFF;
  --c-border:  #EBE3F0;

  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-sans:  'Source Sans 3', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(45,36,56,0.08);
  --shadow-md: 0 8px 24px rgba(45,36,56,0.12);

  --max-w: 1100px;
  --section-pad: 5rem 0;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-lavender);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-style: italic; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-style: italic; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }
p  { font-size: 1rem; line-height: 1.75; }

.label {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-mauve);
}

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: var(--section-pad); }

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--c-navy);
  color: var(--c-lavender);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-navy);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--c-mauve);
  border-color: var(--c-mauve);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--c-navy);
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-mauve);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--c-navy);
  color: var(--c-mauve);
  transform: translateY(-1px);
}

/* === HEADER & NAV === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,240,246,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1.5rem;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-mauve); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--c-navy);
}
.hamburger svg { width: 24px; height: 24px; }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-navy);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--c-lavender);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--c-gold); }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--c-blush);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

/* === HERO === */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--c-lavender);
}
.hero-inner {
  max-width: 640px;
  animation: heroIn 0.8s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--c-mauve);
  box-shadow: 0 8px 32px rgba(140,107,138,0.2);
}
.hero .label { margin-bottom: 1.25rem; display: block; }
.hero h1 { margin-bottom: 0.5rem; }
.hero-sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--c-mauve);
  margin-bottom: 1.25rem;
}
.hero-body {
  font-size: 1rem;
  color: var(--c-subtle);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.hero-modalities {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--c-mauve);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === CREDENTIALS BAR === */
.credentials-bar {
  background: var(--c-navy);
  padding: 2.5rem 1.5rem;
}
.credentials-bar .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cred-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cred-logos a { display: flex; }
.cred-logos img {
  height: 60px;
  width: auto;
  transition: opacity 0.2s;
}
.cred-logos img:hover { opacity: 0.75; }
.cred-text {
  font-size: 0.875rem;
  color: var(--c-blush);
  max-width: 480px;
  line-height: 1.6;
}
.cred-text strong { color: var(--c-lavender); }

/* === ISSUES SECTION === */
.issues { background: var(--c-white); }
.issues h2 { text-align: center; margin-bottom: 0.75rem; }
.issues-intro {
  text-align: center;
  color: var(--c-subtle);
  max-width: 560px;
  margin: 0 auto 3rem;
}
.issues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.issue-card {
  background: var(--c-lavender);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.issue-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-sm);
}
.issue-card svg {
  width: 36px; height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--c-mauve);
}
.issue-card h4 {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 0.35rem;
}
.issue-card p {
  font-size: 0.8rem;
  color: var(--c-subtle);
  line-height: 1.5;
}

/* === MODALITIES SECTION === */
.modalities { background: var(--c-lavender); }
.modalities h2 { text-align: center; margin-bottom: 0.75rem; }
.modalities-intro {
  text-align: center;
  color: var(--c-subtle);
  max-width: 580px;
  margin: 0 auto 3rem;
}
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.modality-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-mauve);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}
.modality-card:hover {
  border-left-color: var(--c-gold);
  box-shadow: var(--shadow-sm);
}
.modality-icon {
  width: 52px;
  height: 52px;
  background: var(--c-mist);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}
.modality-icon svg {
  width: 26px;
  height: 26px;
  color: var(--c-mauve);
}
.modality-card:hover .modality-icon {
  background: var(--c-blush);
}
.modality-card:hover .modality-icon svg {
  color: var(--c-navy);
}
.modality-card h3 {
  font-style: normal;
  margin-bottom: 0.5rem;
  color: var(--c-navy);
}
.modality-card p {
  font-size: 0.9rem;
  color: var(--c-subtle);
}

.hypno-complement {
  background: var(--c-mist);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.hypno-complement svg {
  width: 32px; height: 32px;
  color: var(--c-mauve);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.hypno-complement h3 {
  font-size: 1rem;
  font-style: normal;
  margin-bottom: 0.4rem;
  color: var(--c-navy);
}
.hypno-complement p {
  font-size: 0.875rem;
  color: var(--c-subtle);
}

/* === ABOUT SECTION === */
.about { background: var(--c-white); }
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-photo-wrap { text-align: center; }
.about-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 3px solid var(--c-mauve);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}
.about-text .label { margin-bottom: 0.75rem; display: block; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--c-subtle); margin-bottom: 1rem; }
.credentials-list { margin-top: 1.5rem; }
.credentials-list li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--c-text);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.credentials-list li::before {
  content: "✓";
  color: var(--c-gold);
  font-weight: 600;
  flex-shrink: 0;
}

/* === TESTIMONIALS === */
.testimonials { background: var(--c-lavender); }
.testimonials h2 { text-align: center; margin-bottom: 3rem; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}
.testimonial-quote {
  font-family: var(--f-serif);
  font-size: 3rem;
  color: var(--c-blush);
  line-height: 0.5;
  margin-bottom: 1rem;
  display: block;
}
.testimonial p {
  font-size: 0.9rem;
  color: var(--c-subtle);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-mauve);
  letter-spacing: 0.5px;
}

/* === CTA FINAL === */
.cta-final {
  background: var(--c-navy);
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-final h2 { color: var(--c-lavender); margin-bottom: 1rem; }
.cta-final p {
  color: var(--c-blush);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}
.cta-final .btn-primary {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-navy);
  font-weight: 600;
}
.cta-final .btn-primary:hover {
  background: var(--c-blush);
  border-color: var(--c-blush);
}

/* === FOOTER === */
.site-footer {
  background: var(--c-navy);
  border-top: 1px solid rgba(212,184,208,0.15);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--c-blush);
  font-size: 0.85rem;
}
.site-footer p { margin-bottom: 0.4rem; line-height: 1.6; }
.site-footer a { color: var(--c-blush); transition: color 0.2s; }
.site-footer a:hover { color: var(--c-gold); }
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.footer-logos img {
  height: 60px; width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-logos img:hover { opacity: 1; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.footer-social a {
  color: var(--c-blush);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--c-gold); }
.footer-social svg { width: 20px; height: 20px; }
.footer-legal {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* === SCROLL FADE ANIMATION === */
.scroll-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* === INNER PAGE HERO (book/connect) === */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, #3d3050 100%);
  color: var(--c-lavender);
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}
.page-hero h1 { color: var(--c-lavender); margin-bottom: 0.75rem; }
.page-hero p { color: var(--c-blush); max-width: 560px; margin: 0 auto; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .modalities-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .about-photo { width: 200px; height: 200px; }
  .credentials-list li { justify-content: center; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 5rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-bar .container { flex-direction: column; text-align: center; }
  .hypno-complement { grid-template-columns: 1fr; text-align: center; }
  :root { --section-pad: 3.5rem 0; }
}

@media (max-width: 480px) {
  .issues-grid { grid-template-columns: 1fr; }
}
