/*
Theme Name: Kindling Resilience
Template:   kadence
Description: Kadence child theme for Kindling Resilience Pastoral Counseling.
Version:    2.0
*/

/* ============================================================
   BRAND TOKENS
   Edit these values to update the entire site's color/font scheme.
   ============================================================ */
:root {
  --kr-navy:         #15324F;   /* Primary background, header, footer */
  --kr-gold:         #C9A95B;   /* Accents, labels, links */
  --kr-gold-dark:    #9A7B2E;   /* Hover state for gold */
  --kr-cream:        #F0EADB;   /* Light section backgrounds, body text on dark */
  --kr-red:          #B22222;   /* CTA buttons, highlights */
  --kr-red-dark:     #8B1A1A;   /* CTA hover */
  --kr-white:        #FFFFFF;

  --kr-font-heading: 'Cormorant Garamond', Georgia, serif;
  --kr-font-body:    'Lato', sans-serif;

  --kr-radius:       4px;
  --kr-transition:   0.2s ease;
}

/* ============================================================
   GLOBAL BASE
   ============================================================ */
body {
  font-family: var(--kr-font-body);
  color: var(--kr-navy);
  background-color: var(--kr-white);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kr-font-heading);
  color: var(--kr-navy);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

a {
  color: var(--kr-red);
  text-decoration: none;
  transition: color var(--kr-transition);
}
a:hover { color: var(--kr-gold-dark); }

/* ============================================================
   KADENCE HEADER OVERRIDES
   These fix the logo sizing and set brand colors on Kadence's
   built-in header. Do not remove — this is what replaces the
   old custom header.php.
   ============================================================ */

/* Header background */
#masthead,
.kadence-header,
.site-header,
header.wp-block-template-part {
  background-color: var(--kr-navy) !important;
}

/* Logo — tall portrait mark, constrained height, auto width */
.site-logo img,
.custom-logo,
.kadence-header .custom-logo,
#masthead .custom-logo {
  height: 80px !important;   /* Adjust this value in Customizer if needed */
  width: auto !important;
  max-width: none !important;
  display: block;
}

/* Site title (fallback if no logo uploaded) */
.site-branding .site-title a,
.kadence-header .site-title a {
  font-family: var(--kr-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kr-gold) !important;
}

/* Nav links */
#site-navigation a,
.main-navigation a,
.kadence-header nav a,
.kadence-navigation a {
  font-family: var(--kr-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kr-cream) !important;
  transition: color var(--kr-transition);
}

#site-navigation a:hover,
.main-navigation a:hover,
.kadence-header nav a:hover,
.kadence-navigation a:hover {
  color: var(--kr-gold) !important;
}

/* CTA button in header — Kadence lets you add a button element;
   this styles whatever has the class you assign in Header Builder */
.header-cta-button a,
.kadence-header .kb-btn,
.kr-header-cta {
  background-color: var(--kr-red) !important;
  color: var(--kr-white) !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--kr-radius) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: background-color var(--kr-transition) !important;
}

.header-cta-button a:hover,
.kadence-header .kb-btn:hover,
.kr-header-cta:hover {
  background-color: var(--kr-red-dark) !important;
  color: var(--kr-white) !important;
}

/* ============================================================
   BUTTONS / CTA
   ============================================================ */
.wp-block-button__link,
.button {
  font-family: var(--kr-font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  background-color: var(--kr-red) !important;
  color: var(--kr-white) !important;
  border: none !important;
  border-radius: var(--kr-radius) !important;
  padding: 0.85rem 1.8rem !important;
  display: inline-block !important;
  transition: background-color var(--kr-transition), transform var(--kr-transition) !important;
  cursor: pointer !important;
}

.wp-block-button__link:hover {
  background-color: var(--kr-red-dark) !important;
  transform: translateY(-1px);
  color: var(--kr-white) !important;
}

/* Ghost / secondary button */
.kr-btn-ghost .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--kr-gold) !important;
  color: var(--kr-gold) !important;
}
.kr-btn-ghost .wp-block-button__link:hover {
  background-color: var(--kr-gold) !important;
  color: var(--kr-navy) !important;
}

/* Contact buttons (email / phone) */
.kr-contact-btn {
  display: inline-block;
  background-color: var(--kr-gold);
  color: var(--kr-navy) !important;
  font-family: var(--kr-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: var(--kr-radius);
  transition: background-color var(--kr-transition), color var(--kr-transition);
  text-decoration: none;
}
.kr-contact-btn:hover {
  background-color: var(--kr-gold-dark);
  color: var(--kr-white) !important;
}

/* ============================================================
   PAGE CONTENT AREA
   ============================================================ */
.site-main,
#primary {
  background-color: var(--kr-white);
}

