/*
 Theme Name: Basic Site Main Template
Theme URI: https://pincoder.net
Author: Pincoder Inc.
Author URI: https://pincoder.net
 Description: Reusable client website theme based on the Pincoder WordPress template.
Version: 1.0
Tags: pincoder.net
 Text Domain: basic-site-template
*/

:root{
   /* Pincoder design tokens. WordPress preset values are the primary source.
      Brand palette: ink #333333 · maroon #660032 · orange #ec4c02 · yellow #e9bc4d */
   --pincoder-primary: var(--wp--preset--color--primary, #333333);
   --pincoder-accent: var(--wp--preset--color--accent, #660032);
   --pincoder-secondary: var(--wp--preset--color--secondary, #ec4c02);
   --pincoder-highlight: var(--wp--preset--color--highlight, #e9bc4d);
   --pincoder-text: var(--wp--preset--color--text, #4a4a4a);
   --pincoder-heading: var(--wp--preset--color--heading, #333333);
   --pincoder-surface: var(--wp--preset--color--surface, #FFFFFF);
   --pincoder-light: var(--wp--preset--color--light, #fbf2dd);
   --pincoder-muted: #5f5a54; /* 5.2:1 on the darkest cream band */
   --pincoder-border: var(--wp--preset--color--border, #e7e0d3);
   --pincoder-content-width: var(--wp--style--global--content-size, 1320px);
   --pincoder-wide-width: var(--wp--style--global--wide-size, 1600px);
   --pincoder-space-xs: var(--wp--preset--spacing--xs, 0.5rem);
   --pincoder-space-sm: var(--wp--preset--spacing--sm, 0.75rem);
   --pincoder-space-md: var(--wp--preset--spacing--md, 1.5rem);
   --pincoder-space-lg: var(--wp--preset--spacing--lg, 3rem);
   --pincoder-space-xl: var(--wp--preset--spacing--xl, 5rem);
   --pincoder-space-xxl: var(--wp--preset--spacing--xxl, 7rem);

   /* Legacy aliases retained so current client styles continue working. */
   --qd-navy: var(--pincoder-primary);
   --qd-gold: var(--pincoder-accent);
   --qd-slate: var(--pincoder-text);
   --qd-cream: var(--pincoder-light);
   --qd-white: var(--pincoder-surface);
   --qd-text: var(--pincoder-text);
   --qd-heading: var(--pincoder-heading);
   --qd-overlay: rgba(51, 51, 51, 0.72);

   --comp-color: #660032;
   --var-navy: #333333;

   /* ---------------------------------------------------------
      BUTTON SYSTEM — modelled on kidsrkreative.org
      The live site's buttons are big pills with a thick white
      ring (7px), a 100px radius and bold 20–24px labels. Hover
      and press swap the fill for ANOTHER brand colour instead
      of fading the current one, which is what makes them feel
      alive on the reference site.
      --------------------------------------------------------- */
   --pincoder-btn-ring: 7px;
   --pincoder-btn-ring-sm: 5px;
   --pincoder-btn-radius: 100px;

   --pincoder-btn-height: 84px;
   --pincoder-btn-height-md: 74px;
   --pincoder-btn-height-sm: 60px;

   --pincoder-btn-font-size: 22px;
   --pincoder-btn-font-size-md: 20px;
   --pincoder-btn-font-size-sm: 16px;

   --pincoder-btn-padding: 0 36px;

   /* TWO FILLS, ONE HOVER.
      A button is either brand burgundy or brand gold — nothing else.
      Groups of buttons alternate burgundy · gold · burgundy · gold
      (see the `nth-child` rules further down), and EVERY hover lands
      on orange no matter which fill the button started from. A press
      (`:active`, i.e. while the mouse button is held down) returns to
      burgundy, so a click always reads as the same "active" state and
      nothing is retained after the release. */
   --pincoder-btn-burgundy: #660032;
   --pincoder-btn-gold: #e9bc4d;

   --pincoder-btn-hover: #ec4c02;
   --pincoder-btn-active: #660032;

   /* legacy aliases — the other sheets and older rules still read the
      orange / yellow / *-hover names, so they are kept in sync with the
      pair above instead of carrying colours of their own. */
   --pincoder-btn-orange: var(--pincoder-btn-gold);
   --pincoder-btn-yellow: var(--pincoder-btn-gold);

   --pincoder-btn-burgundy-hover: var(--pincoder-btn-hover);
   --pincoder-btn-orange-hover: var(--pincoder-btn-hover);
   --pincoder-btn-yellow-hover: var(--pincoder-btn-hover);

   --pincoder-btn-burgundy-active: var(--pincoder-btn-active);
   --pincoder-btn-orange-active: var(--pincoder-btn-active);
   --pincoder-btn-yellow-active: var(--pincoder-btn-active);

   --pincoder-btn-ink: #333333;
   --pincoder-btn-white: #ffffff;

   color-scheme: light;
}
/* Brand burgundy. theme.json still ships the old maroon as the "accent" preset,
   so it is overridden here (higher specificity) to keep blocks that use the
   preset slug in sync with the burgundy brand colour. */
:root:root {
   --wp--preset--color--accent: #660032;
}

@font-face {
   font-family: 'arial-rounded';
   src: url("assets/fonts/arial-rounded/arialroundedmtbold.ttf") format('truetype');
}

@font-face {
   font-family: 'Nunito';
   src: url("assets/fonts/Nunito/Nunito.ttf") format('truetype');
}

@font-face {
   font-family: 'Nunito-Light';
   src: url("assets/fonts/Nunito/Nunito-Light.ttf") format('truetype');
}

@font-face {
   font-family: 'Nunito-SemiLight';
   src: url("assets/fonts/Nunito/Nunito-SemiLight.ttf") format('truetype');
}


@font-face {
   font-family: 'Nunito-Medium';
   src: url("assets/fonts/Nunito/Nunito-Medium.ttf") format('truetype');
}

@font-face {
   font-family: 'Nunito-SemiBold';
   src: url("assets/fonts/Nunito/Nunito-SemiBold.ttf") format('truetype');
}

@font-face {
   font-family: 'Nunito-Bold';
   src: url("assets/fonts/Nunito/Nunito-Bold.ttf") format('truetype');
}

@font-face {
   font-family: 'Nunito-ExtraBold';
   src: url("assets/fonts/Nunito/Nunito-ExtraBold.ttf") format('truetype');
}
/* =========================================================
   GLOBAL RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    color: #333333;
    background: #ffffff;

    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6{
   color: var(--qd-heading);
   letter-spacing: -0.03em;
   line-height: 1.08;
   margin-top: 0;
}

.serif-accent{
   font-family: var(--pincoder-font-accent);
   letter-spacing: -0.01em;
}

.h2title{
   font-size: 1.3rem;
    margin: 20px 0 5px;
}
/* General Style */
.txt-center{text-align: center;  margin-top: 2em; }
.btn-theme{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 40%;
    min-height: var(--pincoder-btn-height-md);

    padding: 0 28px !important;

    background: var(--pincoder-btn-burgundy) !important;
    color: var(--pincoder-btn-white) !important;

    border: var(--pincoder-btn-ring-sm) solid #ffffff !important;
    border-radius: var(--pincoder-btn-radius) !important;

    font-family: "Nunito", sans-serif !important;
    font-size: var(--pincoder-btn-font-size-md) !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    box-shadow: none !important;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .16s ease !important;
}
.btn.white{background: white !important; color: black !important}
/* the second fill of the pair — gold, so the label goes burgundy */
.btn.themeColor{background: var(--pincoder-btn-gold) !important; color: var(--pincoder-btn-burgundy) !important; }
.btn-theme:hover,
.btn-theme:focus-visible{
    background: var(--pincoder-btn-hover) !important;
    color: var(--pincoder-btn-white) !important;

    transform: translateY(-2px);
}
.btn-theme:active{
    background: var(--pincoder-btn-active) !important;
    color: var(--pincoder-btn-white) !important;

    transform: translateY(1px);
}


/*In General Style */
.company-name{
   color: var(--comp-color) !important;
}
/* The registered company name ("Kids-R-Kreative Learning Center, Inc.") is
   written into the copy in several different wrappers, so inc/helpers/brand.php
   renders every mention inside .kk-brand-name and this paints them all the
   same: burgundy and bold, on every page and in every section. */
.kk-brand-name{
   color: var(--comp-color) !important;
   font-weight: 700 !important;
}
ul{list-style: none; margin: 0; padding: 0;}
p{
   margin-bottom: 1rem;
   font-size: 17px;
   line-height: 1.8;
   color: var(--qd-text);
}
a{color: #660032; text-decoration: none !important}
/* Button links carry their own colour swaps (see the button system), so the
   generic link-hover maroon must not repaint their labels. */
a:hover:not(.wp-block-button__link):not(.wp-element-button){color: #4d0026 !important;}
.email{overflow-wrap: break-word;}

.pincoder-block-header{border: none !important}

.loader{
   position: absolute;
   background: #c93f00;
   opacity: .5;
   width: 100%;
   height: 100%;
   left: 0;
   top: 0;
   z-index: 999;
   visibility: hidden;
}
/* =========================================================
   KIDS-R-KREATIVE HEADER
   Match supplied screenshot
   ========================================================= */

.header-navigation {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    font-family: "Nunito", sans-serif;

    position: relative;
    z-index: 100;
}


/* =========================================================
   OUTER 2-COLUMN STRUCTURE
   ========================================================= */

.header-navigation > .wp-block-columns {
    display: grid !important;

    grid-template-columns: 285px minmax(0, 1fr);

    width: min(1240px, calc(100% - 40px));

    min-height: 128px;

    margin: 0 auto !important;
    padding: 0 !important;

    gap: 28px !important;

    align-items: stretch;
}


/* reset Gutenberg basis */
.header-navigation > .wp-block-columns > .wp-block-column {
    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    min-width: 0;
}


/* =========================================================
   LOGO
   ========================================================= */

.header-navigation .clean-brand {
    grid-column: 1;
    grid-row: 1 / 3;

    display: flex !important;
    justify-content: center;
    align-items: center;

    margin: 0;
    padding: 0;
}

.header-navigation .pincoder-client-logo {
    margin: 0;
}

.header-navigation .pincoder-client-logo a {
   display: block;
   line-height: 0;
   position: relative;
   left: 15%;
}

.header-navigation .pincoder-client-logo img {
   display: block;
   width: 262px  !important;
   height: auto !important;
   max-width: 262px !important;
   max-height: 200px !important;
   object-fit: contain;
   position: absolute;
}



/* =========================================================
   RIGHT SIDE
   top row + bottom row
   ========================================================= */

.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) {
    display: grid;

    grid-template-rows: 44px auto;

    min-width: 0;
}


/* nested columns */
.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) 190px;

    grid-template-rows: 44px auto;

    grid-row: 1 / -1;

    gap: 0 20px !important;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   LEFT NESTED COLUMN
   Contact row + navigation
   ========================================================= */

.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child {
    grid-column: 1;
    grid-row: 1 / 3;

    display: grid;

    grid-template-rows: 44px 1fr;

    min-width: 0;

    flex-basis: auto !important;
}


/* =========================================================
   CONTACT ROW
   ========================================================= */

.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child > .wp-block-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}


/* contact item */
.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child > .wp-block-list > li {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    color: #3d3d3d;
    font-family: "Nunito-Medium", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}


/* contact links */
.header-navigation
.wp-block-list li a {
    color: #3d3d3d !important;

    text-decoration: none !important;
}


/* icons */
.header-navigation
.wp-block-list li img {
    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px !important;
    min-height: 20px;
    max-height: 20px !important;
    object-fit: contain;
    margin: 0;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.header-navigation
.pincoder-client-navigation {
    grid-row: 2;
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}


.header-navigation
.wp-block-navigation__responsive-container-content {
    width: 100%;
}

.header-navigation
.wp-block-navigation__container {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 15px !important;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}


/* nav links */
.header-navigation
.wp-block-navigation-item__content {
   position: relative;
   display: inline-flex;
   align-items: center;
   padding: 24px 0 22px;
   color: #3d3d3d;
   font-family: "Nunito SemiBold", sans-serif;
   font-size: 15px;
   font-weight: 600;
   line-height: 1;
   text-decoration: none;
}


/* hover */
.header-navigation
.wp-block-navigation-item__content:hover {
    color: #660032 !important;
}


/* underline */
.header-navigation
.wp-block-navigation-item__content::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 15px;

    width: 0;
    height: 3px;

    transform: translateX(-50%);

    background: #660032;

    border-radius: 10px;

    transition: width .2s ease;
}


.header-navigation
.wp-block-navigation-item__content:hover::after {
    width: 100%;
}


/* Home active state */
.header-navigation
.wp-block-navigation__container > li:first-child > .wp-block-navigation-item__content {
    color: #660032 !important;
}


.header-navigation
.wp-block-navigation__container > li:first-child > .wp-block-navigation-item__content::after {
    width: 100%;
}


/* =========================================================
   RIGHT NESTED COLUMN
   Facebook + CTA
   ========================================================= */

.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / 3;

    display: grid;

    grid-template-rows: 44px auto;

    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   SOCIAL ICON ROW
   ========================================================= */

.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-list {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}


/* Facebook */
.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-list
img {
    display: block;

    width: 26px !important;
    height: 26px !important;

    max-width: 26px !important;
    max-height: 26px !important;

    object-fit: contain;

    margin: 0 !important;
}


/* =========================================================
   HEADER CTA STACK
   ---------------------------------------------------------
   The header carries three calls to action. They are laid out
   as a real block stack (one per line, `flex-wrap: nowrap`)
   instead of wrapping into extra columns: the column is only
   ~190px wide, so a wrapped column stack used to push buttons
   2 and 3 off the right edge of the viewport.

   The pills keep the site-wide white ring, 100px radius and the
   real button tokens (84px / 22px label on desktop, 60px / 16px
   under 901px — see the two blocks below). The stack is taken
   out of the flow there so that height never stretches the bar;
   the sizes declared here are only the fallback for the narrow
   band where the stack is hidden anyway.
   ========================================================= */

.header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;

    align-items: stretch;
    align-self: center;
    justify-content: center;

    gap: 6px !important;

    width: 100%;

    height: auto !important;

    margin: 0 !important;
    padding: 0 0 4px !important;
}


.header-navigation
.wp-block-button {
    width: 100%;

    margin: 0 !important;
}


.header-navigation
.wp-block-button__link {
    box-sizing: border-box !important;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 40px;

    padding: 0 10px !important;

    background: var(--pincoder-btn-burgundy) !important;
    color: var(--pincoder-btn-white) !important;

    border: 4px solid #ffffff !important;
    border-radius: var(--pincoder-btn-radius) !important;

    font-family: "Nunito", sans-serif !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    letter-spacing: .01em;

    line-height: 1 !important;

    text-align: center;
    text-decoration: none !important;
    text-transform: capitalize;

    white-space: nowrap;

    box-shadow: none !important;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .16s ease !important;
}


/* override Gutenberg outline style */
.header-navigation
.is-style-outline
.wp-block-button__link {
    background: var(--pincoder-btn-burgundy) !important;
    color: var(--pincoder-btn-white) !important;

    border-color: #ffffff !important;
}


/* ---------------------------------------------------------
   HOVER — jumps to the next colour of the scheme
   (burgundy → orange) instead of darkening the same hue.
   --------------------------------------------------------- */

.header-navigation
.wp-block-button__link:hover,
.header-navigation
.wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-burgundy-hover) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    box-shadow:
        0 10px 22px rgba(51, 51, 51, .22) !important;

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   PRESSED / CURRENT — every button lands on burgundy while it is
   pressed, so a click always reads as the same "active" state no
   matter which colour the button started from. The colour is not
   kept after the mouse button is released; `[aria-current]` marks
   the page a link points at.
   --------------------------------------------------------- */

.header-navigation
.wp-block-button__link:active,
.header-navigation
.wp-block-button__link[aria-current="page"] {
    background: var(--pincoder-btn-burgundy-active) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    box-shadow:
        inset 0 3px 10px rgba(51, 51, 51, .28) !important;

    transform: translateY(1px);
}


/* Alternating CTA fills — grouped buttons run burgundy · gold ·
   burgundy · gold from top to bottom, the only two fills the brand
   allows. Every hover lands on orange, whatever fill it started from,
   and a press returns to burgundy for as long as the mouse button is
   held down. */
.header-navigation
.wp-block-buttons > .wp-block-button:nth-child(even) > .wp-block-button__link {
    background: var(--pincoder-btn-gold) !important;
    color: var(--pincoder-btn-burgundy) !important;

    border-color: #ffffff !important;
}

.header-navigation
.wp-block-buttons > .wp-block-button:nth-child(even) > .wp-block-button__link:hover,
.header-navigation
.wp-block-buttons > .wp-block-button:nth-child(even) > .wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-hover) !important;
    color: var(--pincoder-btn-white) !important;
}

.header-navigation
.wp-block-buttons > .wp-block-button:nth-child(even) > .wp-block-button__link:active,
.header-navigation
.wp-block-buttons > .wp-block-button:nth-child(even) > .wp-block-button__link[aria-current="page"] {
    background: var(--pincoder-btn-active) !important;
    color: var(--pincoder-btn-white) !important;
}


/* =========================================================
   DESKTOP TUNING
   ========================================================= */

@media (max-width: 1180px) {

    .header-navigation > .wp-block-columns {
        grid-template-columns: 230px minmax(0, 1fr);

        width: calc(100% - 30px);

        gap: 18px !important;
    }

    .header-navigation
    .pincoder-client-logo img {
        width: 195px !important;

        max-width: 195px !important;
    }

    .header-navigation
    .wp-block-navigation__container {
        gap: 20px !important;
    }

    .header-navigation
    .wp-block-navigation-item__content {
        font-size: 13px;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child > .wp-block-list {
        gap: 16px;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child > .wp-block-list > li {
        font-size: 12px;
    }
}


/* =========================================================
   HEADER — INLINE MENU COLLAPSES BEFORE IT CAN WRAP
   ---------------------------------------------------------
   Between 901px and 1250px the logo and the seven inline links
   cannot share one row: the links alone need ~640px + gaps, so
   WordPress wrapped them onto a second line, which then ran
   underneath the CTA stack ("Contact Us" showed up next to
   "Pay Online") and stretched the bar from 128px to 181px.

   Below 1251px the links are therefore folded into the same
   hamburger the theme already uses on phones; the overlay
   itself is untouched. From 1251px up there is room for the
   inline row again — the CTA stack starts under the bar there
   so the two never collide.
   ========================================================= */

@media (min-width: 901px) and (max-width: 1250px) {

    .header-navigation
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container-open {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 34px;
        height: 34px;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-navigation
    .wp-block-navigation__container {
        justify-content: flex-start !important;
    }

    /*
     * The nested column holding the address row + nav is a grid whose
     * single `1fr` track sizes to the widest child's min-content. The
     * address row needs 549px inside a 512px column, so the track grew
     * past the column and the hamburger (pushed right by
     * `justify-content: flex-end`) landed on top of the CTA stack.
     * Pinning the track keeps the trigger inside its own column.
     */
    .header-navigation
    .wp-block-columns > .wp-block-column > .wp-block-columns > .wp-block-column:first-child {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .header-navigation
    .pincoder-client-navigation {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .header-navigation > .wp-block-columns {
        display: grid !important;

        grid-template-columns: 1fr auto;

        min-height: 82px;

        width: calc(100% - 28px);

        gap: 12px !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:first-child {
        justify-content: flex-start;
    }

    .header-navigation
    .pincoder-client-logo img {
        width: 135px !important;

        max-width: 135px !important;
        max-height: 72px !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) {
        display: block;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns {
        display: flex !important;

        align-items: center;

        width: auto;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child > .wp-block-list {
        display: none;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-list {
        display: none;
    }

    .header-navigation
    .pincoder-client-navigation {
        display: flex !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container-open {
        display: flex;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        align-self: center;

        gap: 6px !important;

        width: auto;

        margin-left: 8px !important;
        padding: 0 !important;
    }

    .header-navigation
    .wp-block-button {
        flex: 0 0 auto;

        width: auto;
    }

    .header-navigation
    .wp-block-button__link {
        width: auto;

        min-height: 38px;

        padding: 0 11px !important;

        border-width: 3px !important;

        font-size: 12px !important;
    }
}


/* =========================================================
   DESKTOP — THE PILLS USE THE SITE BUTTON TOKENS
   ---------------------------------------------------------
   The desktop header's height used to be produced by this stack:
   the in-flow pills added ~136px on top of the 44px contact row,
   which is where the 180px bar came from. The stack is therefore
   taken out of the flow and pinned under the bar so its height
   never stretches the header, and the pills are set to the exact
   tokens every other button on the site uses
   (--pincoder-btn-height 84px, 22px label, 7px white ring,
   0 36px padding, 100px radius). The stack is `width: max-content`
   so every pill stretches to the widest label (all three end up
   the same width), and it is pinned to the bar's right shoulder
   (top: 42px, right: -60px) so it hangs over the top-right of the
   hero — clear of both the inline links and the hamburger, which
   own the bar itself.
   ========================================================= */

@media (min-width: 901px) {

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns {
        position: relative;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
        position: absolute;

        /* pinned to the bar's right shoulder, overlapping the hero */
        top: 42px;
        right: -60px;

        z-index: 5;

        flex-direction: column !important;
        flex-wrap: nowrap !important;

        /* every pill stretches to the widest label */
        align-items: stretch;

        gap: 10px !important;

        /* shrink to the widest label */
        width: max-content;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons > .wp-block-button {
        flex: none;

        width: 100%;
    }

    .header-navigation
    .wp-block-button__link {
        justify-content: center;

        width: 100%;

        min-height: var(--pincoder-btn-height);

        padding: var(--pincoder-btn-padding) !important;

        border-width: var(--pincoder-btn-ring) !important;

        font-size: var(--pincoder-btn-font-size) !important;
    }
}


/* =========================================================
   DESKTOP — THE 60px OVERHANG NEEDS 60px OF GUTTER
   ---------------------------------------------------------
   `right: -60px` pulls the stack 60px past the right edge of
   the header column, which only works while the centred 1240px
   container still leaves 60px of gutter (>= 1375px viewports).
   Narrower than that the overhang would run past the viewport
   (horizontal scrollbar) and would also reach the last inline
   link, so there the stack drops back to the proven under-bar
   position (top: 100%, right: 0) where nothing can collide.
   ========================================================= */

@media (min-width: 901px) and (max-width: 1374px) {

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
        top: 100%;
        right: 0;
    }
}


/* =========================================================
   TABLET HEADER — THE CTA STACK FLOATS OVER THE HERO
   ---------------------------------------------------------
   Between 521px and 900px the header used to lay the three
   CTAs out in one horizontal row. They need 385px together,
   which starved the logo column down to 105px and drew the
   hamburger on top of the logo, and the row still spilled
   off-screen below ~580px.

   The pills therefore stay in the desktop vertical stack and use
   the site's small button tokens (--pincoder-btn-height-sm 60px,
   16px label, 5px ring) — the same tier every other button drops
   to under 901px — instead of a shrunken bar-only size. A stack
   that tall cannot live inside the 82px bar without stretching
   it, so it is taken out of the flow and pinned to the top-right
   corner: the bar keeps its 82px, the navigation keeps its place,
   and the pills simply hang down over the top of the hero.

   Below 701px the hero headline is wide enough to run under that
   corner, so the pills would sit on top of the words: there the
   stack is hidden (as it already was under 521px) and the
   hamburger menu takes over.
   ========================================================= */

@media (min-width: 701px) and (max-width: 900px) {

    /* spacer — the stack is absolute, so its column would collapse
       and let the hamburger slide under the pills. Reserving the
       pill width (plus the pills now overhang it, because they use
       the site button size) keeps the trigger where it belongs. */
    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) {
        flex: 0 0 260px !important;

        min-width: 0;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
        position: absolute;

        top: 6px;
        right: 14px;

        /* the header is `position: relative; z-index: 100`, so the
           stack paints above the hero it overlaps */
        z-index: 5;

        flex-direction: column !important;
        flex-wrap: nowrap !important;

        align-self: auto;
        align-items: stretch;

        /* room for the drop shadow of the white ring */
        gap: 10px !important;

        /* shrink to the widest label */
        width: max-content;

        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons > .wp-block-button {
        flex: none;

        width: 100%;
    }

    .header-navigation
    .wp-block-button__link {
        justify-content: center;

        width: 100%;

        min-height: var(--pincoder-btn-height-sm);

        padding: var(--pincoder-btn-padding) !important;

        border-width: var(--pincoder-btn-ring-sm) !important;

        font-size: var(--pincoder-btn-font-size-sm) !important;
    }
}


/* =========================================================
   PHONES / NARROW TABLETS — NO ROOM FOR THE CTA STACK
   ---------------------------------------------------------
   Under 701px the hero headline reaches the top-right corner,
   so the floating pills would cover the words. Hide the stack
   and let the hamburger menu carry the navigation.
   ========================================================= */

@media (max-width: 700px) {

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
        display: none !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .header-navigation > .wp-block-columns {
        grid-template-columns: 1fr auto;
    }

    .header-navigation
    .pincoder-client-logo img {
        width: 120px !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-buttons {
        display: none !important;
    }
}

/* =========================================================
   FIX DOUBLE .banner-container
   ========================================================= */

.wp-block-template-part > .wp-block-columns.banner-container {
    position: relative !important;
    display: block !important;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    background: transparent;
}

/* kill accidental pseudo-element on outer wrapper */
.wp-block-template-part > .wp-block-columns.banner-container::after {
    display: none !important;
}


/* =========================================================
   ACTUAL HERO
   ========================================================= */

.wp-block-columns.banner-container > .wp-block-column.banner-container {
    /* brand palette — hero accents */
    --hero-red: #660032;
    --hero-blue: #ec4c02;
    --hero-green: #660032;
    --hero-yellow: #e9bc4d;
    --hero-navy: #333333;
    position: relative;
    width: 100%;
    min-height: 535px;
    margin: 0 !important;
    padding:
        0
        max(30px, calc((100vw - 1300px) / 2))
        25px;
    overflow: hidden;
    background: #fff;
    font-family: "Nunito", sans-serif;
}

/* =========================================================
   HERO IMAGE / SLIDER
   ========================================================= */

.wp-block-columns.banner-container > .wp-block-column.banner-container > .superblockslider, .wp-block-column.banner-container .SuperBlockSliderWrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width:100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1;
    overflow: hidden;
}

.banner-container .superblockslider__window,
.banner-container .superblockslider__track,
.banner-container .superblockslider__slide,
.banner-container .superblockslider__slide__bg {
    width: 100%;
    height: 100% !important;
    background: white;
}

.banner-container
.superblockslider__slide__bg img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 35% !important;
}

.banner-container
.superblockslider__slide__overlay {
    opacity: 0 !important;
    background: transparent !important;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-heading,

.wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-paragraph,

.wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-buttons {
    position: relative;
    z-index: 5;
    width: 39%;
    max-width: 470px;
    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   HERO MAIN TITLE
   ========================================================= */
.banner-title{
   position: relative;
   z-index: 10;
   width: 500px;
   max-width: 100%;
   margin-top: 15%;
}


/* =========================================================
   BUSINESS NAME
   ========================================================= */

.banner-sub-content{
   position: relative;
    z-index: 10;
    display: block;
    max-width: 40%;
    padding: 0px;
    border-radius: 0 0 15% 0;
}
.banner-sub-content > h3.wp-block-heading {
   margin: -10px 0 3px;
   font-family: "Nunito ExtraBold";
   font-size: 27px;
   font-weight: 900;
   line-height: 1.2;
   padding-left: 20px;
}


/* =========================================================
   TAGLINE
   ========================================================= */

.banner-sub-content > h4.wp-block-heading {
   margin: 0 0 14px;
   font-family: "Nunito", sans-serif;
   font-size: 20px;
   line-height: 1.25;
   padding-left: 20px;
}

.banner-sub-content > h4.wp-block-heading strong {
    font-weight: 800;
}


/* =========================================================
   HERO PARAGRAPH
   ========================================================= */

.banner-sub-content > .wp-block-paragraph {
   margin-top: 0;
   margin-bottom: 14px;
   color: var(--hero-navy);
   font-family: "Nunito-Medium", sans-serif;
   font-size: 17px;
   line-height: 1.47;
   padding-left: 20px;
}

/* Background Cloud */
.banner-cloud {
   position: absolute !important;
   z-index: 3 !important;
   top: 0 !important;
   left: 0 !important;
   margin: 0 !important;
}
/* =========================================================
   HERO BUTTONS - MATCH REFERENCE
   Reference sizing: 7px white ring, 100px pill, 84px tall and
   22px bold labels, with hover / press colour swaps.
   ========================================================= */

.wp-block-column.banner-container > .wp-block-buttons {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;

    /* wide enough for the reference-size pills (284 + 268 + gap) */
    width: 100% !important;
    max-width: 600px !important;
    padding-left: 20px !important;
}

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button {
    margin: 0 !important;
    padding: 0 !important;
}


/* COMMON BUTTON */
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button > .wp-block-button__link {
    box-sizing: border-box !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 12px !important;

    height: var(--pincoder-btn-height) !important;
    min-height: var(--pincoder-btn-height) !important;
    max-height: var(--pincoder-btn-height) !important;

    padding: var(--pincoder-btn-padding) !important;

    border-radius: var(--pincoder-btn-radius) !important;

    font-family: "Nunito", sans-serif !important;
    font-size: var(--pincoder-btn-font-size) !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    text-transform: none !important;
    letter-spacing: 0 !important;

    white-space: nowrap !important;

    box-shadow: none !important;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .16s ease !important;
}


/* =========================================================
   SCHEDULE A TOUR
   ========================================================= */

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link {
    width: 284px !important;
    min-width: 0 !important;
    max-width: 284px !important;

    color: var(--pincoder-btn-white) !important;
    background: var(--pincoder-btn-burgundy) !important;

    border: var(--pincoder-btn-ring) solid #ffffff !important;
}


/* white calendar icon */
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link img {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    flex: 0 0 22px !important;
}

/* =========================================================
   PHONE BUTTON
   ========================================================= */

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link {
    width: 268px !important;
    min-width: 0 !important;
    max-width: 268px !important;

    color: var(--pincoder-btn-burgundy) !important;
    background: var(--pincoder-btn-gold) !important;

    border: var(--pincoder-btn-ring) solid #ffffff !important;
}

/* phone icon — gold fill, so the glyph goes burgundy-dark instead of
   white (white on gold would all but disappear) */
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link img {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    flex: 0 0 21px !important;

    filter: brightness(0) !important;
}


/* =========================================================
   HOVER / PRESSED
   Hover swaps to the next brand colour and every press lands on
   burgundy, so a click never reads as "just a darker shade".
   ========================================================= */

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link:hover,
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-hover) !important;
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white) !important;

    box-shadow: 0 12px 26px rgba(51, 51, 51, .24) !important;

    transform: translateY(-2px);
}

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link:hover,
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-hover) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    box-shadow: 0 12px 26px rgba(51, 51, 51, .24) !important;

    transform: translateY(-2px);
}

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link:active,
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link[aria-current="page"] {
    background: var(--pincoder-btn-burgundy-active) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    box-shadow: inset 0 3px 10px rgba(51, 51, 51, .28) !important;

    transform: translateY(1px);
}

.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link:active,
.wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link[aria-current="page"] {
    background: var(--pincoder-btn-orange-active) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    box-shadow: inset 0 3px 10px rgba(51, 51, 51, .28) !important;

    transform: translateY(1px);
}

/* =========================================================
   REMOVE WORDPRESS BLOCK GAPS BETWEEN HEADER / HERO
   ========================================================= */

.header-navigation + *,
.wp-block-template-part + .wp-block-template-part,
.wp-block-columns.banner-container {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}


/* =========================================================
   1300px-ish TARGET
   ========================================================= */

@media (min-width: 1201px) and (max-width: 1400px) {

    .wp-block-columns.banner-container > .wp-block-column.banner-container {
        min-height: 438px;
    }

    .wp-block-column.banner-container > h2.wp-block-heading {
        font-size: 61px;
    }
}


/* =========================================================
   SMALLER LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .header-navigation .pincoder-block-header__inner {
        width: calc(100% - 32px);

        grid-template-columns: 210px 1fr 160px;

        column-gap: 15px;
    }

    .header-navigation .pincoder-client-logo img {
        width: 180px !important;
    }

    .header-navigation
    .wp-block-navigation__container {
        gap: 18px;
    }

    .header-navigation
    .pincoder-block-header__inner > .wp-block-list {
        gap: 15px;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container {
        min-height: 430px;

        padding:
            45px
            30px
            24px;
    }

    .wp-block-column.banner-container > h2.wp-block-heading {
        font-size: 52px;
    }

    .wp-block-column.banner-container > h3.wp-block-heading {
        font-size: 18px;
    }

    .wp-block-column.banner-container > h4.wp-block-heading {
        font-size: 15px;
    }

    .wp-block-column.banner-container > .wp-block-paragraph {
        font-size: 14px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-navigation {
        height: 82px;
    }

    .header-navigation .pincoder-block-header__inner {
        height: 82px;

        grid-template-columns: 1fr auto auto;
        grid-template-rows: 82px;
    }

    .header-navigation .clean-brand {
        grid-column: 1;
        grid-row: 1;

        justify-content: flex-start;
    }

    .header-navigation .pincoder-client-logo img {
        width: 135px !important;
        max-height: 70px !important;
    }

    .header-navigation
    .pincoder-block-header__inner > .wp-block-list,

    .header-navigation
    .pincoder-block-header__inner > .wp-block-image {
        display: none;
    }

    .header-navigation
    .pincoder-client-navigation {
        grid-column: 2;
        grid-row: 1;
    }

    .header-navigation
    .pincoder-block-header__inner > .wp-block-buttons {
        grid-column: 3;
        grid-row: 1;
    }


    /* hero stacks */
    .wp-block-columns.banner-container > .wp-block-column.banner-container {
        min-height: 740px;

        padding:
            35px
            25px
            350px;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .superblockslider {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100% !important;
        height: 330px !important;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container::after {
        top: auto;

        left: 0;
        right: 0;
        bottom: 285px;

        width: 100%;
        height: 70px;

        background:
            linear-gradient(
                180deg,
                #fff 0%,
                rgba(255,255,255,.8) 45%,
                rgba(255,255,255,0) 100%
            );
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-heading,

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-paragraph,

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-buttons {
        width: 100%;
        max-width: 580px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .header-navigation
    .pincoder-block-header__inner > .wp-block-buttons {
        display: none;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container {
        min-height: 700px;

        padding:
            28px
            20px
            305px;
    }

    .wp-block-column.banner-container > h2.wp-block-heading {
        font-size: 42px;

        letter-spacing: -1px;
    }

    .wp-block-column.banner-container > .wp-block-buttons {
        flex-wrap: wrap;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .superblockslider {
        height: 285px !important;
    }
}


/* =========================================================
   BANNER BOTTOM / TRUST BADGES
   ========================================================= */

.banner-bottom-content {
    position: relative;
    z-index: 20;

    width: 100%;
    margin-top: -4px;

    font-family: "Nunito", sans-serif;
}


/* =========================================================
   YELLOW SCALLOPED BACKGROUND
   ========================================================= */

.banner-bottom-content > .wp-block-cover {
    position: relative;
    width: 100%;
    min-height: 290px !important;
    margin: 0 !important;
    padding: 22px 56px 28px !important;
    overflow: visible;
    background: transparent;
}


/* background image */
.banner-bottom-content
.wp-block-cover__image-background {
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   z-index: 0;
   top: 20px;
}


/* remove default cover dark overlay */
.banner-bottom-content
.wp-block-cover__background {
    display: none !important;
}


/* coloured underline — drawn in once the block is revealed */
.home-content-details > h3.wp-block-heading::after, .main-content > h3.wp-block-heading:after {
    content: "";
    display: block;
    width: 150px;
    height: 5px;
    margin: 15px auto 0;
    background: linear-gradient(90deg, #ec4c02 0%, #e9bc4d 55%, #660032 100%);
    border-radius: 20px;
    transform-origin: center;
}

/* =========================================================
   WHITE INNER CARD
   ========================================================= */

.banner-bottom-content
.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    background: #ffffff;

    border-radius: 16px;

    padding: 18px 16px 14px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   FIVE COLUMN GRID
   ========================================================= */

.banner-bottom-content
.wp-block-columns {
    display: grid !important;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 0 !important;

    width: 100%;

    margin: 0 !important;
}


/* individual item */
.banner-bottom-content
.wp-block-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: 0;
    padding: 0 24px 2px;
    margin: 0 !important;
}


/* vertical dividers */
.banner-bottom-content
.wp-block-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    width: 1px;
    height: calc(100% - 16px);
    background: #eee9e1;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.banner-bottom-content
.wp-block-column
h3.wp-block-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    color: #333333;
    font-family: "Nunito SemiBold";
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}


/* hide empty h3 blocks */
.banner-bottom-content
.wp-block-column
h3.wp-block-heading:empty {
    display: none !important;
}


/* =========================================================
   ICON CIRCLES
   ========================================================= */

.banner-bottom-content
.wp-block-column
h3.wp-block-heading img {
   display: block;
   width: 46px !important;
   height: 46px !important;
}

/*
Wrap the icon visually in a colored circle
using the heading pseudo-element.
*/
.banner-bottom-content
.wp-block-column
h3.wp-block-heading {
    position: relative;
}


/* create circle behind icon */
.banner-bottom-content
.wp-block-column
h3.wp-block-heading img {
    position: relative;
    z-index: 2;
    margin-bottom: 10px !important;
}

.banner-bottom-content
.wp-block-column
h3.wp-block-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translateX(-50%);
    border-radius: 50%;

    z-index: 1;
}


/* reserve space for the colored circle */
.banner-bottom-content
.wp-block-column
h3.wp-block-heading {
    padding-top: 7px !important;
}


/* circle colors */
.banner-bottom-content
.wp-block-column:nth-child(1)
h3.wp-block-heading::before {
    background: #ec4c02;
}

.banner-bottom-content
.wp-block-column:nth-child(2)
h3.wp-block-heading::before {
    background: #660032;
}

.banner-bottom-content
.wp-block-column:nth-child(3)
h3.wp-block-heading::before {
    background: #ec4c02;
}

.banner-bottom-content
.wp-block-column:nth-child(4)
h3.wp-block-heading::before {
    background: #e9bc4d;
}

.banner-bottom-content
.wp-block-column:nth-child(5)
h3.wp-block-heading::before {
    background: #660032;
}


/* =========================================================
   BADGE HOVER — THE CIRCLE ICONS CHANGE COLOUR
   ---------------------------------------------------------
   Base state: a solid brand circle sits behind a white glyph.
   Hovering a badge swaps that circle for ANOTHER colour of the
   palette (orange <-> burgundy <-> gold) and keeps the colour it
   just left as a ring, so the icon itself visibly changes colour
   instead of only sliding about.
   Palette only — ink #333333 · burgundy #660032 ·
   orange #ec4c02 · gold #e9bc4d
   ========================================================= */

/* --krk-badge      = the colour the circle already has
   --krk-badge-fill = the palette colour it turns on hover
   --krk-badge-deep = readable label ink on the cream tile */
.banner-bottom-content .wp-block-column {
    --krk-badge: #ec4c02;
    --krk-badge-fill: #660032;
    --krk-badge-deep: #c93f00;

    border-radius: 14px;
    transition:
        background-color .3s ease,
        box-shadow .3s ease;
}

/* orange -> burgundy */
.banner-bottom-content .wp-block-column:nth-child(1) {
    --krk-badge: #ec4c02;
    --krk-badge-fill: #660032;
    --krk-badge-deep: #660032;
}

/* burgundy -> orange */
.banner-bottom-content .wp-block-column:nth-child(2) {
    --krk-badge: #660032;
    --krk-badge-fill: #ec4c02;
    --krk-badge-deep: #c93f00;
}

/* orange -> burgundy */
.banner-bottom-content .wp-block-column:nth-child(3) {
    --krk-badge: #ec4c02;
    --krk-badge-fill: #660032;
    --krk-badge-deep: #660032;
}

/* gold -> burgundy */
.banner-bottom-content .wp-block-column:nth-child(4) {
    --krk-badge: #e9bc4d;
    --krk-badge-fill: #660032;
    --krk-badge-deep: #a8830f;
}

/* burgundy -> orange */
.banner-bottom-content .wp-block-column:nth-child(5) {
    --krk-badge: #660032;
    --krk-badge-fill: #ec4c02;
    --krk-badge-deep: #c93f00;
}

/* everything that morphs needs an easing of its own */
.banner-bottom-content .wp-block-column h3.wp-block-heading {
    transition: transform .3s ease, color .3s ease;
}

.banner-bottom-content .wp-block-column h3.wp-block-heading img {
    transition:
        transform .38s cubic-bezier(.3, 1.4, .5, 1),
        filter .3s ease;
}

.banner-bottom-content .wp-block-column h3.wp-block-heading::before {
    transition:
        background-color .3s ease,
        transform .38s cubic-bezier(.3, 1.4, .5, 1),
        box-shadow .3s ease;
}

/* the tile behind the hovered badge stays a whisper of cream */
.banner-bottom-content .wp-block-column:hover {
    background: #fdfaf3;
    box-shadow: 0 10px 22px rgba(51, 51, 51, .06);
}

.banner-bottom-content .wp-block-column:hover h3.wp-block-heading {
    transform: translateY(-2px);
    color: var(--krk-badge-deep);
}

/* circle: swaps to the second palette colour and keeps the first
   one as a ring, so the badge shows two brand colours at once */
.banner-bottom-content .wp-block-column:hover h3.wp-block-heading::before {
    background: var(--krk-badge-fill);
    transform: translateX(-50%) scale(1.12);
    box-shadow:
        0 0 0 4px #fdfaf3,
        0 0 0 7px var(--krk-badge),
        0 10px 18px rgba(51, 51, 51, .16);
}

/* the white glyph itself just pops out of the new circle */
.banner-bottom-content .wp-block-column:hover h3.wp-block-heading img {
    animation: none;
    transform: scale(1.08) rotate(-6deg);
}

/* =========================================================
   PARAGRAPHS / SMALL TEXT
   ========================================================= */

.banner-bottom-content
.wp-block-column
p.wp-block-paragraph {
    margin: 6px 0 0 !important;
    color: #5f5a54;
    font-family: "Nunito SemiLight", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
}

/* =========================================================
   DESKTOP TUNING
   ========================================================= */

@media (min-width: 1200px) {

    .banner-bottom-content > .wp-block-cover {
        padding-left: 70px !important;
        padding-right: 70px !important;
    }

    .banner-bottom-content
    .wp-block-cover__inner-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .banner-bottom-content
    .wp-block-column {
        padding-left: 28px;
        padding-right: 28px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .banner-bottom-content > .wp-block-cover {
        padding: 28px 24px 32px !important;
    }

    .banner-bottom-content
    .wp-block-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px !important;
    }

    .banner-bottom-content
    .wp-block-column {
        padding: 10px 20px 20px;
    }

    .banner-bottom-content
    .wp-block-column::after {
        display: none;
    }

    .banner-bottom-content
    .wp-block-column:nth-child(odd)::after {
        content: "";

        display: block;

        position: absolute;

        top: 10px;
        right: 0;

        width: 1px;
        height: calc(100% - 20px);

        background: #eee9e1;
    }

    .banner-bottom-content
    .wp-block-column:nth-child(5) {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .banner-bottom-content > .wp-block-cover {
        padding: 24px 14px 28px !important;
    }

    .banner-bottom-content
    .wp-block-cover__inner-container {
        border-radius: 14px;

        padding: 14px;
    }

    .banner-bottom-content
    .wp-block-columns {
        grid-template-columns: 1fr;
    }

    .banner-bottom-content
    .wp-block-column {
        padding: 15px 10px 18px;
    }

    .banner-bottom-content
    .wp-block-column::after,
    .banner-bottom-content
    .wp-block-column:nth-child(odd)::after {
        display: none;
    }

    .banner-bottom-content
    .wp-block-column:not(:last-child) {
        border-bottom: 1px solid #eee9e1;
    }

    .banner-bottom-content
    .wp-block-column:nth-child(5) {
        grid-column: auto;
    }
}

/* =========================================================
   OUR PROGRAMS SECTION
   ========================================================= */

.main-content {
    /* brand palette — card titles cycle through these */
    --navy: #333333;    /* ink */
    --purple: #660032;  /* maroon */
    --blue: #ec4c02;    /* orange */
    --green: #333333;   /* ink */
    --orange: #c93f00;  /* deep orange */
    --red: #660032;     /* maroon */

    position: relative;
    z-index: 0;

    width: 100%;
    padding: 10px 40px 42px;
    margin: 0;

    background-color: #fdfaf3;

    /* faint two-tone confetti dots, so the cream does not read as empty */
    background-image:
        radial-gradient(circle, rgba(102, 0, 50, .07) 1.4px, transparent 1.5px),
        radial-gradient(circle, rgba(236, 76, 2, .07) 1.4px, transparent 1.5px);
    background-size: 52px 52px, 52px 52px;
    background-position: 0 0, 26px 26px;

    /* keeps the corner glows below inside the section */
    overflow: hidden;

    font-family: "Nunito", sans-serif;
}


/* =========================================================
   SECTION GLOWS
   Two soft brand-coloured lights in the empty corners.
   They sit behind the content and drift slowly (see
   "SCROLL REVEALS" for the motion).
   ========================================================= */

.main-content::before,
.main-content::after {
    content: "";
    position: absolute;

    z-index: -1;

    border-radius: 50%;

    pointer-events: none;
}

.main-content::before {
    top: -150px;
    left: -130px;

    width: 430px;
    height: 430px;

    background: radial-gradient(circle, rgba(236, 76, 2, .13), rgba(236, 76, 2, 0) 68%);
}

.main-content::after {
    right: -150px;
    bottom: -170px;

    width: 500px;
    height: 500px;

    background: radial-gradient(circle, rgba(102, 0, 50, .11), rgba(102, 0, 50, 0) 70%);
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.main-content > h2.wp-block-heading {
    margin: 0 0 3px !important;

    color: var(--navy);

    font-family: "Nunito", sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;

    text-align: center;
}

.main-content > p.wp-block-paragraph {
    margin: 0 auto 18px !important;

    color: #3d3d3d;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   FOUR CARD GRID
   ========================================================= */

.main-content > .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px !important;

    width: min(1280px, 100%);
    margin: 0 auto !important;

    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 330px;

    margin: 0 !important;
    padding: 0 20px 18px !important;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eee9e1;
    border-radius: 9px;

    box-shadow:
        0 2px 7px rgba(51, 51, 51, 0.08);
}


/* =========================================================
   MAIN PROGRAM PHOTO
   First figure in every card
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > figure:first-of-type {
    width: calc(100% + 40px);

    margin:
        0
        -20px
        29px !important;

    padding: 0;

    overflow: hidden;
}

.main-content > .wp-block-columns > .wp-block-column > figure:first-of-type img {
    display: block;

    width: 100% !important;
    height: 155px !important;

    max-width: none !important;

    object-fit: cover;
    object-position: center;

    margin: 0;
}


/* Individual image positioning */
.main-content > .wp-block-columns > .wp-block-column:nth-child(1) > figure:first-of-type img {
    object-position: center 38%;
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(2) > figure:first-of-type img {
    object-position: center 42%;
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(3) > figure:first-of-type img {
    object-position: center 35%;
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(4) > figure:first-of-type img {
    object-position: center 37%;
}


/* =========================================================
   FLOATING PROGRAM ICON
   Second figure in every card
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > figure:nth-of-type(2) {
    position: absolute;

    top: 107px;
    left: 18px;

    z-index: 5;

    width: 68px;
    height: 68px;

    margin: 0 !important;
    padding: 0;

    border-radius: 50%;

    overflow: hidden;

    background: transparent;

    box-shadow:
        0 0 0 3px #ffffff,
        0 2px 7px rgba(0, 0, 0, 0.12);
}

.main-content > .wp-block-columns > .wp-block-column > figure:nth-of-type(2) img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    margin: 0;
}


/* =========================================================
   PROGRAM TITLE
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > h2.wp-block-heading {
    margin: 0 0 1px !important;

    font-family: "Nunito", sans-serif;

    font-size: 26px;
    font-weight: 900;

    line-height: 1.08;

    text-align: left;
}


/* card title colors */

.main-content > .wp-block-columns > .wp-block-column:nth-child(1) > h2.wp-block-heading {
    color: var(--purple);
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(2) > h2.wp-block-heading {
    color: var(--orange);
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(3) > h2.wp-block-heading {
    color: var(--green);
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(4) > h2.wp-block-heading {
    color: var(--orange);
}


/* =========================================================
   AGE RANGE
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > h3.wp-block-heading {
    margin: 0 0 7px !important;
    color: #333333;
    font-family: "Nunito", sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    text-align: left;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > p.wp-block-paragraph {
    margin: 0 !important;
    color: #3d3d3d;
    font-family: "Nunito-Medium", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
}


/* =========================================================
   CARD HOVER — LIFT, SWEEP, ZOOM
   ---------------------------------------------------------
   Every card carries `--krk-card`, its own accent colour.
   The two pseudo-elements are extra layers: a bottom accent bar
   that grows left-to-right, and a light sweep that crosses the
   card once per hover.
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column {
    --krk-card: #660032;

    position: relative;

    transition:
        transform .38s cubic-bezier(.22, 1.28, .36, 1),
        box-shadow .38s ease,
        border-color .38s ease;
}

.main-content > .wp-block-columns > .wp-block-column:nth-child(1) { --krk-card: #660032; }
.main-content > .wp-block-columns > .wp-block-column:nth-child(2) { --krk-card: #c93f00; }
.main-content > .wp-block-columns > .wp-block-column:nth-child(3) { --krk-card: #333333; }
.main-content > .wp-block-columns > .wp-block-column:nth-child(4) { --krk-card: #c93f00; }


/* bottom accent bar */
.main-content > .wp-block-columns > .wp-block-column::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;

    height: 4px;

    background: var(--krk-card);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform .45s cubic-bezier(.22, 1.28, .36, 1);
}


/* light sweep — only on screen while the card is hovered */
.main-content > .wp-block-columns > .wp-block-column::after {
    content: "";

    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    z-index: 3;

    width: 45%;

    background:
        linear-gradient(
            100deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, .55) 50%,
            rgba(255, 255, 255, 0)
        );

    opacity: 0;

    pointer-events: none;

    transform: translateX(-140%) skewX(-14deg);
}


/* the hover drops the top and the two side borders and keeps only
   the bottom one, tinted with the card's own accent */
.main-content > .wp-block-columns > .wp-block-column:hover,
.main-content > .wp-block-columns > .wp-block-column:focus-within {
    transform: translateY(-8px) rotate(-.4deg);

    border-top-color: transparent;
    border-right-color: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--krk-card);

    box-shadow:
        0 18px 34px rgba(51, 51, 51, .16);
}

.main-content > .wp-block-columns > .wp-block-column:hover::before,
.main-content > .wp-block-columns > .wp-block-column:focus-within::before {
    transform: scaleX(1);
}

.main-content > .wp-block-columns > .wp-block-column:hover::after,
.main-content > .wp-block-columns > .wp-block-column:focus-within::after {
    animation: krkCardSweep .9s ease-out;
}


/* =========================================================
   PHOTO — ZOOMS AND WARMS UP UNDER THE MOUSE
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > figure:first-of-type {
    position: relative;
}

.main-content > .wp-block-columns > .wp-block-column > figure:first-of-type::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    background:
        linear-gradient(180deg, rgba(51, 51, 51, 0) 45%, rgba(51, 51, 51, .42) 100%);

    opacity: 0;

    pointer-events: none;

    transition: opacity .4s ease;
}

.main-content > .wp-block-columns > .wp-block-column > figure:first-of-type img {
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.main-content > .wp-block-columns > .wp-block-column:hover > figure:first-of-type img,
.main-content > .wp-block-columns > .wp-block-column:focus-within > figure:first-of-type img {
    transform: scale(1.09);
}

.main-content > .wp-block-columns > .wp-block-column:hover > figure:first-of-type::after,
.main-content > .wp-block-columns > .wp-block-column:focus-within > figure:first-of-type::after {
    opacity: 1;
}


/* =========================================================
   FLOATING BADGE — GAINS A COLOURED RING
   (the entrance itself comes from "SCROLL REVEALS")
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > figure:nth-of-type(2) {
    transition: box-shadow .3s ease;
}

.main-content > .wp-block-columns > .wp-block-column:hover > figure:nth-of-type(2),
.main-content > .wp-block-columns > .wp-block-column:focus-within > figure:nth-of-type(2) {
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 6px var(--krk-card),
        0 10px 18px rgba(51, 51, 51, .18);
}


/* =========================================================
   CARD TITLE — NEVER UNDERLINED
   ---------------------------------------------------------
   The lift, the sweep and the bottom edge carry the hover, so
   the title link stays clean (no drawn underline, no decoration).
   ========================================================= */

.main-content > .wp-block-columns > .wp-block-column > h2.wp-block-heading a {
    display: inline;

    background-image: none;

    text-decoration: none !important;
}


/* description darkens as the card wakes up */
.main-content > .wp-block-columns > .wp-block-column > p.wp-block-paragraph {
    transition: color .35s ease;
}

.main-content > .wp-block-columns > .wp-block-column:hover > p.wp-block-paragraph,
.main-content > .wp-block-columns > .wp-block-column:focus-within > p.wp-block-paragraph {
    color: #242424;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1500px) {

    .main-content {
        padding-left: 70px;
        padding-right: 70px;
    }

    .main-content > .wp-block-columns {
        max-width: 1340px;
    }

    .main-content > .wp-block-columns > .wp-block-column > figure:first-of-type img {
        height: 165px !important;
    }

    .main-content > .wp-block-columns > .wp-block-column > figure:nth-of-type(2) {
        top: 117px;
    }
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1150px) {

    .main-content {
        padding-left: 25px;
        padding-right: 25px;
    }

    .main-content > .wp-block-columns {
        gap: 18px !important;
    }

    .main-content > .wp-block-columns > .wp-block-column {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .main-content > .wp-block-columns > .wp-block-column > figure:first-of-type {
        width: calc(100% + 32px);

        margin-left: -16px !important;
        margin-right: -16px !important;
    }

    .main-content > .wp-block-columns > .wp-block-column
    h2.wp-block-heading {
        font-size: 22px;
    }

    .main-content > .wp-block-columns > .wp-block-column
    h3.wp-block-heading {
        font-size: 15px;
    }

    .main-content > .wp-block-columns > .wp-block-column
    p.wp-block-paragraph {
        font-size: 14px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .main-content {
        padding-top: 20px;
    }
    .main-content > .wp-block-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .main-content {
        padding:
            25px
            16px
            35px;
    }

    .main-content > h2.wp-block-heading {
        font-size: 29px;
    }

    .main-content > p.wp-block-paragraph {
        font-size: 15px;
        margin-bottom: 20px !important;
    }

    .main-content > .wp-block-columns {
        grid-template-columns: 1fr;

        gap: 20px !important;
    }

    .main-content > .wp-block-columns > .wp-block-column {
        min-height: 0;
    }

    .main-content > .wp-block-columns > .wp-block-column > figure:first-of-type img {
        height: 190px !important;
    }

    .main-content > .wp-block-columns > .wp-block-column > figure:nth-of-type(2) {
        top: 142px;
    }
}

/* =========================================================
   HOME SEO CONTENT DETAILS
   ========================================================= */

.home-content-details {
    --seo-navy: #333333;
    --seo-blue: #ec4c02;
    --seo-text: #4a4a4a;
    --seo-bg: #fdfaf3;

    position: relative;

    /* `--kk-gutter` mirrors .main-content's side padding at every
       breakpoint — see the FULL-BLEED GUTTERS block further down — so
       the card can run edge to edge and hand the whole width to the
       photo ribbon instead of squeezing it into a 1200px column */
    --kk-gutter: 40px;

    width: calc(100% + (var(--kk-gutter) * 2));
    margin: 34px calc(var(--kk-gutter) * -1) 0 !important;
    padding: 0 46px 54px !important;

    background-color: var(--seo-bg);

    /* warm corner washes and two confetti grids. The photographs live
       on ::before so they can zoom without dragging this pattern along */
    background-image:
        radial-gradient(circle at 2% 46%, rgba(236, 76, 2, .09), transparent 26%),
        radial-gradient(circle at 98% 94%, rgba(102, 0, 50, .08), transparent 30%),
        radial-gradient(rgba(236, 76, 2, .09) 1.5px, transparent 1.6px),
        radial-gradient(rgba(102, 0, 50, .07) 1.3px, transparent 1.4px),
        radial-gradient(rgba(233, 188, 77, .26) 2.2px, transparent 2.3px);

    background-size:
        auto,
        auto,
        30px 30px,
        47px 47px,
        71px 71px;

    background-position:
        0 0,
        0 0,
        0 0,
        16px 20px,
        34px 44px;

    background-repeat:
        no-repeat,
        no-repeat,
        repeat,
        repeat,
        repeat;

    /* clips the drifting ribbon and the floating shapes */
    overflow: hidden;

    font-family: "Nunito", sans-serif;
}


/* the copy always sits above the decorative layers */
.home-content-details > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   PHOTO RIBBON + GLOW
   ---------------------------------------------------------
   Three 3:2 photographs tile across the very top of the card,
   capped by the brand stripe. The ribbon lives on its own layer
   (::before) so the whole strip can zoom almost imperceptibly
   without dragging the confetti paper with it; ::after keeps the
   warm glow that stops the lower corner feeling empty.
   ========================================================= */

.home-content-details::before,
.home-content-details::after {
    content: "";

    position: absolute;
    z-index: 0;

    pointer-events: none;
}

.home-content-details::before {
    top: 0;
    right: 0;
    left: 0;

    height: 0;

    /* a ninth of the card width per row: every tile stays exactly 3:2,
       and the strip grows with the card instead of needing a pixel
       height that only looked right at one screen size */
    padding-top: 22.222%;

    background-image:
        linear-gradient(90deg, #ec4c02 0%, #e9bc4d 52%, #660032 100%),
        url("assets/img/home-band-1.jpg"),
        url("assets/img/home-band-2.jpg"),
        url("assets/img/home-band-3.jpg");

    background-size:
        100% 7px,
        33.334% auto,
        33.333% auto,
        33.334% auto;

    background-position:
        0 0,
        0 0,
        50% 0,
        100% 0;

    background-repeat: no-repeat;

    /* zooming from the top edge keeps the brand stripe glued to it */
    transform-origin: 50% 0;
}

.home-content-details::after {
    right: -90px;
    bottom: -110px;

    width: 340px;
    height: 340px;

    border-radius: 50%;

    background: radial-gradient(circle, rgba(102, 0, 50, .13), rgba(102, 0, 50, 0) 70%);
}

/* =========================================================
   MAIN HEADING
   ========================================================= */

.home-content-details > h3.wp-block-heading, .main-content > h3.wp-block-heading {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 28px !important;
    color: var(--navy, #333333);
    font-family: "Nunito-Bold", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
}

/* the SEO title sits on its own cream plate, like a magazine header.
   The offset is a share of the card's width, so the plate always bites
   the same third out of the photo ribbon at any screen size. */
.home-content-details > h3.wp-block-heading {
    margin-top: 16.5% !important;
    padding: 26px 30px 22px;

    background:
        linear-gradient(180deg, rgba(255, 253, 247, .97) 0%, rgba(251, 242, 221, .95) 100%);

    border: 1px solid rgba(233, 188, 77, .55);
    border-radius: 18px;

    box-shadow: 0 10px 24px rgba(51, 51, 51, .05);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* three bobbing dots above the title — a small burst of colour */
.home-content-details > h3.wp-block-heading::before,
.main-content > h3.wp-block-heading::before {
    content: "";

    display: block;

    width: 9px;
    height: 9px;
    margin: 0 auto 18px;

    border-radius: 50%;

    background: #ec4c02;
    box-shadow: -18px 0 0 #e9bc4d, 18px 0 0 #660032;
}

.home-content-details > h3.wp-block-heading strong {
    font-weight: 900;
}

/* =========================================================
   BODY COPY
   ========================================================= */

.home-content-details > p.wp-block-paragraph {
    position: relative;
    max-width: 1100px;
    margin: 0  auto  16px !important;
    color: var(--seo-text);
    font-family: "Nunito-Medium", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    text-align: left;
    transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease;
}

/* last paragraph */
.home-content-details > p.wp-block-paragraph:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   PARAGRAPH TREATMENTS
   A lead-in, a credentials card and a closing invitation, so
   the copy reads as three parts instead of one grey block.
   ========================================================= */

/* lead-in — a warm card with an orange spine and a corner glow */
.home-content-details > p.wp-block-paragraph:first-of-type {
    padding: 22px 24px 22px 26px;

    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(236, 76, 2, .12), transparent 46%);

    border: 1px solid rgba(236, 76, 2, .28);
    border-left: 5px solid #ec4c02;
    border-radius: 4px 16px 16px 4px;

    box-shadow: 0 10px 24px rgba(51, 51, 51, .06);

    color: #333333;

    font-size: 17px;
    line-height: 1.65;
}

.home-content-details > p.wp-block-paragraph:first-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(51, 51, 51, .10);
}

/* ---------------------------------------------------------
   PROGRAM PARAGRAPHS — every block of copy is led by one of the
   centre's own program icons, so the SEO copy reads as a row of
   friendly little features instead of a wall of text
   --------------------------------------------------------- */

.home-content-details > p.wp-block-paragraph:nth-of-type(2),
.home-content-details > p.wp-block-paragraph:nth-of-type(3),
.home-content-details > p.wp-block-paragraph:nth-of-type(4),
.home-content-details > p.wp-block-paragraph:nth-of-type(6) {
    min-height: 42px;
    padding-left: 58px;
}

.home-content-details > p.wp-block-paragraph:nth-of-type(2)::before,
.home-content-details > p.wp-block-paragraph:nth-of-type(3)::before,
.home-content-details > p.wp-block-paragraph:nth-of-type(4)::before,
.home-content-details > p.wp-block-paragraph:nth-of-type(6)::before {
    content: "";

    position: absolute;
    top: 1px;
    left: 0;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background-color: #ffffff;
    background-image: url("assets/img/home-icon-baby.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;

    box-shadow:
        0 0 0 1px rgba(102, 0, 50, .10),
        0 0 0 4px #fffdf7,
        0 6px 14px rgba(51, 51, 51, .12);

    transition: transform .3s ease, box-shadow .3s ease;
}

/* ABC blocks = VPK and after-school */
.home-content-details > p.wp-block-paragraph:nth-of-type(3)::before {
    background-image: url("assets/img/home-icon-abc.png");
}

/* the open book = the Frog Street curriculum */
.home-content-details > p.wp-block-paragraph:nth-of-type(4)::before {
    background-image: url("assets/img/home-icon-book.png");
}

/* the gold star = twenty years of history */
.home-content-details > p.wp-block-paragraph:nth-of-type(6)::before {
    background-color: #fffdf7;
    background-image: url("assets/img/home-icon-star.png");
    background-size: 24px 24px;
}

/* the icons give a little happy wiggle when the copy is hovered */
.home-content-details > p.wp-block-paragraph:nth-of-type(2):hover::before,
.home-content-details > p.wp-block-paragraph:nth-of-type(3):hover::before,
.home-content-details > p.wp-block-paragraph:nth-of-type(4):hover::before,
.home-content-details > p.wp-block-paragraph:nth-of-type(6):hover::before {
    transform: rotate(-10deg) scale(1.06);

    box-shadow:
        0 0 0 1px rgba(102, 0, 50, .12),
        0 0 0 4px #fffdf7,
        0 9px 18px rgba(51, 51, 51, .16);
}

/* ---------------------------------------------------------
   GUTTER SPARKS
   A short trail of brand dots under every program icon. They
   drift up and fade (see AMBIENT MOTION), so the icon column
   never sits completely still.
   --------------------------------------------------------- */

.home-content-details > p.wp-block-paragraph:nth-of-type(2)::after,
.home-content-details > p.wp-block-paragraph:nth-of-type(3)::after,
.home-content-details > p.wp-block-paragraph:nth-of-type(4)::after,
.home-content-details > p.wp-block-paragraph:nth-of-type(6)::after {
    content: "";

    position: absolute;
    top: 48px;
    left: 16px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background-color: #e9bc4d;

    /* two paler siblings trail below, like a thought bubble */
    box-shadow:
        0 12px 0 -2px rgba(233, 188, 77, .45),
        0 22px 0 -3px rgba(233, 188, 77, .22);

    pointer-events: none;
}

.home-content-details > p.wp-block-paragraph:nth-of-type(3)::after {
    background-color: #ec4c02;

    box-shadow:
        0 12px 0 -2px rgba(236, 76, 2, .42),
        0 22px 0 -3px rgba(236, 76, 2, .20);
}

.home-content-details > p.wp-block-paragraph:nth-of-type(4)::after {
    width: 7px;
    height: 7px;

    background-color: #660032;

    box-shadow:
        0 12px 0 -1px rgba(102, 0, 50, .35),
        0 22px 0 -2px rgba(102, 0, 50, .16);
}

.home-content-details > p.wp-block-paragraph:nth-of-type(6)::after {
    width: 9px;
    height: 9px;
}

/* ---------------------------------------------------------
   LICENCE — a small "certificate" with a burgundy seal
   --------------------------------------------------------- */

.home-content-details > p.wp-block-paragraph:nth-of-type(5) {
    padding: 20px 22px;

    background-color: #fffdf7;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(233, 188, 77, .28), transparent 48%);

    border: 1px dashed rgba(102, 0, 50, .30);
    border-top: 3px solid #660032;
    border-radius: 4px 16px 16px 16px;

    box-shadow: 0 8px 20px rgba(51, 51, 51, .06);
}

/* the seal that stamps the certificate */
.home-content-details > p.wp-block-paragraph:nth-of-type(5)::after {
    content: "\2713";

    position: absolute;
    top: -15px;
    right: 18px;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    background: linear-gradient(145deg, #660032, #8c001a);
    color: #ffffff;

    border-radius: 50%;

    font-size: 17px;
    font-weight: 900;
    line-height: 1;

    box-shadow:
        0 0 0 4px #fffdf7,
        0 6px 14px rgba(102, 0, 50, .32);
}

.home-content-details > p.wp-block-paragraph:nth-of-type(5):hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(51, 51, 51, .11);
}

/* ---------------------------------------------------------
   CLOSING INVITATION — warm callout with a gold spine
   --------------------------------------------------------- */

.home-content-details > p.wp-block-paragraph:last-of-type {
    padding: 18px 104px 18px 24px;

    background:
        linear-gradient(135deg, rgba(233, 188, 77, .30), rgba(236, 76, 2, .10));

    border: 1px solid rgba(233, 188, 77, .55);
    border-left: 5px solid #e9bc4d;
    border-radius: 4px 16px 16px 4px;

    color: #333333;

    font-weight: 600;
}

/* a smiling face waves the invitation goodbye */
.home-content-details > p.wp-block-paragraph:last-of-type::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 20px;

    width: 64px;
    height: 64px;
    margin-top: -32px;

    background-color: #fffdf7;
    background-image: url("assets/img/home-band-2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    border: 4px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 0 0 2px rgba(233, 188, 77, .55),
        0 8px 18px rgba(51, 51, 51, .18);

    transform: rotate(-6deg);
}

.home-content-details > p.wp-block-paragraph:last-of-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(233, 188, 77, .28);
}

/* paragraphs are never split across the two reading columns */
.home-content-details > p.wp-block-paragraph {
    break-inside: avoid;
}

/* The brand term used to grow a yellow highlighter on hover, which made a
   plain mention look like a link. It keeps the site-wide burgundy and weight
   now (see `.kk-brand-name`) and nothing happens when the cursor crosses it. */
.home-content-details mark {
    padding: 0;

    background: none;

    border-radius: 0;
}


/* =========================================================
   TWO-COLUMN READING  (desktop only)
   ---------------------------------------------------------
   The copy is long; two balanced columns halve the scroll
   while the heading and its underline still span both.
   ========================================================= */

@media (min-width: 1024px) {

    .home-content-details {
        column-count: 2;
        column-gap: 54px;
        column-rule: 1px dashed rgba(102, 0, 50, .14);
    }

    .home-content-details > h3.wp-block-heading {
        column-span: all;
    }

    /* the closing invitation runs under both columns, like a footer
       band — it also keeps the two reading columns even */
    .home-content-details > p.wp-block-paragraph:last-of-type {
        column-span: all;

        max-width: none;

        margin-top: 6px !important;
    }

    .home-content-details > p.wp-block-paragraph:first-of-type {
        font-size: 17.5px;
    }
}

/* =========================================================
   FULL-BLEED GUTTERS
   ---------------------------------------------------------
   .main-content carries a side padding of 40px, 70px, 25px or 16px
   depending on the viewport. The card cancels exactly that much, so
   the photograph ribbon runs the whole width of the screen instead of
   stopping short of it. Keep these numbers in step with the
   `.main-content` padding rules further up the file.
   ========================================================= */

@media (min-width: 1500px) {

    .home-content-details {
        --kk-gutter: 70px;
    }
}

@media (max-width: 1150px) {

    .home-content-details {
        --kk-gutter: 25px;
    }
}

@media (max-width: 520px) {

    .home-content-details {
        --kk-gutter: 16px;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .home-content-details {
        padding: 0 34px 40px !important;
    }

    .home-content-details > h3.wp-block-heading {
        font-size: 28px;
        padding: 22px 24px 18px;
    }

    .home-content-details > p.wp-block-paragraph {
        font-size: 15px;
        line-height: 1.65;
    }
}


@media (max-width: 600px) {
    .home-content-details {
        padding: 0 20px 30px !important;

        /* two photographs instead of three, so faces stay readable
           on a narrow phone screen */
        background-image:
            radial-gradient(circle at 2% 46%, rgba(236, 76, 2, .09), transparent 26%),
            radial-gradient(circle at 98% 94%, rgba(102, 0, 50, .08), transparent 30%),
            radial-gradient(rgba(236, 76, 2, .09) 1.5px, transparent 1.6px),
            radial-gradient(rgba(102, 0, 50, .07) 1.3px, transparent 1.4px),
            radial-gradient(rgba(233, 188, 77, .26) 2.2px, transparent 2.3px);

        background-size:
            auto,
            auto,
            30px 30px,
            47px 47px,
            71px 71px;

        background-position:
            0 0,
            0 0,
            0 0,
            16px 20px,
            34px 44px;
    }

    /* half the width is one photograph, so the strip has to be a third
       of the width tall to keep that pair at 3:2 */
    .home-content-details::before {
        padding-top: 33.333%;

        background-size:
            100% 6px,
            50% auto,
            50% auto;

        background-position:
            0 0,
            0 0,
            100% 0;
    }

    .home-content-details > h3.wp-block-heading {
        margin-top: 26% !important;
        margin-bottom: 22px !important;
        font-size: 24px;
        padding: 20px 18px 16px;
        border-radius: 14px;
    }

    .home-content-details > h3.wp-block-heading::after {
        width: 70px;
        height: 4px;
    }

    .home-content-details > p.wp-block-paragraph {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 14px !important;
    }

    .home-content-details > p:nth-of-type(2),
    .home-content-details > p:nth-of-type(3),
    .home-content-details > p:nth-of-type(4),
    .home-content-details > p:nth-of-type(6) {
        min-height: 36px;
        padding-left: 48px;
    }

    .home-content-details > p:nth-of-type(2)::before,
    .home-content-details > p:nth-of-type(3)::before,
    .home-content-details > p:nth-of-type(4)::before,
    .home-content-details > p:nth-of-type(6)::before {
        width: 34px;
        height: 34px;
        background-size: 26px 26px;
        box-shadow:
            0 0 0 1px rgba(102, 0, 50, .10),
            0 0 0 3px #fffdf7,
            0 4px 10px rgba(51, 51, 51, .12);
    }

    .home-content-details > p:nth-of-type(6)::before {
        background-size: 20px 20px;
    }

    .home-content-details > p.wp-block-paragraph:first-of-type {
        padding: 18px 18px 18px 20px;
    }

    .home-content-details > p.wp-block-paragraph:nth-of-type(5) {
        padding: 24px 16px 16px;
    }

    .home-content-details > p.wp-block-paragraph:nth-of-type(5)::after {
        top: -13px;
        right: 12px;

        width: 30px;
        height: 30px;

        font-size: 14px;

        box-shadow:
            0 0 0 3px #fffdf7,
            0 5px 12px rgba(102, 0, 50, .30);
    }

    .home-content-details > p.wp-block-paragraph:last-of-type {
        padding: 16px 84px 16px 18px;
    }

    .home-content-details > p.wp-block-paragraph:last-of-type::after {
        right: 14px;
        width: 54px;
        height: 54px;
        margin-top: -27px;
        border-width: 3px;
    }
}

/* =========================================================
   EXPLORE ALL PROGRAMS BUTTON
   ========================================================= */

.main-content > .wp-block-buttons.is-content-justification-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    margin: 18px 0 0 !important;
}

.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button {
    margin: 0 !important;
}

.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 284px;
    height: var(--pincoder-btn-height) !important;
    min-height: var(--pincoder-btn-height) !important;
    padding: var(--pincoder-btn-padding) !important;
    background: var(--pincoder-btn-gold) !important;
    color: var(--pincoder-btn-burgundy) !important;
    border: var(--pincoder-btn-ring) solid #ffffff !important;
    border-radius: var(--pincoder-btn-radius) !important;
    font-family: "Nunito", sans-serif !important;
    font-size: var(--pincoder-btn-font-size) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .16s ease,
        box-shadow .22s ease !important;
}

.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button__link img{
   margin-left: 20px;
}

.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button__link:hover,
.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-hover) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(51, 51, 51, .22) !important;
}

.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button__link:active,
.main-content > .wp-block-buttons.is-content-justification-center
.wp-block-button__link[aria-current="page"] {
    background: var(--pincoder-btn-orange-active) !important;
    color: var(--pincoder-btn-white) !important;
    border-color: #ffffff !important;

    box-shadow:
        inset 0 3px 10px rgba(51, 51, 51, .28) !important;

    transform: translateY(1px);
}
/* =========================================================
   ABOUT US SECTION
   ========================================================= */

.sub-main-content {
    --about-navy: #333333;
    --about-red: #660032;
    --about-green: #660032;
    --about-green-light: #f4edf1;
    --about-text: #3d3d3d;

    display: grid !important;
    grid-template-columns: 42% 58%;

    gap: 40px !important;

    width: min(1280px, calc(100% - 80px));

    margin: 0 auto !important;
    padding: 34px 0 46px;

    align-items: stretch;

    font-family: "Nunito", sans-serif;
}


/* remove the inline flex-basis effect */
.sub-main-content > .wp-block-column {
    flex-basis: auto !important;
    margin: 0 !important;
    min-width: 0;
}


/* =========================================================
   LEFT IMAGE
   ========================================================= */

.sub-main-content > .wp-block-column:first-child {
    display: flex;
    align-items: stretch;
}

.sub-main-content > .wp-block-column:first-child > figure {
    width: 100%;
    height: 100%;

    margin: 0 !important;

    overflow: hidden;

    border-radius: 18px;

    box-shadow:
        0 18px 40px rgba(102, 0, 50, .16);
}

.sub-main-content > .wp-block-column:first-child > figure img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 285px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}


/* =========================================================
   RIGHT CONTENT
   ========================================================= */

.sub-main-content > .wp-block-column:nth-child(2) {
    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    padding: 4px 0 0;
}


/* ABOUT US */
.sub-main-content > .wp-block-column:nth-child(2) > h2.wp-block-heading {
    margin: 0 0 12px !important;

    color: var(--about-red);

    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .18em;

    text-transform: uppercase;
}


/* Serving Palm Beach County Since 2006 */
.sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading:nth-of-type(1) {
    margin: 0 0 8px !important;

    color: var(--about-navy);

    font-family: "Nunito", sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
}


/* Founded in 2006... */
.sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading:nth-of-type(2) {
    margin: 0 0 18px !important;

    color: var(--about-red);

    font-family: "Nunito", sans-serif;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
}


.sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading strong {
    font-weight: 900;
}


/* main paragraph */
.sub-main-content > .wp-block-column:nth-child(2) > p.wp-block-paragraph:first-of-type {
    margin: 0 0 20px !important;
    color: var(--about-text);
    font-family: "Nunito-medium", sans-serif;
    font-size: 16px;
    line-height: 1.62;
}

/* the About copy wraps the name in <code>, which browsers draw in a monospace
   face — the brand span still needs the body face, so the wrapper is
   neutralised wherever it holds a mention */
.sub-main-content p code,
code:has(.kk-brand-name) {
    padding: 0;

    background: none;

    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

/* =========================================================
   FROG STREET CALLOUT
   ========================================================= */

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) auto;

    align-items: center;

    gap: 18px !important;

    width: 100%;

    margin: 22px 0 0 !important;
    padding: 16px 20px !important;

    background: #f4edf1;

    border: 1px solid rgba(102, 0, 50, .10);
    border-radius: 14px;

    box-shadow:
        0 10px 24px rgba(102, 0, 50, .07);
}


/* remove inline flex-basis influence */
.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column {
    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    min-width: 0;
}


/* =========================================================
   ICON COLUMN
   ========================================================= */

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child
figure {
    margin: 0 !important;
}

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child
img {
    display: block;
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: contain;
    margin: 0 !important;
}


/* =========================================================
   TEXT COLUMN
   ========================================================= */

.sub-main-content .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-main-content .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) h4.wp-block-heading {
    margin: 0 0 5px !important;
    color: #660032;
    font-family: "Nunito", sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.sub-main-content .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) p.wp-block-paragraph {
    margin: 0 !important;
    color: #3d3d3d;
    font-family: "Nunito-Medium", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
}


/* =========================================================
   LEARN MORE
   ========================================================= */

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(3) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(3)
p {
    margin: 0 !important;
}

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(3)
a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 14px;

    color: #333333;

    background: #ffffff;

    border: 1px solid rgba(102, 0, 50, .14);
    border-radius: 100px;

    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .18s ease,
        box-shadow .22s ease;
}

.sub-main-content
.wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(3)
a:hover {
    color: #660032;

    border-color: #660032;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(102, 0, 50, .14);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 760px) {

    .sub-main-content
    .wp-block-column:nth-child(2) > .wp-block-columns {
        grid-template-columns: 54px 1fr;
        gap: 12px !important;

        padding: 10px 12px !important;
    }

    .sub-main-content
    .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(3) {
        grid-column: 2;
        justify-content: flex-start;

        margin-top: 3px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .sub-main-content
    .wp-block-column:nth-child(2) > .wp-block-columns {
        grid-template-columns: 48px 1fr;
    }

    .sub-main-content
    .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child
    img {
        width: 46px !important;
        height: 46px !important;

        max-width: 46px !important;
        max-height: 46px !important;
    }

    .sub-main-content
    .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2)
    h4.wp-block-heading {
        font-size: 15px;
    }

    .sub-main-content
    .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2)
    p.wp-block-paragraph {
        font-size: 12px;
    }
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .sub-main-content {
        width: calc(100% - 40px);

        grid-template-columns: 1fr 1.1fr;

        gap: 26px !important;

        padding: 26px 0 34px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading:nth-of-type(1) {
        font-size: 25px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading:nth-of-type(2) {
        font-size: 17px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > p.wp-block-paragraph:first-of-type {
        font-size: 15px;
    }
}


@media (max-width: 760px) {

    .sub-main-content {
        grid-template-columns: 1fr;

        width: calc(100% - 30px);

        padding-top: 22px;
    }

    .sub-main-content > .wp-block-column:first-child > figure img {
        min-height: 260px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) {
        padding-top: 5px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > figure.wp-block-image {
        position: absolute;

        left: 14px;
        bottom: 17px;

        width: 48px;
        height: 48px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h4.wp-block-heading {
        padding:
            10px
            115px
            0
            74px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h4.wp-block-heading
    + p.wp-block-paragraph {
        padding:
            3px
            115px
            12px
            74px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > p.wp-block-paragraph:last-child {
        right: 14px;
        bottom: 31px;
    }
}


@media (max-width: 520px) {

    .sub-main-content {
        width: calc(100% - 24px);
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading:nth-of-type(1) {
        font-size: 23px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h3.wp-block-heading:nth-of-type(2) {
        font-size: 16px;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > figure.wp-block-image {
        position: static;

        width: 48px;
        height: 48px;

        margin: 10px 0 6px !important;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h4.wp-block-heading {
        padding: 10px 12px 2px;

        border-radius: 10px 10px 0 0;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > h4.wp-block-heading
    + p.wp-block-paragraph {
        padding: 0 12px 10px;

        border-radius: 0;
    }

    .sub-main-content > .wp-block-column:nth-child(2) > p.wp-block-paragraph:last-child {
        position: static;
        padding: 0 12px 12px;
        background: var(--about-green-light);
        border-radius: 0 0 10px 10px;
    }
}
/* =========================================================
   GOOGLE / TESTIMONIAL SECTION
   ========================================================= */

.google-template {
    width: 100%;
    margin: 0 !important;
    padding: 8px 20px 34px !important;
    background: #fdfaf3;
    font-family: "Nunito", sans-serif;
}

.google-template > .wp-block-column {
    width: 100%;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.google-template > .wp-block-column > h2.wp-block-heading {
    margin: 0 0 8px !important;
    color: #333333;
    font-family: "Nunito-Medium", sans-serif;
    font-size: 27px;
    line-height: 1.1;
    text-align: center;
}


/* =========================================================
   MAIN GRID
   ---------------------------------------------------------
   One fluid column for the slider on the left, the Google
   rating panel on the right. testimonials-slider.js moves the
   review cards into that first cell and drives the slide;
   without JavaScript every card simply stacks in the column.
   ========================================================= */

.google-template > .wp-block-column > .wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 235px;

    gap: 18px !important;

    width: min(1320px, 100%);
    margin: 0 auto !important;

    align-items: stretch;
}


/* =========================================================
   COMMON CARD
   ---------------------------------------------------------
   The second selector repeats every card rule for the cards
   that testimonials-slider.js has moved into the slide track,
   so the cards look identical with or without JavaScript.
   ========================================================= */

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column,
.google-template .kk-quotes__card {
    position: relative;

    min-width: 0;
    margin: 0 !important;
    padding: 14px 16px 12px !important;

    background: #ffffff;

    border: 1px solid #eee9e1;
    border-radius: 8px;

    box-shadow:
        0 2px 7px rgba(51, 51, 51, 0.08);
}


/* =========================================================
   TESTIMONIAL TEXT
   ========================================================= */

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > p.wp-block-paragraph:first-child,
.google-template .kk-quotes__card > p.wp-block-paragraph:first-child {
    position: relative;
    min-height: 77px;
    margin: 0 0 8px !important;
    padding-left: 38px;
    color: #3d3d3d;
    font-family: "Nunito-Medium", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}


/* quote icon */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > p.wp-block-paragraph:first-child
img,
.google-template .kk-quotes__card > p.wp-block-paragraph:first-child
img {
    position: absolute;

    top: 2px;
    left: 0;

    width: 27px !important;
    height: 23px !important;

    max-width: 27px !important;
    max-height: 23px !important;

    object-fit: contain;

    margin: 0 !important;
}


/* =========================================================
   AUTHOR + STARS ROW
   ========================================================= */

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > .wp-block-columns,
.google-template .kk-quotes__card > .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr auto;

    gap: 10px !important;

    align-items: center;

    margin: 0 !important;
}


/* author */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > .wp-block-columns > .wp-block-column:first-child
p,
.google-template .kk-quotes__card > .wp-block-columns > .wp-block-column:first-child
p {
    margin: 0 !important;

    color: #333333;

    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}


/* star row */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > .wp-block-columns > .wp-block-column:nth-child(2),
.google-template .kk-quotes__card > .wp-block-columns > .wp-block-column:nth-child(2) {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;

    gap: 2px;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > .wp-block-columns > .wp-block-column:nth-child(2)
figure,
.google-template .kk-quotes__card > .wp-block-columns > .wp-block-column:nth-child(2)
figure {
    margin: 0 !important;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column > .wp-block-columns > .wp-block-column:nth-child(2)
img,
.google-template .kk-quotes__card > .wp-block-columns > .wp-block-column:nth-child(2)
img {
    display: block;

    width: 20px !important;
    height: 19px !important;

    max-width: 20px !important;
    max-height: 19px !important;

    object-fit: contain;
}


/* =========================================================
   GOOGLE REVIEW CARD
   ========================================================= */

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 10px 12px !important;

    text-align: center;
}


/* top Google logo + score row */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns {
    display: grid !important;
    grid-template-columns: 50px 1fr;

    gap: 8px !important;

    width: 100%;

    align-items: center;

    margin: 0 0 5px !important;
}


/* Google logo */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:first-child
figure {
    margin: 0 !important;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:first-child
img {
    width: 44px !important;
    height: 44px !important;

    max-width: 44px !important;
    max-height: 44px !important;

    object-fit: contain;
}


/* score column */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:nth-child(2) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;

    gap: 1px;

    justify-content: flex-start;
}


/* 4.8 */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child
h3.wp-block-heading {
    width: 100%;

    margin: 0 0 1px !important;

    color: #333333;

    font-family: "Nunito", sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}


/* Google stars */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:nth-child(2)
figure {
    margin: 0 !important;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns > .wp-block-column:nth-child(2)
img {
    width: 18px !important;
    height: 17px !important;

    max-width: 18px !important;
    max-height: 17px !important;

    object-fit: contain;
}


/* "Based on Google Reviews" */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > p.wp-block-paragraph {
    margin: 0 0 8px !important;

    color: #4a4a4a;

    font-family: "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   GOOGLE REVIEW BUTTON
   ========================================================= */

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child > .wp-block-buttons {
    width: 100%;

    margin: 0 !important;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child
.wp-block-button {
    width: 100%;
}

.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child
.wp-block-button__link {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 34px;

    padding: 6px 12px !important;

    /* one of the two button fills — gold, so the label is burgundy */
    background: var(--pincoder-btn-gold) !important;
    color: var(--pincoder-btn-burgundy) !important;

    border: 1px solid #d8a93c !important;
    border-radius: 18px !important;

    box-shadow:
        0 1px 5px rgba(236, 76, 2, 0.12);

    font-family: "Nunito", sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    text-decoration: none !important;

    white-space: nowrap;
}

/* every button on the site hovers to the same orange */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child
.wp-block-button__link:hover,
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child
.wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-hover) !important;
    color: var(--pincoder-btn-white) !important;

    border-color: #ffffff !important;
}

/* …and presses back to burgundy */
.google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child
.wp-block-button__link:active {
    background: var(--pincoder-btn-active) !important;
    color: var(--pincoder-btn-white) !important;

    border-color: #ffffff !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   SLIDER  (built by assets/js/testimonials-slider.js)
   ---------------------------------------------------------
   The script moves the review cards into `.kk-quotes__track`
   and adds the round pager + the two arrow buttons. Until it
   runs, the cards stay in the grid above and read normally.
   ========================================================= */

.kk-quotes {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 16px;

    min-width: 0;
}

.kk-quotes__viewport {
    overflow: hidden;

    /* keeps card shadows from being sliced off at the edges */
    margin: -4px;
    padding: 4px;

    border-radius: 10px;
}

.kk-quotes__track {
    --kk-per-view: 2;
    --kk-gap: 18px;

    display: flex;
    align-items: stretch;

    gap: var(--kk-gap);

    transition: transform .55s cubic-bezier(.22, .61, .36, 1);

    will-change: transform;
}

.kk-quotes__track > .wp-block-column {
    display: flex;
    flex: 0 0 calc((100% - (var(--kk-per-view) - 1) * var(--kk-gap)) / var(--kk-per-view));
    flex-direction: column;
}


/* =========================================================
   PAGER + ARROWS
   ========================================================= */

.kk-quotes__controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
}

.kk-quotes__nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    /* the two allowed fills: gold, with a burgundy glyph */
    background: var(--pincoder-btn-gold);
    color: var(--pincoder-btn-burgundy);

    border: 1px solid #d8a93c;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .18s ease,
        box-shadow .22s ease;
}

.kk-quotes__nav svg {
    display: block;

    width: 17px;
    height: 17px;
}

/* the shared button hover — orange, with a white glyph */
.kk-quotes__nav:hover:not(:disabled),
.kk-quotes__nav:focus-visible {
    background: var(--pincoder-btn-hover);
    color: #ffffff;

    border-color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(236, 76, 2, .28);
}

.kk-quotes__nav:disabled {
    opacity: .35;

    cursor: default;
}

.kk-quotes__nav:focus-visible,
.kk-quotes__dot:focus-visible {
    outline: 3px solid rgba(233, 188, 77, .85);
    outline-offset: 3px;
}

.kk-quotes__dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
}

/* the pager reads as dots, never as page numbers */
.kk-quotes__dot {
    width: 11px;
    height: 11px;

    padding: 0;

    background: rgba(102, 0, 50, .2);

    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color .25s ease,
        transform .25s ease;
}

.kk-quotes__dot:hover {
    background: rgba(236, 76, 2, .55);
}

.kk-quotes__dot[aria-current="true"] {
    background: #660032;

    transform: scale(1.24);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .google-template > .wp-block-column > .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child {
        grid-column: auto;

        width: 100%;
        max-width: 320px;

        margin: 0 auto !important;
    }

    .kk-quotes__track {
        --kk-gap: 16px;
    }
}


@media (max-width: 780px) {

    .kk-quotes__track {
        --kk-per-view: 1;
    }
}


@media (max-width: 650px) {

    .google-template {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .google-template > .wp-block-column > .wp-block-columns {
        grid-template-columns: 1fr;

        gap: 14px !important;
    }

    .google-template > .wp-block-column > .wp-block-columns > .wp-block-column:last-child {
        grid-column: auto;
    }

    .kk-quotes__nav {
        width: 34px;
        height: 34px;
    }
}
/* =========================================================
   SUB FOOTER CTA
   ---------------------------------------------------------
   A warm yellow band that invites the next step. It is given a
   little life: the cloud photograph drifts, a soft light band
   travels across it, and the copy rises into place on load.
   ========================================================= */

.sub-footer-2 {
    position: relative;
    width: 100%;
    min-height: 128px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    isolation: isolate;
    font-family: "Nunito", sans-serif;
}


/* the travelling light band, drawn under the copy */
.sub-footer-2::after {
    content: "";

    position: absolute;
    z-index: 1;
    top: -70%;
    bottom: -70%;
    left: -40%;

    width: 26%;

    background:
        linear-gradient(100deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .5) 50%,
            rgba(255, 255, 255, 0) 100%);

    pointer-events: none;

    transform: skewX(-14deg);

    animation: krkCtaSheen 9.5s ease-in-out 1.4s infinite;
}


/* =========================================================
   BACKGROUND IMAGE
   ========================================================= */

.sub-footer-2 .wp-block-cover__image-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;

    animation: krkCtaDrift 24s ease-in-out infinite;
}


/* remove WordPress dark overlay */
.sub-footer-2 .wp-block-cover__background {
    display: none !important;
}


/* =========================================================
   INNER WRAPPER
   ========================================================= */

.sub-footer-2 .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto !important;
    padding: 26px 34px !important;
}


/* the copy rises into place once, then behaves normally */
.sub-footer-2
.wp-block-column:first-child > * {
    animation: krkCtaRise .7s cubic-bezier(.22, 1.2, .36, 1) backwards;
}

.sub-footer-2
.wp-block-column:first-child > *:nth-child(2) {
    animation-delay: .1s;
}


/* remove empty paragraph */
.sub-footer-2
.wp-block-cover__inner-container > p:empty {
    display: none !important;
}


/* =========================================================
   TWO COLUMN LAYOUT
   ========================================================= */

.sub-footer-2
.wp-block-columns {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) auto;

    gap: 44px !important;

    align-items: center;

    width: 100%;

    margin: 0 !important;
}

.sub-footer-2
.wp-block-column {
    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   HEADING
   ========================================================= */

.sub-footer-2
.wp-block-column:first-child
h3.wp-block-heading {
    margin: 0 0 7px !important;

    color: #333333;

    font-family: "Nunito", sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.005em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.sub-footer-2
.wp-block-column:first-child
p.wp-block-paragraph {
    margin: 0 !important;
    max-width: 62ch;

    color: #4a4a4a;
    font-family: "Nunito-Medium", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}


/* =========================================================
   BUTTON COLUMN
   ========================================================= */

.sub-footer-2
.wp-block-column:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sub-footer-2
.wp-block-buttons {
    margin: 0 !important;
}

.sub-footer-2
.wp-block-button {
    margin: 0 !important;
}


/* =========================================================
   SCHEDULE BUTTON
   ========================================================= */

.sub-footer-2
.wp-block-button__link {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 322px;
    min-height: var(--pincoder-btn-height);

    padding: var(--pincoder-btn-padding) !important;

    background: var(--pincoder-btn-yellow) !important;
    color: var(--pincoder-btn-burgundy) !important;

    border: var(--pincoder-btn-ring) solid #ffffff !important;
    border-radius: var(--pincoder-btn-radius) !important;

    font-family: "Nunito", sans-serif !important;
    font-size: var(--pincoder-btn-font-size) !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    /* "Schedule A Tour" — one line, every word capitalised */
    letter-spacing: 0 !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;

    text-decoration: none !important;

    box-shadow: none !important;

    animation: krkCtaRise .7s cubic-bezier(.22, 1.2, .36, 1) .16s backwards;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        transform .16s ease,
        box-shadow .22s ease !important;
}


/* calendar icon */
.sub-footer-2
.wp-block-button__link img {
    display: block;

    width: 22px !important;
    height: 22px !important;

    min-width: 22px !important;

    max-width: 22px !important;
    max-height: 22px !important;

    filter: brightness(0) !important;

    object-fit: contain;

    margin: 0 !important;
}


/* hover — swaps the yellow fill for orange */
.sub-footer-2
.wp-block-button__link:hover,
.sub-footer-2
.wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-yellow-hover) !important;
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white) !important;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(51, 51, 51, .24) !important;
}

/* pressed / current — burgundy, same as every other button */
.sub-footer-2
.wp-block-button__link:active,
.sub-footer-2
.wp-block-button__link[aria-current="page"] {
    background: var(--pincoder-btn-yellow-active) !important;
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white) !important;

    transform: translateY(1px);

    box-shadow:
        inset 0 3px 10px rgba(51, 51, 51, .28) !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .sub-footer-2 {
        min-height: 158px !important;
    }

    .sub-footer-2
    .wp-block-cover__inner-container {
        padding: 22px 24px !important;
    }

    .sub-footer-2
    .wp-block-columns {
        grid-template-columns: 1fr auto;

        gap: 26px !important;
    }

    .sub-footer-2
    .wp-block-column:first-child
    h3.wp-block-heading {
        font-size: 21px;
    }

    .sub-footer-2
    .wp-block-column:first-child
    p.wp-block-paragraph {
        font-size: 13.5px;
    }

    .sub-footer-2
    .wp-block-button__link {
        min-width: 300px;
        min-height: var(--pincoder-btn-height-sm);

        border-width: var(--pincoder-btn-ring-sm) !important;

        font-size: var(--pincoder-btn-font-size-sm) !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 580px) {

    .sub-footer-2 {
        min-height: 215px !important;
    }

    .sub-footer-2
    .wp-block-cover__inner-container {
        padding: 22px 18px !important;
    }

    .sub-footer-2
    .wp-block-columns {
        grid-template-columns: 1fr;

        gap: 16px !important;

        text-align: center;
    }

    .sub-footer-2
    .wp-block-column:nth-child(2) {
        justify-content: center;
    }

    .sub-footer-2
    .wp-block-column:first-child
    h3.wp-block-heading {
        font-size: 20px;
    }

    .sub-footer-2
    .wp-block-button__link {
        min-width: 288px;
    }
}
/* =========================================================
   FOOTER
   ========================================================= */

.footer-container {
    --footer-navy: #333333;
    --footer-blue: #ec4c02;
    --footer-red: #660032;
    --footer-text: #3d3d3d;
    --footer-border: #eee9e1;

    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    font-family: "Nunito", sans-serif;
}


/* =========================================================
   TOP FOOTER GRID
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type {
    display: grid !important;

    /* Every fixed track carries its old size as the MAX and a smaller
       floor as the MIN.  Above ~1250px the tracks still resolve to the
       original 210/250/165/170 + 1fr, but between ~1100px and ~1250px
       they compress instead of overflowing: the old template pinned the
       grid to 1216px, so at 1051px "Our Location" hung 165px off the
       right edge of the screen. */
    grid-template-columns:
        minmax(180px, 210px)
        minmax(210px, 250px)
        minmax(140px, 165px)
        minmax(150px, 170px)
        minmax(280px, 1fr);

    gap: 24px !important;

    width: min(1280px, calc(100% - 70px));

    margin: 0 auto !important;

    padding: 18px 0 14px !important;

    align-items: start;
}


/* all columns */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column {
    position: relative;

    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
}


/* vertical separators */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 0;
    right: -12px;

    width: 1px;
    height: 100%;

    background: var(--footer-border);
}


/* =========================================================
   LOGO
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:first-child {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:first-child
figure {
    margin: 0 !important;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:first-child
img {
    display: block;

    width: 180px !important;
    height: auto !important;

    max-width: 180px !important;

    object-fit: contain;
}


/* =========================================================
   FOOTER HEADINGS
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type
h3.wp-block-heading {
    margin: 0 0 7px !important;

    color: var(--footer-navy);

    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
}


/* =========================================================
   CONTACT
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(2)
ul {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(2)
li {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin: 0;
    padding: 0;

    color: var(--footer-text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(2)
li img {
    width: 18px !important;
    height: 18px !important;

    min-width: 18px;

    max-width: 18px !important;
    max-height: 18px !important;

    object-fit: contain;

    margin-top: 1px;
}

.footer-container
a {
    color: inherit;
    text-decoration: none;
}

.footer-container
a:hover {
    color: var(--footer-red);
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(3)
.wp-block-navigation {
    margin: 0 !important;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(3)
.wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;

    align-items: flex-start !important;

    gap: 2px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(3)
.wp-block-navigation-item__content {
    padding: 0 !important;

    color: var(--footer-text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(3)
.wp-block-navigation-item__content:hover {
    color: var(--footer-red);
}


/* hide mobile nav trigger in footer */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(3)
.wp-block-navigation__responsive-container-open {
    display: none !important;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4) {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;

    gap: 9px;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4)
h3 {
    width: 100%;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4)
figure {
    width: 38px;
    height: 38px;

    margin: 0 !important;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4)
figure img {
    display: block;

    width: 38px !important;
    height: 38px !important;

    max-width: 38px !important;
    max-height: 38px !important;

    object-fit: contain;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4)
figure img:hover {
    transform: translateY(-2px);
    opacity: .9;
}


/* =========================================================
   LOCATION
   ========================================================= */

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5) {
    display: grid;

    /* The text track floors at `min-content` (the width of the longest
       word) which is what stops the address from collapsing into one
       letter per line — at ~700px it did exactly that and grew the
       footer to 1322px tall instead of 866px.  At full width both
       tracks resolve to the original 175px / 1fr. */
    grid-template-columns: minmax(110px, 175px) minmax(min-content, 1fr);
    grid-template-rows: auto auto auto;

    column-gap: 18px;

    align-items: start;
}


/* Core's block library sets `word-break: break-word` on every
   `.wp-block-column`, and the footer paragraphs inherit it — which
   makes their min-content width about one character.  That silently
   defeated the `minmax(min-content, 1fr)` floor above, so the address
   was still wrapping mid-word.  Break at word boundaries only, with an
   overflow-wrap safety net so a long word can never poke out. */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
p {
    word-break: normal;
    overflow-wrap: break-word;
}
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
h3 {
    grid-column: 1 / -1;
}


/* map image */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
figure {
    grid-column: 1;
    grid-row: 2 / 4;

    /* tracks the (now flexible) first column instead of being pinned
       at 175px, so the map shrinks with the column and stops squeezing
       the address next to it */
    width: 100%;
    height: 105px;

    margin: 0 !important;

    overflow: hidden;

    border-radius: 7px;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
figure img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;
}


/* address */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
p:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;

    margin: 5px 0 6px !important;

    color: var(--footer-text);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}


/* get directions */
.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
p:nth-of-type(2) {
    grid-column: 2;
    grid-row: 3;

    margin: 0 !important;
}

.footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
p:nth-of-type(2)
a {
    color: var(--footer-red);

    font-size: 14px;
    font-weight: 800;

    text-decoration: underline;
}


/* =========================================================
   BOTTOM BAR
   ========================================================= */

.footer-container > .wp-block-columns:last-of-type {
    display: grid !important;
    grid-template-columns: 1fr auto;
    max-width: 100%;
    margin: 0 !important;

    /* 35px is half of the 70px the grid above takes off its width, and
       `(100% - 1280px) / 2` is the auto margin it then centres itself
       with — so the bar now lines up with the columns above at
       every width.  It used to be pinned at 70px, which left the
       copyright visibly indented by an extra 35px below 1350px.
       `100%` rather than `100vw` also keeps it honest when a vertical
       scrollbar is present. */
    padding: 18px max(35px, calc((100% - 1280px) / 2)) !important;

    background: #333333;
    border-top: 3px solid #e9bc4d;
}


/* copyright */
.footer-container > .wp-block-columns:last-of-type > .wp-block-column:first-child
p {
    margin: 0 !important;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}


/* privacy + sitemap */
.footer-container > .wp-block-columns:last-of-type > .wp-block-column:last-child
ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.footer-container > .wp-block-columns:last-of-type > .wp-block-column:last-child
li {
    position: relative;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}


/* separator between Privacy Policy and Site Map */
.footer-container > .wp-block-columns:last-of-type > .wp-block-column:last-child
li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -13px;
    width: 1px;
    height: 16px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.65);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    /* Five columns stop fitting side by side around 1150px, so this
       becomes three: logo | contact + stay connected | quick links +
       location. */
    .footer-container > .wp-block-columns:first-of-type {
        grid-template-columns: minmax(180px, 190px) minmax(0, 1fr) minmax(0, 1.2fr);

        gap: 26px 22px !important;
    }

    /* The logo rides beside BOTH rows of links, which fills the empty
       cell that used to sit in the bottom-left corner of the footer. */
    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:first-child {
        grid-row: span 2;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4) {
        grid-column: 2;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5) {
        grid-column: 3;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column::after {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .footer-container > .wp-block-columns:first-of-type {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        gap: 26px !important;
        padding-top: 26px !important;
        padding-bottom: 26px !important;
        text-align: center;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100%;
    }

    /* hairline rules between the stacked blocks — without them the five
       blocks read as one very long run of text */
    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:not(:last-child)::after {
        display: block;

        top: auto;
        right: auto;
        bottom: -13px;
        left: 0;

        width: 100%;
        height: 1px;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:first-child {
        justify-content: center;
    }

    /* Contact Us rows */
    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(2)
    li {
        justify-content: center;
    }

    /* Stay Connected icons */
    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(4) {
        justify-content: center;
    }

    /* Our Location: map above the address, centred */
    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5) {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        column-gap: 0;
        row-gap: 10px;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
    figure {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        width: 200px;
        height: 110px;
    }

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
    p:nth-of-type(1),
    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(5)
    p:nth-of-type(2) {
        grid-column: 1;
        grid-row: auto;
        margin: 0 !important;
    }

    .footer-container > .wp-block-columns:last-of-type {
        grid-template-columns: 1fr;
        gap: 12px !important;
        padding: 16px !important;
        text-align: center;
    }

    .footer-container > .wp-block-columns:last-of-type > .wp-block-column:last-child
    ul {
        justify-content: center;
    }
}

/* =========================================================
   HOMEPAGE — TABLET / MOBILE STABILITY FIXES
   ---------------------------------------------------------
   Appended last on purpose: these rules must win over the
   older hero/header rules without editing them in place.
   Everything here is inside a media query, so the desktop
   layout is untouched.
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------------------
       1. HEADER — keep it to ONE 82px row
       -----------------------------------------------------
       The inner grid used `grid-template-rows: 48px 80px`,
       which is 128px tall, and the nested columns wrapped as
       soon as the inline menu did not fit next to the CTA.
       The result was a 256px tall header inside an 82px bar,
       so the CTA row was painted over the hero image.

       Note: the 521px–900px block higher up this file stacks
       the three header CTAs and lifts this row height, because
       the stack does not fit in 82px. Below 521px (phones) the
       CTAs are hidden, so that fix keeps the bar at 82px.
    ----------------------------------------------------- */

    .header-navigation > .wp-block-columns {
        grid-template-rows: 82px !important;
        min-height: 82px !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        grid-template-rows: none !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-end;
        height: 82px;
        grid-template-rows: none !important;
    }

    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column,
    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:first-child,
    .header-navigation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns > .wp-block-column:nth-child(2) {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        height: 82px;
        min-height: 0;
        grid-template-rows: none !important;
    }

    .header-navigation
    .pincoder-client-navigation {
        grid-row: auto !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
    }

    /*
     * Collapse the inline menu into the hamburger.
     *
     * Core only swaps to the overlay below 600px, so between
     * 600px and 900px the full link row and the hamburger were
     * both rendered. The links alone need ~640px, which can not
     * sit next to the CTA inside a 740px header, so the row
     * wrapped and broke the header. The overlay still works
     * normally once the trigger is tapped.
     */
    .header-navigation
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container-open {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 34px;
        height: 34px;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-navigation
    .wp-block-navigation__container {
        justify-content: flex-end !important;
    }
}

/* =========================================================
   HOMEPAGE HERO — TABLET / MOBILE FIXES
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------------------
       2. HERO COPY GETS THE FULL WIDTH
       -----------------------------------------------------
       `.banner-sub-content` is capped at max-width:40% and was
       never reset, so on a 320px phone the headline column was
       only 112px wide and the "The Journey Begins Here" logo
       rendered 112x45px. The same cap also applied to the
       legacy hero content width.
    ----------------------------------------------------- */

    .banner-sub-content {
        max-width: 100% !important;
        width: 100% !important;
    }

    .banner-sub-content > h3.wp-block-heading,
    .banner-sub-content > h4.wp-block-heading,
    .banner-sub-content > .wp-block-paragraph {
        padding-left: 0;
    }

    .banner-title {
        width: 100%;
        max-width: 500px;

        margin-top: 0;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-heading,
    .wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-paragraph,
    .wp-block-columns.banner-container > .wp-block-column.banner-container > .wp-block-buttons {
        width: 100%;
        max-width: 580px;
    }

    /* -----------------------------------------------------
       3. HERO SLIDER STAYS AT THE BOTTOM
       -----------------------------------------------------
       The base rule pins the slider with `top:0 !important` /
       `bottom:0 !important`, so the media query below could not
       move it. The slider stayed at the top of the hero, sat
       behind the headline, and left ~300px of empty white
       space before the trust badges.
    ----------------------------------------------------- */

    .wp-block-columns.banner-container > .wp-block-column.banner-container > .superblockslider {
        top: 0 !important;
        bottom: 0 !important;

        height: 100% !important;
    }

    /* soften the top edge of the slider, directly above it */
    .wp-block-columns.banner-container > .wp-block-column.banner-container::after {
        bottom: 330px;
    }

    /* -----------------------------------------------------
       4. HERO CTA ROW WRAPS INSTEAD OF OVERFLOWING
       -----------------------------------------------------
       The base row is `flex-wrap: nowrap !important`, which beat
       the mobile `flex-wrap: wrap` (written without !important).
       The 200px + 190px buttons therefore ran 124px past the
       right edge of a 320px viewport and were clipped by
       `body { overflow-x: hidden }`.
    ----------------------------------------------------- */

    .wp-block-column.banner-container > .wp-block-buttons {
        flex-wrap: wrap !important;

        width: 100% !important;
        max-width: 580px !important;

        padding-left: 0 !important;
    }

    .wp-block-column.banner-container > .wp-block-buttons > .wp-block-button {
        flex: 0 1 auto;
        max-width: 100%;
    }

    /*
     * The desktop rules lock the two hero buttons to a fixed
     * 200px / 190px width with `!important`. Match their
     * specificity so they can shrink to fit a phone.
     */
    .wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link,
    .wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {

    .wp-block-columns.banner-container > .wp-block-column.banner-container {
        min-height: 0;

        padding:
            28px
            20px
            20px;
    }

    .wp-block-columns.banner-container > .wp-block-column.banner-container::after {
        bottom: 285px;
    }
    .banner-sub-content{
        background: rgb(255 255 255 / 35%);
    }

    /* Phones: hero + centred CTA pills drop to the compact tier so the
       84px desktop pill never swallows a 375px screen. */
    .wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:first-child > .wp-block-button__link,
    .wp-block-column.banner-container > .wp-block-buttons > .wp-block-button:nth-child(2) > .wp-block-button__link,
    .main-content > .wp-block-buttons.is-content-justification-center .wp-block-button__link {
        height: var(--pincoder-btn-height-sm) !important;
        min-height: var(--pincoder-btn-height-sm) !important;
        min-width: 0 !important;

        padding: 0 26px !important;

        border-width: var(--pincoder-btn-ring-sm) !important;

        font-size: var(--pincoder-btn-font-size-sm) !important;
    }
}

/* =========================================================
   404 — PAGE NOT FOUND
   ---------------------------------------------------------
   Markup contract — templates/404.html
       main.clean-error404              → full-width shell
         .clean-error404__inner         → centred column
           __badge    → oversized "404" numeral
           __title    → headline
           __text     → supporting copy
           __actions  → button row
           __search   → search card

   A block-theme template renders outside the inner-page shell,
   so the --kk-* tokens defined on `.pages-content` in pages.css
   never reach it. The palette is redeclared on `.clean-error404`
   below and mirrors the homepage:
       ink #333333   maroon #660032   orange #ec4c02   yellow #e9bc4d
   ========================================================= */

.clean-error404 {
    /* brand */
    --kk-navy:        #333333;
    --kk-navy-soft:   #333333;
    --kk-blue:        #ec4c02;
    --kk-red:         #660032;
    --kk-red-dark:    #4d0026;
    --kk-red-soft:    #f4edf1;
    --kk-yellow:      #e9bc4d;
    --kk-yellow-soft: #fdf6e6;

    /* text */
    --kk-text:        #333333;
    --kk-body:        #4a4a4a;
    --kk-muted:       #5f5a54;

    /* surfaces + lines */
    --kk-white:       #ffffff;
    --kk-ivory:       #fcf7ea;
    --kk-border:      #e7e0d3;

    /* shadows + shape */
    --kk-shadow-sm:   0 4px 14px rgba(51, 51, 51, .06);
    --kk-shadow-md:   0 12px 30px rgba(51, 51, 51, .10);
    --kk-radius-lg:   24px;
    --kk-radius-pill: 999px;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    /* cancel the theme's 1.5rem blockGap around the template part */
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;

    padding: clamp(3.5rem, 7vw, 6rem) 1.25rem clamp(4rem, 8vw, 7rem);

    background:
        radial-gradient(58rem 30rem at 12% 0%, var(--kk-yellow-soft), transparent 62%),
        radial-gradient(46rem 26rem at 92% 8%, var(--kk-red-soft), transparent 60%),
        linear-gradient(180deg, var(--kk-white) 0%, var(--kk-ivory) 100%);

    color: var(--kk-body);
    font-family: "Nunito", sans-serif;
    text-align: center;
}

/* Two soft brand blobs, tucked behind the content. */
.clean-error404::before,
.clean-error404::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.clean-error404::before {
    width: 22rem;
    height: 22rem;
    top: -8rem;
    left: -6rem;
    background: radial-gradient(circle at 30% 30%, rgba(233, 188, 77, .34), rgba(233, 188, 77, 0) 70%);
}

.clean-error404::after {
    width: 26rem;
    height: 26rem;
    right: -9rem;
    bottom: -11rem;
    background: radial-gradient(circle at 60% 40%, rgba(236, 76, 2, .15), rgba(236, 76, 2, 0) 70%);
}

.clean-error404__inner {
    position: relative;
    max-width: 760px;
    margin-inline: auto !important;
}

/* ---------------------------------------------------------
   THE BIG "404"
   --------------------------------------------------------- */

.clean-error404__badge {
    margin: 0 0 1.15rem !important;

    font-family: "Nunito-ExtraBold", "Nunito", sans-serif;
    font-size: clamp(4.5rem, 15vw, 9.5rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.04em;

    background: linear-gradient(135deg, var(--kk-red) 0%, #ec4c02 52%, var(--kk-yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 22px rgba(102, 0, 50, .18));
}

/* ---------------------------------------------------------
   HEADLINE + COPY
   --------------------------------------------------------- */

.clean-error404__title {
    margin: 0 0 1rem !important;

    color: var(--kk-navy);
    font-family: "Nunito-ExtraBold", "Nunito", sans-serif;
    font-size: clamp(1.75rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.015em;
}

.clean-error404__text {
    max-width: 46ch;
    margin: 0 auto 2.25rem !important;

    color: var(--kk-body);
    font-family: "Nunito", sans-serif;
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   BUTTON ROW
   --------------------------------------------------------- */

.clean-error404__actions {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: .9rem !important;
    margin: 0 0 2.75rem !important;
}

.clean-error404__actions .wp-block-button {
    margin: 0 !important;
}

.clean-error404__actions .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;

    min-height: var(--pincoder-btn-height-md);
    padding: var(--pincoder-btn-padding);

    border: var(--pincoder-btn-ring) solid #ffffff;
    border-radius: var(--pincoder-btn-radius);

    font-family: "Nunito", sans-serif;
    font-size: var(--pincoder-btn-font-size-md);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

/* Primary — brand burgundy, hover jumps to orange, press stays burgundy */
.clean-error404__btn-primary .wp-block-button__link {
    background: var(--pincoder-btn-burgundy);
    color: var(--pincoder-btn-white);
    border-color: #ffffff;
    box-shadow: 0 12px 26px rgba(102, 0, 50, .26);
}

.clean-error404__btn-primary .wp-block-button__link:hover,
.clean-error404__btn-primary .wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-burgundy-hover);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(236, 76, 2, .30);
}

.clean-error404__btn-primary .wp-block-button__link:active {
    background: var(--pincoder-btn-burgundy-active);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);
    transform: translateY(1px);
    box-shadow: inset 0 3px 10px rgba(51, 51, 51, .28);
}

/* Ghost — the gold half of the palette, with a burgundy label and a
   darker gold ring (a white ring would vanish on the white card). Hover
   still lands on the shared orange; a press returns to burgundy. */
.clean-error404__btn-ghost .wp-block-button__link {
    background: var(--pincoder-btn-gold);
    color: var(--pincoder-btn-burgundy);
    border-color: #d8a93c !important;
    box-shadow: var(--kk-shadow-sm);
}

.clean-error404__btn-ghost .wp-block-button__link:hover,
.clean-error404__btn-ghost .wp-block-button__link:focus-visible {
    background: var(--pincoder-btn-hover);
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(51, 51, 51, .24);
}

.clean-error404__btn-ghost .wp-block-button__link:active {
    background: var(--pincoder-btn-active);
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white);
    transform: translateY(1px);
    box-shadow: inset 0 3px 10px rgba(51, 51, 51, .28);
}

/* ---------------------------------------------------------
   SEARCH CARD
   --------------------------------------------------------- */

.clean-error404__search {
    max-width: 560px;
    margin-inline: auto !important;
    padding: clamp(1.35rem, 3vw, 1.85rem) !important;

    background: var(--kk-white);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    box-shadow: var(--kk-shadow-md);
}

/* The inner-page shell is not present here, so the constrained-layout
   block gap (1.5rem) would otherwise stack on top of the label margin. */
.clean-error404__search > * + * {
    margin-block-start: 0 !important;
}

.clean-error404__search-label {
    margin: 0 0 .75rem !important;

    color: var(--kk-muted);
    font-family: "Nunito-Bold", "Nunito", sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.clean-error404__search .wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
    gap: .5rem;

    padding: .4rem !important;

    background: var(--kk-ivory);
    border: 2px solid var(--kk-border) !important;
    border-radius: var(--kk-radius-pill);

    transition: border-color .2s ease, box-shadow .2s ease;
}

.clean-error404__search .wp-block-search__inside-wrapper:focus-within {
    border-color: var(--kk-blue) !important;
    box-shadow: 0 0 0 4px rgba(236, 76, 2, .12);
}

.clean-error404__search .wp-block-search__input {
    flex: 1 1 auto;
    min-width: 0;

    padding: .85rem 1.15rem !important;

    background: transparent !important;
    border: 0 !important;

    color: var(--kk-text);
    font-family: "Nunito", sans-serif;
    font-size: .98rem;
    line-height: 1.2;
    outline: none;
}

.clean-error404__search .wp-block-search__input::placeholder {
    color: var(--kk-muted);
    opacity: .75;
}

.clean-error404__search .wp-block-search__button {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: .95rem 1.7rem !important;

    background: var(--pincoder-btn-burgundy) !important;
    color: var(--kk-white) !important;
    border: 0 !important;
    border-radius: var(--kk-radius-pill) !important;

    font-family: "Nunito", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;

    transition: background-color .2s ease, transform .2s ease;
}

.clean-error404__search .wp-block-search__button:hover,
.clean-error404__search .wp-block-search__button:focus-visible {
    background: var(--pincoder-btn-hover) !important;
    transform: translateY(-1px);
}

.clean-error404__search .wp-block-search__button:active {
    background: var(--pincoder-btn-active) !important;
    color: var(--pincoder-btn-white) !important;
    transform: translateY(1px);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 781px) {
    .clean-error404 {
        padding-block: clamp(3rem, 9vw, 4.5rem) clamp(3.5rem, 10vw, 5.5rem);
    }

    .clean-error404__text {
        margin-bottom: 1.9rem !important;
    }

    .clean-error404__actions {
        margin-bottom: 2.25rem !important;
    }
}

@media (max-width: 600px) {
    .clean-error404__actions {
        flex-direction: column;
        gap: .7rem !important;
    }

    .clean-error404__actions .wp-block-button,
    .clean-error404__actions .wp-block-button__link {
        width: 100%;
    }

    .clean-error404__search .wp-block-search__inside-wrapper {
        flex-direction: column;
        padding: .5rem !important;
    }

    .clean-error404__search .wp-block-search__input {
        width: 100%;
        text-align: center;
    }

    .clean-error404__search .wp-block-search__button {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   MOTION — a gentle bob on the numeral, off when asked
   --------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    @keyframes krkErrorFloat {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-10px); }
    }

    .clean-error404__badge {
        animation: krkErrorFloat 6s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clean-error404__badge {
        animation: none !important;
    }

    .clean-error404__actions .wp-block-button__link:hover,
    .clean-error404__actions .wp-block-button__link:focus-visible,
    .clean-error404__search .wp-block-search__button:hover,
    .clean-error404__search .wp-block-search__button:focus-visible {
        transform: none;
    }
}



/* =========================================================
   FORM SUCCESS  (templates/page-form-success.html)
   ---------------------------------------------------------
   Markup contract
       main.clean-form-success            → full-width shell
         .clean-form-success__inner       → centred column
           .bst-success-card              ← forms/success.php
             __mark     → gradient tick medallion
             __eyebrow  → brand pill
             __title    → headline
             __text     → supporting copy
             __actions  → button pair
             __help     → contact card (the 404 search card's twin)

   Same constraint as the 404 above: a block-theme template renders
   outside the inner-page shell, so the --kk-* tokens defined on
   `.pages-content` in pages.css never reach it. The palette is
   redeclared here and mirrors the homepage:
       ink #333333   maroon #660032   orange #ec4c02   yellow #e9bc4d
   ========================================================= */

.clean-form-success {
    /* brand */
    --kk-navy:        #333333;
    --kk-navy-soft:   #333333;
    --kk-blue:        #ec4c02;
    --kk-red:         #660032;
    --kk-red-dark:    #4d0026;
    --kk-red-soft:    #f4edf1;
    --kk-yellow:      #e9bc4d;
    --kk-yellow-soft: #fdf6e6;

    /* text */
    --kk-text:        #333333;
    --kk-body:        #4a4a4a;
    --kk-muted:       #5f5a54;

    /* surfaces + lines */
    --kk-white:       #ffffff;
    --kk-ivory:       #fcf7ea;
    --kk-border:      #e7e0d3;

    /* shadows + shape */
    --kk-shadow-sm:   0 4px 14px rgba(51, 51, 51, .06);
    --kk-shadow-md:   0 12px 30px rgba(51, 51, 51, .10);
    --kk-radius-lg:   24px;
    --kk-radius-pill: 999px;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    /* cancel the theme's 1.5rem blockGap around the template part */
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;

    padding: clamp(3.5rem, 7vw, 6rem) 1.25rem clamp(4rem, 8vw, 7rem);

    background:
        radial-gradient(58rem 30rem at 12% 0%, var(--kk-yellow-soft), transparent 62%),
        radial-gradient(46rem 26rem at 92% 8%, var(--kk-red-soft), transparent 60%),
        linear-gradient(180deg, var(--kk-white) 0%, var(--kk-ivory) 100%);

    color: var(--kk-body);
    font-family: "Nunito", sans-serif;
    text-align: center;
}

/* Two soft brand blobs, tucked behind the content. */
.clean-form-success::before,
.clean-form-success::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.clean-form-success::before {
    width: 22rem;
    height: 22rem;
    top: -8rem;
    left: -6rem;
    background: radial-gradient(circle at 30% 30%, rgba(233, 188, 77, .34), rgba(233, 188, 77, 0) 70%);
}

.clean-form-success::after {
    width: 26rem;
    height: 26rem;
    right: -9rem;
    bottom: -11rem;
    background: radial-gradient(circle at 60% 40%, rgba(236, 76, 2, .15), rgba(236, 76, 2, 0) 70%);
}

.clean-form-success__inner {
    position: relative;
    max-width: 760px;
    margin-inline: auto !important;
}

/* The shortcode output is the column's only child, but wpautop can still
   wrap it; normalise the block gap so the card owns its own rhythm. */
.clean-form-success__inner > * + *,
.bst-success-card > * + * {
    margin-block-start: 0 !important;
}

/* ---------------------------------------------------------
   THE SUCCESS MEDALLION
   The 404 leads with a gradient numeral; the success page leads
   with the same red → orange → yellow gradient on a disc.
   --------------------------------------------------------- */

.bst-success-card__mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: clamp(4.75rem, 14vw, 7rem);
    height: clamp(4.75rem, 14vw, 7rem);

    margin: 0 auto 1.5rem !important;

    background: linear-gradient(135deg, var(--kk-red) 0%, #ec4c02 52%, var(--kk-yellow) 100%);
    border-radius: 50%;

    color: var(--kk-white);
    font-family: "Nunito-ExtraBold", "Nunito", sans-serif;
    font-size: clamp(2.4rem, 7.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1;

    box-shadow:
        0 18px 38px rgba(102, 0, 50, .26),
        inset 0 -6px 14px rgba(77, 0, 38, .28);
}

/* ---------------------------------------------------------
   EYEBROW + HEADLINE + COPY
   --------------------------------------------------------- */

.bst-success-card__eyebrow {
    display: inline-block;
    margin: 0 0 .9rem !important;
    padding: .38rem 1rem;

    background: var(--kk-yellow-soft);
    border-radius: var(--kk-radius-pill);

    color: var(--kk-navy);
    font-family: "Nunito-Bold", "Nunito", sans-serif;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.25;
    text-transform: uppercase;
}

.bst-success-card__title {
    margin: 0 0 1rem !important;

    color: var(--kk-navy);
    font-family: "Nunito-ExtraBold", "Nunito", sans-serif;
    font-size: clamp(1.75rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.015em;
}

.bst-success-card__text {
    max-width: 46ch;
    margin: 0 auto 2.25rem !important;

    color: var(--kk-body);
    font-family: "Nunito", sans-serif;
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    line-height: 1.65;
}

/* ---------------------------------------------------------
   BUTTON PAIR
   Same treatment as the 404 row: red primary, white ghost.
   --------------------------------------------------------- */

.bst-success-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem !important;
    margin: 0 0 2.75rem !important;
}

.bst-success-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;

    min-height: var(--pincoder-btn-height-md);
    padding: var(--pincoder-btn-padding);

    border: var(--pincoder-btn-ring) solid #ffffff;
    border-radius: var(--pincoder-btn-radius);

    font-family: "Nunito", sans-serif;
    font-size: var(--pincoder-btn-font-size-md);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

/* Primary — brand burgundy, hover jumps to orange, press stays burgundy */
.bst-success-card__btn--primary {
    background: var(--pincoder-btn-burgundy);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);
    box-shadow: 0 12px 26px rgba(102, 0, 50, .26);
}

.bst-success-card__btn--primary:hover,
.bst-success-card__btn--primary:focus-visible {
    background: var(--pincoder-btn-burgundy-hover);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(236, 76, 2, .30);
}

.bst-success-card__btn--primary:active {
    background: var(--pincoder-btn-burgundy-active);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);
    transform: translateY(1px);
    box-shadow: inset 0 3px 10px rgba(51, 51, 51, .28);
}

/* Ghost — the gold half of the palette, with a burgundy label and a
   darker gold ring; hover is the shared orange, press returns to burgundy */
.bst-success-card__btn--ghost {
    background: var(--pincoder-btn-gold);
    border-color: #d8a93c !important;
    color: var(--pincoder-btn-burgundy);
    box-shadow: var(--kk-shadow-sm);
}

.bst-success-card__btn--ghost:hover,
.bst-success-card__btn--ghost:focus-visible {
    background: var(--pincoder-btn-hover);
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(51, 51, 51, .24);
}

.bst-success-card__btn--ghost:active {
    background: var(--pincoder-btn-active);
    border-color: #ffffff !important;
    color: var(--pincoder-btn-white);
    transform: translateY(1px);
    box-shadow: inset 0 3px 10px rgba(51, 51, 51, .28);
}

/* ---------------------------------------------------------
   HELP CARD
   The twin of the 404's search card, carrying the office
   phone number and email in place of a search field.
   --------------------------------------------------------- */

.bst-success-card__help {
    max-width: 560px;
    margin-inline: auto !important;
    padding: clamp(1.35rem, 3vw, 1.85rem) !important;

    background: var(--kk-white);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-lg);
    box-shadow: var(--kk-shadow-md);
}

.bst-success-card__help > * + * {
    margin-block-start: 0 !important;
}

.bst-success-card__help-label {
    margin: 0 0 .6rem !important;

    color: var(--kk-muted);
    font-family: "Nunito-Bold", "Nunito", sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bst-success-card__help-text {
    margin: 0 0 1.15rem !important;

    color: var(--kk-body);
    font-size: .98rem;
    line-height: 1.6;
}

.bst-success-card__help-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin: 0 !important;
}

.bst-success-card__help-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;

    padding: .62rem 1.2rem;

    background: var(--kk-ivory);
    border: 1px solid var(--kk-border);
    border-radius: var(--kk-radius-pill);

    color: var(--kk-navy);
    font-family: "Nunito-Bold", "Nunito", sans-serif;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.bst-success-card__help-link:hover,
.bst-success-card__help-link:focus-visible {
    background: var(--kk-red);
    border-color: var(--kk-red);
    color: var(--kk-white);
    transform: translateY(-1px);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 781px) {
    .clean-form-success {
        padding-block: clamp(3rem, 9vw, 4.5rem) clamp(3.5rem, 10vw, 5.5rem);
    }

    .bst-success-card__text {
        margin-bottom: 1.9rem !important;
    }

    .bst-success-card__actions {
        margin-bottom: 2.25rem !important;
    }
}

@media (max-width: 600px) {
    .bst-success-card__actions {
        flex-direction: column;
        gap: .7rem !important;
    }

    .bst-success-card__btn {
        width: 100%;
    }

    .bst-success-card__help-links {
        flex-direction: column;
    }

    .bst-success-card__help-link {
        justify-content: center;
        width: 100%;
    }
}

/* ---------------------------------------------------------
   MOTION — the medallion bobs, same rhythm as the 404 numeral
   --------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    @keyframes krkSuccessFloat {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-10px); }
    }

    .bst-success-card__mark {
        animation: krkSuccessFloat 6s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bst-success-card__mark {
        animation: none !important;
    }

    .bst-success-card__btn:hover,
    .bst-success-card__btn:focus-visible,
    .bst-success-card__help-link:hover,
    .bst-success-card__help-link:focus-visible {
        transform: none;
    }
}


/* =========================================================
   SCROLL REVEALS  (wow-lite)
   ---------------------------------------------------------
   The motion is deliberately copied from the theme that runs
   kidsrkreative.org today (animate.css driven by
   css3-animate-it), so the rebuilt site moves the way the
   client's current site moves:

     live site effect            reproduced here as
     --------------------------  -------------------------
     fadeInLeft   400px / 1s     krkFadeInLeft
     fadeInRight  400px / 1s     krkFadeInRight
     fadeInUp     400px / 1s     krkFadeInUp
     zoomIn       scale .3 / 1s  krkZoomIn        (headings)
     fadeIn       opacity / 1s   krkFadeIn        (body copy)
     .delay-250 … 250ms steps    .delay-1 … .delay-6
     .slow 1.5s / .slower 2s     same names

   Two details are what make the old site's entrances read as
   "smooth" rather than abrupt, and both are kept exactly:

   1. the fade keyframes only reach `opacity: .3` at the halfway
      mark, so the bloom happens in the second half of the move;
   2. the timing function is plain `ease` over a full second -
      no spring, no overshoot, no rotation.

   The one thing that is smarter than the old site is the
   direction: wow-lite measures each block as it reveals and
   sends left-hand blocks in from the left, right-hand blocks in
   from the right, and wide or centred blocks up from below.

   Safety rails:
   1. Everything is gated behind `html.js`, which functions.php
      sets in wp_head. Without JavaScript the content stays
      visible - the classes are only ever added by the script.
   2. `prefers-reduced-motion: reduce` switches it all off, and
      the script reveals everything immediately.
   ========================================================= */

/* ---------------------------------------------------------
   ENTRANCE KEYFRAMES
   Values mirrored from kidsrkreative.org's animations.min.css.
   --------------------------------------------------------- */

/* the horizontal entrances - which one is used depends on the
   side of the page the block actually sits on */
@keyframes krkFadeInLeft {
    from { opacity: 0; transform: translate3d(-400px, 0, 0); }
    50%  { opacity: .3; }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes krkFadeInRight {
    from { opacity: 0; transform: translate3d(400px, 0, 0); }
    50%  { opacity: .3; }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* the fallback: centred blocks, full-width rows, narrow screens */
@keyframes krkFadeInUp {
    from { opacity: 0; transform: translate3d(0, 400px, 0); }
    50%  { opacity: .3; }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* headings: the old site's `zoomIn` (scale .3 -> 1, opaque by
   the halfway mark). Kept as a variable so an oversized band can
   start from a nearer scale without forking the keyframes. */
@keyframes krkZoomIn {
    from { opacity: 0; transform: scale3d(var(--krk-zoom-from, .3), var(--krk-zoom-from, .3), 1); }
    50%  { opacity: 1; }
    to   { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes krkFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------------------------------------------------------
   AMBIENT KEYFRAMES
   Small, continuous "alive" details around the page.
   --------------------------------------------------------- */

@keyframes krkFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-7px) rotate(1deg); }
}

@keyframes krkDrift {
    /* Translate only: the cloud is 1024px wide, so any rotation
       would grow its box and push past the viewport edge. */
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -6px, 0); }
}

@keyframes krkIconPop {
    0%   { transform: scale(1) rotate(0deg); }
    45%  { transform: scale(1.18) rotate(-7deg); }
    75%  { transform: scale(.96) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* the light sweep that crosses a program card on hover */
@keyframes krkCardSweep {
    0%   { opacity: 0; transform: translateX(-140%) skewX(-14deg); }
    15%  { opacity: .9; }
    80%  { opacity: .55; }
    100% { opacity: 0; transform: translateX(260%) skewX(-14deg); }
}

/* slow breathing of the corner glows in Our Programs */
@keyframes krkGlowDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, -26px, 0) scale(1.05); }
}

/* the photo ribbon's slow Ken Burns zoom */
@keyframes krkBandZoom {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}

/* program icons bobbing along the SEO copy */
@keyframes krkBadgeBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-5px) rotate(-4deg); }
}

/* the one-off wiggle when a program paragraph is hovered — it ends on
   the resting tilt, so the icon stays tipped over while the cursor is in */
@keyframes krkBadgeWiggle {
    0%   { transform: rotate(0deg) scale(1); }
    30%  { transform: rotate(-14deg) scale(1.12) translateY(-3px); }
    60%  { transform: rotate(8deg) scale(1.03) translateY(-1px); }
    85%  { transform: rotate(-11deg) scale(1.07); }
    100% { transform: rotate(-10deg) scale(1.06); }
}

/* the trail of dots under each icon */
@keyframes krkSparkRise {
    0%, 100% { opacity: .3; transform: translateY(5px); }
    45%      { opacity: .95; transform: translateY(-4px); }
}

/* the licence seal */
@keyframes krkSealPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.08) rotate(5deg); }
}

/* the round snapshot on the closing invitation */
@keyframes krkStickerFloat {
    0%, 100% { transform: rotate(-6deg) translateY(0) scale(1); }
    50%      { transform: rotate(-2deg) translateY(-7px) scale(1.03); }
}

/* the gold rule under a heading shimmers once it has been drawn */
@keyframes krkUnderlineGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 188, 77, 0); }
    50%      { box-shadow: 0 0 14px 2px rgba(233, 188, 77, .55); }
}

/* the three dots over a section title */
@keyframes krkDotBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* title underline drawing itself in */
@keyframes krkUnderlineIn {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}

/* the closing invitation band: the cloud photograph breathes in and out */
@keyframes krkCtaDrift {
    0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
    50%      { transform: scale(1.06) translate3d(-1.2%, -1%, 0); }
}

/* …and a soft band of light keeps travelling across it */
@keyframes krkCtaSheen {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) skewX(-14deg); }
    6%   { opacity: .85; }
    38%  { opacity: .55; }
    52%  { opacity: 0; transform: translate3d(520%, 0, 0) skewX(-14deg); }
    100% { opacity: 0; transform: translate3d(520%, 0, 0) skewX(-14deg); }
}

/* the band's copy lifts into place once the section is reached */
@keyframes krkCtaRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   HIDDEN -> REVEALED
   Everything starts hidden; the script hands it back to the
   page the moment it comes into view.
   --------------------------------------------------------- */

html.js .wow {
    opacity: 0;
}

html.js .wow.animated {
    opacity: 1;

    /* same 1s / ease as `.animated` on kidsrkreative.org */
    animation-name: krkFadeInUp;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

/* the direction hint wow-lite measures for every block:
   left side of the page -> enters from the left,
   right side           -> enters from the right,
   centre (and anything almost as wide as the page) -> rises */
html.js .wow.animated.from-left   { animation-name: krkFadeInLeft; }
html.js .wow.animated.from-right  { animation-name: krkFadeInRight; }
html.js .wow.animated.from-center { animation-name: krkFadeInUp; }

/* stagger helpers - 250ms apart, the step the old theme used for
   its `.delay-250` … `.delay-1000` helpers */
html.js .wow.animated.delay-1 { animation-delay: 250ms; }
html.js .wow.animated.delay-2 { animation-delay: 500ms; }
html.js .wow.animated.delay-3 { animation-delay: 750ms; }
html.js .wow.animated.delay-4 { animation-delay: 1s; }
html.js .wow.animated.delay-5 { animation-delay: 1.25s; }
html.js .wow.animated.delay-6 { animation-delay: 1.5s; }

/* the old theme's speed modifiers, same names and values */
html.js .wow.animated.slow   { animation-duration: 1.5s; }
html.js .wow.animated.slower { animation-duration: 2s; }

/* ---------------------------------------------------------
   EFFECT -> KEYFRAMES
   `enter` (the default) is resolved into from-left / from-right
   / from-center by the script. `titlePop`, `popIn` and `fadeIn`
   are fixed effects: they are declared after the direction
   hint, so they win whenever both classes are present.

   The classic animate.css names stay supported for hand-written
   markup such as `class="wow slideInLeft delay-2"`, and they now
   resolve to keyframes with the same travel as the old site.
   --------------------------------------------------------- */

html.js .wow.animated.titlePop {
    animation-name: krkZoomIn;
}

html.js .wow.animated.popIn {
    animation-name: krkZoomIn;

    /* a button is small, so the same zoom reads as a soft pop */
    --krk-zoom-from: .55;
}

html.js .wow.animated.fadeIn { animation-name: krkFadeIn; }

html.js .wow.animated.bounceLeft,
html.js .wow.animated.fadeInLeft,
html.js .wow.animated.slideInLeft  { animation-name: krkFadeInLeft; }

html.js .wow.animated.bounceRight,
html.js .wow.animated.fadeInRight,
html.js .wow.animated.slideInRight { animation-name: krkFadeInRight; }

html.js .wow.animated.bounceUp,
html.js .wow.animated.bounceDown,
html.js .wow.animated.fadeInUp,
html.js .wow.animated.fadeInDown,
html.js .wow.animated.slideInUp,
html.js .wow.animated.slideInDown,
html.js .wow.animated.zoomInUp,
html.js .wow.animated.tiltIn,
html.js .wow.animated.flipInX      { animation-name: krkFadeInUp; }

/* the old site's plain `zoomIn` class - on a hand-written block it
   means the same thing it does on kidsrkreative.org */
html.js .wow.animated.zoomIn       { animation-name: krkZoomIn; }

/* ---------------------------------------------------------
   HANDOVER — drop the entrance animation once it has played
   wow-lite adds `.wow-done` on `animationend`. Without it,
   `animation-fill-mode: both` keeps the finished keyframe
   applied and animation values outrank normal declarations,
   so the hover lift on the program cards could never win.
   Every entrance keyframe ends untransformed, so nothing jumps.

   Keep this selector at least as specific as the `from-*` and
   `titlePop` rules above (hence the extra `.animated`), or the
   animation-name would survive the handover.
   --------------------------------------------------------- */

html.js .wow.animated.wow-done {
    opacity: 1;
    animation: none;
}

/* ---------------------------------------------------------
   TITLE UNDERLINE — DRAWS ITSELF WHEN THE BLOCK REVEALS
   --------------------------------------------------------- */

html.js .main-content > h3.wp-block-heading.animated::after,
html.js .home-content-details > h3.wp-block-heading.animated::after {
    animation: krkUnderlineIn .9s ease .55s both;
}

/* ---------------------------------------------------------
   AMBIENT DETAILS
   --------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {

    /* The five trust-badge icons bob gently, out of phase. */
    .banner-bottom-content .wp-block-column h3.wp-block-heading img {
        animation: krkFloat 5.4s ease-in-out infinite;
    }

    .banner-bottom-content .wp-block-column:nth-child(2) h3.wp-block-heading img { animation-delay: -1.1s; }
    .banner-bottom-content .wp-block-column:nth-child(3) h3.wp-block-heading img { animation-delay: -2.2s; }
    .banner-bottom-content .wp-block-column:nth-child(4) h3.wp-block-heading img { animation-delay: -3.3s; }
    .banner-bottom-content .wp-block-column:nth-child(5) h3.wp-block-heading img { animation-delay: -4.4s; }

    /* The soft white cloud behind the hero drifts very slightly. */
    .banner-cloud {
        animation: krkDrift 12s ease-in-out infinite;
    }

    /* Hovering a program card makes its floating badge bounce. */
    .main-content > .wp-block-columns > .wp-block-column:hover > figure:nth-of-type(2) {
        animation: krkIconPop 620ms cubic-bezier(.3, 1.4, .5, 1);
    }

    /* The two corner glows of Our Programs breathe, out of phase. */
    .main-content::before {
        animation: krkGlowDrift 16s ease-in-out infinite;
    }

    .main-content::after {
        animation: krkGlowDrift 21s ease-in-out infinite reverse;
    }

    /* ---------------------------------------------------------
       SEO CARD
       The band of photographs never sits still, and every marker
       in the copy has its own small piece of life.
       --------------------------------------------------------- */

    /* a slow Ken Burns zoom across the three photographs; scaling
       from the top edge keeps the brand stripe welded to it */
    .home-content-details::before {
        animation: krkBandZoom 26s ease-in-out infinite;
    }

    /* the warm glow in the bottom corner breathes */
    .home-content-details::after {
        animation: krkGlowDrift 19s ease-in-out infinite reverse;
    }

    /* the program icons bob, each out of phase with its neighbour */
    .home-content-details > p.wp-block-paragraph:nth-of-type(2)::before,
    .home-content-details > p.wp-block-paragraph:nth-of-type(3)::before,
    .home-content-details > p.wp-block-paragraph:nth-of-type(4)::before,
    .home-content-details > p.wp-block-paragraph:nth-of-type(6)::before {
        animation: krkBadgeBob 5s ease-in-out infinite;
    }

    .home-content-details > p.wp-block-paragraph:nth-of-type(3)::before { animation-delay: -1.3s; }
    .home-content-details > p.wp-block-paragraph:nth-of-type(4)::before { animation-delay: -2.5s; }
    .home-content-details > p.wp-block-paragraph:nth-of-type(6)::before { animation-delay: -3.7s; }

    /* hovering swaps the bob for a one-off wiggle that settles tilted */
    .home-content-details > p.wp-block-paragraph:nth-of-type(2):hover::before,
    .home-content-details > p.wp-block-paragraph:nth-of-type(3):hover::before,
    .home-content-details > p.wp-block-paragraph:nth-of-type(4):hover::before,
    .home-content-details > p.wp-block-paragraph:nth-of-type(6):hover::before {
        animation: krkBadgeWiggle 640ms cubic-bezier(.3, 1.4, .5, 1) forwards;
    }

    /* the trail of dots under each icon rises, brightens and settles */
    .home-content-details > p.wp-block-paragraph:nth-of-type(2)::after,
    .home-content-details > p.wp-block-paragraph:nth-of-type(3)::after,
    .home-content-details > p.wp-block-paragraph:nth-of-type(4)::after,
    .home-content-details > p.wp-block-paragraph:nth-of-type(6)::after {
        animation: krkSparkRise 5.4s ease-in-out infinite;
    }

    .home-content-details > p.wp-block-paragraph:nth-of-type(3)::after { animation-delay: -1.6s; }
    .home-content-details > p.wp-block-paragraph:nth-of-type(4)::after { animation-delay: -3.1s; }
    .home-content-details > p.wp-block-paragraph:nth-of-type(6)::after { animation-delay: -4.2s; }

    /* the licence seal breathes… */
    .home-content-details > p.wp-block-paragraph:nth-of-type(5)::after {
        animation: krkSealPulse 4.6s ease-in-out infinite;
    }

    /* …and the round snapshot on the closing invitation floats */
    .home-content-details > p.wp-block-paragraph:last-of-type::after {
        animation: krkStickerFloat 6.6s ease-in-out infinite;
    }

    /* the gold rule under the title glows once it has drawn itself */
    html.js .home-content-details > h3.wp-block-heading.animated::after {
        animation:
            krkUnderlineIn .9s ease .55s both,
            krkUnderlineGlow 3.8s ease-in-out 1.5s infinite;
    }

    /* The three dots over a section title bob. */
    .home-content-details > h3.wp-block-heading::before,
    .main-content > h3.wp-block-heading::before {
        animation: krkDotBob 2.8s ease-in-out infinite;
    }
}

/* ---------------------------------------------------------
   REDUCED MOTION — show everything, move nothing
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html.js .wow,
    html.js .wow.animated {
        opacity: 1;

        animation: none !important;
        transform: none !important;
    }

    .banner-bottom-content .wp-block-column h3.wp-block-heading img,
    .banner-cloud {
        animation: none !important;
    }

    .main-content::before,
    .main-content::after,
    .home-content-details::before,
    .home-content-details::after,
    .home-content-details > h3.wp-block-heading::before,
    .main-content > h3.wp-block-heading::before,
    .home-content-details > p.wp-block-paragraph::before,
    .home-content-details > p.wp-block-paragraph::after,
    .home-content-details > p.wp-block-paragraph:hover::before,
    .main-content > .wp-block-columns > .wp-block-column:hover::after,
    .main-content > .wp-block-columns > .wp-block-column:focus-within::after,
    .main-content > .wp-block-columns > .wp-block-column:hover > figure:nth-of-type(2),
    html.js .main-content > h3.wp-block-heading.animated::after,
    html.js .home-content-details > h3.wp-block-heading.animated::after {
        animation: none !important;
    }

    /* the invitation band: no drift, no sheen, no rise */
    .sub-footer-2::after,
    .sub-footer-2 .wp-block-cover__image-background,
    .sub-footer-2 .wp-block-column:first-child > *,
    .sub-footer-2 .wp-block-button__link {
        animation: none !important;

        opacity: 1 !important;
        transform: none !important;
    }

    /* the testimonial track jumps between positions instead of gliding */
    .kk-quotes__track {
        transition: none !important;
    }


    .main-content > .wp-block-columns > .wp-block-column:hover,
    .main-content > .wp-block-columns > .wp-block-column:focus-within,
    .main-content > .wp-block-columns > .wp-block-column:hover > figure:first-of-type img,
    .main-content > .wp-block-columns > .wp-block-column:focus-within > figure:first-of-type img,
    .banner-bottom-content .wp-block-column:hover h3.wp-block-heading,
    .banner-bottom-content .wp-block-column:hover h3.wp-block-heading img,
    .home-content-details > p.wp-block-paragraph:first-of-type:hover,
    .home-content-details > p.wp-block-paragraph:nth-of-type(5):hover,
    .home-content-details > p.wp-block-paragraph:last-of-type:hover {
        transform: none !important;
    }
}

/* ---------------------------------------------------------
   PRINT — there is no scrolling on paper, so never hide content
   --------------------------------------------------------- */

@media print {
    html.js .wow,
    html.js .wow.animated {
        opacity: 1 !important;

        animation: none !important;
        transform: none !important;
    }
}






/* =========================================================
   NAVIGATION — SUB MENUS + ACTIVE / HOVER STATES
   ---------------------------------------------------------
   Appended last on purpose: these rules have to beat the
   WordPress core navigation defaults AND the older header
   rules further up the sheet, without editing those in place.
   Everything is scoped to `.header-navigation` / `.clean-footer`
   so nothing else on the site is affected.

   What was wrong:

   1. No active-link styling existed anywhere. Core only marks a
      menu item current when the link stores a post ID, and both
      menus store "Home" as a plain `/` link, so the sheet fell
      back to hard-coding `li:first-child` — Home stayed red on
      every page. functions.php now adds a real
      `.current-menu-item`, so that shortcut is switched off and
      the header and footer share one treatment.
   2. The header drop-downs had no CSS at all and fell back to
      the core default: a plain white box with a grey border.
   3. On small screens the overlay rows were only as tall as the
      text (core sets `padding: 0`) and the footer "Quick Links"
      menu disappeared completely below 600px.
   ========================================================= */

.header-navigation,
.clean-footer.footer-container {
    --kk-nav-accent: #660032;
    --kk-nav-accent-dark: #4d0026;
    --kk-nav-ink: #3d3d3d;
    --kk-nav-muted: #4a4a4a;
    --kk-nav-line: #e7e0d3;
    --kk-nav-hover-bg: #fbf2dd;
    --kk-nav-font: var(--wp--preset--font-family--poppins, "Poppins", sans-serif);

    --kk-nav-bar: 3px;
    --kk-nav-bar-gap: 7px;
}


/* ---------------------------------------------------------
   1. HEADER — ONE TREATMENT FOR HOVER *AND* CURRENT PAGE
   --------------------------------------------------------- */

/* Switch the old "first link is Home, keep it red" shortcut off.
   Real current items carry `.current-menu-item` now. */
.header-navigation
.wp-block-navigation__container > li:first-child > .wp-block-navigation-item__content {
    color: var(--kk-nav-ink) !important;
}

.header-navigation
.wp-block-navigation__container > li:first-child > .wp-block-navigation-item__content::after {
    width: 0;
}


/* The nav row was set in "Nunito", which the theme never loads, so
   it fell back to the browser sans-serif instead of the site font. */
.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    font-family: var(--kk-nav-font) !important;
    letter-spacing: 0.01em;
}


/* Same bar for hover and for the page you are on */
.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
    width: 100%;
}

