/*
Theme Name: Riccardo Ferro
Theme URI: https://www.riccardoferro.it/
Author: Riccardo Ferro
Description: Minimal dark theme for fine-art photography in Venice. Photo frames with desktop/mobile focal points, artistic masonry gallery, bilingual (Polylang) and quote-request flow. Requires the RF Studio plugin.
Version: 2.3.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rf-theme
*/

:root {
	/* Brand palette */
	--c1: #fff1ae; --c2: #ffd895; --c3: #f0bf7c; --c4: #d7a663; --c5: #be8d4a;
	/* Dark, warm background: same on desktop and mobile */
	--bg: #14100c;
	--bg-alt: #1a1510;
	--surface: #211b14;
	--line: rgba(255, 241, 174, .14);
	--text: #f3ead9;
	--muted: #b9a98c;
	--on-accent: #14100c;
	--serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7; font-weight: 300; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c3); text-decoration-color: rgba(240, 191, 124, .4); text-underline-offset: 3px; }
a:hover { color: var(--c1); }
:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2.big { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 90%); margin-inline: auto; }
.wrap--narrow { width: min(760px, 90%); }
.wrap--mid { width: min(1000px, 90%); }
.is-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--c1); color: #000; padding: .5rem 1rem; z-index: 999; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; color: var(--c4); margin: 0 0 1rem; font-family: var(--sans); font-weight: 500; }
.lead { font-size: 1.15rem; color: #e6dcc7; }
.lead--big { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; color: var(--text); }
.epi { font-family: var(--serif); font-style: italic; color: var(--c2); }
.epi--big { font-size: clamp(1.2rem, 2.2vw, 1.7rem); }
.sec-head { margin-bottom: 2.5rem; }
.sec-head.is-center { text-align: center; margin-inline: auto; max-width: 640px; }
.sec-text { color: var(--muted); }

/* Buttons and links */
.rf-btn { display: inline-block; padding: .85em 1.7em; border: 1px solid var(--c4); border-radius: 0; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--c2); background: transparent; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); font-family: var(--sans); }
.rf-btn:hover { background: var(--c4); color: var(--on-accent); }
.rf-btn--solid { background: var(--c5); border-color: var(--c5); color: var(--on-accent); }
.rf-btn--solid:hover { background: var(--c3); border-color: var(--c3); color: var(--on-accent); }
.rf-btn--light { border-color: rgba(255, 241, 174, .7); color: var(--c1); }
.rf-btn--sm { padding: .65em 1.2em; font-size: .7rem; }
.rf-btn--block { display: block; text-align: center; margin-top: 1.4rem; }
.link-arrow { color: var(--c2); text-decoration: none; letter-spacing: .04em; border-bottom: 1px solid rgba(255, 216, 149, .4); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--c1); }
.badge { display: inline-block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--c4); color: var(--c2); padding: .2em .8em; margin-bottom: .8rem; }

