/*
Theme Name: FamilyFormed Child
Theme URI: https://familyformed.com
Description: Custom presentation layer for FamilyFormed on top of Astra.
Author: Codex
Template: astra
Version: 1.1.0
Text Domain: familyformed-child
*/

:root {
  --ast-global-color-0: #5d705f;
  --ast-global-color-1: #705148;
  --ast-global-color-2: #21261f;
  --ast-global-color-3: #4d564a;
  --ast-global-color-4: #fffdf8;
  --ast-global-color-5: #f8f3eb;
  --ast-global-color-6: #efe5d4;
  --ast-global-color-7: #dfe4d9;
  --ff-ink: #21261f;
  --ff-body: #4d564a;
  --ff-muted: #7b8274;
  --ff-olive: #5d705f;
  --ff-moss: #dfe4d9;
  --ff-sand: #e9dfcf;
  --ff-cream: #f8f3eb;
  --ff-paper: #fffdf8;
  --ff-gold: #bb935d;
  --ff-gold-soft: rgba(187, 147, 93, 0.16);
  --ff-plum: #705148;
  --ff-border: rgba(33, 38, 31, 0.11);
  --ff-border-strong: rgba(33, 38, 31, 0.18);
  --ff-shadow: 0 26px 70px rgba(45, 44, 32, 0.09);
  --ff-shadow-soft: 0 18px 48px rgba(45, 44, 32, 0.06);
  --ff-radius-xl: 38px;
  --ff-radius-lg: 30px;
  --ff-radius-md: 24px;
  --ff-radius-sm: 16px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(187, 147, 93, 0.16), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(112, 81, 72, 0.08), transparent 18%),
    linear-gradient(180deg, #fcf8f1 0%, #f4ede1 44%, #f8f4ed 100%);
  color: var(--ff-body);
  font-family: "Manrope", sans-serif;
}