.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible {
    outline: 2px solid var(--kk-nav-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hover and current page look identical, in both menus */
.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.clean-footer.footer-container
.wp-block-navigation .wp-block-navigation-item__content:hover,
.clean-footer.footer-container
.wp-block-navigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    color: var(--kk-nav-accent) !important;
}


/* ---------------------------------------------------------
   2. FOOTER "QUICK LINKS" — the same treatment as the header
   ---------------------------------------------------------
   Scoped through the exact column chain the footer rules above
   use, so it wins without an !important arms race.
   --------------------------------------------------------- */

.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item__content {
    position: relative;

    display: inline-block !important;

    padding: 5px 0 var(--kk-nav-bar-gap) !important;

    color: var(--footer-text) !important;

    font-family: var(--kk-nav-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;

    text-decoration: none !important;

    transition: color 0.2s ease;
}

.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item__content:focus-visible {
    outline: 2px solid var(--kk-nav-accent);
    outline-offset: 2px;
}

/* the same 3px bar as the header, sitting the same distance under
   the text: the anchor has 7px of padding below it in both menus */
.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item__content::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: var(--kk-nav-bar);

    background: var(--kk-nav-accent);

    border-radius: 10px;

    transition: width 0.25s ease;
}

.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item__content:hover::after,
.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
    width: 100%;
}


