/* Brand colors of the site (the theme is where Grav sites keep them) */
:root { --color-primary: #1b2c66; --color-accent: #f8c200; }

/* Brand colors come from /brand.css (site settings). */
:root {
    /* --color-primary and --color-accent come from /brand.css (site settings). */
    --color-text: #1f2430;
    --color-heading: var(--color-primary);
    --color-link: var(--color-primary);
    --color-muted: #4b5266;
    --color-surface: rgba(255, 255, 255, 0.8);
    --color-surface-alt: rgba(255, 255, 255, 0.62);
    --color-border: rgba(27, 44, 102, 0.16);
    --sky-top: #1478d9;
    --sky-bottom: #8fd3ff;
    color-scheme: light dark;
    --radius: 14px;
    --gutter: 1rem;
    --max-width: 72rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Light and dark themes follow the visitor's browser or system preference, fixed or automatic. */
@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #e8ecf8;
        --color-heading: #ffffff;
        --color-link: var(--color-accent);
        --color-muted: #aab3d3;
        --color-surface: rgba(12, 20, 55, 0.66);
        --color-surface-alt: rgba(12, 20, 55, 0.5);
        --color-border: rgba(255, 255, 255, 0.16);
        --sky-top: #050a24;
        --sky-bottom: #0f1b4d;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--sky-top) linear-gradient(180deg, var(--sky-top), var(--sky-bottom)) fixed;
    min-height: 100vh;
    transition: color 0.6s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-underline-offset: 0.2em; }
h1, h2, h3 { line-height: 1.2; color: var(--color-heading); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 1.5rem 0 1rem; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 48rem; }
.prose iframe { width: 100%; border: 0; border-radius: var(--radius); }
.prose ul { padding-left: 1.2rem; }

/* Buttons */
.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    border: 0;
}
.button:hover { filter: brightness(0.95); }
.button-light { background: rgba(255, 255, 255, 0.9); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--sky-top) 88%, transparent); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.12); }
.site-header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.site-logo { flex: none; }
.site-logo img { height: 2.5rem; width: auto; max-width: none; }
.nav-toggle { display: none; }
.nav-toggle-label { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 1.5rem; height: 2px; background: #fff; content: ""; position: relative;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }
.site-nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--sky-top);
}
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a:not(.button) { padding: 0.5rem 0; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-nav a.is-current { box-shadow: inset 0 -3px var(--color-accent); }
.site-nav .button { text-align: center; margin-top: 0.5rem; }

@media (min-width: 60rem) {
    .nav-toggle-label { display: none; }
    .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.5rem); padding: 0; border: 0; background: transparent; }
    .site-nav .button { margin: 0; }
}

/* The Book button repeats the Tarifs entry: keep it only where there is room */
@media (min-width: 60rem) and (max-width: 74.99rem) {
    .site-nav .button { display: none; }
    .site-nav { gap: clamp(0.75rem, 1.4vw, 1.25rem); font-size: 0.95rem; }
}

/* Hero */
.hero { position: relative; display: grid; min-height: 26rem; overflow: hidden; color: #fff; background: var(--color-primary); }
.hero > * { grid-area: 1 / 1; }
.hero::after { content: ""; grid-area: 1 / 1; background: linear-gradient(to top, rgba(10, 20, 55, 0.85), rgba(10, 20, 55, 0.35) 75%); }
.hero-video { position: relative; overflow: hidden; pointer-events: none; }
.hero-video iframe {
    position: absolute; top: 50%; left: 50%; border: 0;
    width: max(100%, 177.78vh); height: max(100%, 56.25vw);
    transform: translate(-50%, -50%);
}
.hero-text { position: relative; z-index: 1; align-self: end; padding-bottom: 2.5rem; }
.hero h1 { color: #fff; margin-top: 0; }
.hero p { font-size: 1.2rem; max-width: 36rem; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
@media (min-width: 60rem) { .hero { min-height: 34rem; } }

/* Cards */
.section-title { margin-top: 2.5rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 1.5rem 0 2.5rem; }
.cards-small { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-surface); text-decoration: none; color: var(--color-text); border: 1px solid var(--color-border); backdrop-filter: blur(8px); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-title { display: block; padding: 0.75rem 1rem; font-weight: 700; color: var(--color-heading); }
.card:hover { border-color: var(--color-accent); }

/* Content */
.lead-image img { border-radius: var(--radius); width: 100%; }
.gallery { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.count { color: var(--color-muted); }

/* Footer */
.site-footer { margin-top: 4rem; padding: 2.5rem 0; background: color-mix(in srgb, var(--sky-bottom) 70%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--color-border); color: var(--color-text); font-size: 0.95rem; }
.site-footer h2 { color: var(--color-heading); font-size: 1.2rem; margin-top: 0; }
.site-footer-grid { display: grid; gap: 2rem; }
.site-footer .legal { color: var(--color-muted); font-size: 0.85rem; }
@media (min-width: 48rem) { .site-footer-grid { grid-template-columns: 1fr 1fr 2fr; } }

/* Booking bar */
.booking-bar {
    display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; align-items: end;
    margin-top: 1rem; position: relative; z-index: 2;
    padding: 1rem; border-radius: var(--radius); background: var(--color-surface); backdrop-filter: blur(10px);
    border: 1px solid var(--color-border); box-shadow: 0 8px 24px rgba(20, 30, 70, 0.12);
}
.booking-bar label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--color-muted); }
.booking-bar input { font: inherit; color: #1f2430; padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: 8px; width: 100%; background: #fff; }
.booking-bar .button { grid-column: 1 / -1; cursor: pointer; }
.booking-bar .button:disabled { opacity: 0.7; cursor: not-allowed; }
@media (min-width: 48rem) {
    .booking-bar { grid-template-columns: repeat(4, 1fr) auto; }
    .booking-bar .button { grid-column: auto; }
}

.hero + .container .booking-bar { margin-top: -1.5rem; }

/* Home sections */
.panel { margin: 2rem 0; padding: 1.25rem; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); backdrop-filter: blur(10px); }
.panel h2 { margin-top: 0; }
.intro { max-width: 52rem; }
.thumbs { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); margin: 1.5rem 0; }
.thumb { display: block; text-decoration: none; color: var(--color-heading); font-weight: 700; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--color-border); }
.thumb span { display: block; padding-top: 0.35rem; }
.columns { display: grid; gap: 1.5rem; }
.embed { width: 100%; height: 22rem; border: 0; border-radius: var(--radius); background: var(--color-surface-alt); }
@media (min-width: 48rem) {
    .panel { padding: 2rem; }
    .thumbs { grid-template-columns: repeat(5, 1fr); }
    .columns { grid-template-columns: 1fr 1fr; }
}

