/*
Theme Name: Locafire Family Countryside
Theme URI: https://locafire.shop
Author: Locafire
Author URI: https://locafire.shop
Description: Modern, photo-led WordPress block theme for a family bicycle rental shop in the countryside, designed as a Locafire teaser.
Requires at least: 6.0
Requires PHP: 8.0
Version: 1.5.1
License: GPL-2.0-or-later
Text Domain: locafire-family-countryside
Tags: full-site-editing, block-patterns, wide-blocks, custom-colors, custom-logo
*/

:root {
    --lf-shadow-soft: 0 26px 80px color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
    --lf-shadow-card: 0 14px 40px color-mix(in srgb, var(--wp--preset--color--ink) 9%, transparent);
    --lf-border: color-mix(in srgb, var(--wp--preset--color--forest) 12%, transparent);
    --lf-cream-glass: color-mix(in srgb, var(--wp--preset--color--cream) 88%, transparent);
    --lf-radius-xl: 38px;
    --lf-radius-lg: 28px;
    --lf-radius-md: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--wp--preset--color--cream);
    text-rendering: optimizeLegibility;
}

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

.wp-site-blocks {
    overflow: clip;
    padding-top: 90px;
}

.lf-shell {
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.lf-header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    padding-block: 14px !important;
    background: transparent !important;
}

body.admin-bar .lf-header {
    top: 32px;
}

.lf-header > .lf-shell {
    min-height: 62px;
    box-sizing: border-box;
    padding: 10px 12px 10px 20px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 10%, transparent);
    border-radius: 999px;
    background: var(--lf-cream-glass);
    box-shadow: 0 10px 35px color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lf-header .wp-block-site-title {
    letter-spacing: -0.035em;
}

.lf-header .wp-block-navigation {
    gap: clamp(14px, 2.2vw, 28px);
}

.lf-header .wp-block-navigation a {
    text-decoration: none;
    transition: opacity 160ms ease;
}

.lf-header .wp-block-navigation a:hover {
    opacity: 0.62;
}

.lf-header-cta .wp-block-button__link {
    min-height: 40px;
    padding: 10px 18px !important;
}

.lf-hero {
    width: min(calc(100% - 48px), 1320px);
    min-height: min(790px, 88vh) !important;
    margin: 6px auto 0;
    overflow: hidden;
    border-radius: clamp(28px, 4vw, 52px);
    box-shadow: 0 30px 90px color-mix(in srgb, var(--wp--preset--color--ink) 16%, transparent);
}

.lf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, color-mix(in srgb, var(--wp--preset--color--ink) 46%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--ink) 18%, transparent) 52%, color-mix(in srgb, var(--wp--preset--color--ink) 2%, transparent) 76%);
}

.lf-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: flex-end;
}

.lf-hero-copy {
    max-width: 760px;
    margin-bottom: clamp(48px, 7vw, 88px);
}

.lf-hero h1 {
    max-width: 11ch;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.lf-hero .has-large-font-size {
    max-width: 620px;
    line-height: 1.5;
}

.lf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 760;
}

.lf-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.68;
}

.wp-block-button__link {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
}

.lf-trust-strip {
    border: 0 !important;
    background: transparent !important;
}

.lf-trust-strip .wp-block-columns {
    gap: 10px;
}

.lf-trust-strip .wp-block-column {
    display: flex;
}

.lf-trust-strip p {
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid var(--lf-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--wp--preset--color--white) 62%, transparent);
    font-size: 0.83rem;
    backdrop-filter: blur(8px);
}

.lf-photo {
    overflow: hidden;
    border-radius: var(--lf-radius-xl);
    box-shadow: var(--lf-shadow-soft);
}

.lf-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.lf-photo:hover img {
    transform: scale(1.025);
}

.lf-photo-tall img {
    min-height: 570px;
}

.lf-photo-medium img {
    min-height: 350px;
}

.lf-services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 18px;
}

.lf-services-grid .wp-block-column {
    min-width: 0;
}

.lf-service-column-featured {
    grid-row: span 2;
}

.lf-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    border: 0;
    border-radius: var(--lf-radius-lg);
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--wp--preset--color--ink);
    box-shadow: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.lf-service-card-featured {
    min-height: 458px;
}

