/* Google Fonts import and font-family base setup */
@import url("https://fonts.googleapis.com/css?family=Barlow:700,400&display=swap");
@import url("https://fonts.googleapis.com/css?family=Lato:700,400&display=swap");
@import url("https://fonts.googleapis.com/css?family=Playfair+Display:700,400&display=swap");

:root {
    --global-kb-font-size-xl: 1.6rem !important;
}

body {
    font-family: "Inter", "Arial", sans-serif;
    color: #232933;
}

/* 1) Register the font */
@font-face {
    font-family: "RCal Script";
    src: url("/wp-content/themes/kadence-child/assets/fonts/RCalScript.woff2")
        format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 2) Helper class so you can sprinkle it where you want */
.rcal-script {
    font-family:
        "RCal Script",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    letter-spacing: 0.1px;
    line-height: 1.1;
}

/* Optional: site title in header uses script, tagline stays sans */
.site-branding .site-title {
    font-family:
        "RCal Script",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

/* Optional: accent only for first word of H1s */
.entry-content h1 .rcal-script {
    display: inline-block;
    margin-right: 0.2ch;
}

/* Hero H1 in gold */
:root {
    --rc-hero-h1: #ffc94a;
} /* alt: #FFE08C for a softer cream */
.rc-hero h1 {
    color: var(--rc-hero-h1) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.rc-hero h1 {
    background: linear-gradient(180deg, #fff1b3 0%, #ffc94a 60%, #ffb300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Keep overlay/leaf behind everything */
.rc-hero {
    position: relative;
}
.rc-hero .rc-max {
    position: relative;
    z-index: 1;
}
.rc-leaf {
    z-index: 0;
}

/* LEFT column (headline/paragraphs) only */
.rc-hero .rc-max > div:first-child,
.rc-hero .rc-max > div:first-child * {
    color: #fff !important; /* or keep your gold h1 if you set it */
}

/* RIGHT column card: return to dark text on white */
.rc-hero .rc-card,
.rc-hero .rc-card h3,
.rc-hero .rc-card p,
.rc-hero .rc-card strong,
.rc-hero .rc-card a {
    color: var(--rc-ink) !important; /* readable on white */
}

/* Keep the step numbers white on forest green pills */
.rc-hero .rc-card .num {
    color: #fff !important;
}

/* Optional: soften the card so it stands off the hero */
.rc-hero .rc-card {
    background: #fff; /* or #f9fbfa for a soft tint */
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* Show sections on the homepage only (covers static front page + posts index) */
body.front-page #inner-wrap > section,
body.home #inner-wrap > section {
    display: revert !important; /* falls back to the default 'block' for <section> */
}

/* Show sections on the homepage only (covers static front page + posts index) */
body.front-page #inner-wrap > section,
body.home #inner-wrap > section {
    display: revert !important; /* falls back to the default 'block' for <section> */
}

#contact .rc-cta h2 {
    background: linear-gradient(180deg, #fff1b3 0%, #ffc94a 60%, #e6b93a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

/* Compact Kadence page/archive header everywhere */
.entry-hero,
.page-hero-section,
.post-archive-hero-section {
    --padY: clamp(14px, 1.8vw, 22px);
    padding: var(--padY) 0 !important;
    min-height: 0 !important;
    background: #f6fbf8 !important; /* soft tint */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.entry-hero .hero-section-overlay {
    display: none !important;
}
.entry-hero .entry-header {
    margin: 0 !important;
}
.entry-hero .entry-title,
.post-archive-hero-section .page-title {
    font-size: clamp(24px, 2.6vw, 36px) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: var(--rc-forest, #2f5d50) !important;
}
/* small gold accent before the title */
.entry-hero .entry-title:before,
.post-archive-hero-section .page-title:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--rc-sun, #ffc94a);
    border-radius: 99px;
    margin-right: 0.5rem;
    vertical-align: -4px;
}
