/*
 Theme Name:  Divi Child Theme
 Theme URI:    https://divilife.com
 Description:  Child Theme for Divi
 Author:       Tim Strifler
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Parisienne&display=swap");

/* Local Radix heading font */
@font-face {
    font-family: "Perandory";
    src: url("assets/fonts/Perandory-Regular.woff2") format("woff2"),
         url("assets/fonts/Perandory-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --hr-color-gold: #cead5f;
    --hr-color-gold-soft: rgba(206, 173, 95, 0.32);
    --hr-font-serif: "Lora", "Times New Roman", serif;
    --hr-font-heading: "Perandory", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --hr-font-script: "Parisienne", "Brush Script MT", cursive;
    --hr-body-color: #4d4d4f;
    --hr-heading-color: #171717;
}

.hr-font-serif {
    font-family: var(--hr-font-serif);
}

.hr-font-heading {
    font-family: var(--hr-font-heading);
}

.hr-font-script {
    font-family: var(--hr-font-script);
}
body.et_cover_background,
.hr-bg-texture {
    background-image: url("assets/img/bg-texture.jpg");
    background-repeat: repeat;
    background-size: 35%;
    background-color: #f5f5f5;
}

.hr-bg-blackboard {
    position: relative;
    isolation: isolate;
    color: #fff;
}

.hr-bg-blackboard::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #000;
    background-image: url("assets/img/bg-blackboard.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

.hr-bg-blackboard a {
    color: #fff;
}

.hr-bg-blackboard a:hover {
    color: #cccccc;
}

.paragraph--black-background,
.paragraph--shadow-background {
    position: relative;
    isolation: isolate;
}

.paragraph--black-background {
    color: #fff;
}

.paragraph--black-background::before,
.paragraph--shadow-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.paragraph--black-background::before {
    background: #000;
    background-image: url("assets/img/bg-blackboard.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.paragraph--shadow-background::before {
    background: rgba(0, 0, 0, 0.07);
}

.paragraph--border-gold-x,
.paragraph--border-grey-x {
    --paragraph-bg-color: transparent;
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    isolation: isolate;
}

.paragraph--border-gold-x {
    --section-border-accent: var(--hr-color-gold-soft, rgba(206, 173, 95, 0.32));
}

.paragraph--border-grey-x {
    --section-border-accent: #747474;
}

.paragraph--border-gold-x::before,
.paragraph--border-grey-x::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50vw);
    width: 100vw;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, var(--section-border-accent) 0, var(--section-border-accent) 1px, transparent 1px, transparent 50%), repeating-linear-gradient(-45deg, var(--section-border-accent) 0, var(--section-border-accent) 1px, transparent 1px, transparent 50%), linear-gradient(var(--paragraph-bg-color, transparent), var(--paragraph-bg-color, transparent));
    background-size: 3em 3em, 3em 3em, cover;
    background-position: top center, top center, center;
    background-repeat: repeat-x, repeat-x, no-repeat;
}

.paragraph--border-gold-x::after,
.paragraph--border-grey-x::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 3em;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, var(--section-border-accent) 0, var(--section-border-accent) 1px, transparent 1px, transparent 50%), repeating-linear-gradient(-45deg, var(--section-border-accent) 0, var(--section-border-accent) 1px, transparent 1px, transparent 50%);
    background-size: 3em 3em;
    background-position: bottom center, bottom center;
    background-repeat: repeat-x, repeat-x;
}

.paragraph--border-gold-x.break-out-always::before,
.paragraph--border-gold-x.locations-map::before,
.paragraph--border-grey-x.break-out-always::before,
.paragraph--border-grey-x.locations-map::before {
    width: 100%;
    height: 3em;
    z-index: 1;
    background: transparent;
    background-image: repeating-linear-gradient(45deg, var(--section-border-accent) 0, var(--section-border-accent) 1px, transparent 1px, transparent 50%), repeating-linear-gradient(-45deg, var(--section-border-accent) 0, var(--section-border-accent) 1px, transparent 1px, transparent 50%);
    background-size: 3em 3em;
    background-position: top center, top center;
    background-repeat: repeat-x, repeat-x;
}

body,
body input,
body select,
body textarea {
    font-family: var(--hr-font-serif) !important;
    line-height: 1.7;
    color: var(--hr-body-color);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.et_pb_module_header,
.et_pb_module_header a,
.et_pb_slide_title,
.et_pb_fullwidth_header .header-content h1,
.et_pb_fullwidth_header .header-content h2,
.et_pb_fullwidth_header .header-content h3,
.et_pb_post .entry-title,
.et_pb_post .entry-title a,
.et_pb_blurb .et_pb_module_header,
.et_pb_toggle .et_pb_toggle_title,
.et_pb_promo .et_pb_module_header,
.et_pb_number_counter .percent,
.et_pb_testimonial_author,
.et_pb_pricing_heading .et_pb_pricing_title {
    font-family: var(--hr-font-heading) !important;
    font-weight: 500 !important;
    color: var(--hr-heading-color) !important;
}

h1,
.h1,
.et_pb_text h1,
.et_pb_fullwidth_header .header-content h1 {
    font-size: clamp(2.5rem, 2.2rem + 1.2vw, 3.25rem) !important;
    line-height: 1.1;
}

h2,
.h2,
.et_pb_text h2,
.et_pb_fullwidth_header .header-content h2 {
    font-size: clamp(2rem, 1.8rem + 0.8vw, 2.5rem) !important;
    line-height: 1.15;
}

h3,
.h3,
.et_pb_text h3,
.et_pb_fullwidth_header .header-content h3 {
    font-size: clamp(1.75rem, 1.6rem + 0.6vw, 2.125rem) !important;
    line-height: 1.2;
}

h4,
.h4,
.et_pb_text h4 {
    font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.75rem) !important;
    line-height: 1.3;
}

h5,
.h5,
.et_pb_text h5 {
    font-size: 1.25rem !important;
    line-height: 1.35;
}

h6,
.h6,
.et_pb_text h6 {
    font-size: 1rem !important;
    line-height: 1.4;
    text-transform: uppercase;
}

.et_pb_slide_title {
    text-transform: uppercase;
}

.hr-locations-page {
    width: 100%;
    margin: 0;
    padding: 3rem clamp(1rem, 5vw, 4rem);
    box-sizing: border-box;
}

.hr-locations-filter-wrapper {
    width: 100%;
    margin-bottom: 2rem;
}

.hr-locations-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hr-locations-filter input[type="search"],
.hr-locations-filter select {
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    font-size: 16px;
}

.hr-locations-filter__submit {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #171717;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.hr-locations-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .hr-locations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .hr-locations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hr-location-card {
    border: 1px solid #e5e5e5;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hr-location-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hr-location-card__images {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    width: 100%;
    padding-top: 100%;
}

.hr-location-card__images::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 33%;
    min-height: 100px;
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    display: none;
    pointer-events: none;
}

.hr-location-card__image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.hr-location-card__image--hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.hr-location-card--brand-harry_ramsdens .hr-location-card__images::after {
    display: block;
    background-image: url('assets/img/logo-harry-ramsdens.svg');
}

.hr-location-card--brand-deep_blue .hr-location-card__images::after {
    display: block;
    background-image: url('assets/img/logo-deep-blue.svg');
}

.hr-location-card--brand-149 .hr-location-card__images::after {
    display: block;
    background-image: url('assets/img/logo-149.svg');
}

.hr-location-card--brand-harpers .hr-location-card__images::after {
    display: block;
    background-image: url('assets/img/logo-harpers.svg');
}

.hr-location-card--has-hover:hover .hr-location-card__image--hover {
    opacity: 1;
}

.hr-location-card--has-hover:hover .hr-location-card__image--main {
    opacity: 0;
}

.hr-location-card__title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}

.hr-location-card__address {
    margin: auto 0 1.25rem;
    color: #555;
}

.hr-location-card__actions {
    margin: auto 0 0;
}

.hr-location-card__button {
    display: inline-block;
}

.hr-locations-empty {
    text-align: center;
    font-size: 1.1rem;
    padding: 2rem 0;
}

/*
 * Home page hero: wordmark and tagline centred in one screen below the header.
 * The first card of the next section overlaps the hero's foot by --hr-hero-overlap,
 * so the hero reserves that much extra space at the bottom.
 */

:root {
    --hr-hero-overlap: clamp(3rem, 7vw, 6rem);
}

.et_pb_section.hr-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: max(30rem, calc(100svh - 84px));
    padding: clamp(4rem, 8vw, 7rem) 0 calc(clamp(4rem, 8vw, 7rem) + var(--hr-hero-overlap));
    background-position: center 35%;
}

/* flow-root stops the card's negative margin collapsing into the section and dragging its white background up over the hero. */
.et_pb_section.hr-hero-overlap {
    display: flow-root;
    padding-top: 0;
}

.hr-hero-overlap > .et_pb_row:first-child {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--hr-hero-overlap)) !important;
}

/* !important: the row preset sets its own vertical margins. */
.hr-hero .et_pb_row {
    width: 90%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0;
}

.hr-hero .hr-hero__logo {
    width: min(760px, 88%);
    margin: 0 auto !important;
    text-align: center;
}

.hr-hero .hr-hero__logo .et_pb_image_wrap {
    display: block;
}