/* Full-bleed sections inside block editor pages */
.entry-content > .wp-block-group.kr-hero,
.entry-content > .wp-block-group.kr-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ============================================================
   HERO — HOME PAGE
   ============================================================ */
.kr-hero {
  background-color: var(--kr-navy);
  color: var(--kr-cream);
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}

.kr-hero h1 {
  color: var(--kr-cream);
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  max-width: 620px;
}

.kr-hero h1 em {
  color: var(--kr-gold);
  font-style: italic;
}

.kr-hero .wp-block-columns {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 4rem;
  align-items: end;
}

.kr-hero .wp-block-column {
  min-width: 0;
}

.kr-hero .wp-block-image img {
  width: 100%;
  display: block;
  border-radius: 4px 4px 0 0;
}

.kr-tagline {
  font-family: var(--kr-font-body);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kr-gold);
  margin-bottom: 1rem;
}

.kr-sub {
  font-size: 1.1rem;
  color: var(--kr-cream);
  opacity: 0.85;
  max-width: 580px;
}

.kr-cta-note {
  font-size: 0.82rem;
  color: var(--kr-cream);
  opacity: 0.7;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.kr-section {
  padding: 5rem 2rem;
}

.kr-section-cream {
  background-color: var(--kr-cream);
}

.kr-section-navy {
  background-color: var(--kr-navy);
  color: var(--kr-cream);
}

.kr-section-navy h1,
.kr-section-navy h2,
.kr-section-navy h3,
.kr-section-navy p {
  color: var(--kr-cream);
}

.kr-section-label {
  font-family: var(--kr-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kr-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.kr-hero-body {
  font-size: 1rem;
  color: var(--kr-cream);
  opacity: 0.85;
  max-width: 640px;
  line-height: 1.8;
}

.kr-max-w {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.wp-block-columns.kr-services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
}

.wp-block-columns.kr-services-grid > .wp-block-column {
  flex-basis: auto !important;
  min-width: 0;
}

.kr-service-card {
  background-color: var(--kr-white);
  border-top: 3px solid var(--kr-gold);
  padding: 1.75rem 1.5rem;
  border-radius: var(--kr-radius);
  box-shadow: 0 2px 12px rgba(21,50,79,0.08);
}

.kr-service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   FOOTER — EVERY PAGE
   ============================================================ */

/* Override Kadence's default footer */
#colophon,
.site-footer,
.kadence-footer,
footer.wp-block-template-part {
  background-color: var(--kr-navy) !important;
  color: var(--kr-cream) !important;
  padding: 3.5rem 2rem 2rem !important;
}

.kr-site-footer {
  background: var(--kr-navy);
  color: var(--kr-cream);
  padding: 4rem 2rem 2rem;
}

.kr-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201,169,91,0.25);
}

.kr-footer-brand-name {
  font-family: var(--kr-font-heading);
  font-size: 1.4rem;
  color: var(--kr-gold);
  margin-bottom: 0.5rem;
}

.kr-footer-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--kr-cream);
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.kr-footer-title {
  font-family: var(--kr-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kr-gold);
  margin-bottom: 1rem;
  display: block;
}

.kr-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kr-footer-nav a {
  color: var(--kr-cream);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color var(--kr-transition);
}

.kr-footer-nav a:hover {
  color: var(--kr-gold);
}

.kr-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kr-footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  font-size: 0.78rem;
  color: var(--kr-cream);
  opacity: 0.55;
  text-align: center;
}

/* Hide logo from footer if Kadence puts one there */
#colophon .custom-logo,
.site-footer .custom-logo {
  display: none !important;
}

/* ============================================================
   INNER PAGE DEFAULTS
   These ensure any page you build yourself looks on-brand.
   ============================================================ */
.entry-content p {
  max-width: 720px;
}

.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.entry-content img {
  border-radius: var(--kr-radius);
  max-width: 100%;
  height: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .kr-hero .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .kr-hero {
    padding: 4rem 1.25rem 3rem;
  }

  .kr-section {
    padding: 3rem 1.25rem;
  }

  .wp-block-columns.kr-services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kr-footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 520px) {
  .wp-block-columns.kr-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Why resolution — repeated tagline after Because statements */
.kr-why-resolution {
  font-family: var(--kr-font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--kr-red);
  font-weight: 600;
  text-align: center;
  margin: 2.5rem auto 2rem;
  max-width: 600px;
  line-height: 1.3;
}