/* ---------------------------------------------------------
   3. HEADER SUB NAVIGATION (drop-downs)
   ---------------------------------------------------------
   Core only gives them `background:#fff` and a grey 1px border,
   and the tall header link padding plus the red underline were
   leaking into the sub items. Styled here as a panel instead.
   --------------------------------------------------------- */

.header-navigation
.wp-block-navigation__submenu-container {
    min-width: 252px !important;

    margin: 0 !important;
    padding: 10px !important;

    background: #ffffff !important;

    border: 1px solid var(--kk-nav-line) !important;
    border-radius: 16px !important;

    box-shadow: 0 22px 45px -22px rgba(51, 51, 51, 0.5) !important;

    z-index: 40;

    transform: translateY(8px);

    /* core sets its own (3 classes of specificity) opacity transition here */
    transition: opacity 0.18s ease, transform 0.18s ease !important;
}

/* core's two "reveal the drop-down" states: hover, and the chevron */
.header-navigation
.wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
.header-navigation
.wp-block-navigation .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
    transform: translateY(0);
}


/* --- sub item rows --- */
.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item {
    width: 100% !important;
}

.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    position: relative;

    display: flex !important;
    align-items: center;

    width: 100%;

    /* core sets `.5em 1em` on these with 5 classes of specificity */
    padding: 10px 14px !important;

    color: var(--kk-nav-muted) !important;

    font-family: var(--kk-nav-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.01em !important;

    border-radius: 10px;

    text-decoration: none !important;

    transition: background-color 0.18s ease, color 0.18s ease;
}

