/*
Theme Name:   Astra Child — Розстановки
Theme URI:    https://example.com
Description:  Дочірня тема Astra для сайту коуча-розстановника
Author:       Coach Studio
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* =====================================================
   1. ДИЗАЙН-ТОКЕНИ
   ===================================================== */
:root {
  /* Фірмова палітра Катерини Філіпової */
  --brand: #821D38;        /* головний бордовий */
  --wine-dark: #5E1328;    /* темний винний */
  --wine-deepest: #3D0C1A; /* найглибший винний (похідний, для footer) */
  --accent: #B03A5A;       /* акцентний малиново-бордовий */
  --accent-soft: #E8C8D1;  /* світлий похідний акценту, для градієнтів/плейсхолдерів */
  --brand-dark: #5E1328;   /* hover для кнопок на брендовому кольорі */
  --paper: #F7F3F4;        /* світлий фон */
  --rose-tint: #F3E4E8;    /* альтернативний світлий фон секцій, похідний */
  --text-dark: #2A2326;    /* графіт для тексту */
  --text-on-dark: #F7F3F4;
  --text-muted: #8A757C;
  --line-soft: rgba(176, 58, 90, 0.32);

  --font-display: 'Unbounded', 'Segoe UI', sans-serif;
  --font-body: 'PT Serif', Georgia, serif;
  --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -20px rgba(18, 20, 42, 0.35);
  --container-w: 1180px;
}

/* =====================================================
   2. БАЗА
   ===================================================== */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
}

h1, h2, h3, h4,
.ast-oembed-container,
.entry-title,
.site-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.eyebrow,
.ast-header-search .search-field,
nav.main-navigation,
.ast-builder-menu-1 {
  font-family: var(--font-ui);
}

a { transition: color .2s ease, opacity .2s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost-light {
  border-color: rgba(243, 239, 228, 0.5);
  color: var(--text-on-dark);
  background: transparent;
}
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark {
  border-color: rgba(34, 31, 46, 0.25);
  color: var(--text-dark);
  background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--brand); }

.section {
  padding: 96px 24px;
}
.section-inner {
  max-width: var(--container-w);
  margin: 0 auto;
}
.section--navy {
  background: var(--wine-dark);
  color: var(--text-on-dark);
}
.section--paper { background: var(--paper); }
.section--rose  { background: var(--rose-tint); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--accent); }

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.section-lead {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
}
.section--navy .section-lead { color: rgba(243, 239, 228, 0.75); }

/* =====================================================
   3. ХЕДЕР (Astra header, лише перестилізація)
   ===================================================== */
#masthead,
.main-header-bar {
  background: transparent;
  border: none !important;
  transition: background-color .35s ease, box-shadow .35s ease;
}
body.home #masthead {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 60;
}
body.home #masthead .site-title a,
body.home #masthead .ast-header-navigation-arrow,
body.home #masthead a {
  color: var(--text-on-dark);
}
body.home #masthead .main-header-menu > .menu-item > a {
  color: var(--text-on-dark) !important;
  font-family: var(--font-ui);
  font-weight: 500;
}
body.home #masthead.is-scrolled {
  position: fixed;
  background: var(--wine-dark) !important;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.4);
}
body.home #masthead .ast-button-wrap .btn { margin-left: 8px; }

#masthead .site-title a { font-family: var(--font-display); font-weight: 700; }
.main-header-menu > .menu-item > a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
}
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .current-menu-item > a { color: var(--brand) !important; }
body:not(.home) #masthead { background: var(--paper) !important; }

/* мобільне меню — темна панель під бренд */
.ast-mobile-popup-drawer,
.ast-mobile-popup-content {
  background: var(--wine-dark) !important;
}
.ast-mobile-popup-drawer .main-navigation a { color: var(--text-on-dark) !important; }

/* =====================================================
   4. HERO + СУЗІР'Я
   ===================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 20% 0%, #7A2440 0%, var(--wine-dark) 55%, var(--wine-deepest) 100%);
  color: var(--text-on-dark);
  padding: 190px 24px 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.08;
  max-width: 15ch;
  margin: 0;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: rgba(243, 239, 228, 0.82);
  max-width: 52ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.hero-scroll-cue {
  margin-top: 56px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.5);
}

/* смуга довіри */
.trust-strip {
  border-top: 1px solid rgba(243, 239, 228, 0.12);
  background: var(--wine-deepest);
  padding: 28px 24px;
}
.trust-strip .section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  font-family: var(--font-ui);
  color: rgba(243, 239, 228, 0.7);
  font-size: 14px;
}
.trust-strip strong { color: var(--accent); font-family: var(--font-display); font-size: 20px; display: block; }

/* =====================================================
   5. ПРО КОУЧА
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--rose-tint), var(--accent-soft));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text p { font-size: 18px; line-height: 1.75; margin: 0 0 20px; }
.about-signature {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand);
  margin-top: 24px;
}

/* =====================================================
   6. ПОСЛУГИ — картки, з'єднані лініями поля
   ===================================================== */
