/*
Theme Name: EurEau
Theme URI: https://publishingbureau.co.uk
Description: Child theme for PB Boilerplate, customised for EurEau.
Author: Publishing Bureau
Author URI: https://publishingbureau.co.uk
Template: pb-boilerplate
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: eureau
*/

/* ==========================================================================
   CSS Variables - Customise for Your Project
   Override parent theme defaults here to match your design
   ========================================================================== */

:root {
    --header-height: 140px;
    --header--nav--font-size: 14px;
    --header--border--colour: #FFF;
}

@media screen and (min-width: 768px) {
    :root {
        --header-height: 150px;
    }
}


/* ==========================================================================
   Child Theme Custom Styles
   Add your additional CSS below
   ========================================================================== */

/* Text selection */
::selection {
    background-color: #009FE3;
    color: #FFFFFF;
}

/* Default button: hide transparent border by extending background under it */
.wp-element-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: flex-start;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    background-origin: border-box;
    text-decoration: none;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
    text-decoration: none;
}

/* Outline button hover */
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.is-style-outline:hover {
    background-color: var(--wp--preset--color--ocean-blue) !important;
    background-image: none !important;
    color: var(--wp--preset--color--white) !important;
    border-color: var(--wp--preset--color--ocean-blue) !important;
}

/* Glassy button */
.wp-block-button.is-style-glassy > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-glassy {
    background: transparent linear-gradient(96deg, #FFFFFF4D 0%, #FFFFFF1A 100%) 0% 0% no-repeat padding-box !important;
    border: 1px solid #FFF !important;
    color: #FFF !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.wp-block-button.is-style-glassy > .wp-block-button__link::after,
.wp-block-button .wp-block-button__link.is-style-glassy::after {
    background-color: #FFF;
}

.wp-block-button.is-style-glassy > .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.is-style-glassy:hover {
    background: #FFF !important;
    border-color: #FFF !important;
    color: #29235C !important;
}

.wp-block-button.is-style-glassy > .wp-block-button__link:hover::after,
.wp-block-button .wp-block-button__link.is-style-glassy:hover::after {
    background-color: #009FE3;
}

/* Links in editor */
.editor-styles-wrapper a:where(:not(.wp-element-button)) {
    color: var(--wp--preset--color--ocean-blue);
    text-decoration: none;
}

.editor-styles-wrapper a:where(:not(.wp-element-button)):hover {
    color: var(--wp--preset--color--sky-blue);
    text-decoration: underline;
}


/* Override parent .site-main padding */
.site-main {
    padding: 0;
}

.entry-content {
    margin-bottom: 0;
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--style--root--padding-right);
}

/* ==========================================================================
   Single News
   ========================================================================== */

.site-main.eureau-single-news {
    background-image: url('assets/images/news-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
}

.eureau-single-news__header {
    padding: 0 20px 40px;
}

.eureau-single-news__header-inner {
    max-width: var(--wp--style--global--content-size, 944px);
    margin: 0 auto;
}

.eureau-single-news__header .breadcrumbs {
    padding: 0;
}

.eureau-single-news__header .breadcrumb-container {
    max-width: none;
    padding: 0 0 5px;
    border-top: none;
    border-bottom-color: var(--wp--preset--color--ocean-blue);
}

.eureau-single-news__header .breadcrumbs,
.eureau-single-news__header .breadcrumbs a,
.eureau-single-news__header .breadcrumbs span,
.eureau-single-news__header .breadcrumb-separator,
.eureau-single-news__header .breadcrumb-item--current span {
    color: var(--wp--preset--color--ocean-blue);
}

/* Mobile: stacked */
.eureau-single-news__columns {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Desktop: 50/50 */
@media screen and (min-width: 768px) {
    .eureau-single-news__columns {
        flex-direction: row;
        align-items: flex-start;
    }

    .eureau-single-news__meta {
        flex: 1;
        min-width: 0;
    }

    .eureau-single-news__image {
        flex: 1;
        min-width: 0;
    }
}

.eureau-single-news__date {
    display: block;
    font-size: 16px;
    color: var(--wp--preset--color--ocean-blue);
    margin-bottom: 12px;
}

.eureau-single-news__title {
    font-size: clamp(24px, 0.3vw + 23px, 26px);
    font-weight: 700;
    color: var(--wp--preset--color--deep-indigo);
    margin: 0 0 16px;
}

.eureau-single-news .entry-content h2 {
    font-size: clamp(22px, 0.3vw + 21px, 24px);
}

.eureau-single-news .entry-content h3 {
    font-size: 21px;
}

.eureau-single-news .entry-content h4 {
    font-size: 20px;
}

.eureau-single-news .entry-content h5 {
    font-size: 19px;
}

.eureau-single-news .entry-content h6 {
    font-size: 18px;
}

.eureau-single-news__topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--wp--preset--color--ocean-blue);
}

.eureau-single-news__topic-icon {
    width: 16px;
    height: 14px;
    flex-shrink: 0;
}

.eureau-single-news__image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.eureau-single-news .entry-content {
    max-width: calc(var(--wp--style--global--content-size, 944px) + 40px);
    margin: 20px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.eureau-single-news__latest {
    background: #FFFFFF;
    padding: 40px 20px;
    margin-top: 40px;
}

.eureau-single-news__latest .eureau-latest-news {
    max-width: var(--wp--style--global--content-size, 944px);
    margin: 0 auto;
}

/* ==========================================================================
   Card Component
   ========================================================================== */

.eureau-card {
    border-radius: 20px;
    box-shadow: -1px -1px 3px #006EB810, 3px 3px 3px #006EB829;
    transition: box-shadow 0.2s ease;
}

.eureau-card:hover {
    box-shadow: -1px -1px 3px #006EB810, 3px 3px 10px #006EB840;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    height: auto;
    margin-bottom: 0;
    background-size: cover;
    background-position: centre centre;
    background-repeat: no-repeat;
    background-color: var(--wp--preset--color--ocean-blue);
}

.page-header__overlay {
    width: 100%;
    min-height: inherit;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: rgba(0, 110, 184, 1);
    display: flex;
    align-items: center;
}

@media screen and (min-width: 321px) {
    .page-header {
        min-height: 375px;
        height: 375px;
    }
}

@media screen and (min-width: 768px) {
    .page-header__overlay {
        background: none;
    }
}

.page-header__content {
    max-width: var(--wp--style--global--content-size, 944px);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: content-box;
    color: #FFF;
}

.page-header__title {
    font-size: clamp(32px, 4vw + 16px, 52px);
    font-weight: 900;
    color: #FFF;
    margin: 8px 0 0;
}

.page-header__intro {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #FFF;
    margin-top: 12px;
}

.page-header__intro a {
    color: #FFF;
    text-decoration: underline;
}

.page-header__intro a:hover {
    opacity: 0.8;
}

@media screen and (min-width: 768px) {
    .page-header__intro {
        max-width: 66.666%;
    }
}

/* Breadcrumbs white override for page header */
.page-header .breadcrumbs {
    padding: 0;
}

.page-header .breadcrumb-container {
    max-width: none;
    padding: 0 0 5px;
    border-top: none;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* Button droplet icon */
:root {
    --eureau-droplet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M320 576C214 576 128 490 128 384C128 292.8 258.2 109.9 294.6 60.5C300.5 52.5 309.8 48 319.8 48L320.2 48C330.2 48 339.5 52.5 345.4 60.5C381.8 109.9 512 292.8 512 384C512 490 426 576 320 576zM240 376C240 362.7 229.3 352 216 352C202.7 352 192 362.7 192 376C192 451.1 252.9 512 328 512C341.3 512 352 501.3 352 488C352 474.7 341.3 464 328 464C279.4 464 240 424.6 240 376z'/%3E%3C/svg%3E");
}

.wp-element-button::after,
.wp-block-button__link::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 0.5em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--eureau-droplet);
    mask-image: var(--eureau-droplet);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Heading bold = black weight */
h1 strong, h2 strong, h3 strong,
h4 strong, h5 strong, h6 strong {
    font-weight: 900;
}

/* ==========================================================================
   EurEau Custom Header
   ========================================================================== */

.eureau-nav {
    display: flex;
    flex-direction: column;
}

.eureau-nav__top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.eureau-nav__social,
.header-social-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.header-social-links .social-link {
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 0 5px;
    color: var(--wp--preset--color--sky-blue);
}

.header-social-links .social-link:hover {
    color: var(--wp--preset--color--ocean-blue);
    transform: none;
}

.header-social-links .social-link svg {
    width: 24px;
    height: 24px;
}


.eureau-nav__members-btn.wp-element-button {
    display: flex !important;
    color: #FFF;
    padding: 15px !important;
    align-items: center;
    height: 30px;
    align-self: center;
    margin-right: auto;
}

.eureau-nav__members-btn.wp-element-button:hover,
.eureau-nav__members-btn.wp-element-button:focus,
.eureau-nav__members-btn.wp-element-button:active {
    color: #FFF;
}

.eureau-nav__bottom {
    display: flex;
}

.eureau-nav__menu,
#primary-menu {
    display: flex;
}

/* ==========================================================================
   Mobile Search Form
   ========================================================================== */

.eureau-nav__mobile-search {
    margin-top: 16px;
}

.eureau-nav__mobile-search .search-form {
    display: flex;
    align-items: center;
    gap: 0;
}

.eureau-nav__mobile-search .search-form label {
    flex: 1;
    display: flex;
    margin: 0;
}

.eureau-nav__mobile-search .search-field {
    flex: 1;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--wp--preset--color--sky-blue);
    border-right: none;
    border-radius: 999px 0 0 999px;
    background: #FFF;
    font-size: var(--header--nav--font-size);
    color: var(--wp--preset--color--dark-blue, #333);
    outline: none;
}

.eureau-nav__mobile-search .search-field:focus {
    border-color: var(--wp--preset--color--ocean-blue);
}

.eureau-nav__mobile-search .search-field::placeholder {
    color: var(--wp--preset--color--sky-blue);
}

.eureau-nav__mobile-search .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    margin-left: -1px;
    background-color: var(--wp--preset--color--ocean-blue);
    color: #FFF;
    border: 1px solid var(--wp--preset--color--ocean-blue);
    border-radius: 0 999px 999px 0;
    cursor: pointer;
}