/* the tall underline belongs to the top row only */
.header-navigation
.wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
    content: none !important;
}

/* small accent bar that grows in on the left of the hovered row */
.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content::before {
    content: "";

    position: absolute;
    left: 5px;
    top: 50%;

    width: 3px;
    height: 0;

    transform: translateY(-50%);

    background: var(--kk-nav-accent);

    border-radius: 10px;

    transition: height 0.18s ease;
}

.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    background-color: var(--kk-nav-hover-bg) !important;
    color: var(--kk-nav-accent) !important;
}

.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::before,
.header-navigation
.wp-block-navigation__submenu-container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::before {
    height: 55%;
}


/* --- chevron --- */
.header-navigation
.wp-block-navigation__submenu-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 22px !important;
    height: 22px !important;

    margin-left: 4px !important;
    padding: 0 !important;

    background: none !important;
    border: 0 !important;

    color: currentColor;

    cursor: pointer;

    transition: color 0.2s ease;
}

.header-navigation
.wp-block-navigation__submenu-icon svg {
    display: block !important;

    width: 10px !important;
    height: 10px !important;

    stroke: currentColor;
    stroke-width: 1.6;

    transition: transform 0.2s ease;
}

.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item.has-child:hover > .wp-block-navigation-submenu__toggle svg,
.header-navigation
.wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* a third level would fly out to the right — keep it tidy */
.header-navigation
.wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    margin-left: 8px;
}