.lf-service-card-bikes {
    background-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--wp--preset--color--cream) 4%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--cream) 86%, transparent) 68%, var(--wp--preset--color--cream) 86%), url("assets/images/service-bike-range.jpg");
    background-position: center 34%;
}

.lf-service-card-kids {
    background-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--wp--preset--color--sage) 8%, transparent) 40%, color-mix(in srgb, var(--wp--preset--color--sage) 90%, transparent) 66%, var(--wp--preset--color--sage) 84%), url("assets/images/service-child-equipment.jpg");
    background-position: center 32%;
}

.lf-service-card-route {
    background-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--wp--preset--color--sand) 8%, transparent) 40%, color-mix(in srgb, var(--wp--preset--color--sand) 90%, transparent) 66%, var(--wp--preset--color--sand) 84%), url("assets/images/service-local-route.jpg");
    background-position: center 42%;
}

.lf-service-card h3 {
    color: var(--wp--preset--color--ink) !important;
}

.lf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lf-shadow-card);
}

.lf-service-card h3 {
    max-width: 16ch;
    letter-spacing: -0.035em;
}

.lf-rides {
    position: relative;
    overflow: hidden;
}

.lf-rides::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--wp--preset--color--meadow) 7%, transparent);
}

.lf-rides-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 18px;
}

.lf-ride-column-wide {
    grid-column: 1 / -1;
}

.lf-ride-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 8%, transparent);
    border-radius: var(--lf-radius-lg);
    box-shadow: none;
}

.lf-ride-card .wp-block-cover {
    min-height: 500px;
}

.lf-ride-card-wide .wp-block-cover {
    min-height: 360px;
}

.lf-ride-card .wp-block-cover__inner-container {
    min-height: inherit;
    display: flex;
    align-items: flex-end;
}

.lf-ride-card .wp-block-cover__image-background {
    transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.lf-ride-card:hover .wp-block-cover__image-background {
    transform: scale(1.035);
}

.lf-route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lf-route-meta span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 25%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--wp--preset--color--white) 88%, transparent);
    color: var(--wp--preset--color--forest);
    font-size: .76rem;
    font-weight: 760;
    backdrop-filter: blur(8px);
}

.lf-quote-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius-lg);
    box-shadow: none;
}

.lf-quote-card::before {
    content: "“";
    position: absolute;
    right: 24px;
    top: -18px;
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    opacity: 0.08;
}

.lf-catalog-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--forest) 10%, transparent);
    border-radius: 36px;
    background: linear-gradient(180deg, var(--wp--preset--color--white) 0%, color-mix(in srgb, var(--wp--preset--color--cream) 70%, var(--wp--preset--color--white)) 100%);
    box-shadow: var(--lf-shadow-soft);
}

.lf-catalog-frame::before {
    content: "Réservation en ligne · disponibilité en temps réel";
    display: block;
    margin: -4px 0 20px;
    color: var(--wp--preset--color--leaf);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[lang^="en"] .lf-catalog-frame::before {
    content: "Online booking · real-time availability";
}

.lf-catalog-frame > .wp-block-group__inner-container,
.lf-catalog-frame {
    box-sizing: border-box;
}

.lf-catalog-editor-placeholder,
.lf-catalog-unavailable {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 96px;
    justify-content: center;
    padding: 20px 22px;
    border: 1px dashed color-mix(in srgb, var(--wp--preset--color--forest) 22%, transparent);
    border-radius: var(--lf-radius-md);
    background: color-mix(in srgb, var(--wp--preset--color--sage) 28%, transparent);
    color: var(--wp--preset--color--forest);
}

.lf-catalog-editor-placeholder span,
.lf-catalog-unavailable span {
    color: var(--wp--preset--color--leaf);
    font-size: 0.9rem;
}

.lf-news-page-intro {
    max-width: 780px;
}

.lf-news-page-intro .wp-block-post-content:empty {
    display: none;
}

.lf-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 48px;
}

.lf-news-card {
    --lf-news-card-bg: var(--wp--preset--color--cream);
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--lf-radius-lg);
    background: var(--lf-news-card-bg);
    box-shadow: none;
}

