/*
Theme Name: Czuła Młodość – Dziennik
Theme URI: https://srv103550.seohost.com.pl
Author: Kamila Łukasiewicz
Description: Rozwojowy dziennik dla młodych ludzi, którzy chcą przezwyciężyć trudności i żyć pełniej
Version: 1.0
*/

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --cm-bg-blue:   #E2EDF1;
  --cm-bg-cream:  #E2EDF1;
  --cm-bg-dark:   #607A8D;
  --cm-bg-teal:   #90B7C4;
  --cm-bg-teal2:  #87ADBF;
  --cm-text:      #3D5A6A;
  --cm-text-dark: #2A3F4A;
  --cm-text-cream:#5C4A30;
  --cm-white:     #FFFFFF;
  --cm-btn-bg:    #FFFFFF;
  --cm-serif:     'Cormorant Garamond', 'Georgia', serif;
  --cm-sans:      'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
#czula-mlodosc, #dla-kogo, #autorka, #relaksacja, #dlaczego-warto, #zakup-kontakt {
  scroll-margin-top: 60px;
}
body { font-family: var(--cm-serif); color: var(--cm-text); background: var(--cm-bg-blue); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { line-height: 1.7; }

/* ── NAVIGATION ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cm-bg-blue);
  border-bottom: 1px solid rgba(67,95,116,0.15);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
}
.site-nav a {
  font-family: var(--cm-sans);
  font-family: var(--cm-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--cm-text);
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--cm-text-dark);
  border-bottom: 2px solid var(--cm-text-dark);
}
.site-nav a.active {
  font-weight: 700;
}
.site-nav a.cm-nav-brand {
  letter-spacing: 0.04em;
  margin-right: 8px;
}

/* ── HERO PAGE ─────────────────────────────────────────── */
.cm-hero {
  min-height: calc(100vh - 52px);
  background: var(--cm-bg-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}
.cm-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
}
.cm-hero-image { flex: 0 0 auto; }
.cm-hero-image img {
  width: 300px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(67,95,116,0.18);
}
.cm-hero-text {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.cm-hero-text h1 {
  font-family: var(--cm-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--cm-text-dark);
  margin-bottom: 20px;
}
.cm-hero-text .cm-subtitle {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--cm-text);
  margin-bottom: 24px;
}
.cm-hero-text .cm-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--cm-text);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.cm-btn {
  display: inline-block;
  background: var(--cm-btn-bg);
  color: var(--cm-text-dark);
  font-family: var(--cm-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 13px 42px;
  border: 1px solid rgba(67,95,116,0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cm-btn:hover {
  background: var(--cm-text);
  color: var(--cm-white);
}
.cm-btn--dark {
  background: #FFFFFF;
  color: var(--cm-text-dark);
  border-color: rgba(67,95,116,0.2);
}
.cm-btn--dark:hover {
  background: var(--cm-text);
  color: var(--cm-white);
}

/* ── PAGE WRAPPER ───────────────────────────────────────── */
.cm-page-content {
  min-height: calc(100vh - 52px);
}

/* ── SECTION CONTAINERS ─────────────────────────────────── */
.cm-section {
  padding: 64px 48px;
}
.cm-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cm-section--blue  { background: var(--cm-bg-blue); }
.cm-section--cream { background: var(--cm-bg-cream); color: var(--cm-text-dark); }
/* Relaksacja page: warm/yellow background */
body.page-id-510 .cm-section--cream { background: #FFF5CB; color: var(--cm-text-dark); }
.cm-section--dark  { background: var(--cm-bg-dark); color: var(--cm-white); }
.cm-section--teal  { background: var(--cm-bg-teal); color: var(--cm-white); }
.cm-section--teal2 { background: transparent; color: var(--cm-white); }

/* Override: excerpt text dark on teal backgrounds */
.cm-section--teal .cm-excerpt-block,
.cm-section--teal2 .cm-excerpt-block,
.cm-section--dark .cm-excerpt-block {
  color: var(--cm-text-dark);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.cm-heading {
  font-family: var(--cm-serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 36px;
  text-align: center;
}
.cm-section--dark .cm-heading,
.cm-section--teal .cm-heading,
.cm-section--teal2 .cm-heading { color: var(--cm-white); }
.cm-section--cream .cm-heading { color: var(--cm-text-dark); }

.cm-subheading {
  font-family: var(--cm-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  color: inherit;
}

/* ── DLA KOGO: OVAL CARDS ───────────────────────────────── */
.cm-oval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto 32px;
}
.cm-oval-card {
  border: 1.5px solid var(--cm-text);
  border-radius: 60px;
  padding: 22px 32px;
  text-align: center;
  font-family: var(--cm-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cm-text-dark);
  background: transparent;
}
.cm-info-box {
  border: 1.5px solid var(--cm-text);
  border-radius: 60px;
  padding: 24px 48px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  font-family: var(--cm-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--cm-text-dark);
}


/* cream section card overrides */
.cm-section--cream .cm-oval-card {
  border-color: rgba(42,63,74,0.3);
  color: var(--cm-text-dark);
}
.cm-section--cream .cm-info-box {
  border-color: rgba(42,63,74,0.3);
  color: var(--cm-text-dark);
}
.cm-section--cream .cm-subheading { color: var(--cm-text-dark); }
/* ── DLA KOGO: ILLUSTRATION CARDS ─────────────────────── */
.cm-illu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.cm-illu-card {
  background: #607A8D;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  font-family: var(--cm-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--cm-white);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.cm-illu-card p {
  border: none;
  padding: 8px 12px;
  margin: 0 0 14px;
  width: 100%;
  box-sizing: border-box;
}
.cm-illu-card img {
  width: 175px;
  height: 175px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  opacity: 0.85;
}
.cm-closing-text {
  text-align: center;
  font-family: var(--cm-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--cm-text-dark);
  margin-bottom: 28px;
  font-style: italic;
}

/* ── AUTORKA: TWO COLUMN ────────────────────────────────── */
.cm-two-col {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}
.cm-two-col .cm-col-image {
  flex: 0 0 360px;
}
.cm-two-col .cm-col-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1.5px solid var(--cm-text);
  box-shadow: 0 8px 32px rgba(67,95,116,0.15);
}
.cm-two-col .cm-col-text { flex: 1; }
.cm-col-text h2 {
  font-family: var(--cm-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--cm-text-dark);
}
.cm-col-text p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: var(--cm-text);
}
.cm-col-text ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 10px;
}
.cm-col-text li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: var(--cm-text);
}

/* ── RELAKSACJA: TWO COLUMN (text left, image right) ─────── */
.cm-relax-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}
.cm-relax-text { flex: 1; }
.cm-relax-text .cm-intro {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--cm-text);
}
.cm-relax-text h2 {
  font-family: var(--cm-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cm-text-dark);
  margin-bottom: 16px;
}
.cm-relax-text .cm-tagline {
  font-size: 16px;
  font-weight: 300;
  color: var(--cm-text);
  margin-bottom: 32px;
  font-style: italic;
}
.cm-relax-image {
  flex: 0 0 420px;
}
.cm-relax-image img {
  width: 100%;
  border-radius: 60px;
  border: 1.5px solid var(--cm-text);
  box-shadow: 0px 8px 32px rgba(67,95,116,0.15);
  display: block;
}