body .site,
.site,
.site-content {
  background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-content :where(h1, h2, h3, h4, h5, h6),
.site-title,
.site-title a {
  color: var(--ff-ink);
  font-family: "Fraunces", serif;
  letter-spacing: -0.028em;
}

p {
  color: var(--ff-body);
}

body .is-layout-constrained > * {
  margin-block-start: 0;
}

a,
.entry-content a {
  color: var(--ff-plum);
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus {
  color: #523a33;
}

.site-header,
.ast-primary-header-bar,
.main-header-bar,
.site-footer,
.ast-footer-overlay {
  background: rgba(248, 243, 235, 0.9);
  backdrop-filter: blur(10px);
}

.ast-primary-header-bar {
  border-bottom: 1px solid rgba(33, 38, 31, 0.08);
}

.site-header .site-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.main-header-menu > .menu-item > .menu-link {
  color: var(--ff-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
  color: var(--ff-plum);
}

.ast-button,
.button,
.wp-block-button__link,
.entry-content .wp-block-button__link {
  border: 1px solid var(--ff-border);
  border-radius: 999px;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 180px;
  padding: 15px 26px;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-buttons .wp-block-button.wp-block-button__link.is-style-outline:not(.has-text-color),
.ff-button-secondary {
  background: rgba(255, 253, 248, 0.74);
  border-color: var(--ff-border-strong);
  color: var(--ff-ink);
}

.wp-block-button .wp-block-button__link,
.wp-block-button > .wp-block-button__link,
.ff-button-primary {
  background: linear-gradient(135deg, #687d6a, #556758);
  border-color: #556758;
  color: #fff;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
.wp-block-button > .wp-block-button__link:hover,
.wp-block-button > .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:focus {
  background: var(--ff-plum);
  border-color: var(--ff-plum);
  color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button,
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color),
.wp-block-buttons .wp-block-button.wp-block-button__link.is-style-outline:not(.has-text-color) {
  box-shadow: none;
}

.ff-cta-band .wp-block-button.is-style-outline .wp-block-button__link,
.ff-cta-band .wp-block-button.is-style-outline > .wp-block-button__link,
.ff-cta-band .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.ff-cta-band .wp-block-button.is-style-outline .wp-block-button__link:hover,
.ff-cta-band .wp-block-button.is-style-outline .wp-block-button__link:focus,
.ff-cta-band .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ff-cta-band .wp-block-button.is-style-outline > .wp-block-button__link:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
}

.entry-content > .wp-block-group,
.entry-content > .wp-block-cover,
.entry-content > .wp-block-columns {
  margin-bottom: 0;
}

.ff-page-shell {
  padding: 34px 0 92px;
}

.ff-section {
  margin: 0 auto 34px;
  max-width: 1180px;
}

.ff-panel,
.ff-card-grid .wp-block-group,
.ff-pillars .wp-block-group,
.ff-steps .wp-block-group,
.ff-testimonial {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-md);
  box-shadow: var(--ff-shadow-soft);
}

.ff-hero {
  overflow: hidden;
  position: relative;
}

.ff-hero::before {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(255, 253, 248, 0.58)),
    radial-gradient(circle at 18% 18%, rgba(187, 147, 93, 0.18), transparent 24%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.ff-hero .wp-block-columns {
  gap: 42px;
  position: relative;
  z-index: 1;
}

.ff-hero,
.ff-is-not,
.ff-transformation,
.ff-foundation,
.ff-practical,
.ff-editorial-band,
.ff-proof-strip,
.ff-cta-band {
  padding: 42px;
}

.ff-kicker {
  color: var(--ff-plum);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.ff-home-note {
  color: var(--ff-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 36rem;
}

.ff-hero-copy h1 {
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  line-height: 0.92;
  margin-bottom: 24px;
}

.ff-lead {
  font-size: 1.16rem;
  line-height: 1.92;
  margin-bottom: 28px;
  max-width: 39rem;
}

.ff-hero-aside {
  background:
    linear-gradient(180deg, rgba(242, 235, 223, 0.9), rgba(255, 252, 246, 0.95)),
    linear-gradient(145deg, rgba(187, 147, 93, 0.18), transparent 60%);
  border: 1px solid rgba(112, 81, 72, 0.08);
  border-radius: var(--ff-radius-xl);
  box-shadow: var(--ff-shadow);
  padding: 34px;
}

.ff-mini-label {
  color: var(--ff-plum);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ff-stat {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.ff-stat-dot {
  background: var(--ff-gold);
  border-radius: 50%;
  flex: 0 0 12px;
  height: 12px;
  margin-top: 8px;
}

.ff-section-title {
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 0.98;
  margin-bottom: 16px;
}

.ff-intro {
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 0;
  max-width: 52rem;
}

.ff-section-head {
  margin-bottom: 26px;
}

.ff-section-head .ff-kicker {
  margin-bottom: 10px;
}

.ff-card-grid,
.ff-pillars,
.ff-steps,
.ff-proof-grid {
  gap: 24px;
}

.ff-card-grid .wp-block-group,
.ff-pillars .wp-block-group,
.ff-steps .wp-block-group {
  height: 100%;
  padding: 30px;
}

.ff-card-grid h3,
.ff-pillars h3,
.ff-steps h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.ff-is-not {
  background: linear-gradient(180deg, rgba(112, 81, 72, 0.06), rgba(255, 253, 248, 0.88));
}

.ff-transformation {
  background: linear-gradient(180deg, rgba(93, 112, 95, 0.08), rgba(255, 253, 248, 0.88));
}

.ff-foundation {
  background:
    radial-gradient(circle at top right, rgba(187, 147, 93, 0.16), transparent 26%),
    rgba(255, 252, 247, 0.84);
}

.ff-practical {
  background: linear-gradient(180deg, rgba(238, 229, 216, 0.8), rgba(255, 253, 248, 0.9));
}

.ff-editorial-band {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(247, 241, 232, 0.94));
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-lg);
  box-shadow: var(--ff-shadow-soft);
}

.ff-note {
  color: var(--ff-muted);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ff-proof-strip {
  background: linear-gradient(135deg, rgba(93, 112, 95, 0.93), rgba(84, 61, 55, 0.9));
  border-radius: var(--ff-radius-lg);
  color: #fff;
}

.ff-proof-strip p,
.ff-proof-strip h2,
.ff-proof-strip h3 {
  color: #fff;
}

.ff-proof-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 22px;
}

.ff-proof-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.ff-proof-value {
  color: #fff;
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

.ff-proof-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ff-list {
  margin: 0;
  padding-left: 1.1rem;
}

.ff-list li {
  margin-bottom: 10px;
}

.ff-quote {
  color: var(--ff-ink);
  font-family: "Fraunces", serif;
  font-size: 1.62rem;
  line-height: 1.42;
}

.ff-testimonial {
  padding: 30px;
}

.ff-testimonial-mark {
  color: var(--ff-gold);
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}

.ff-cta-band {
  background: linear-gradient(135deg, rgba(93, 112, 95, 0.96), rgba(112, 81, 72, 0.93));
  border-radius: var(--ff-radius-xl);
  box-shadow: var(--ff-shadow);
  color: #fff;
  position: relative;
}

.ff-cta-band h2,
.ff-cta-band p {
  color: #fff;
}

.ff-cta-band::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 60%);
  content: "";
  height: 180px;
  pointer-events: none;
  position: absolute;
  right: -40px;
  top: -20px;
  width: 180px;
}

.ff-page-simple .entry-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}

.ff-page-simple .entry-content > .wp-block-group {
  max-width: 960px;
}

.ff-page-simple .entry-content h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
}

.ff-page-simple .entry-content .wp-block-group.is-style-default,
.ff-page-simple .entry-content .wp-block-group:not(.alignfull) {
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-md);
  box-shadow: var(--ff-shadow-soft);
  padding: 32px;
}

.site-footer {
  border-top: 1px solid var(--ff-border);
}

.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap {
  background: transparent;
}

.ast-footer-copyright,
.ast-footer-site-title {
  color: var(--ff-body);
}

@media (max-width: 921px) {
  .ff-page-shell {
    padding-top: 12px;
  }

  .ff-hero-copy h1 {
    line-height: 1;
  }

  .ff-hero,
  .ff-is-not,
  .ff-transformation,
  .ff-foundation,
  .ff-practical,
  .ff-editorial-band,
  .ff-proof-strip,
  .ff-hero-aside,
  .ff-cta-band,
  .ff-card-grid .wp-block-group,
  .ff-pillars .wp-block-group,
  .ff-steps .wp-block-group,
  .ff-page-simple .entry-content .wp-block-group:not(.alignfull) {
    padding: 24px;
  }

  .ff-proof-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 0;
    padding-top: 18px;
  }

  .ff-proof-item:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 544px) {
  .ff-section {
    margin-bottom: 18px;
  }

  .ff-hero-copy h1 {
    font-size: 2.45rem;
  }

  .ff-kicker,
  .ff-mini-label {
    letter-spacing: 0.1em;
  }

  .wp-block-button__link,
  .entry-content .wp-block-button__link {
    min-width: unset;
    width: 100%;
  }
}