.services-map { position: relative; }
.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(34,31,46,0.06);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  position: relative;
  box-shadow: 0 16px 40px -24px rgba(34,31,46,0.25);
}
.service-node {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(203,163,92,0.18);
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.service-card p {
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.service-card .btn { padding: 10px 20px; font-size: 13.5px; }

/* =====================================================
   7. AI-БАНЕР (лід-магніт)
   ===================================================== */
.ai-banner {
  background: var(--wine-dark);
  color: var(--text-on-dark);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ai-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 20%, rgba(203,163,92,0.25), transparent 60%);
  pointer-events: none;
}
.ai-banner h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 12px;
  position: relative;
}
.ai-banner p { font-family: var(--font-ui); color: rgba(243,239,228,0.75); margin: 0 0 22px; position: relative; }
.ai-banner-actions { position: relative; }

/* =====================================================
   8. БЛОГ — прев'ю на головній + архів/сторінка посту
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.blog-card, article.ast-article-post {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(34,31,46,0.06);
}
.blog-card-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, var(--rose-tint), var(--accent-soft));
}
.blog-card-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.blog-card-body { padding: 22px; }
.blog-card-meta,
.entry-meta {
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.blog-card h3, .blog-card .entry-title, article .entry-title { font-size: 19px; margin: 0 0 10px; }
.blog-card .entry-title a, article .entry-title a { color: var(--text-dark); text-decoration: none; }
.blog-card p, article .entry-content p { font-family: var(--font-ui); font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.single-post article .entry-content { font-family: var(--font-body); font-size: 18px; line-height: 1.8; }
.single-post article .entry-content h2 { margin-top: 46px; }

/* =====================================================
   8b. СТРОГИЙ БЛОК — ДЛЯ БІЗНЕСУ / ДЛЯ ЕКСПЕРТІВ
   (навмисно без --accent: тільки brand / wine-dark / графіт / папір)
   ===================================================== */
.section--strict {
  background: #fff;
  border-top: 1px solid rgba(42, 35, 38, 0.08);
  border-bottom: 1px solid rgba(42, 35, 38, 0.08);
}
.section--strict .eyebrow { color: var(--brand); }
.section--strict .section-title { letter-spacing: -0.005em; }
.section--strict .section-lead { color: var(--text-muted); }

.strict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: rgba(42, 35, 38, 0.1);
  border: 1px solid rgba(42, 35, 38, 0.1);
}
.strict-card {
  background: #fff;
  padding: 34px 28px;
}
.strict-card .service-node { background: var(--brand); box-shadow: none; border-radius: 2px; width: 8px; height: 8px; }
.strict-card h3 { font-size: 18px; margin: 0 0 10px; }
.strict-card p { font-family: var(--font-ui); font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }
.strict-card .btn {
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 13px;
  border-color: var(--brand);
  color: var(--brand);
}
.strict-card .btn:hover { background: var(--brand); color: #fff; }

.strict-banner {
  background: var(--wine-dark);
  color: var(--text-on-dark);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}
.strict-banner .eyebrow { color: var(--text-on-dark); opacity: 0.7; }
.strict-banner h3 { font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 12px; }
.strict-banner p { font-family: var(--font-ui); color: rgba(247,243,244,0.75); margin: 0; }
.strict-banner .btn-ghost-light { border-radius: 4px; border-color: rgba(247,243,244,0.4); }

/* =====================================================
   8c. ДЕТАЛЬНІШЕ ПРО МЕНЕ — розширений блок
   ===================================================== */
.about-detailed-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-detailed-text p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.fact-item {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 16px;
}
.fact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand);
}
.fact-item span {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--text-muted);
}

/* =====================================================
   9. ВІДГУКИ
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  border-left: 3px solid var(--accent);
}
.testimonial-card p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.testimonial-name { font-family: var(--font-ui); font-weight: 700; font-size: 14px; }
.testimonial-role { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); }

/* =====================================================
   10. ФІНАЛЬНИЙ CTA
   ===================================================== */
.final-cta { text-align: center; }
.final-cta .section-title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.final-cta .section-lead { margin-left: auto; margin-right: auto; }
.final-cta .hero-cta { justify-content: center; margin-top: 30px; }

/* =====================================================
   11. FOOTER (кастомний, через хук astra_footer)
   ===================================================== */
.site-footer-custom {
  background: var(--wine-deepest);
  color: rgba(243,239,228,0.75);
  padding: 80px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  max-width: var(--container-w);
  margin: 0 auto;
}
.footer-brand { font-family: var(--font-display); color: var(--text-on-dark); font-size: 22px; margin: 0 0 14px; }
.footer-tag { font-family: var(--font-ui); font-size: 14px; line-height: 1.6; color: rgba(243,239,228,0.55); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(243,239,228,0.75); text-decoration: none; font-family: var(--font-ui); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container-w);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(243,239,228,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: rgba(243,239,228,0.45);
}

/* =====================================================
   12. ДОСТУПНІСТЬ
   ===================================================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================
   13. АДАПТИВНІСТЬ
   ===================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { max-width: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .ai-banner { grid-template-columns: 1fr; text-align: left; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strict-grid { grid-template-columns: repeat(2, 1fr); }
  .strict-banner { grid-template-columns: 1fr; padding: 32px; }
  .about-detailed-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .section { padding: 64px 18px; }
  .hero { padding: 150px 18px 80px; }
  .hero-title { max-width: 100%; }
  .hero-cta, .final-cta .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .trust-strip .section-inner { flex-direction: column; gap: 18px; }
  .strict-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
}