/* ── DLACZEGO WARTO: CARDS ──────────────────────────────── */
.cm-why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}
.cm-why-card {
  background: #E2EDF1;
  border: 1px solid rgba(42,63,74,0.25);
  border-radius: 24px;
  padding: 32px 24px;
  font-family: var(--cm-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--cm-text-dark);
  text-align: center;
}


.cm-why-card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: none;
  display: block;
  margin: 0 auto 16px;
  padding: 8px;
  background: #E2EDF1;
}
/* ── DLACZEGO WARTO: EXCERPT ────────────────────────────── */
.cm-excerpt-block {
  max-width: 820px;
  margin: 0 auto 40px;
}
.cm-why-heading {
  font-family: var(--cm-serif);
  font-size: clamp(28px, 4vw, 46px) !important;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--cm-white);
  text-align: center;
}
.cm-excerpt-block p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 14px;
  color: var(--cm-text-dark);
  text-align: center;
}
.cm-excerpt-block h3 {
  font-family: var(--cm-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  color: var(--cm-white);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.2;
}
.cm-excerpt-quote {
  font-size: 15px;
  font-style: normal;
  line-height: 1.8;
  color: var(--cm-text-dark);
  margin: 24px 0;
}
.cm-excerpt-fragment p {
  font-style: italic;
}

/* ── DLACZEGO WARTO: TOC ────────────────────────────────── */
.cm-toc-section {
  background: transparent;
  padding: 56px 48px;
}
.cm-toc-section .cm-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.cm-toc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
}
.cm-toc-chapter {
  font-family: var(--cm-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--cm-text-dark);
  margin: 18px 0 6px;
  grid-column: 1 / -1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cm-toc-item {
  font-family: var(--cm-serif);
  font-size: 13px;
  color: var(--cm-text-dark);
  line-height: 1.5;
  padding: 4px 0;
  border-bottom: 1px solid rgba(45,75,90,0.15);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: #222;
  color: rgba(255,255,255,0.7);
  padding: 20px 48px;
  display: flex;
  gap: 24px;
  font-family: var(--cm-sans);
  font-size: 12px;
  justify-content: center;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.site-footer a:hover { color: #fff; }


/* ── HORIZONTAL DIVIDER ─────────────────────────────── */
.cm-divider {
  border: none;
  border-top: 1px solid rgba(42,63,74,0.35);
  margin: 32px 0;
}
/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .cm-hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .cm-hero-image img { width: 220px; }
  .cm-two-col { flex-direction: column; }
  .cm-two-col .cm-col-image { flex: none; width: 100%; max-width: 320px; }
  .cm-relax-layout { flex-direction: column; }
  .cm-relax-image { flex: none; width: 100%; max-width: 320px; }
  .cm-illu-grid { grid-template-columns: 1fr; }
  .cm-why-cards { grid-template-columns: 1fr; }
  .cm-col-text { text-align: center; }
  .cm-relax-text { text-align: center; }
  .cm-toc-columns { grid-template-columns: 1fr; }
  .cm-toc-chapter { grid-column: auto; }
  .cm-oval-grid { grid-template-columns: 1fr; }
  .site-nav { flex-wrap: wrap; height: auto; padding: 8px 16px; gap: 4px; }
  .site-nav a { padding: 6px 12px; font-size: 13px; height: auto; }
  .cm-section { padding: 40px 24px; }
  .cm-toc-section { padding: 40px 24px; }
  .site-footer { flex-direction: column; align-items: center; padding: 16px 24px; }
}

/* ── GUTENBERG BLOCK OVERRIDES ──────────────────────────── */
.cm-page-content .wp-block-html,
.cm-page-content .wp-block-html > div { display: contents; }


/* ── ZAKUP/KONTAKT PAGE ────────────────────────────────── */
.cm-purchase-section {
  background: #2D4B5A;
  padding: 60px 20px 80px;
  min-height: 80vh;
}
.cm-purchase-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.cm-purchase-col { flex: 1.6; }
.cm-contact-col  { flex: 1; }

.cm-purchase-heading,
.cm-contact-heading {
  font-family: var(--cm-serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 300;
  color: #FFF5CB;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.2;
}
.cm-purchase-box {
  border: 1.5px solid #FFF5CB;
  border-radius: 24px;
  padding: 32px 40px;
  color: #FFF5CB;
}
.cm-purchase-box > p {
  font-family: var(--cm-serif);
  font-size: 17px;
  text-align: center;
  margin-bottom: 18px;
  color: #FFF5CB;
}
.cm-purchase-box ul {
  list-style: disc;
  padding-left: 22px;
}
.cm-purchase-box ul li {
  font-family: var(--cm-serif);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 10px;
  color: #FFF5CB;
}
.cm-contact-box {
  border: 1.5px solid #FFF5CB;
  border-radius: 60px;
  padding: 22px 30px;
  text-align: center;
  margin-bottom: 22px;
  color: #FFF5CB;
}
.cm-contact-box p {
  font-family: var(--cm-serif);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: #FFF5CB;
}
@media (max-width: 768px) {
  .cm-purchase-inner { flex-direction: column; gap: 40px; align-items: stretch; }
  .cm-contact-col { text-align: center; }
}