.lf-news-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: color-mix(in srgb, var(--lf-news-card-bg) 82%, var(--wp--preset--color--ink));
}

.lf-news-card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--lf-news-card-bg));
}

.lf-news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lf-news-card-body {
    position: relative;
    z-index: 1;
    padding: 28px 34px 34px;
}

.lf-news-card.has-image .lf-news-card-body {
    margin-top: -54px;
    padding-top: 0;
}

.lf-news-card-date {
    display: block;
    margin-bottom: 12px;
    color: color-mix(in srgb, var(--wp--preset--color--ink) 66%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lf-news-card-title {
    margin: 0 0 18px;
    color: var(--wp--preset--color--ink);
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    line-height: 1.08;
    text-wrap: balance;
}

.lf-news-card-content {
    color: var(--wp--preset--color--ink);
}

.lf-news-card-content > :first-child {
    margin-top: 0;
}

.lf-news-card-content > :last-child {
    margin-bottom: 0;
}

.lf-news-empty,
.lf-news-editor-placeholder {
    padding: 28px;
    border: 1px dashed color-mix(in srgb, var(--wp--preset--color--forest) 22%, transparent);
    border-radius: var(--lf-radius-md);
    background: color-mix(in srgb, var(--wp--preset--color--sage) 28%, transparent);
    color: var(--wp--preset--color--forest);
}

.lf-news-editor-placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-news-editor-placeholder span {
    color: var(--wp--preset--color--leaf);
    font-size: 0.9rem;
}

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

@media (max-width: 640px) {
    .lf-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lf-news-card-body {
        padding-inline: 26px;
    }
}

.lf-final-cta {
    width: min(calc(100% - 48px), 1320px);
    margin: 22px auto 0;
    overflow: hidden;
    border-radius: var(--lf-radius-xl);
}

.lf-footer {
    margin-top: 22px;
    border-radius: var(--lf-radius-xl) var(--lf-radius-xl) 0 0;
}

.lf-footer .wp-block-site-title {
    letter-spacing: -0.045em;
}

.lf-footer a {
    color: inherit;
}

@media (max-width: 960px) {
    .lf-header .wp-block-navigation {
        gap: 12px;
    }

    .lf-services-grid,
    .lf-rides-grid {
        grid-template-columns: 1fr;
    }

    .lf-service-column-featured,
    .lf-ride-column-wide {
        grid-row: auto;
        grid-column: auto;
    }

    .lf-service-card-featured,
    .lf-service-card {
        min-height: 240px;
    }

    .lf-ride-card-wide .wp-block-cover,
    .lf-ride-card .wp-block-cover {
        min-height: 430px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .lf-header {
        top: 46px;
    }
}

@media (max-width: 781px) {
    .wp-site-blocks {
        padding-top: 70px;
    }

    .lf-shell,
    .lf-hero,
    .lf-final-cta {
        width: min(calc(100% - 24px), 1240px);
    }

    .lf-header {
        padding-block: 8px !important;
    }

    .lf-header > .lf-shell {
        min-height: 54px;
        padding: 8px 12px 8px 16px;
        border-radius: 24px;
    }

    .lf-header-cta {
        display: none;
    }

    .lf-hero {
        min-height: 680px !important;
        border-radius: 30px;
    }

    .lf-hero-copy {
        margin-bottom: 34px;
    }

    .lf-trust-strip .wp-block-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .lf-trust-strip p {
        border-radius: 18px;
        padding: 12px;
        font-size: 0.76rem;
    }

    .lf-photo-tall img,
    .lf-photo-medium img {
        min-height: 330px;
    }

    .lf-service-card,
    .lf-service-card-featured {
        min-height: 340px;
    }

    .lf-ride-card .wp-block-cover,
    .lf-ride-card-wide .wp-block-cover {
        min-height: 390px;
    }

    .lf-catalog-frame {
        border-radius: 24px;
    }
}

@media (max-width: 520px) {
    .lf-trust-strip .wp-block-columns {
        grid-template-columns: 1fr;
    }

    .lf-hero h1 {
        max-width: 9ch;
    }
}

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

    .wp-block-button__link,
    .lf-photo img,
    .lf-ride-card .wp-block-cover__image-background,
    .lf-service-card {
        transition: none;
    }
}