/* ---------------------------------------------------------
   4. FOOTER "QUICK LINKS" ON SMALL SCREENS
   ---------------------------------------------------------
   Both menus are `overlayMenu: mobile`, so below 600px core
   hides the list behind a hamburger — and the footer rules
   above hide that hamburger, which removed the whole menu from
   the footer on phones. Show the list inline instead; it is
   already a vertical list.
   --------------------------------------------------------- */

@media (max-width: 599px) {

    .clean-footer.footer-container
    .wp-block-navigation__responsive-container {
        display: block !important;

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
    }

    .clean-footer.footer-container
    .wp-block-navigation__responsive-container-content {
        display: block !important;
    }

    .clean-footer.footer-container
    .wp-block-navigation__container {
        flex-direction: column !important;
        align-items: flex-start !important;

        gap: 2px !important;
    }

    /* Core renders the overlay's ✕ close button inside the panel we just
       un-hid, which left a stray ✕ floating over the footer links. This
       panel is not a real overlay here, so drop it. */
    .clean-footer.footer-container
    .wp-block-navigation__responsive-container-close {
        display: none !important;
    }
}


/* ---------------------------------------------------------
   4b. FOOTER "QUICK LINKS" — TWO COLUMNS ON PHONES
   ---------------------------------------------------------
   Seven full-width rows of links is a lot of vertical scrolling on a
   phone. Two content-sized columns, centred as a group under the
   centred heading, reads better and saves roughly 80px.
   The selector chain matches the desktop rule above so it wins.
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .footer-container > .wp-block-columns:first-of-type > .wp-block-column:nth-child(3)
    .wp-block-navigation__container {
        display: grid !important;

        grid-template-columns: repeat(2, auto);

        justify-content: center !important;
        justify-items: start;

        gap: 6px 34px !important;

        width: 100%;
    }
}


/* ---------------------------------------------------------
   5. MOBILE MENU (hamburger overlay)
   ---------------------------------------------------------
   Core gives the overlay rows no padding at all, right-aligns
   everything (the menu is `items-justified-right`) and forces
   every sub menu open, so the panel was a long, right-aligned
   wall of text with almost no tap target. Rebuilt here as a
   normal mobile menu with an accordion for the sub items.
   --------------------------------------------------------- */

