/* ==================================================
   KENSAL LIFE — HEVER HEADER / LOGO SIZE
   ================================================== */

/* Keep the Kensal Life logo a sensible size */
.custom-logo,
.wp-block-site-logo img,
.site-logo img {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
}

/* Centre logo cleanly */
.wp-block-site-logo,
.site-logo {
    text-align: center;
}

/* Reduce excess space around the header/logo */
.site-header,
header#masthead {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}


/* ==================================================
   KENSAL LIFE HOMEPAGE HERO HEADING
   ================================================== */

.klh-hero h1 {
    font-size: clamp(42px, 5vw, 68px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em;
    max-width: 800px;
}


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

@media (max-width: 900px) {

    .custom-logo,
    .wp-block-site-logo img,
    .site-logo img {
        width: 180px !important;
        max-width: 180px !important;
    }

    .klh-hero h1 {
        font-size: 48px !important;
        line-height: 1.08 !important;
    }
}


/* ==================================================
   SMARTPHONES
   ================================================== */

@media (max-width: 620px) {

    .custom-logo,
    .wp-block-site-logo img,
    .site-logo img {
        width: 150px !important;
        max-width: 150px !important;
    }

    .site-header,
    header#masthead {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .klh-hero h1 {
        font-size: 38px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.02em;
    }

    .klh-hero {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }
}

/* ==================================================
   HEVER MOBILE HEADER
   Put logo and menu on the same row
   ================================================== */

@media (max-width: 620px) {

    /* Main Hever header area */
    .site-header,
    header#masthead {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
        padding: 14px 20px !important;
    }

    /* Logo */
    .custom-logo,
    .wp-block-site-logo img,
    .site-logo img {
        width: 120px !important;
        max-width: 120px !important;
        height: auto !important;
    }

    .wp-block-site-logo,
    .site-logo {
        margin: 0 !important;
        text-align: left !important;
    }

    /* Navigation/menu area */
    .main-navigation,
    .site-navigation,
    nav {
        margin: 0 !important;
    }

    /* Mobile menu button */
    .menu-toggle,
    button.menu-toggle {
        margin: 0 !important;
    }


    /* ==================================================
       HERO TYPOGRAPHY
       ================================================== */

    .klh-hero h1 {
        font-size: 34px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.02em !important;
    }

    .klh-hero .klh-lead {
        font-size: 19px !important;
        line-height: 1.55 !important;
    }

    .klh-hero {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }
}