/* ---------- Photo frames (focal point, fit, zoom, ratio) ---------- */
.rf-frame { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: var(--rd, 4/3); }
.rf-frame img { display: block; width: 100%; height: 100%; object-fit: var(--fit, cover); object-position: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.rf-frame--fill { position: absolute; inset: 0; aspect-ratio: auto; z-index: 0; }
.rf-empty { background: linear-gradient(160deg, #211b14, #14100c); border: 1px solid var(--line); }
.rf-empty { border: 1px dashed rgba(255, 241, 174, .22); }
.rf-empty span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--muted); font-size: .78rem; padding: 0 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.rf-empty span b { font-weight: 400; letter-spacing: .06em; }
.rf-empty svg { color: var(--c4); opacity: .8; }
.rf-frame--fill.rf-empty { border: 0; background: radial-gradient(120% 90% at 30% 20%, #2a2118, #14100c 70%); }
@media (min-width: 761px) {
	.rf-frame.rf-auto-d { aspect-ratio: auto; }
	.rf-frame.rf-auto-d img { height: auto; }
}
@media (max-width: 760px) {
	.rf-frame { aspect-ratio: var(--rm, var(--rd, 4/3)); }
	.rf-frame img { object-fit: var(--fitm, var(--fit, cover)); object-position: var(--mx, var(--fx, 50%)) var(--my, var(--fy, 50%)); transform-origin: var(--mx, var(--fx, 50%)) var(--my, var(--fy, 50%)); }
	.rf-frame--fill { aspect-ratio: auto; }
	.rf-frame.rf-auto-m { aspect-ratio: auto; }
	.rf-frame.rf-auto-m img { height: auto; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(20, 16, 12, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.5rem; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; line-height: 1.15; }
.brand img { max-height: 46px; width: auto; }
.brand__n { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; }
.brand__c { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--c4); margin-top: .25rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; align-items: center; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { text-decoration: none; color: var(--text); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; padding: 1.5rem 0; display: block; }
.menu a:hover, .menu a[aria-current] { color: var(--c2); }
.sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: .8rem 0; position: absolute; top: 100%; left: -1.2rem; min-width: 300px; background: var(--surface); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .6rem 1.4rem; text-transform: none; letter-spacing: .02em; font-size: .92rem; }
.nav__tools { display: flex; align-items: center; gap: 1.2rem; }
.rf-lang { display: flex; gap: .25rem; }
.rf-lang a { text-decoration: none; font-size: .7rem; letter-spacing: .14em; color: var(--muted); padding: .25rem .5rem; border: 1px solid transparent; }
.rf-lang a[aria-current] { color: var(--c1); border-color: var(--c4); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; padding: .6rem 0; }
.menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 24px; height: 1px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.menu-toggle__bars::before { content: ""; position: absolute; top: 7px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }
@media (max-width: 960px) {
	.menu-toggle { display: flex; }
	.nav { position: fixed; inset: 0; top: 0; background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2rem; padding: calc(88px + env(safe-area-inset-top, 0px)) 7% 3rem; overflow-y: auto; transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; z-index: -1; }
	.nav.is-open { transform: none; visibility: visible; }
	.menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
	.menu > li { flex-wrap: wrap; width: 100%; border-bottom: 1px solid var(--line); }
	.menu a { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .01em; text-transform: none; padding: 1rem 0; }
	.menu > li > a { flex: 1; }
	.sub-toggle { display: block; width: 48px; height: 48px; background: none; border: 0; color: var(--c4); cursor: pointer; position: relative; }
	.sub-toggle::before { content: "+"; font-size: 1.6rem; font-family: var(--serif); }
	.sub-toggle[aria-expanded="true"]::before { content: "–"; }
	.sub { position: static; width: 100%; min-width: 0; border: 0; background: none; padding: 0 0 1rem 1rem; opacity: 1; visibility: visible; transform: none; display: none; }
	.sub.is-open { display: block; }
	.sub a { font-size: 1.05rem; padding: .5rem 0; color: var(--muted); }
	.nav__tools { flex-direction: row-reverse; justify-content: space-between; width: 100%; }
}
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; color: #fff; background: #14100c; overflow: hidden; --ov: .5; }
.hero--light { --ov: .3; }
.hero--medium { --ov: .5; }
.hero--strong { --ov: .7; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 16, 12, .25) 0%, rgba(20, 16, 12, var(--ov)) 70%, rgba(20, 16, 12, .92) 100%); }
.hero__in { position: relative; z-index: 2; padding-top: 8rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 14ch; margin-bottom: .4em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .lead { max-width: 560px; color: #f3ead9; }
.hero .eyebrow { color: var(--c2); }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Layout blocks ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--rev .split__i { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__i { order: 0; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-bottom: 2.5rem; }
.tile { text-decoration: none; color: var(--text); display: block; }
.tile .rf-frame img { transition: transform 1.2s var(--ease); }
.tile:hover .rf-frame img { transform: scale(calc(var(--z, 1) * 1.04)); }
.tile__n { display: block; font-family: var(--serif); color: var(--c4); margin-top: 1rem; font-size: .9rem; letter-spacing: .2em; }
.tile h3 { margin: .2rem 0 .3rem; }
.tile .epi { font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.svc-list { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: s; }
.svc-list li { border-top: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 1rem; padding: 1.5rem 0; text-decoration: none; color: var(--text); transition: padding .4s var(--ease), color .3s; }
.svc-list a:hover { padding-left: 1rem; color: var(--c1); }
.svc-n { font-family: var(--serif); color: var(--c4); }
.svc-t strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.55rem); display: block; }
.svc-t em { color: var(--muted); font-size: .95rem; }
.svc-a { color: var(--c4); font-size: 1.3rem; }
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps__n { font-family: var(--serif); font-size: 2.6rem; color: var(--c4); display: block; line-height: 1; margin-bottom: .8rem; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 5vw 1rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.strip a { flex: 0 0 auto; scroll-snap-align: center; }
.strip img { height: clamp(300px, 56vh, 540px); width: auto; max-width: none; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.card { text-decoration: none; color: var(--text); display: block; }
.card__b { padding: 1rem 0; }
.card h3 { margin-bottom: .3rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.more { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c3); }
.card .rf-frame img, .post .rf-frame img { transition: transform 1.2s var(--ease); }
.card:hover .rf-frame img, .post:hover .rf-frame img { transform: scale(1.04); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-bottom: 2rem; }
.post { text-decoration: none; color: var(--text); display: block; }
.post h3 { margin: 1rem 0 .4rem; }
.post p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.cta { text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(190, 141, 74, .16), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta p { color: var(--muted); }
.pay-note { font-size: .82rem; margin-top: 1.2rem; }

/* ---------- Pages ---------- */
.page-head { padding: clamp(3rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.page-head .lead { max-width: 640px; }
.rf-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.4rem; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.rf-crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--c4); }
.rf-crumbs a { color: var(--muted); text-decoration: none; }
.rf-crumbs a:hover { color: var(--c2); }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--c3); font-weight: 500; }
.prose mark { background: rgba(255, 216, 149, .2); color: var(--c1); padding: 0 .3em; }
.svc-hero { position: relative; min-height: 56svh; display: flex; align-items: flex-end; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, #2a2118, #14100c 70%); }
.svc-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 16, 12, .3), rgba(20, 16, 12, .88)); }
.svc-hero__in { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 3rem; }
.svc-hero h1 { max-width: 18ch; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--c2); margin: 0; }
.svc-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; align-items: start; }
.side { background: var(--surface); border: 1px solid var(--line); padding: 1.8rem; position: sticky; top: 100px; }
.side h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .16em; color: var(--c4); font-family: var(--sans); font-weight: 500; margin-top: 1.4rem; }
.side h3:first-child { margin-top: 0; }
@media (max-width: 860px) { .svc-body { grid-template-columns: 1fr; } .side { position: static; } }
.ticks, .plain { list-style: none; padding: 0; margin: 0 0 .5rem; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75em; width: .7rem; height: 1px; background: var(--c4); }
.plain li { margin-bottom: .4rem; }
ol.plain { counter-reset: p; }
ol.plain li { counter-increment: p; padding-left: 1.8rem; position: relative; }
ol.plain li::before { content: counter(p); position: absolute; left: 0; color: var(--c4); font-family: var(--serif); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1px solid var(--line); padding: .4rem 1rem; font-size: .9rem; margin: 0; }
.flow { font-family: var(--serif); font-size: 1.2rem; }
.flow span { color: var(--c4); margin: 0 .4rem; }
.facts { margin: 0; display: grid; gap: 1.2rem; align-content: start; }
.facts dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c4); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c4); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3.5rem) 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.row--rev .row__i { order: 2; }
.row__n { font-family: var(--serif); color: var(--c4); letter-spacing: .2em; }
.row h2 { margin: .4rem 0 .6rem; }
.row p { color: var(--muted); }
.row .epi { color: var(--c2); }
.row .rf-frame img { transition: transform 1.4s var(--ease); }
.row:hover .rf-frame img { transform: scale(1.03); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row--rev .row__i { order: 0; } }
.page-head--poem { text-align: center; }
.page-head--poem .wrap { display: flex; flex-direction: column; align-items: center; }
.rf-masonry { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 14px; }
.rf-masonry li { break-inside: avoid; margin-bottom: 14px; transition: opacity .5s var(--ease); background: var(--surface); }
.rf-masonry a { display: block; cursor: zoom-in; }
.rf-masonry img { width: 100%; height: auto; display: block; }
@media (hover: hover) {
	.rf-masonry:hover li { opacity: .5; }
	.rf-masonry li:hover { opacity: 1; }
}
.masonry-empty { columns: 3 260px; column-gap: 14px; }
.masonry-empty .rf-frame { margin-bottom: 14px; break-inside: avoid; }
.js .rf-reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rf-reveal.is-in { opacity: 1; transform: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 6, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 1rem 1.5rem; }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; animation: lbin .6s var(--ease); }
.lb__cap { margin-top: 1rem; font-family: var(--serif); font-style: italic; color: var(--c2); text-align: center; min-height: 1.5em; }
.lb button { position: absolute; background: none; border: 0; color: var(--c1); font-size: 2rem; cursor: pointer; padding: .6rem 1rem; line-height: 1; }
.lb__x { top: .6rem; right: .6rem; }
.lb__p { left: .4rem; top: 50%; }
.lb__n { right: .4rem; top: 50%; }
@keyframes lbin { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.rf-form-wrap { max-width: 760px; }
.rf-form { display: grid; gap: 1.2rem; }
.rf-form fieldset { border: 1px solid var(--line); padding: 1.6rem; margin: 0; display: grid; gap: 1.1rem; background: var(--surface); }
.rf-form legend { font-family: var(--serif); font-size: 1.3rem; padding: 0 .6rem; }
.rf-form legend span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid var(--c4); border-radius: 50%; font-size: .85rem; color: var(--c3); margin-right: .4rem; }
.rf-form label { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.rf-form input, .rf-form select, .rf-form textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid rgba(255, 241, 174, .22); padding: .75rem .85rem; width: 100%; border-radius: 0; }
.rf-form input:focus, .rf-form select:focus, .rf-form textarea:focus { border-color: var(--c3); outline: none; }
.rf-form select option { background: #14100c; }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.rf-check { display: flex !important; gap: .7rem; align-items: flex-start; }
.rf-check input { width: auto; margin-top: .35rem; }
.rf-hp { position: absolute; left: -9999px; }
.rf-note { color: var(--c2); font-size: .9rem; margin: 0; }
.rf-form .rf-btn { width: auto; }
.rf-form.is-js .rf-step[hidden] { display: none; }
.rf-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rf-nav__count { color: var(--muted); font-size: .85rem; }
.rf-notice { padding: 1.2rem 1.4rem; border: 1px solid var(--c4); margin-bottom: 1.5rem; background: var(--surface); }
.rf-notice--err { border-color: #c96a5a; }
.rf-cookie { position: fixed; z-index: 150; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(720px, 94vw); background: #211b14; border: 1px solid var(--c4); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.rf-cookie[hidden] { display: none; }
.rf-cookie p { margin: 0; font-size: .85rem; flex: 1; }
@media (max-width: 600px) { .rf-cookie { flex-direction: column; align-items: stretch; text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { background: #0f0c09; border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 .3rem; }
.footer-claim { color: var(--c4); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.site-footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c4); font-weight: 500; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--c2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-legal a { margin-left: 1.2rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-legal a { margin: 0 1rem 0 0; } }

/* ---------- Floating buttons ---------- */
.float { position: fixed; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.float .wa, .float .to-top { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 16, 12, .85); border: 1px solid var(--c4); color: var(--c2); cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, color .3s, opacity .3s, transform .3s; padding: 0; }
.float .wa:hover, .float .to-top:hover { background: var(--c5); color: var(--on-accent); }
.to-top[hidden] { display: none; }
body:has(.rf-cookie:not([hidden])) .float { bottom: 7.5rem; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .rf-reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .float, .rf-cookie, .site-footer { display: none; } body { background: #fff; color: #000; } }

/* ---------- Form controls on dark: light icons ---------- */
.rf-form input, .rf-form select, .rf-form textarea { color-scheme: dark; accent-color: var(--c5); }
/* Calendar icon: cream from the palette (#fff1ae), crisp on the dark field */
.rf-form input[type="date"]::-webkit-calendar-picker-indicator {
	-webkit-appearance: none; appearance: none; width: 28px; height: 28px; padding: 0; cursor: pointer; opacity: .9; filter: none;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff1ae' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='5' width='17' height='15.5' rx='1.5'/><path d='M3.5 10h17M8 3v4M16 3v4'/></svg>") center / 22px 22px no-repeat;
}
.rf-form input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.rf-form input[type="date"] { min-height: 3rem; }
.rf-form input::placeholder, .rf-form textarea::placeholder { color: rgba(185, 169, 140, .7); }
.strip--empty { gap: 14px; overflow-x: auto; padding: 0 5vw 1rem; display: flex; }
.strip--empty .rf-frame { flex: 0 0 auto; width: clamp(200px, 24vw, 300px); }

/* ---------- Carousel (replaces the native scrollbar) ---------- */
.carousel { --gut: max(5vw, calc((100vw - var(--wrap)) / 2)); position: relative; }
.carousel__track { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gut); scroll-padding-inline: var(--gut); scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; }
.carousel__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.carousel__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel__track > a { flex: 0 0 auto; scroll-snap-align: start; display: block; }
.carousel__track img { height: clamp(300px, 56vh, 540px); width: auto; max-width: none; display: block; -webkit-user-drag: none; }
.carousel__track > .rf-frame { flex: 0 0 auto; width: clamp(210px, 24vw, 300px); scroll-snap-align: start; }
.carousel__bar { position: relative; height: 1px; background: var(--line); margin: 1.4rem var(--gut) 0; }
.carousel__bar span { position: absolute; top: -1px; left: 0; height: 3px; width: 25%; background: var(--c4); transition: left .15s linear, width .2s; }
.carousel__btn { position: absolute; top: calc(50% - 1.2rem); transform: translateY(-50%); z-index: 3; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 1px solid var(--c4); background: rgba(20, 16, 12, .82); color: var(--c2); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s, transform .3s var(--ease); }
.carousel__btn--prev { left: max(.8rem, calc(var(--gut) - 70px)); }
.carousel__btn--next { right: max(.8rem, calc(var(--gut) - 70px)); }
.carousel__btn:hover { background: var(--c5); border-color: var(--c5); color: var(--on-accent); }
.carousel__btn:active { transform: translateY(-50%) scale(.94); }
.carousel__btn[disabled] { opacity: .22; pointer-events: none; }
.carousel.is-static .carousel__btn, .carousel.is-static .carousel__bar { display: none; }
@media (max-width: 760px) { .carousel__btn { width: 42px; height: 42px; } .carousel__btn svg { width: 18px; height: 18px; } .carousel__btn--prev { left: .5rem; } .carousel__btn--next { right: .5rem; } }

/* ---------- Instagram preview ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 2rem; }
.ig-tile { display: block; position: relative; }
.ig-tile .rf-frame img { transition: transform 1.2s var(--ease), opacity .4s; }
a.ig-tile:hover .rf-frame img { transform: scale(1.06); opacity: .8; }
a.ig-tile::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s; pointer-events: none; }
a.ig-tile:hover::after { border-color: var(--c4); }
@media (max-width: 960px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ig-grid { gap: 6px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); margin-bottom: 2rem; }
.review { margin: 0; padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); }
.review blockquote { margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.6; color: var(--text); }
.review figcaption { color: var(--c4); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Rendering speed: skip painting sections that are far below the screen ---------- */
.section--alt, .cta, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }
