/* Atelier: colours and fonts come from --mf-* variables set per tenant */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--mf-bg, #f7f3ec);
    color: var(--mf-text, #1f1b16);
    font-family: var(--mf-font-body, system-ui, sans-serif);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--mf-font-heading, Georgia, serif); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(var(--mf-container, 1200px), 100% - var(--mf-gutter, 2rem)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -0.01em; }
.heading { font-size: clamp(1.9rem, 4vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mf-muted, #6e665c); max-width: 40em; }

.button {
    display: inline-block;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    background: var(--mf-accent, #a4522b);
    color: var(--mf-accent-contrast, #fff);
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, opacity .15s ease;
}
.button:hover { transform: translateY(-1px); opacity: .92; }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--mf-accent, #a4522b); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--mf-bg, #f7f3ec) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--mf-text, #000) 8%, transparent); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.site-header__brand { font-family: var(--mf-font-heading, Georgia, serif); font-size: 1.4rem; text-decoration: none; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: .95rem; color: var(--mf-muted, #6e665c); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--mf-text, #1f1b16); }
.site-header__toggle { display: none; }

@media (max-width: 760px) {
    .site-header__toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: inherit; cursor: pointer; }
    .site-header__toggle span[aria-hidden], .site-header__toggle span[aria-hidden]::before, .site-header__toggle span[aria-hidden]::after { display: block; width: 1.4rem; height: 2px; background: currentColor; content: ""; position: relative; }
    .site-header__toggle span[aria-hidden]::before { position: absolute; top: -7px; }
    .site-header__toggle span[aria-hidden]::after { position: absolute; top: 7px; }
    .site-nav { position: absolute; inset: 100% 0 auto; background: var(--mf-surface, #fff); border-bottom: 1px solid color-mix(in srgb, var(--mf-text, #000) 10%, transparent); display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
    .site-nav a { display: block; padding: .75rem 0; font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; }
.hero--fullscreen { min-height: min(92vh, 900px); display: grid; align-items: end; color: #fff; }
.hero--fullscreen .hero__media { position: absolute; inset: 0; }
.hero--fullscreen .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--fullscreen .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 60%); }
.hero--fullscreen .hero__content { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.hero--fullscreen .lead { color: rgba(255,255,255,.88); }
.hero--split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(80vh, 760px); }
.hero--split .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--split .hero__content { display: grid; align-items: center; padding-block: 3rem; }
.hero--no-image { min-height: auto; color: inherit; display: block; }
.hero--no-image .hero__content { padding-block: clamp(4rem, 12vw, 9rem); }
.hero--no-image .lead { color: var(--mf-muted, #6e665c); }
.hero--fullscreen .hero__media { overflow: hidden; }
.hero--slider .hero__media img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero--slider .hero__media img.is-active { opacity: 1; }
/* Slide: the new photo pushes the old one out to the left */
.hero--effect-slide .hero__media img { opacity: 1; transform: translateX(100%); transition: transform 1s cubic-bezier(.6, 0, .2, 1); }
.hero--effect-slide .hero__media img.is-active { transform: none; }
.hero--effect-slide .hero__media img.is-leaving { transform: translateX(-100%); }
.hero--effect-slide .hero__media img.is-reset { transition: none; }
/* Ken Burns: each photo slowly zooms while it is shown, from a different corner */
.hero--effect-kenburns .hero__media img.is-active, .hero--effect-kenburns .hero__media img.is-leaving { animation: mf-kenburns calc(var(--hero-seconds, 6s) + 1.6s) ease-out both; }
.hero--effect-kenburns .hero__media img:nth-child(3n+2) { transform-origin: 20% 30%; }
.hero--effect-kenburns .hero__media img:nth-child(3n+3) { transform-origin: 80% 70%; }
.hero--kenburns .hero__media img { animation: mf-kenburns 18s ease-in-out infinite alternate; }
@keyframes mf-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero__dots { display: flex; gap: .5rem; margin-top: 2rem; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: transparent; cursor: pointer; }
.hero__dots button[aria-current="true"] { background: #fff; }
/* Less motion: photos still change, with a plain crossfade and no zoom or slide */
@media (prefers-reduced-motion: reduce) {
    .hero--slider .hero__media img, .hero--effect-slide .hero__media img { transform: none !important; opacity: 0; transition: opacity 1.4s ease; animation: none !important; }
    .hero--slider .hero__media img.is-active { opacity: 1; }
    .hero--kenburns .hero__media img { animation: none; }
}
@media (max-width: 760px) { .hero--split { grid-template-columns: 1fr; } .hero--split .hero__media { aspect-ratio: 4 / 5; } }

/* Sections */
.section { padding-block: var(--mf-section-space, clamp(4rem, 9vw, 7.5rem)); }
.section--alt { background: var(--mf-surface, #fffdf9); }
.section--center { text-align: center; }
.section__header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__note { margin-top: 2rem; color: var(--mf-muted, #6e665c); font-size: .95rem; }

/* Section look chosen per block in the editor (mf-section--*).
   Backgrounds swap the palette variables, so every block inside adapts. */
:root {
    --mfx-accent: var(--mf-accent, #a4522b);
    --mfx-accent-contrast: var(--mf-accent-contrast, #fff);
}
.mf-section { position: relative; }
.mf-section[class*="mf-section--bg-"] > .section { background: transparent; }
.mf-section--bg-soft { background: var(--mf-surface, #fffdf9); }
.mf-section--bg-accent {
    --mf-text: var(--mfx-accent-contrast);
    --mf-muted: color-mix(in srgb, var(--mfx-accent-contrast) 78%, transparent);
    --mf-accent: var(--mfx-accent-contrast);
    --mf-accent-contrast: var(--mfx-accent);
    --mf-bg: color-mix(in srgb, var(--mfx-accent) 82%, #000);
    --mf-surface: color-mix(in srgb, var(--mfx-accent) 88%, #fff);
    background: var(--mfx-accent);
    color: var(--mf-text);
}
.mf-section--bg-dark, .mf-section--bg-image {
    --mf-text: #f4efe8;
    --mf-muted: #c3b9ad;
    --mf-bg: #221e1a;
    --mf-surface: #2b2621;
    background: #171411;
    color: var(--mf-text);
}
.mf-section--bg-image { background: #171411 var(--mf-section-image) center / cover no-repeat; --mf-bg: rgba(20, 17, 14, .55); --mf-surface: rgba(34, 30, 26, .78); }
.mf-section--bg-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(15, 13, 11, .62), rgba(15, 13, 11, .72)); pointer-events: none; }
.mf-section--bg-image > * { position: relative; }
.mf-section--parallax { background-attachment: fixed; }
@media (hover: none), (prefers-reduced-motion: reduce) { .mf-section--parallax { background-attachment: scroll; } }
.mf-section--space-compact { --mf-section-space: clamp(2.25rem, 5vw, 3.75rem); }
.mf-section--space-spacious { --mf-section-space: clamp(5.5rem, 13vw, 11rem); }
.mf-section--width-wide { --mf-container: 1480px; }
.mf-section--width-full { --mf-container: 100%; --mf-gutter: clamp(1rem, 3vw, 3rem); }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; }
.gallery a { display: block; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery--masonry { columns: 3 160px; column-gap: 1rem; }
.gallery--masonry li { break-inside: avoid; margin-bottom: 1rem; }
.gallery--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.gallery--grid img { aspect-ratio: 1; object-fit: cover; }

/* About */
.about__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about--image-right .about__media { order: 2; }
.about__media { margin: 0; }
.about__media img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__inner:not(:has(.about__media)) { grid-template-columns: 1fr; max-width: 760px; }
.prose > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .about__inner { grid-template-columns: 1fr; } .about--image-right .about__media { order: 0; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--mf-bg, #f7f3ec); border-radius: 6px; overflow: hidden; }
.card__media { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 1.5rem; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--mf-muted, #6e665c); margin: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price { padding: 2rem; border: 1px solid color-mix(in srgb, var(--mf-text, #000) 12%, transparent); border-radius: 8px; background: var(--mf-surface, #fff); }
.price--featured { border-color: var(--mf-accent, #a4522b); box-shadow: 0 0 0 1px var(--mf-accent, #a4522b); }
.price__name { font-size: 1.6rem; margin-bottom: .25rem; }
.price__amount { font-size: 1.35rem; font-weight: 600; color: var(--mf-accent, #a4522b); }
.price__text { color: var(--mf-muted, #6e665c); }
.price__features { margin: 1rem 0 0; padding: 0; list-style: none; }
.price__features li { padding: .45rem 0; border-top: 1px solid color-mix(in srgb, var(--mf-text, #000) 8%, transparent); }

/* Quotes */
.quote { margin: 0 0 3rem; }
.quote blockquote { margin: 0; font-family: var(--mf-font-heading, Georgia, serif); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.35; }
.quote figcaption { margin-top: 1rem; color: var(--mf-muted, #6e665c); }
.quote figcaption::before { content: "— "; }

/* Contact */
.contact__list { list-style: none; padding: 0; margin: 2rem 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-family: var(--mf-font-heading, Georgia, serif); }
.contact__list li { padding: .3rem 0; }
.contact__list a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact__social { display: flex; gap: 1.5rem; }
.contact__social a { color: var(--mf-accent, #a4522b); font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--mf-text, #000) 8%, transparent); color: var(--mf-muted, #6e665c); font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer__made strong { font-weight: 400; }
.site-footer__made b { font-weight: 700; }
.site-footer__made:hover { color: var(--mf-text, #1f1b16); }
/* The platform's own line under every site: small, calm, in fixed colours so it reads the same on every palette */
.platform-band { margin-top: 2rem; padding-block: 1rem; background: #171411; color: #d8cfc4; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .85rem; }
.platform-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.platform-band p { margin: 0; max-width: 60ch; }
.platform-band strong { color: #fff; }
.platform-band__cta { flex: none; padding: .5rem 1rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff; font-weight: 600; }
.platform-band__cta:hover { background: #fff; color: #171411; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10, 10, 10, .94); padding: 1rem; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 2px; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer; padding: 1rem; }
.lightbox__close { top: .5rem; right: .5rem; }
.lightbox__prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .25rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Booking form in the contact block */
.booking { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 18px; background: var(--mf-surface, #fffdf9); box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .45); }
.booking__title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.booking__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.booking label small { font-size: inherit; color: var(--mf-muted, #6e665c); font-weight: 400; }
.booking input, .booking select, .booking textarea { width: 100%; box-sizing: border-box; padding: .75rem .85rem; border: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 18%, transparent); border-radius: 10px; background: var(--mf-bg, #f7f3ec); color: var(--mf-text, #1f1b16); font: 400 1rem/1.4 var(--mf-font-body, system-ui, sans-serif); }
.booking input:focus, .booking select:focus, .booking textarea:focus { outline: 2px solid var(--mf-accent, #a4522b); outline-offset: 1px; }
.booking textarea { resize: vertical; }
.booking .button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.booking .button:disabled { opacity: .6; cursor: default; }
.booking__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking__notice { margin: 0; padding: .75rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--mf-accent, #a4522b) 12%, var(--mf-surface, #fffdf9)); }
.booking__notice.is-error { background: #fdecea; color: #b42318; }
@media (max-width: 600px) { .booking__row { grid-template-columns: 1fr; } }
