/*
Theme Name: CRL Kids
Theme URI: https://crlkids.com/
Author: CRL Kids
Description: Custom one-page CRL Kids.
Version: 1.0.0
Text Domain: crl-kids
*/

:root{
  --blue:#062b95;
  --bright-blue:#075df8;
  --pink:#ff2e73;
  --yellow:#ffc72c;
  --green:#078f3d;
  --sky:#dff7ff;
  --cream:#fff8df;
  --navy:#022c8c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Trebuchet MS",Arial,sans-serif;color:var(--blue);background:#fff;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.crl-wrap{width:min(1180px,94vw);margin:0 auto}

/* HEADER / MAIN NAVIGATION */
.site-header{position:absolute;z-index:20;top:0;left:0;right:0;padding:12px 0}
.header-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:28px}
.site-logo img{width:155px;max-height:145px;object-fit:contain}
.main-nav{display:flex;gap:40px;align-items:center;padding-top:12px;font-size:18px;color:#001e82;font-weight:600}
.main-nav a{position:relative;padding:5px 0}
.main-nav a:hover::after,.main-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;border-radius:2px;background:#1592ff}

/* HERO SECTION  original
.hero{position:relative;min-height:510px;padding-top:150px;background:linear-gradient(180deg,#fff 0%,#f8fdff 70%,#fff 100%);overflow:hidden}
.hero::before{content:"";position:absolute;inset:75px auto auto -70px;width:300px;height:160px;background:radial-gradient(circle at 40% 50%,rgba(141,218,255,.45),transparent 62%);filter:blur(5px)}
.hero::after{content:"";position:absolute;right:-100px;top:65px;width:620px;height:330px;background:repeating-linear-gradient(-35deg,transparent 0 26px,rgba(255,208,37,.45) 28px 38px,transparent 39px 58px);transform:rotate(-2deg);opacity:.55}
.hero-inner{position:relative;z-index:3;display:grid;grid-template-columns:44% 56%;align-items:end;min-height:360px}
.hero-copy{padding:45px 0 32px}
.hero h1{margin:0;line-height:.98;font-size:clamp(42px,6vw,72px);font-weight:900;letter-spacing:-2px;text-shadow:0 2px 0 rgba(0,0,0,.04)}
.hero h1 .blue{color:#0a58ff}.hero h1 .pink{color:#ff236d}.hero h1 .yellow{color:#ffc51f}.hero h1 .green{color:#079641}.hero h1 .navy{color:#082d8f}
.amazon-hero{display:inline-flex;align-items:center;justify-content:center;margin:22px 0 0 135px;padding:10px 26px;border-radius:28px;background:linear-gradient(#ffdb4b,#f7ac17);border:3px solid #ed9514;color:#161616;font-weight:900;font-size:18px;box-shadow:0 4px 9px rgba(0,0,0,.16)}
.amazon-hero strong{font-size:28px;margin-left:5px}
.hero-family{position:relative;z-index:5;align-self:end;margin-right:-2vw}
.hero-family img{width:100%;max-height:490px;object-fit:contain;object-position:bottom center}

*/

/* BOOKS SECTION */
.books-section{position:relative;background:linear-gradient(180deg,#dff8ff 0%,#cdeeff 100%);border-radius:55px 55px 28px 28px;margin-top:-12px;padding:18px 3vw 35px;border:4px solid #fff;box-shadow:0 -1px 0 rgba(0,0,0,.03)}
.section-title{text-align:center;margin:0 0 20px;font-size:clamp(40px,5vw,64px);line-height:1;color:#082b8d;font-weight:900}
.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:54px;align-items:end;max-width:910px;margin:0 auto}
.book-card{background:none;border:0;padding:0;cursor:pointer;transition:.2s transform ease;position:relative}
.book-card:hover{transform:translateY(-8px)}
/* .book-card img{width:100%;aspect-ratio:0.71/1;object-fit:cover;box-shadow:0 8px 12px rgba(0,38,95,.25);border-radius:2px} */


.book-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* KATWICKS FAMILY SECTION */

.katwicks-section{padding:20px 0 8px;background:linear-gradient(180deg,#fff8dc 0%,#fffbe9 100%)}
.katwicks-subtitle{text-align:center;background:linear-gradient(90deg,transparent,#ffe672 20%,#ffe672 80%,transparent);font-size:20px;margin:-8px auto 12px;width:max-content;max-width:90%;padding:4px 38px;color:#0e3093}
.family-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;align-items:center;padding:0 10px}
.family-card{/* display:grid; */ grid-template-columns:1fr 1fr;align-items:center;gap:5px}
.family-card img{width:100%;aspect-ratio:1/1;border-radius:50%;object-fit:cover}
.family-name{font-size:28px;font-weight:900;color:#fff;padding:4px 14px; /*border-radius:55% 45% 50% 42%;*/ display:inline-block;transform:rotate(-3deg)}

/*
.family-card:nth-child(1) .family-name{background:#259fee}
.family-card:nth-child(2) .family-name{background:#f05c9d}
.family-card:nth-child(3) .family-name{background:#7658e8}
.family-card:nth-child(4) .family-name{background:#2fb653} */

.family-copy{font-size:14px;line-height:1.35;color:#022d91;margin-top:8px; font-weight:bold;}



/* =========================================
   KATWICKS YELLOW BRUSH SUBTITLE
========================================= */

.katwicks-subtitle {
    display: table;
    /* margin: 8px auto 20px; */ 
    padding: 12px 38px;

    /* Yellow paint brush image */
    background-image: url('assets/images/yellow-brush.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    /* Subtitle text */
    color: #082b91;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;

    max-width: calc(100% - 24px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .katwicks-subtitle {
        font-size: 15px;
        padding: 12px 25px;
        margin-bottom: 18px;
    }
}



/* FEATURES SECTION */
.features-section{padding:10px 0 22px;position:relative;background:#fff}
.features-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;align-items:start}
.feature{text-align:center;font-weight:800;color:#0a2f94}
/*.feature img{width:116px;height:116px;object-fit:cover;border-radius:50%;margin:0 auto 8px} */

.feature img {
    width: min(180px, 100%);
    height: auto;
    object-fit: contain;
    border-radius: 0;
    margin: 0 auto;
}

.feature span{display:block;font-size:17px}

/* FOOTER */
.site-footer{position:relative;background:linear-gradient(180deg,#0670db 0%,#002c93 100%);color:#fff;padding:26px 0 24px;border-radius:50% 50% 0 0 / 20px 20px 0 0}
.footer-inner{display:grid;grid-template-columns:190px 1fr 1fr;gap:28px;align-items:center}
/*.footer-logo img{width:145px;margin:auto} */.footer-logo img {
    width: 50%;
    height: auto;
}
.footer-tagline{border-left:2px solid rgba(255,255,255,.7);border-right:2px solid rgba(255,255,255,.7);padding:20px 28px;text-align:center}
.footer-tagline strong{font-size:28px}.footer-tagline .pink{color:#ff53a2}.footer-tagline .cyan{color:#4ddcff}.footer-tagline .yellow{color:#ffd23c}.footer-tagline .green{color:#40d950}
.footer-copy{font-size:14px;margin-top:18px}
.footer-social{text-align:center}.footer-social h3{margin:0 0 12px;font-size:19px}.social-row{display:flex;justify-content:center;gap:12px}.social-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#0d54d8;font-weight:900;font-size:20px}.footer-email{margin-top:10px;font-weight:700}

/* BOOK MODAL */
.crl-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(1,26,82,.72);z-index:9999;padding:25px}
.crl-modal.is-open{display:flex}
.crl-modal-card{position:relative;background:#fff;border-radius:28px;width:min(900px,96vw);max-height:90vh;overflow:auto;padding:28px;box-shadow:0 20px 70px rgba(0,0,0,.32)}
.modal-close{position:absolute;right:16px;top:12px;border:0;background:#0c51d9;color:white;border-radius:50%;width:40px;height:40px;font-size:26px;cursor:pointer}
.modal-title{text-align:center;font-size:34px;margin:0 50px 22px;color:#082d8f}
.modal-books{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.modal-product{text-align:center;background:#f2fbff;border-radius:20px;padding:18px}.modal-product img{width:min(250px,100%);margin:0 auto 12px;box-shadow:0 8px 20px rgba(0,0,0,.18)}.modal-product h3{font-size:24px;margin:8px 0 12px}.amazon-button{display:inline-block;background:#ffbf26;color:#191919;border:2px solid #d99700;border-radius:25px;padding:10px 22px;font-weight:900}

/* MOBILE */
@media(max-width:900px){.main-nav{gap:18px;font-size:15px}.hero{padding-top:125px}.hero-inner{grid-template-columns:1fr}.hero-copy{text-align:center;padding-top:10px}.amazon-hero{margin:20px auto;display:flex;width:max-content}.hero-family{margin:0 auto;max-width:650px}.book-grid{gap:24px}.family-grid{grid-template-columns:repeat(2,1fr)}.features-grid{grid-template-columns:repeat(3,1fr)}.footer-inner{grid-template-columns:1fr}.footer-tagline{border:0;border-top:1px solid rgba(255,255,255,.4);border-bottom:1px solid rgba(255,255,255,.4)}}
@media(max-width:600px){.site-header{position:relative;background:#fff}.header-inner{align-items:center}.site-logo img{width:90px}.main-nav{flex-wrap:wrap;gap:10px 16px;justify-content:flex-end}.hero{padding-top:10px}.hero h1{font-size:42px}.book-grid{grid-template-columns:1fr;max-width:280px}.family-grid{grid-template-columns:1fr}.features-grid{grid-template-columns:repeat(2,1fr)}.modal-books{grid-template-columns:1fr}}



/* =========================================
   FOOTER DECORATIVE SCRIBBLE
========================================= */

.site-footer {
    position: relative;
    overflow: hidden;
}

.footer-inner {
    position: relative;
    z-index: 2;
}

.footer-scribble {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 230px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}


/* =========================================================
   HERO SECTION
   Background image + existing family/text layout
========================================================= */

.hero {
    position: relative;
    min-height: 510px;
    padding-top: 150px;

    /* Main illustrated hero background */
    background-color: #ffffff;
    background-image: url('assets/images/hero-background.webp');/*was png, updated to .webp for faster loading*/
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    overflow: hidden;
}


/* ---------------------------------------------------------
   REMOVE OLD GENERATED BACKGROUND EFFECTS

   These were previously creating the blue glow and yellow
   diagonal lines. The new background image already contains
   all of this artwork.
---------------------------------------------------------- */

.hero::before,
.hero::after {
    display: none;
}


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

.hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: end;
    min-height: 360px;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-copy {
    position: relative;
    z-index: 4;
    padding: 45px 0 32px;
}


.hero h1 {
    margin: 0;
    line-height: .98;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 2px 0 rgba(0,0,0,.04);
}


/* Hero heading colours */

.hero h1 .blue {
    color: #0a58ff;
}

.hero h1 .pink {
    color: #ff236d;
}

.hero h1 .yellow {
    color: #ffc51f;
}

.hero h1 .green {
    color: #079641;
}

.hero h1 .navy {
    color: #082d8f;
}


/* =========================================================
   AMAZON BUTTON
========================================================= */

.amazon-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0 0 135px;
    padding: 10px 26px;
    border-radius: 28px;
    background: linear-gradient(#ffdb4b,#f7ac17);
    border: 3px solid #ed9514;
    color: #161616;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 9px rgba(0,0,0,.16);
}


.amazon-hero strong {
    font-size: 28px;
    margin-left: 5px;
}


/* =========================================================
   HERO FAMILY IMAGE
   Family PNG sits ABOVE the hero background.
========================================================= */

.hero-family {
    position: relative;
    z-index: 5;
    align-self: end;
    margin-right: -2vw;
}


.hero-family img {
    display: block;
    width: 100%;
    max-height: 490px;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
}

/* =========================================================
   MOBILE HERO - AMAZON BUTTON ABOVE FAMILY
========================================================= */

@media (max-width: 600px) {

    /* Remove the stacking level from the whole copy container so individual elements can layer independently. */
    .hero-copy {z-index: auto;}

    /* Keep heading behind the family as it currently appears */
    .hero-copy h1 {position: relative; z-index: 4;}

    /* Family remains above normal hero content */
    .hero-family {z-index: 5; width: 68%; margin-right: -6vw;}

    /* Amazon button sits ABOVE the family */
    .amazon-hero {position: relative; z-index: 10;}
	
    .hero-family img {
        width: 100%;
        max-height: none;
    }
}




/* =========================================================
   MOBILE HERO LAYOUT
========================================================= */

@media (max-width: 600px) {

    .hero {
        position: relative;
        min-height: 760px;
    }

    .hero-inner {
        position: relative;
        display: block;
        min-height: 610px;
    }

    /* Text remains on the left */
    .hero-copy {
        position: relative;
        z-index: 4;
        width: 58%;
    }

    /* FAMILY - independent of grid on mobile */
    .hero-family {
        position: absolute !important;

        right: -7vw !important;
        bottom: 0 !important;

        width: 78vw !important;

        margin: 0 !important;

        z-index: 5;
    }

    .hero-family img {
        display: block;

        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        height: auto !important;

        transform: none !important;
    }

    /* Amazon button must sit in front of family */
    .amazon-hero {
        position: relative;
        z-index: 10;

        margin-left: 135px;
    }

}



/* =========================================================
   MOBILE HERO / OUR BOOKS OVERLAP
========================================================= */

@media (max-width: 600px) {

    /* HERO */
    .hero {
        position: relative;
        min-height: 820px;
        padding-top: 0;
        overflow: visible; /* allow family to extend downward */
        z-index: 1;
    }

    .hero-inner {
        position: relative;
        display: block;
        min-height: 820px;
        z-index: 2;
    }

    /* HEADING + BUTTON */
    .hero-copy {
        position: absolute;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        padding: 0;
        margin: 0;
        text-align: center;
        z-index: 12;
    }

    .hero h1 {
        margin: 0 auto;
        font-size: clamp(42px, 11vw, 60px);
        line-height: .96;
        letter-spacing: -1.5px;
        text-align: center;
    }

    .amazon-hero {
        position: relative;
        display: inline-flex;
        margin: 22px auto 0;
        padding: 11px 25px;
        z-index: 13;
    }

    /* FAMILY */
    .hero-family {
        position: absolute !important;
        right: -6vw !important;
        bottom: -70px !important;   /* pushes legs into books section */
        width: 95vw !important; /* makes family bigger size*/
        margin: 0 !important;
        z-index: 5;                 /* below Our Books section */
    }

    .hero-family img {
        display: block;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        transform: none !important;
    }

    /* OUR BOOKS SECTION
       IMPORTANT: this must sit ABOVE the family */
    .books,
    .books-section,
    .our-books {
        position: relative;
        z-index: 10;
    }

}



/* =========================================================
   TABLET + DESKTOP
   FAMILY OVERLAPS BEHIND OUR BOOKS SECTION
========================================================= */

@media (min-width: 601px) {

    /* Allow family to extend below the hero */
    .hero {
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    /*
     Keep the existing desktop/tablet family layout,
     but move the family downward into the next section.
    */
    .hero-family {
        position: relative;
        z-index: 5;

        transform: translateY(55px);
    }

    /*
     Our Books must sit ABOVE the family,
     hiding the bottom of their legs.
     
     Use the SAME class here that you used
     successfully for the mobile version.
    */
    .books-section {
        position: relative;
        z-index: 10;
    }

}



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

/* Hidden on desktop/tablet */
.mobile-menu-toggle {
    display: none;
}

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

@media (max-width: 600px) {

    /* Menu button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        margin-left: auto;
        background: transparent;
        border: 0;
        padding: 8px 4px;
        color: #082d8f;
        font-family: inherit;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
    }

    /* MENU text */
    .mobile-menu-text {
        display: block;
    }

    /* Hamburger */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 25px;
    }

    .hamburger-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background: #082d8f;
        border-radius: 10px;
        transition: .25s ease;
    }

    /* Hide normal navigation initially */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        padding: 15px 25px 22px;
        box-shadow: 0 8px 18px rgba(0,0,0,.10);
        z-index: 100;
    }


    /* Show when menu is opened */
    .main-nav.is-open {
        display: block;
    }

    /* Stack links vertically */
    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 11px 10px;
        text-align: center;
        color: #082d8f;
        font-size: 18px;
        font-weight: 700;
    }
}


/* =========================================================
   MOBILE FLOATING / STICKY HEADER
========================================================= */

@media (max-width: 600px) {
    .site-header {
        position: sticky;
        top: 0;
        width: 100%;
        background: #ffffff;
        z-index: 9999;
        transition:
        box-shadow .25s ease,
        background-color .25s ease;
    }

    /* Floating appearance once page starts scrolling */
    .site-header.is-scrolled {
        box-shadow: 0 5px 18px rgba(0,0,0,.12);
    }

    /*
     The dropdown remains attached directly
     underneath the floating header.
    */
    .main-nav {
        top: 100%;
        z-index: 10000;
    }

    /* Optional hamburger-to-X animation */

    .mobile-menu-toggle[aria-expanded="true"]
    .hamburger-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"]
    .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"]
    .hamburger-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
/* extra 46px for when logged in to wordpress admin panel*/
@media (max-width: 600px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}


/* =========================================================
   makes logo smaller when floating
========================================================= */

@media (max-width: 600px) {

    /* Smooth transition when header starts/stops floating */
    .site-logo img {
        transition: width .25s ease, height .25s ease;
    }

    /* Smaller logo after scrolling */
    .site-header.is-scrolled .site-logo img {
        width: auto !important;
        height: 55px !important;
    }
}

/* =========================================================
   MOBILE ANCHOR OFFSET FOR STICKY HEADER
========================================================= */

@media (max-width: 600px) {
    #home,
    #books,
    #katwicks,
    #contact {
        scroll-margin-top: 100px;
    }
}

/*mobile menu colors*/
.hamburger-icon span:nth-child(1) {background: #0a58ff;}
.hamburger-icon span:nth-child(2) {background: #18b957;}
.hamburger-icon span:nth-child(3) {background: /*#079641; */#ff236d;}


/* keep "where learning" on one line Desktop + tablet only */
@media (min-width: 601px) {
    .hero-first-line {
        white-space: nowrap;
    }
}

.hero h1 {
    -webkit-text-stroke: 5px #ffffff;
    paint-order: stroke fill;
    text-shadow:
        1px 0 #fff,
       -1px 0 #fff,
        0 1px #fff,
        0 -1px #fff;
}

/* =========================================================
   FAMILY NAME BRUSH STROKES
========================================================= */

.family-name {
    display: inline-block;
    position: relative;
    padding: 7px 24px;

   /* color: #ffffff !important;*/
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}


/* DAD */
.family-card.dad .family-name {background-image: url('assets/images/name-brush-blue.png');}

/* MOM */
.family-card.mom .family-name {background-image: url('assets/images/name-brush-pink.png');}

/* KATY */
.family-card.katy .family-name {background-image: url('assets/images/name-brush-purple.png');}

/* ALEX */
.family-card.alex .family-name {background-image: url('assets/images/name-brush-green.png');}



/* =========================================================
   DESKTOP ONLY - SLIGHTLY LARGER bigger FAMILY
========================================================= */

@media (min-width: 1025px) {
    .hero-family img {
        width: 112%;
        max-width: none;
        max-height: none;
        transform: translateX(-6%);
        transform-origin: bottom center;
    }

}


/* =========================================================
   DESKTOP ONLY - HERO TEXT REALIGNMENT
========================================================= */

@media (min-width: 1025px) {

    .hero-inner {
        position: relative;
    }

    .hero-copy {
        /* Stop the text from sitting at the bottom of the grid */
        align-self: center;
        position: relative;
        z-index: 8;
        width: 100%;
        max-width: 620px;
        padding: 0;

        /* Move headline upward into the open left area */
        transform: translateY(-65px);
    }

    .hero h1 {
        text-align: left;
        font-size: clamp(48px, 4.2vw, 72px);
        line-height: 1;
        margin: 0;
    }

    /* Keep first line together */
    .hero-first-line {
        white-space: nowrap;
    }
    /* Re-align Amazon button underneath heading */
    .amazon-hero {
        margin: 24px 0 0 135px;
    }
}



/* =========================================================
   FOOTER DECORATIONS
========================================================= */

.site-footer {
    position: relative !important;
    overflow: hidden !important;
}

.footer-inner {
    position: relative !important;
    z-index: 5 !important;
}

/* LEFT SCRIBBLE */
.site-footer .footer-scribble {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
    pointer-events: none;
}

/* RIGHT CRAYONS */
.site-footer .footer-crayons {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
    pointer-events: none;
}


/* Desktop and tablet - keep words stacked */
.family-card.dad .family-copy span {
    display: block;
}

/* Mobile only */
@media (max-width: 767px) {
    .family-card.dad .family-copy span {
        display: inline;
    }
    .family-card.dad .family-copy span::after {
        content: ". ";
        white-space: pre;
    }
}

/* Mobile only - bolder Katwicks subtitle */
@media (max-width: 767px) {
    .katwicks-subtitle {
        font-weight: 900;
    }
}


/* Footer logo - 50% smaller and centered on mobile and tablet */

/* MOBILE - 767px and below */
@media (max-width: 767px) {
    .site-footer .footer-logo img {
        width: 50%;
        max-width: 160px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

/* TABLET - 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .site-footer .footer-logo img {
        width: 180px;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}


/* CRL Kids - 10.2-inch iPad only */
/* Works in portrait and landscape */

@media only screen
and (device-width: 810px)
and (device-height: 1080px)
and (-webkit-device-pixel-ratio: 2) {
    .site-footer .footer-logo {
        width: 100%;
        text-align: center;
    }

    .site-footer .footer-logo img {
        width: 100px !important;
        max-width: 100px !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}



/* TikTok icon - subtle white outline on mobile only 
@media (max-width: 767px) {
    .site-footer .social-tiktok svg path {
        stroke: #ffffff;
        stroke-width: 0.5px;
        stroke-linejoin: round;
        paint-order: stroke fill;
    }
}
*/


/* TikTok SVG - White outline on all devices */
.site-footer .social-tiktok svg path {
    stroke: #ffffff;
    stroke-width: 0.5px;
    stroke-linejoin: round;
    paint-order: stroke fill;
}


/* ======================================
   CRL KIDS - NUNITO TYPOGRAPHY
   ====================================== */

/* General text */
body,
button,
input,
select,
textarea {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* Navigation */
.site-header nav a,
.main-nav a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* Book titles and modal headings */
.book-card,
.modal-title,
.crlbs-book-card,
.crlbs-modal-title {
    font-family: 'Nunito', sans-serif;
}

/* Buttons */
button,
.btn,
.amazon-button,
.crlbs-amazon {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* CRL Kids - Footer span typography */
.site-footer span {
    font-family: 'Nunito', sans-serif !important;
}