/* Lists and page layout */
.prose li { margin: 0.2rem 0; }
.prose li > p { margin: 0; }
.split { display: grid; gap: 1.5rem; align-items: center; margin: 1rem 0 2rem; }
.split .lead-image { margin: 0; }
.split .lead-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) { .split { grid-template-columns: 1.2fr 1fr; } }
.embed-tall { height: 30rem; margin: 1.5rem 0; }

/* Rate cards */
.rate-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0; }
.rate-card { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); backdrop-filter: blur(10px); text-align: center; }
.rate-title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.rate-price { margin: 0; font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.1; color: var(--color-heading); }
.rate-unit { margin: 0 0 1rem; color: var(--color-muted); }
.rate-conditions { text-align: left; font-size: 0.95rem; }
.rate-card.is-promo { justify-content: center; background: var(--color-accent); border-color: transparent; }
.rate-card.is-promo .rate-title, .rate-card.is-promo .rate-price, .rate-card.is-promo .rate-unit { color: #1b2c66; }

/* Footer social icons */
.social { display: flex; gap: 1rem; }
.icon { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-filled { fill: currentColor; stroke: none; }

/* Language menu: the active flag alone, the others in a popover on hover, focus or tap */
.lang-menu { position: relative; width: fit-content; }
.lang-current { display: block; cursor: pointer; padding: 0.3rem 0; line-height: 0; }
.lang-menu .fi { font-size: 1.4rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.lang-list {
    position: absolute; top: 100%; left: 0; z-index: 30;
    display: grid; gap: 0.5rem; margin: 0; padding: 0.6rem; list-style: none;
    background: var(--sky-top); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    visibility: hidden; opacity: 0; transition: opacity 0.15s;
}
.lang-menu:hover .lang-list, .lang-menu:focus-within .lang-list { visibility: visible; opacity: 1; }
.lang-list li { margin: 0; padding: 0; list-style: none; }
.lang-list a { display: block; line-height: 0; }
@media (min-width: 60rem) { .lang-list { left: auto; right: 0; } }

/* Login form (login plugin): one main button, the secondary links as plain links below */
#grav-login .form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1rem; }
#grav-login .form-actions button.button { order: 1; width: 100%; padding: 0.9rem 1.2rem; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
#grav-login .form-actions a.button { order: 2; align-self: center; padding: 0; background: none; border-radius: 0; color: inherit; font-size: 0.9rem; font-weight: 400; text-decoration: underline; }
#grav-login .form-actions .rememberme { order: 0; }
#grav-login .form-actions .fa { display: none; }
#grav-login input[type="text"], #grav-login input[type="password"], #grav-login input[type="email"] { width: 100%; box-sizing: border-box; }
#grav-login .form-label, #grav-login label { display: block; text-align: left; }
#grav-login .rememberme label { display: inline; }
#grav-login input[type="text"], #grav-login input[type="password"], #grav-login input[type="email"] { padding: 0.9rem 1rem; font: inherit; font-size: 1.2rem; border: 1px solid var(--color-primary); border-radius: 0.5rem; }