/* The wordmark PNG is 1563x469 with the lettering in a 64px band; crop the empty space above and below it. */
.hr-hero .hr-hero__logo img {
    display: block;
    width: 100%;
    aspect-ratio: 1563 / 104;
    object-fit: cover;
}

.hr-hero .hr-hero__tagline-row {
    margin-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

.hr-hero .hr-hero__tagline::before {
    content: "";
    display: block;
    width: 4rem;
    height: 2px;
    margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);
    background: var(--hr-color-gold);
}

.hr-hero .hr-hero__tagline h1 {
    max-width: 24ch;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.625rem) !important;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-wrap: balance;
    color: #fff !important;
}

/* News: shared */

.hr-news-date {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: #8a8a8a;
}

.hr-news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hr-news-image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f5f0e6;
    border-bottom: 3px solid var(--hr-color-gold);
}

.hr-news-image--fallback img {
    width: 55%;
    max-width: 220px;
    height: auto;
}

/* News page */

.hr-news-hero {
    padding: 4rem 1rem;
    text-align: center;
}

.hr-news-hero__title {
    margin: 0;
    padding: 0;
    color: #fff !important;
    text-transform: uppercase;
}

.hr-news-hero__intro {
    margin: 0.5rem 0 0;
    padding: 0;
    color: #d0d0d0;
}

.hr-news-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem clamp(1rem, 5vw, 4rem) 4rem;
}

.hr-news-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .hr-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 981px) {
    .hr-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hr-news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.hr-news-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hr-news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hr-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.hr-news-card__title {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 1.35rem !important;
    line-height: 1.25;
    text-transform: uppercase;
}

.hr-news-card .hr-news-card__title a,
.hr-latest-news .hr-latest-news__featured-title a,
.hr-latest-news .hr-latest-news__item-title a {
    color: inherit;
}

.hr-news-card__excerpt {
    margin: 0 0 1rem;
    padding: 0;
}

.hr-news-card a.hr-news-card__more,
.hr-latest-news a.hr-latest-news__all {
    margin-top: auto;
    color: #a61c2e;
    text-decoration: underline;
}

.hr-news-pagination {
    margin-top: 3rem;
    text-align: center;
}

.hr-news-pagination a.page-numbers,
.hr-news-pagination .page-numbers {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.35rem 0.75rem;
    color: #171717;
}

.hr-news-pagination .page-numbers.current {
    background: #171717;
    color: #fff;
}

.hr-news-empty {
    text-align: center;
    font-size: 1.1rem;
    padding: 2rem 0;
}

/* News article */

.hr-news-article {
    padding: 3rem clamp(1rem, 5vw, 4rem) 4rem;
}

.hr-news-article__inner {
    max-width: 800px;
    margin: 0 auto;
}

.hr-news-article .hr-news-article__back a {
    color: #a61c2e;
}

.hr-news-article__header {
    margin: 1.5rem 0;
}

.hr-news-article__title {
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.hr-news-article__image {
    margin: 0 0 2rem;
}

.hr-news-article__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.hr-news-article__content {
    margin-bottom: 2.5rem;
}

.hr-news-article__content h2 {
    margin-top: 1.5rem;
    font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.75rem) !important;
}

.hr-news-article__content h3 {
    font-size: 1.35rem !important;
}

/* Home page latest news block */

.hr-latest-news__heading {
    margin: 0 0 1.5rem;
    padding: 0;
    text-transform: uppercase;
}

.hr-latest-news__layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 981px) {
    .hr-latest-news__layout {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 3rem;
    }

    .hr-latest-news--single .hr-latest-news__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hr-latest-news--single .hr-latest-news__featured {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: center;
    }
}

.hr-latest-news__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.hr-latest-news--single .hr-latest-news__media {
    margin-bottom: 0;
}

.hr-latest-news__featured-title {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.75rem) !important;
    text-transform: uppercase;
}

.hr-latest-news__excerpt {
    margin: 0 0 1.25rem;
    padding: 0;
}

/* Match the site's navy pill buttons set in the Divi builder. */
.hr-latest-news a.hr-latest-news__button,
.hr-latest-news a.hr-latest-news__button:hover {
    display: inline-block;
    margin-right: 1.5rem;
    padding: 12px 24px !important;
    border: 0;
    border-radius: 100px;
    background: #1d3557;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.hr-latest-news__button::after {
    display: none;
}

.hr-latest-news__list {
    display: flex;
    flex-direction: column;
}

.hr-latest-news__item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.hr-latest-news__item:first-child {
    padding-top: 0;
}

.hr-latest-news__thumb {
    flex: none;
    width: 110px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hr-latest-news__item-title {
    margin: 0;
    padding: 0;
    font-size: 1.1rem !important;
    line-height: 1.3;
    text-transform: uppercase;
}

.hr-latest-news__list a.hr-latest-news__all {
    margin-top: 1rem;
}
