/*
Theme Name: Cho Fairway
Theme URI: https://test.cho.golf/
Description: Block-editor friendly theme for Cho Golf: full-width layout, image cards, dark feature panel and WooCommerce support. Sections are ordinary blocks with selectable block styles.
Author: Cho Golf
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cho-fairway
*/

:root {
    --cf-fairway: var(--wp--preset--color--fairway, #173f24);
    --cf-green: var(--wp--preset--color--green, #54d308);
    --cf-sage: var(--wp--preset--color--sage, #e7eee6);
    --cf-ink: var(--wp--preset--color--ink, #16241b);
    --cf-stone: var(--wp--preset--color--stone, #56655b);
    --cf-line: #dde4dd;
    --cf-line-strong: #b4c0b6;
    --cf-content: 820px;
    --cf-wide: 1200px;
    --cf-gutter: clamp(1.25rem, 4vw, 2.5rem);
    --cf-section: clamp(4.5rem, 9vw, 7.5rem);
    --cf-radius: 20px;
    --cf-header-height: 84px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cf-header-height) + 1rem);
}

body {
    margin: 0;
    overflow-wrap: break-word;
}

img {
    height: auto;
    max-width: 100%;
}

a {
    text-underline-offset: 0.18em;
}

:focus-visible {
    outline: 3px solid var(--cf-fairway);
    outline-offset: 2px;
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.skip-link:focus {
    background: #fff;
    clip-path: none;
    height: auto;
    left: 1rem;
    margin: 0;
    padding: 0.75rem 1.25rem;
    top: 1rem;
    width: auto;
    z-index: 100;
}

.cf-icon {
    display: block;
    flex: none;
}

.cf-button {
    background: var(--cf-fairway);
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.8rem 1.6rem;
    text-align: center;
    text-decoration: none;
}

.cf-button:hover {
    background: var(--cf-green);
    color: var(--cf-ink);
}

/*
 * Every button turns logo green with dark text on hover. Only the green button
 * on the dark panel turns white, because it already is green.
 */
.wp-element-button,
.cf-button,
.comment-form .submit,
.search-form .search-submit,
.cf-topbar__contact a,
.cf-menu-toggle,
.page-numbers {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.wp-block-button.is-style-outline .wp-element-button:hover {
    background-color: var(--cf-green);
    border-color: var(--cf-green);
    color: var(--cf-ink);
}

.cf-menu-toggle:hover {
    background: var(--cf-sage);
    border-radius: 10px;
}

/* Topbar */

.cf-topbar {
    border-bottom: 1px solid var(--cf-line);
    font-size: 0.8125rem;
}

.cf-topbar__inner,
.cf-header__inner {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-inline: auto;
    max-width: calc(var(--cf-wide) + 2 * var(--cf-gutter));
    padding-inline: var(--cf-gutter);
}

.cf-topbar__inner {
    min-height: 44px;
}

.cf-topbar__text {
    color: var(--cf-stone);
    font-weight: 500;
    margin: 0;
}

.cf-topbar__contact {
    display: flex;
    gap: 0.375rem;
    margin-left: auto;
}

.cf-topbar__contact a {
    text-decoration: none;
    align-items: center;
    background: var(--cf-sage);
    border-radius: 8px;
    color: var(--cf-fairway);
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.cf-topbar__contact a:hover {
    background: var(--cf-fairway);
    color: #fff;
}

/* Header */

.cf-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--cf-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-bar .cf-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

.cf-header__inner {
    min-height: var(--cf-header-height);
}

.cf-brand .custom-logo,
.cf-footer__brand .custom-logo {
    display: block;
    height: 60px;
    width: auto;
}

.cf-brand__name {
    color: var(--cf-fairway);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.cf-nav {
    align-items: center;
    display: flex;
    gap: 1.75rem;
}

.cf-menu,
.cf-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-menu {
    align-items: center;
    display: flex;
    gap: 1.75rem;
}

.cf-menu > li {
    position: relative;
}

.cf-menu a {
    color: var(--cf-ink);
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    padding-block: 0.5rem;
    text-decoration: none;
}

.cf-menu a:hover,
.cf-menu .current-menu-item > a {
    color: var(--cf-fairway);
    text-decoration: underline;
    text-decoration-color: var(--cf-green);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.45em;
}

.cf-menu .sub-menu {
    background: #fff;
    border: 1px solid var(--cf-line);
    border-radius: 12px;
    display: none;
    left: -1rem;
    min-width: 14rem;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 100%;
}

.cf-menu li:hover > .sub-menu,
.cf-menu li:focus-within > .sub-menu {
    display: block;
}

.cf-cart {
    align-items: center;
    color: var(--cf-fairway);
    display: flex;
    border-radius: 10px;
    gap: 0.25rem;
    min-height: 44px;
    padding-inline: 0.5rem;
    text-decoration: none;
    transition: background-color 150ms ease;
}

.cf-cart:hover {
    background: var(--cf-sage);
}

.cf-cart__count {
    background: var(--cf-green);
    border-radius: 999px;
    color: var(--cf-ink);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    min-width: 1.5em;
    text-align: center;
}

.cf-menu-toggle {
    background: none;
    border: 0;
    color: var(--cf-fairway);
    cursor: pointer;
    display: none;
    height: 44px;
    margin-right: -0.5rem;
    padding: 0.5rem;
    width: 44px;
}

.cf-menu-toggle__bars,
.cf-menu-toggle__bars::before,
.cf-menu-toggle__bars::after {
    background: currentColor;
    border-radius: 2px;
    content: "";
    display: block;
    height: 2px;
    transition: transform 160ms ease, background-color 160ms ease;
    width: 26px;
}

.cf-menu-toggle__bars {
    margin-inline: auto;
    position: relative;
}

.cf-menu-toggle__bars::before,
.cf-menu-toggle__bars::after {
    left: 0;
    position: absolute;
}

.cf-menu-toggle__bars::before {
    top: -8px;
}

.cf-menu-toggle__bars::after {
    top: 8px;
}

.cf-menu-toggle[aria-expanded="true"] .cf-menu-toggle__bars {
    background: transparent;
}

.cf-menu-toggle[aria-expanded="true"] .cf-menu-toggle__bars::before {
    transform: translateY(8px) rotate(45deg);
}

.cf-menu-toggle[aria-expanded="true"] .cf-menu-toggle__bars::after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
    :root {
        --cf-header-height: 72px;
    }

    .cf-brand .custom-logo {
        height: 52px;
    }

    .cf-menu-toggle {
        display: block;
    }

    .cf-nav {
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--cf-line);
        display: none;
        flex-direction: column;
        gap: 1rem;
        left: 0;
        padding: 1rem var(--cf-gutter) 1.5rem;
        position: absolute;
        right: 0;
        top: 100%;
    }

    .cf-nav.is-open {
        display: flex;
    }

    .cf-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .cf-menu a {
        font-size: 1.0625rem;
        padding-block: 0.75rem;
    }

    .cf-menu .sub-menu {
        border: 0;
        display: block;
        padding: 0 0 0 1rem;
        position: static;
    }

    .cf-topbar__text {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .cf-topbar__contact a {
        height: 38px;
        width: 38px;
    }

    .is-style-logos .wp-block-image img {
        height: 44px;
    }

    .is-style-card {
        min-height: 19rem;
    }
}

@media (max-width: 480px) {
    .cf-topbar__text {
        display: none;
    }

    .cf-topbar__contact {
        margin-inline: auto;
    }
}

/* Content width: the block editor's none, wide and full alignments */

.entry-content {
    padding-inline: var(--cf-gutter);
}

.entry-content > * {
    margin-inline: auto;
    max-width: var(--cf-content);
}

.entry-content > .alignwide,
.cf-wide-page .entry-content > *,
.entry-content > .wp-block-columns {
    max-width: var(--cf-wide);
}

.entry-content > .alignfull {
    margin-inline: calc(-1 * var(--cf-gutter));
    max-width: none;
}

.entry-content .wp-block-image img {
    border-radius: var(--cf-radius);
}

/* Front page rhythm */

.cf-home .entry-content {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--cf-section);
}

.cf-home .entry-content > * + * {
    margin-top: var(--cf-section);
}

.cf-home .entry-content > .cf-tight {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.cf-home .entry-content > .wp-block-image img {
    object-position: 50% 0;
}

.cf-home h1 {
    margin-block: 0.75rem 1rem;
}

.cf-home .entry-content > :first-child p:not(.is-style-pill) {
    color: var(--cf-stone);
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

/* Section heading: a constrained group above a grid */

.cf-section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cf-section-head p {
    color: var(--cf-stone);
}

.cf-section-head:has(+ .is-style-logos) h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Paragraph style: Plakette */

p.is-style-pill {
    background: var(--cf-sage);
    border-radius: 999px;
    color: var(--cf-fairway);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    padding: 0.35rem 0.9rem;
    width: fit-content;
}

p.is-style-pill.has-text-align-center {
    margin-inline: auto;
}

/* List style: Haekchenliste */

ul.is-style-check {
    display: grid;
    gap: 0.75rem 1.5rem;
    list-style: none;
    padding: 0;
}

ul.is-style-check li {
    padding-left: 2rem;
    position: relative;
}

ul.is-style-check li::before {
    background: var(--cf-green);
    border-radius: 50%;
    content: "";
    height: 1.25rem;
    left: 0;
    position: absolute;
    top: 0.2em;
    width: 1.25rem;
}

ul.is-style-check li::after {
    border-bottom: 2px solid var(--cf-ink);
    border-left: 2px solid var(--cf-ink);
    content: "";
    height: 0.3rem;
    left: 0.34rem;
    position: absolute;
    top: 0.58em;
    transform: rotate(-45deg);
    width: 0.6rem;
}

@media (min-width: 640px) {
    ul.is-style-check {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Group styles: grids */

.is-style-bento,
.is-style-trio,
.is-style-pairs {
    display: grid;
    gap: 1.25rem;
}

.is-style-bento > *,
.is-style-trio > *,
.is-style-pairs > * {
    margin: 0;
    min-width: 0;
}

@media (min-width: 760px) {
    .is-style-bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .is-style-bento > * {
        grid-column: span 6;
    }

    .is-style-bento > :nth-child(4n + 1),
    .is-style-bento > :nth-child(4n) {
        grid-column: span 7;
    }

    .is-style-bento > :nth-child(4n + 2),
    .is-style-bento > :nth-child(4n + 3) {
        grid-column: span 5;
    }

    .is-style-trio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .is-style-pairs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Group style: Bildkarte. The first image fills the card, the text sits on it. */

.is-style-card {
    border-radius: var(--cf-radius);
    color: #fff;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    justify-content: flex-end;
    min-height: clamp(20rem, 30vw, 25rem);
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    position: relative;
}

.is-style-card::after {
    background: linear-gradient(to top, rgba(9, 28, 16, 0.88), rgba(9, 28, 16, 0.6) 38%, rgba(9, 28, 16, 0) 72%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.is-style-card > .wp-block-image {
    inset: 0;
    margin: 0;
    position: absolute;
    z-index: -2;
}

.is-style-card > .wp-block-image img {
    border-radius: 0;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    width: 100%;
}

.is-style-card h3,
.is-style-card p {
    color: inherit;
    margin: 0;
}

.is-style-card p {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-top: 0.35rem;
    max-width: 34rem;
}

.is-style-card .wp-block-buttons {
    margin-top: 1rem;
}

.is-style-card .wp-element-button {
    background: #fff;
    color: var(--cf-ink);
}

.is-style-card .wp-element-button:hover {
    background: var(--cf-green);
    color: var(--cf-ink);
}

/* Group style: Farbflaeche */

.is-style-tile {
    background: var(--cf-sage);
    border-radius: var(--cf-radius);
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.is-style-tile .wp-block-buttons {
    margin-top: auto;
    padding-top: 1.25rem;
}

.is-style-tile h3 {
    color: var(--cf-fairway);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0;
}

/* Group style: Rahmenkarte */

.is-style-framed {
    border: 1px solid var(--cf-line);
    border-radius: var(--cf-radius);
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.is-style-framed h3 {
    margin-top: 0;
}

.is-style-framed p {
    color: var(--cf-stone);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Group style: Dunkles Panel, the one loud moment of the page */

.is-style-panel {
    --cf-panel-padding: clamp(1.5rem, 5vw, 4rem);
    background: var(--cf-fairway);
    border-radius: 28px;
    color: #fff;
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    padding: var(--cf-panel-padding);
}

.is-style-panel > * {
    margin: 0;
    min-width: 0;
}

.is-style-panel > .wp-block-image {
    margin: calc(-1 * var(--cf-panel-padding)) calc(-1 * var(--cf-panel-padding)) 0;
}

.is-style-panel > .wp-block-image img {
    border-radius: 0;
    display: block;
    object-position: 50% 20%;
    width: 100%;
}

.is-style-panel h2,
.is-style-panel h3 {
    color: inherit;
    margin-top: 0;
}

.is-style-panel h3 {
    border-top: 3px solid var(--cf-green);
    font-size: 1.125rem;
    padding-top: 0.75rem;
}

.is-style-panel p {
    color: rgba(255, 255, 255, 0.86);
}

.is-style-panel .is-style-pairs p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.is-style-panel .wp-element-button {
    background: var(--cf-green);
    color: var(--cf-ink);
}

.is-style-panel .wp-element-button:hover {
    background: #fff;
    color: var(--cf-ink);
}

.is-style-panel a:focus-visible {
    outline-color: #fff;
}

@media (min-width: 900px) {
    .is-style-panel {
        grid-template-columns: 5fr 7fr;
    }

    .is-style-panel > .wp-block-image {
        grid-column: 1 / -1;
    }
}

/* Group style: Bild und Text */

.is-style-split {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.is-style-split > * {
    margin: 0;
    min-width: 0;
}

.is-style-split h2 {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
    margin-top: 0;
}

.is-style-split .wp-block-image img {
    width: 100%;
}

@media (min-width: 860px) {
    .is-style-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Group style: Logoleiste */

.is-style-logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
    justify-content: center;
}

.is-style-logos .wp-block-image {
    margin: 0;
}

.is-style-logos .wp-block-image img {
    border-radius: 0;
    display: block;
    filter: grayscale(1);
    height: 56px;
    mix-blend-mode: multiply;
    object-fit: contain;
    width: auto;
}

/* Regular pages, posts and lists */

.cf-page {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--cf-section);
}

.cf-page__head {
    margin-inline: auto;
    max-width: calc(var(--cf-content) + 2 * var(--cf-gutter));
    padding-inline: var(--cf-gutter);
    text-align: center;
}

.cf-page__head h1 {
    margin-block: 0 clamp(2rem, 4vw, 3rem);
}

.cf-page__head .cf-meta {
    margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
    margin-bottom: 2.5rem;
}

.cf-page__image {
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    max-width: calc(var(--cf-wide) + 2 * var(--cf-gutter));
    padding-inline: var(--cf-gutter);
}

.cf-page__image img {
    border-radius: var(--cf-radius);
    display: block;
    width: 100%;
}

.cf-page .entry-content > h2,
.cf-page .entry-content > h3 {
    margin-top: 2.5em;
}

.cf-page .entry-content > h2:first-child,
.cf-page .entry-content > h3:first-child {
    margin-top: 0;
}

.cf-intro p:last-child {
    margin-bottom: 0;
}

.entry-content > .cf-intro + * {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.entry-content > .wp-block-image.alignwide img {
    display: block;
    object-position: 50% 25%;
    width: 100%;
}

.is-style-tile h2 {
    color: var(--cf-fairway);
    margin-top: 0;
}

.is-style-tile.cf-cta {
    align-items: center;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
}

.is-style-tile.cf-cta p {
    max-width: 40rem;
}

.is-style-tile.cf-cta .wp-block-buttons {
    margin-top: 0.5rem;
    padding-top: 0;
}

.is-style-framed h3 + ul {
    margin-bottom: 0;
}

.is-style-framed ul.is-style-check {
    grid-template-columns: minmax(0, 1fr);
}

.is-style-framed .wp-block-buttons {
    margin-top: auto;
    padding-top: 1.25rem;
}

.is-style-panel ul.is-style-check {
    margin-bottom: 0;
}

.entry-content > .alignwide + .alignwide,
.entry-content > .alignwide + :not(.alignwide) {
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.cf-page .entry-content > .alignwide > h2:first-child {
    margin-top: 0;
}

.cf-meta {
    color: var(--cf-stone);
    font-size: 0.875rem;
}

.cf-posts {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    margin-inline: auto;
    max-width: calc(var(--cf-wide) + 2 * var(--cf-gutter));
    padding-inline: var(--cf-gutter);
}

.cf-post h2 {
    font-size: 1.375rem;
    margin-block: 0.25rem 0.5rem;
}

.cf-post h2 a {
    color: inherit;
    text-decoration: none;
}

.cf-post h2 a:hover {
    text-decoration: underline;
}

.cf-post__image img {
    aspect-ratio: 3 / 2;
    border-radius: var(--cf-radius);
    display: block;
    object-fit: cover;
    width: 100%;
}

.cf-post .cf-meta {
    margin-block: 0.75rem 0;
}

.cf-empty {
    margin-inline: auto;
    max-width: calc(var(--cf-content) + 2 * var(--cf-gutter));
    padding-inline: var(--cf-gutter);
    text-align: center;
}

.cf-comments {
    margin: var(--cf-section) auto 0;
    max-width: calc(var(--cf-content) + 2 * var(--cf-gutter));
    padding-inline: var(--cf-gutter);
}

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

.pagination .nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Forms */

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea,
.search-form input[type="search"] {
    background: #fff;
    border: 1px solid var(--cf-line-strong);
    border-radius: 12px;
    color: var(--cf-ink);
    font: inherit;
    max-width: 100%;
    min-height: 48px;
    padding: 0.6rem 0.9rem;
    width: 100%;
}

.comment-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.comment-form .comment-form-cookies-consent {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent label {
    font-weight: 400;
    margin: 0;
}

.comment-form .submit,
.search-form .search-submit {
    background: var(--cf-fairway);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 45px;
    padding: 0.8rem 1.6rem;
}

.comment-form .submit:hover,
.search-form .search-submit:hover {
    background: var(--cf-green);
    color: var(--cf-ink);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    max-width: 30rem;
}

.search-form label {
    flex: 1;
}

.cf-comments__list {
    list-style: none;
    padding: 0;
}

.cf-comments__list .comment-body {
    border-bottom: 1px solid var(--cf-line);
    padding-block: 1rem;
}

/* Pagination, shared by posts and shop */

.page-numbers {
    align-items: center;
    border-radius: 999px;
    color: var(--cf-fairway);
    display: inline-flex;
    font-size: 0.9375rem;
    font-weight: 600;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding-inline: 0.75rem;
    text-decoration: none;
}

a.page-numbers:hover {
    background: var(--cf-sage);
}

.page-numbers.current {
    background: var(--cf-fairway);
    color: #fff;
}

/* Footer */

.cf-footer {
    background: var(--cf-fairway);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9375rem;
}

.cf-footer__inner {
    display: grid;
    gap: 2.5rem clamp(2rem, 5vw, 4rem);
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
    margin-inline: auto;
    max-width: calc(var(--cf-wide) + 2 * var(--cf-gutter));
    padding: clamp(3rem, 6vw, 4.5rem) var(--cf-gutter);
}

.cf-footer a {
    color: #fff;
    text-decoration: none;
}

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

.cf-footer a:focus-visible {
    outline-color: #fff;
}

.cf-footer h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
}

.cf-footer p {
    margin: 0 0 0.75rem;
}

.cf-footer ul {
    display: grid;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cf-footer__brand .custom-logo {
    height: 88px;
    margin-bottom: 1rem;
}

.cf-footer__contact a {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

@media (max-width: 860px) {
    .cf-footer a {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
    }
}

@media (max-width: 960px) {
    .cf-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .cf-footer__brand,
    .cf-footer__inner > div.cf-footer__column {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