@media (max-width: 900px) {

    /* --- hamburger --- */
    .header-navigation
    .wp-block-navigation__responsive-container-open {
        width: 42px;
        height: 42px;

        border-radius: 12px;

        background: var(--kk-nav-hover-bg);

        color: var(--kk-nav-ink);

        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .header-navigation
    .wp-block-navigation__responsive-container-open:hover {
        background: var(--kk-nav-accent);

        color: #ffffff;
    }

    .header-navigation
    .wp-block-navigation__responsive-container-open svg {
        width: 22px;
        height: 22px;
    }


    /* --- the panel --- */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open {
        padding: 0 !important;

        background: #ffffff !important;

        color: var(--kk-nav-ink) !important;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-dialog {
        padding: 0 20px 46px;
    }

    /* clears the close button */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content {
        padding-top: 74px !important;
    }


    /* --- close button --- */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-close {
        display: flex;
        align-items: center;
        justify-content: center;

        top: 16px;
        right: 20px;

        width: 42px;
        height: 42px;

        border-radius: 12px;

        background: var(--kk-nav-hover-bg);

        color: var(--kk-nav-ink);
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-close svg {
        width: 20px;
        height: 20px;
    }


    /* --- one full-width row per item --- */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;
        justify-content: flex-start !important;

        gap: 0 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;

        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;

        border-bottom: 1px solid var(--kk-nav-line);

        background: transparent !important;
    }


    /* --- row links: proper tap targets (core sets padding: 0) --- */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item > .wp-block-navigation-item__content {
        flex-grow: 1;

        display: flex !important;
        align-items: center;

        min-height: 54px;

        padding: 14px 2px !important;

        color: var(--kk-nav-ink) !important;

        font-family: var(--kk-nav-font) !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;

        text-decoration: none !important;
    }

    /* the desktop underline would sit across the middle of a full row */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content::after {
        content: none !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
        color: var(--kk-nav-accent) !important;
    }


    /* --- the chevron becomes a real 42px button ---
       Core hides `.wp-block-navigation__submenu-icon` inside the
       overlay, which also hid the toggle, leaving no way to open a
       sub menu. */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-submenu__toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        flex: 0 0 auto;

        width: 42px !important;
        height: 42px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: var(--kk-nav-hover-bg) !important;

        border: 0 !important;
        border-radius: 12px !important;

        color: var(--kk-nav-ink) !important;

        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-submenu__toggle svg {
        width: 13px !important;
        height: 13px !important;

        transform: none !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-submenu__toggle[aria-expanded="true"] {
        background: var(--kk-nav-accent) !important;

        color: #ffffff !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
        transform: rotate(180deg) !important;
    }


    /* --- sub menu: indented panel on its own row --- */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .has-child > .wp-block-navigation__submenu-container {
        flex-basis: 100% !important;

        width: 100% !important;
        min-width: 0 !important;

        margin: 0 0 12px !important;
        padding: 4px 0 4px 14px !important;

        position: static !important;

        background: transparent !important;

        border: 0 !important;
        border-left: 2px solid var(--kk-nav-line) !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        transform: none !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item {
        border-bottom: 1px solid var(--kk-nav-line);
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item:last-child {
        border-bottom: 0;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item > .wp-block-navigation-item__content {
        min-height: 46px;

        padding: 10px 0 !important;

        color: var(--kk-nav-muted) !important;

        font-size: 15px !important;
        font-weight: 600 !important;
    }

    /* the desktop left accent bar has no room in the accordion */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content::before {
        content: none !important;
    }


    /* --- accordion state ---
       Collapsed until the chevron is tapped. Core's own view script
       keeps aria-expanded in sync and force-opens the panel while the
       menu is open, so this only has to hide the closed ones. If the
       view script never loads there is no attribute at all and every
       sub menu simply stays readable. */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ .wp-block-navigation__submenu-container {
        display: none !important;
    }

    /* ...but stay open on the section that holds the current page */
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item.current-menu-item > .wp-block-navigation__submenu-container,
    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation__submenu-container {
        display: flex !important;
    }
}


/* ---------------------------------------------------------
   6. VERY SMALL PHONES — keep the overlay comfortable
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item > .wp-block-navigation-item__content {
        font-size: 16px !important;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-dialog {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-navigation
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-close {
        right: 16px;
    }
}


/* =========================================================
   HOMEPAGE HERO — `.banner-container` COPY MEASURE
   ---------------------------------------------------------
   The hero copy (`banner-sub-content`) is capped at
   `max-width: 40%` by the base rule near line 860. Between
   901px and 1165px that leaves a measure of only 336–442px,
   which is narrower than a single hard-broken line of the
   intro paragraph ("Childcare, Infant Care, Preschool, VPK &
   After-School" needs ~435px at 17px).

   Measured result of the old behaviour:
     · 960px  → copy 360px, paragraph 5 lines, orphans "School"
     · 1024px → copy 386px, paragraph 5 lines, orphans "Beach"
     · 1100px → copy 416px, paragraph 5 lines, orphans "School"
     · the centre name wrapped onto two lines although it fits
       on one
     · the extra wrapped lines pushed the hero to 620–651px tall,
       which dropped the CTA row *below* the white cloud panel
       (the panel is 576px tall) and left the buttons sitting on
       the photograph.

   Giving the copy a 470px measure on that band fits every hard
   break on one line, so the paragraph renders as the intended
   3 lines, the hero loses ~80px of height and the CTA row lands
   back inside the panel. The panel itself is 1024px wide and
   the copy starts 30px in, so a 470px column still sits on it.

   The band stops at 1165px because from ~1166px the 40% rule
   already yields ≥442px — wide enough — and the desktop look
   from 1280px up is untouched.
   ========================================================= */

@media (min-width: 901px) and (max-width: 1165px) {

    .wp-block-columns.banner-container
    > .wp-block-column.banner-container
    .banner-sub-content {
        max-width: 470px;
    }
}


/* =========================================================
   HOMEPAGE HERO — BALANCED WRAPPING ON SMALL SCREENS
   ---------------------------------------------------------
   The intro paragraph carries hard `<br>` breaks sized for the
   desktop measure. On a phone each of those lines wraps again
   and drops single-word orphans onto their own line
   ("After-" / "School", "West Palm" / "Beach").

   `text-wrap: balance` evens the lines out inside each hard
   break, so nothing is left stranded. It is a progressive
   enhancement: browsers without support simply keep the
   previous behaviour, and the markup stays untouched.
   ========================================================= */

@media (max-width: 900px) {

    .banner-sub-content > h3.wp-block-heading,
    .banner-sub-content > h4.wp-block-heading,
    .banner-sub-content > .wp-block-paragraph {
        text-wrap: balance;
    }
}


/* =========================================================
   BUTTON SHAPE CATCH-ALL
   WordPress' core button class (search, comment + form submits)
   picks up the same pill silhouette, white ring and colour-swap
   hover from the reference site.
   ========================================================= */

.wp-element-button,
.wp-block-search__button,
button[type="submit"],
input[type="submit"],
input[type="button"] {
    border-radius: var(--pincoder-btn-radius) !important;
    border: var(--pincoder-btn-ring-sm) solid #ffffff;

    font-family: "Nunito", sans-serif;
    font-weight: 800;

    transition:
        background-color .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .16s ease;
}

/* The colour swap lives here at low specificity so the dedicated
   buttons above (header, hero, banner, sub-footer, 404, success)
   keep their own tuned fills and hover pairs. No `!important` here:
   a dedicated selector such as `.bst-form__submit:hover` or
   `.pages-content … .wp-block-button__link:hover` must win on
   specificity alone. */
.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-search__button:hover,
.wp-block-search__button:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
input[type="button"]:hover,
input[type="button"]:focus-visible {
    background-color: var(--pincoder-btn-hover);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);

    transform: translateY(-2px);
}

/* Pressed — the same burgundy every other button shows while the mouse
   button is held down. The colour is released with the mouse, nothing
   is kept after the click. */
.wp-element-button:active,
.wp-block-search__button:active,
button[type="submit"]:active,
input[type="submit"]:active,
input[type="button"]:active {
    background-color: var(--pincoder-btn-burgundy);
    border-color: #ffffff;
    color: var(--pincoder-btn-white);

    transform: translateY(1px);
}


/* =========================================================
   OLD-SITE VIDEO POPUP
   ---------------------------------------------------------
   The first page load shows the old site's centered prompt. After
   clicking the prompt, the container becomes a wide video viewer.
   ========================================================= */

body.kk-video-modal-open {
    overflow: hidden;
}

.kk-video-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: rgba(0, 0, 0, 0.09);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    animation: kk-video-modal-fade-in 1s ease both;
}

.kk-video-modal[hidden] {
    display: none;
}

.kk-video-modal__dialog {
    width: 100%;
    max-width: max-content;

    overflow: hidden;

    background: #f5f7dc;

    border-radius: 60px;
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px 0;

    animation: kk-video-modal-pop-in 0.3s ease both;
}

.kk-video-modal__prompt {
    padding: 15px;
}

.kk-video-modal__prompt[hidden],
.kk-video-modal__frame[hidden] {
    display: none;
}

.kk-video-modal__prompt-button {
    display: block;
    width: 100%;
    max-width: max-content;
    margin: 0 auto;
    padding: 20px 25px;

    background: #ec4c02;
    border: 0;
    border-radius: 40px;

    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;
    transition: background-color 0.25s linear;
}

.kk-video-modal__prompt-button:hover,
.kk-video-modal__prompt-button:focus-visible {
    background: #448900;
}

.kk-video-modal__close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 50%;

    color: #ec4c02;

    font-family: "Nunito", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;

    position: absolute;
    top: 9px;
    right: 8px;
    cursor: pointer;
    transform: rotate(45deg);

    transition: color 0.2s linear;
}

.kk-video-modal__close:hover,
.kk-video-modal__close:focus-visible {
    color: #000000;
}

.kk-video-modal__close:focus-visible {
    outline: 3px solid #e9bc4d;
    outline-offset: 2px;
}

.kk-video-modal__frame {
    position: relative;

    width: min(1350px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);

    background: #000000;
}

.kk-video-modal__video {
    display: block;

    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    height: auto;
    aspect-ratio: 16 / 9;

    background: #000000;

    object-fit: contain;
}

@keyframes kk-video-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes kk-video-modal-pop-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .kk-video-modal__close {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .kk-video-modal,
    .kk-video-modal__dialog {
        animation: none;
    }

    .kk-video-modal__prompt-button,
    .kk-video-modal__close {
        transition: none;
    }
}


/* =========================================================
   FOOTER — WARM AND ALIVE
   ---------------------------------------------------------
   Appended last on purpose: it is a restyle of the footer
   that has to beat the layout rules further up the sheet.

   The footer used to be a flat white panel: five columns of
   13-14px text, a grey divider between each and a black bar
   at the bottom. Everything it says is right, but nothing in
   it moved — it read as the place the page stopped.

   What happens here:

   1. The panel gets a warm paper wash with two soft glows
      (gold top-left, orange right) that breathe behind the
      copy, so the background is never quite still.
   2. Section headings turn brand burgundy and grow a short
      gold rule that draws itself in as the column lands and
      stretches a little when the column is hovered.
   3. Contact rows lift on hover and their little icons get a
      cream coin behind them, tipping over as the row slides.
   4. Quick Links keep the header's underline bar and now also
      nudge sideways.
   5. The social icons sit in white coins, bob out of phase
      and pop a gold ring on hover.
   6. The map drifts like a live map, framed in gold, and
      lifts on hover.
   7. The copyright bar becomes a warm charcoal band with a
      travelling gold hairline and a slow light sweep — and its
      links finally hover to gold instead of burgundy, which
      was invisible on the dark bar.

   Motion is split in two: entrances come from wow-lite, the
   ambient drift is CSS-only, and every bit of it is behind
   `prefers-reduced-motion: no-preference`.
   ========================================================= */

/* ---------------------------------------------------------
   CANVAS
   --------------------------------------------------------- */

.clean-footer.footer-container {
    position: relative;

    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(115% 135% at 6% 0%,
            #fff9ec 0%,
            rgba(255, 249, 236, 0) 58%),
        radial-gradient(110% 120% at 100% 16%,
            #fdf2de 0%,
            rgba(253, 242, 222, 0) 62%),
        linear-gradient(180deg,
            #fffdf9 0%,
            #fdfaf3 58%,
            #fbf6ec 100%);
}


/* the two glows sitting behind the copy */
.clean-footer.footer-container::before,
.clean-footer.footer-container::after {
    content: "";

    position: absolute;
    z-index: -1;

    width: 440px;
    height: 440px;

    border-radius: 50%;

    pointer-events: none;
}

.clean-footer.footer-container::before {
    top: -190px;
    left: -140px;

    background:
        radial-gradient(circle,
            rgba(233, 188, 77, .30) 0%,
            rgba(233, 188, 77, 0) 68%);
}

.clean-footer.footer-container::after {
    top: 34%;
    right: -170px;

    width: 520px;
    height: 520px;

    background:
        radial-gradient(circle,
            rgba(236, 76, 2, .15) 0%,
            rgba(236, 76, 2, 0) 70%);
}


/* a little more air than the old 18px / 14px */
.clean-footer.footer-container > .wp-block-columns:first-of-type {
    padding-top: 34px !important;
    padding-bottom: 30px !important;
}




/* ---------------------------------------------------------
   HEADINGS — burgundy, with a gold rule that draws itself in
   --------------------------------------------------------- */

.clean-footer.footer-container > .wp-block-columns:first-of-type
h3.wp-block-heading {
    position: relative;

    margin: 0 0 16px !important;
    padding: 0 0 9px 0;

    color: var(--footer-red);

    letter-spacing: .01em;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
h3.wp-block-heading::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 34px;
    height: 3px;

    border-radius: 3px;

    background: linear-gradient(90deg, #e9bc4d, #ec4c02);

    transform-origin: left center;

    transition: width .3s ease;
}

/* hovering a column stretches its rule */
.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:hover
h3.wp-block-heading::after,
.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:focus-within
h3.wp-block-heading::after {
    width: 56px;
}


/* ---------------------------------------------------------
   CONTACT — the row slides, the icon tips over
   --------------------------------------------------------- */

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2) ul {
    gap: 9px;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2) li {
    align-items: center;

    gap: 10px;

    transition: transform .25s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2) li:hover {
    transform: translateX(4px);
}

/* a small cream coin behind each icon */
.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2) li img {
    width: 26px !important;
    height: 26px !important;

    min-width: 26px;

    max-width: 26px !important;
    max-height: 26px !important;

    margin-top: 0;

    padding: 4px;

    border-radius: 50%;

    background: #fff6e3;
    box-shadow: 0 1px 5px rgba(236, 76, 2, .16);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2) li:hover img {
    transform: rotate(-12deg) scale(1.08);

    box-shadow: 0 3px 10px rgba(236, 76, 2, .26);
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2) li a {
    font-weight: 700;

    transition: color .2s ease;
}


/* ---------------------------------------------------------
   QUICK LINKS — the header bar, plus a sideways nudge
   --------------------------------------------------------- */

.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item__content {
    transition:
        color .2s ease,
        transform .22s ease;
}

.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item__content:hover,
.clean-footer.footer-container
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    transform: translateX(4px);
}



/* ---------------------------------------------------------
   SOCIAL — white coins, out-of-phase bob, gold ring on hover
   --------------------------------------------------------- */

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) {
    gap: 12px;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) figure {
    position: relative;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: #ffffff;
    box-shadow: 0 2px 9px rgba(102, 0, 50, .10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) figure img {
    width: 26px !important;
    height: 26px !important;

    max-width: 26px !important;
    max-height: 26px !important;

    transition: none;
}

/* the old rule lifted the <img>; the coin does the lifting now,
   and it would fight the bob, so it is switched off */
.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) figure img:hover {
    transform: none;
    opacity: 1;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) figure::after {
    content: "";

    position: absolute;
    inset: -4px;

    border: 2px solid rgba(233, 188, 77, 0);
    border-radius: 50%;

    pointer-events: none;

    transition:
        border-color .3s ease,
        transform .3s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) figure:hover {
    transform: translateY(-4px) scale(1.06);

    box-shadow: 0 10px 20px rgba(102, 0, 50, .18);
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(4) figure:hover::after {
    border-color: rgba(233, 188, 77, .95);

    transform: scale(1.06);
}


/* ---------------------------------------------------------
   LOCATION — a gold frame and a map that never sits still
   --------------------------------------------------------- */

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(5) figure {
    margin-top: 2px;

    border: 2px solid #f1e3c6;
    border-radius: 10px;

    box-shadow: 0 6px 18px rgba(51, 51, 51, .10);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(5) figure:hover {
    transform: translateY(-3px);

    border-color: #e9bc4d;

    box-shadow: 0 12px 26px rgba(102, 0, 50, .18);
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(5) figure img {
    transition: transform .6s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(5) p:nth-of-type(2) a {
    display: inline-block;

    transition:
        color .2s ease,
        transform .22s ease;
}

.clean-footer.footer-container > .wp-block-columns:first-of-type
> .wp-block-column:nth-child(5) p:nth-of-type(2) a:hover {
    color: #ec4c02;

    transform: translateX(3px);
}



/* ---------------------------------------------------------
   COPYRIGHT BAR — warm charcoal, gold hairline, light sweep
   --------------------------------------------------------- */

.clean-footer.footer-container > .wp-block-columns:last-of-type {
    position: relative;

    overflow: hidden;

    /* the 3px rule is drawn by ::before so it can travel; a border
       here would sit above it and stay static */
    border-top: 0;

    background: linear-gradient(180deg, #3b3236 0%, #2a2226 100%);

    box-shadow: 0 -10px 26px rgba(102, 0, 50, .08);
}

/* keep the copy above the light sweep */
.clean-footer.footer-container > .wp-block-columns:last-of-type
> .wp-block-column {
    position: relative;
    z-index: 1;
}

/* the gold hairline keeps travelling.
   The band is twice as wide as the bar and carries four identical
   gold-orange periods, so sliding it left by exactly half its own
   width lands on the same pixels again — a seamless loop. */
.clean-footer.footer-container > .wp-block-columns:last-of-type::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 200%;
    height: 3px;

    background: linear-gradient(90deg,
        #e9bc4d 0%,
        #ec4c02 12.5%,
        #e9bc4d 25%,
        #ec4c02 37.5%,
        #e9bc4d 50%,
        #ec4c02 62.5%,
        #e9bc4d 75%,
        #ec4c02 87.5%,
        #e9bc4d 100%);

    pointer-events: none;
}

/* …and a soft band of light crosses the bar now and then */
.clean-footer.footer-container > .wp-block-columns:last-of-type::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;

    width: 24%;

    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .16) 50%,
        rgba(255, 255, 255, 0) 100%);

    transform: skewX(-16deg);

    pointer-events: none;
}

/* burgundy is invisible on charcoal — the bar hovers to gold */
.clean-footer.footer-container > .wp-block-columns:last-of-type
a {
    transition: color .2s ease;
}

.clean-footer.footer-container > .wp-block-columns:last-of-type
a:hover,
.clean-footer.footer-container > .wp-block-columns:last-of-type
a:focus-visible {
    color: #f0c963;
}

.clean-footer.footer-container > .wp-block-columns:last-of-type
a:focus-visible {
    outline: 2px solid #f0c963;
    outline-offset: 3px;
    border-radius: 3px;
}


/* ---------------------------------------------------------
   SEPARATORS — gold threads instead of grey hairlines
   --------------------------------------------------------- */

@media (min-width: 1151px) {

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:not(:last-child)::after {
        top: 4px;
        right: -13px;

        width: 2px;
        height: calc(100% - 10px);

        border-radius: 2px;

        background: linear-gradient(180deg,
            rgba(233, 188, 77, 0) 0%,
            rgba(233, 188, 77, .75) 18%,
            rgba(236, 76, 2, .45) 72%,
            rgba(233, 188, 77, 0) 100%);

        transform-origin: top center;
    }
}


/* ---------------------------------------------------------
   SMALL SCREENS — centred rules, wider coin icons
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .clean-footer.footer-container > .wp-block-columns:first-of-type {
        padding-top: 30px !important;
        padding-bottom: 26px !important;
    }

    /* centre the rule under the centred headings, without using a
       transform (the draw-in animation owns that property) */
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    h3.wp-block-heading::after {
        left: calc(50% - 17px);
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:not(:last-child)::after {
        height: 2px;

        background: linear-gradient(90deg,
            rgba(233, 188, 77, 0) 0%,
            rgba(233, 188, 77, .7) 50%,
            rgba(233, 188, 77, 0) 100%);
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(2) li:hover,
    .clean-footer.footer-container
    > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(3)
    .wp-block-navigation-item__content:hover {
        transform: none;
    }
}



/* ---------------------------------------------------------
   MOTION
   --------------------------------------------------------- */

@keyframes krkFootGlow {
    0%, 100% { opacity: .9; transform: translate3d(0, 0, 0) scale(1); }
    50%      { opacity: 1;  transform: translate3d(0, -24px, 0) scale(1.07); }
}

/* the hairline: half a band every nine seconds, seamless */
@keyframes krkFootRule {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* the band of light crossing the copyright bar */
@keyframes krkFootSheen {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) skewX(-16deg); }
    6%   { opacity: 1; }
    55%  { opacity: .8; }
    78%  { opacity: 0; transform: translate3d(680%, 0, 0) skewX(-16deg); }
    100% { opacity: 0; transform: translate3d(680%, 0, 0) skewX(-16deg); }
}

/* the logo, and each social coin, taking a slow breath */
@keyframes krkFootFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%      { transform: translate3d(0, -5px, 0) rotate(-1.2deg); }
}

@keyframes krkFootBob {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%      { transform: translate3d(0, -4px, 0) rotate(4deg); }
}

/* the map, drifting like the real thing */
@keyframes krkFootMap {
    0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
    50%      { transform: scale(1.08) translate3d(-.8%, -1.2%, 0); }
}

/* heading rules and separators drawing themselves in */
@keyframes krkFootDraw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes krkFootThread {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}



@media (prefers-reduced-motion: no-preference) {

    /* the two glows breathe, out of phase */
    .clean-footer.footer-container::before {
        animation: krkFootGlow 19s ease-in-out infinite;
    }

    .clean-footer.footer-container::after {
        animation: krkFootGlow 24s ease-in-out infinite reverse;
    }

    /* the gold hairline under the footer keeps travelling */
    .clean-footer.footer-container > .wp-block-columns:last-of-type::before {
        animation: krkFootRule 9s linear infinite;
    }

    /* …and a band of light crosses the copyright bar now and then */
    .clean-footer.footer-container > .wp-block-columns:last-of-type::after {
        opacity: 0;

        animation: krkFootSheen 12s ease-in-out 2.4s infinite;
    }

    /* the logo floats */
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:first-child figure img {
        animation: krkFootFloat 7.5s ease-in-out infinite;
    }

    /* the social coins bob, each out of phase with its neighbour */
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(4) figure img {
        animation: krkFootBob 4.6s ease-in-out infinite;
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(4) figure:nth-of-type(2) img {
        animation-delay: -1.5s;
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(4) figure:nth-of-type(3) img {
        animation-delay: -3s;
    }

    /* the map drifts */
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(5) figure img {
        animation: krkFootMap 26s ease-in-out infinite;
    }

    /* Heading rules draw themselves out as the column lands. */
    html.js .clean-footer.footer-container
    > .wp-block-columns:first-of-type
    > .wp-block-column.wow:not(.animated)
    h3.wp-block-heading::after {
        transform: scaleX(0);
    }

    html.js .clean-footer.footer-container
    > .wp-block-columns:first-of-type
    > .wp-block-column.wow.animated
    h3.wp-block-heading::after {
        animation: krkFootDraw .62s cubic-bezier(.22, 1.28, .36, 1) .1s forwards;
    }

    /* the gold threads between the columns draw downwards */
    html.js .clean-footer.footer-container
    > .wp-block-columns:first-of-type
    > .wp-block-column.wow:not(.animated)::after {
        transform: scaleY(0);
    }

    html.js .clean-footer.footer-container
    > .wp-block-columns:first-of-type
    > .wp-block-column.wow.animated::after {
        animation: krkFootThread .9s cubic-bezier(.22, 1, .36, 1) .12s forwards;
    }
}



/* ---------------------------------------------------------
   REDUCED MOTION — everything still, nothing hidden
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .clean-footer.footer-container::before,
    .clean-footer.footer-container::after,
    .clean-footer.footer-container > .wp-block-columns:last-of-type::before,
    .clean-footer.footer-container > .wp-block-columns:last-of-type::after {
        animation: none !important;
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:first-child figure img,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(4) figure img,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(5) figure img,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    h3.wp-block-heading::after,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column::after {
        animation: none !important;
        transform: none !important;
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    h3.wp-block-heading::after,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column::after {
        transition: none !important;
    }

    .clean-footer.footer-container a,
    .clean-footer.footer-container li,
    .clean-footer.footer-container li img,
    .clean-footer.footer-container figure,
    .clean-footer.footer-container figure img,
    .clean-footer.footer-container
    .wp-block-navigation-item__content {
        transition: none !important;
    }

    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(2) li:hover,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(4) figure:hover,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(5) figure:hover,
    .clean-footer.footer-container > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(5) p:nth-of-type(2) a:hover,
    .clean-footer.footer-container
    > .wp-block-columns:first-of-type
    > .wp-block-column:nth-child(3)
    .wp-block-navigation-item__content:hover {
        transform: none !important;
    }
}