.eureau-nav__mobile-search .search-submit:hover,
.eureau-nav__mobile-search .search-submit:focus {
    background-color: var(--wp--preset--color--sky-blue);
    border-color: var(--wp--preset--color--sky-blue);
}

/* Frosted Glass gradient: add backdrop blur */
.has-frosted-glass-gradient-background {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==========================================================================
   Front Page
   ========================================================================== */

.front-page {
    padding: 0;
}

/* ==========================================================================
   EurEau Footer
   ========================================================================== */

.site-footer {
    background: transparent linear-gradient(180deg, var(--wp--preset--color--ocean-blue) 0%, var(--wp--preset--color--sky-blue) 100%) 0% 0% no-repeat padding-box;
    color: #FFF;
    padding: 40px 20px;
    border-top: none;
    margin-top: 0;
    margin-top: 0;
}

/* Footer info column */
.footer-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFF;
    margin: 0 0 8px;
}

.footer-tagline {
    margin: 0 0 16px;
}

.footer-address,
.footer-email,
.footer-phone {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
}

.footer-address svg,
.footer-email svg,
.footer-phone svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-info a {
    color: #FFF;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin: 24px 0 8px;
}

.footer-credit {
    margin: 0;
}

.footer-credit a {
    color: #FFF;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Footer navigation */
.footer-nav {
    margin-top: 24px;
}

.footer-nav__section {
    margin-bottom: 24px;
}

.footer-nav__heading {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #FFF;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-nav__heading:hover {
    text-decoration: underline;
}

.footer-nav__heading--empty,
.footer-nav__heading--empty:hover {
    cursor: default;
    text-decoration: none;
}

.footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav__list li {
    margin-bottom: 18px;
}

.footer-nav__list a {
    color: #FFF;
    text-decoration: none;
}

.footer-nav__list a:hover {
    text-decoration: underline;
}

.footer-nav__section--links-only .footer-nav__heading {
    margin-bottom: 15px;
}

/* Desktop footer layout */
@media screen and (min-width: 992px) {
    .footer-content {
        display: flex;
        gap: 40px;
    }

    .footer-info {
        flex: 0 0 35%;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        padding-right: 40px;
    }

    .footer-nav {
        flex: 1;
        display: flex;
        gap: 40px;
        margin-top: 0;
    }

    .footer-nav__section {
        flex: 1;
        margin-bottom: 0;
    }
}

/* Smaller chevron for dropdown indicators */
.main-navigation .menu-item-has-children > a::after {
    width: 6px;
    height: 6px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.site-main.eureau-404 {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, var(--wp--preset--color--ocean-blue) 0%, var(--wp--preset--color--sky-blue) 100%);
    color: #FFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.eureau-404__inner {
    position: relative;
    max-width: 640px;
    width: 100%;
    z-index: 1;
}

.eureau-404__number {
    display: block;
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(120px, 22vw, 260px);
    font-weight: 900;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: -0.05em;
    margin: 0;
    user-select: none;
    pointer-events: none;
}

.eureau-404__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(32px, 4vw + 16px, 52px);
    font-weight: 700;
    color: #FFF;
    margin: -0.4em 0 20px;
    position: relative;
    line-height: 1.1;
}

.eureau-404__message {
    font-size: 18px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.92);
}

.eureau-404__actions {
    margin-bottom: 48px;
}

.eureau-404 .eureau-404__button.wp-element-button {
    background: #FFF;
    color: var(--wp--preset--color--ocean-blue);
    padding: 14px 36px;
    font-weight: 700;
    border: 2px solid #FFF;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.eureau-404 .eureau-404__button.wp-element-button:hover,
.eureau-404 .eureau-404__button.wp-element-button:focus {
    background: transparent;
    color: #FFF;
}

.eureau-404__search {
    max-width: 480px;
    margin: 0 auto;
}

.eureau-404__search-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
    margin: 0 0 14px;
}

.eureau-404__search .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 6px 6px 6px 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eureau-404__search .search-form label {
    flex: 1;
    display: flex;
    margin: 0;
}

.eureau-404__search .search-field {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #FFF;
    font-size: 16px;
    padding: 10px 0;
}

.eureau-404__search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.eureau-404__search .search-submit {
    flex-shrink: 0;
    background: #FFF;
    color: var(--wp--preset--color--ocean-blue);
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.eureau-404__search .search-submit:hover,
.eureau-404__search .search-submit:focus {
    background: var(--wp--preset--color--deep-indigo);
    color: #FFF;
}

/* Floating droplets decoration */
.eureau-404__droplets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.eureau-404__droplet {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    animation: eureau-404-float 8s ease-in-out infinite;
}

.eureau-404__droplet--1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.eureau-404__droplet--2 {
    width: 120px;
    height: 120px;
    top: 65%;
    left: 12%;
    animation-delay: -2s;
}

.eureau-404__droplet--3 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: -4s;
}

.eureau-404__droplet--4 {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 8%;
    animation-delay: -6s;
}

.eureau-404__droplet--5 {
    width: 40px;
    height: 40px;
    top: 40%;
    right: 20%;
    animation-delay: -3s;
}

@keyframes eureau-404-float {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg);
    }
    50% {
        transform: translate(0, -14px) rotate(45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eureau-404__droplet {
        animation: none;
    }
}

@media screen and (max-width: 600px) {
    .eureau-404__droplet--1,
    .eureau-404__droplet--3,
    .eureau-404__droplet--5 {
        display: none;
    }

    .eureau-404__droplet--2 {
        width: 80px;
        height: 80px;
    }

    .eureau-404__droplet--4 {
        width: 60px;
        height: 60px;
    }
}

