/* DEVIN FILMS: public site. No build step.
 *
 * THEMES: each theme sets the --t-* tokens below on <html data-theme="…"> (chosen in Admin → Theme;
 * the list and fonts live in includes/themes.php). Components never use --t-* directly: they use
 * the working tokens (--bg, --text, --accent …), which normally equal the theme tokens but are
 * switched to light-on-dark inside anything that sits on a photo (.hero, .page-hero, .cta-band,
 * the transparent header), so text over images stays readable in every theme.
 */

/* Noir & Gold: dark, cinematic (the original look) */
:root, [data-theme="noir"] {
  --t-bg: #0e0d0b; --t-bg-2: #161411; --t-bg-3: #201d19;
  --t-text: #f3eee6; --t-text-2: #cfc8bc; --t-muted: #9a9286; --t-line: rgba(243, 238, 230, .12);
  --t-accent: #c9a86a; --t-accent-2: #e0c48e; --t-on-accent: #0e0d0b; --t-accent-soft: rgba(201, 168, 106, .5);
  --t-field: rgba(243, 238, 230, .04); --t-field-focus: rgba(243, 238, 230, .07);
  --t-header: rgba(14, 13, 11, .86); --t-scheme: dark; --t-grain: .055;
  --t-ok: #8fbf8a; --t-warn: #e0b45e; --t-bad: #e07a5f;
  --t-img-accent: #c9a86a; --t-img-accent-2: #e0c48e; --t-img-on-accent: #0e0d0b;
  --serif: "Cormorant Garamond", "Noto Serif Sinhala", Georgia, serif;
  --sans: "Manrope", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Ivory & Gold: light, warm and classic */
[data-theme="ivory"] {
  --t-bg: #faf7f2; --t-bg-2: #f2ece3; --t-bg-3: #ebe1d2;
  --t-text: #1d1a16; --t-text-2: #4a443c; --t-muted: #7a7062; --t-line: rgba(29, 26, 22, .12);
  --t-accent: #9a7642; --t-accent-2: #7d5e31; --t-on-accent: #ffffff; --t-accent-soft: rgba(154, 118, 66, .45);
  --t-field: #ffffff; --t-field-focus: #ffffff;
  --t-header: rgba(250, 247, 242, .92); --t-scheme: light; --t-grain: .03;
  --t-ok: #2f7d4f; --t-warn: #9a6400; --t-bad: #b3432b;
  --t-img-accent: #e0c48e; --t-img-accent-2: #f0d9ab; --t-img-on-accent: #1d1a16;
}
/* Sage Garden: soft greens and cream, botanical */
[data-theme="sage"] {
  --t-bg: #f5f3ec; --t-bg-2: #e9ede2; --t-bg-3: #dde4d3;
  --t-text: #222920; --t-text-2: #4a5444; --t-muted: #737e6b; --t-line: rgba(34, 41, 32, .13);
  --t-accent: #5b6e52; --t-accent-2: #46573f; --t-on-accent: #ffffff; --t-accent-soft: rgba(91, 110, 82, .45);
  --t-field: #ffffff; --t-field-focus: #ffffff;
  --t-header: rgba(245, 243, 236, .92); --t-scheme: light; --t-grain: .03;
  --t-ok: #2f7d4f; --t-warn: #9a6400; --t-bad: #b3432b;
  --t-img-accent: #d3e0c0; --t-img-accent-2: #e4edd6; --t-img-on-accent: #222920;
  --serif: "Playfair Display", "Noto Serif Sinhala", Georgia, serif;
}
/* Blush Romance: rose and blush, editorial */
[data-theme="blush"] {
  --t-bg: #fbf6f3; --t-bg-2: #f6ebe6; --t-bg-3: #efdcd5;
  --t-text: #3a2a29; --t-text-2: #5e4a48; --t-muted: #8f7c78; --t-line: rgba(58, 42, 41, .12);
  --t-accent: #a5666a; --t-accent-2: #8a4f53; --t-on-accent: #ffffff; --t-accent-soft: rgba(165, 102, 106, .4);
  --t-field: #ffffff; --t-field-focus: #ffffff;
  --t-header: rgba(251, 246, 243, .92); --t-scheme: light; --t-grain: .025;
  --t-ok: #2f7d4f; --t-warn: #9a6400; --t-bad: #b3432b;
  --t-img-accent: #f2c6c0; --t-img-accent-2: #f8dcd7; --t-img-on-accent: #3a2a29;
  --serif: "Bodoni Moda", "Noto Serif Sinhala", Georgia, serif;
}
/* Modern Mono: crisp white and black, minimal */
[data-theme="modern"] {
  --t-bg: #ffffff; --t-bg-2: #f5f5f4; --t-bg-3: #ebebea;
  --t-text: #121212; --t-text-2: #3d3d3d; --t-muted: #707070; --t-line: rgba(18, 18, 18, .12);
  --t-accent: #121212; --t-accent-2: #121212; --t-on-accent: #ffffff; --t-accent-soft: rgba(18, 18, 18, .35);
  --t-field: #ffffff; --t-field-focus: #ffffff;
  --t-header: rgba(255, 255, 255, .94); --t-scheme: light; --t-grain: 0;
  --t-ok: #2f7d4f; --t-warn: #9a6400; --t-bad: #b3432b;
  --t-img-accent: #ffffff; --t-img-accent-2: #ffffff; --t-img-on-accent: #121212;
  --serif: "Jost", "Noto Sans Sinhala", system-ui, sans-serif;
}

/* Which logo: white on the dark theme, dark on the light ones (and white again on photos, below). */
:root, [data-theme="noir"] { --t-logo-light: inline-flex; --t-logo-dark: none; }
[data-theme="ivory"], [data-theme="sage"], [data-theme="blush"], [data-theme="modern"] { --t-logo-light: none; --t-logo-dark: inline-flex; }

/* Working tokens = the theme's, except on photos (below). */
:root {
  --logo-light: var(--t-logo-light); --logo-dark: var(--t-logo-dark);
  --bg: var(--t-bg); --bg-2: var(--t-bg-2); --bg-3: var(--t-bg-3);
  --text: var(--t-text); --text-2: var(--t-text-2); --muted: var(--t-muted); --line: var(--t-line);
  --accent: var(--t-accent); --accent-2: var(--t-accent-2); --on-accent: var(--t-on-accent); --accent-soft: var(--t-accent-soft);
  --field: var(--t-field); --field-focus: var(--t-field-focus); --header-solid: var(--t-header);
  --scheme: var(--t-scheme); --grain: var(--t-grain);
  --ok: var(--t-ok); --warn: var(--t-warn); --bad: var(--t-bad);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Anything on a photo: light text on a dark overlay, whatever the theme. */
.hero, .page-hero.has-bg, .cta-band,
body:not(.no-hero):not(.nav-open) .site-header:not(.is-solid) {
  --bg: #0e0d0b; --bg-2: #161411; --bg-3: #201d19;
  --text: #f3eee6; --text-2: #e2dbd0; --muted: #c2baad; --line: rgba(243, 238, 230, .2);
  --accent: var(--t-img-accent); --accent-2: var(--t-img-accent-2); --on-accent: var(--t-img-on-accent);
  --accent-soft: rgba(243, 238, 230, .4);
  --field: rgba(243, 238, 230, .08); --field-focus: rgba(243, 238, 230, .12); --scheme: dark;
  --ok: #9fd39a; --warn: #f0c46e; --bad: #f08e74;
  --logo-light: inline-flex; --logo-dark: none;
  color: var(--text);   /* headings inherit `color`, not the variable, so set it here too */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.lang-si body { line-height: 1.85; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
.lang-si h1, .lang-si h2, .lang-si h3 { line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.icon { flex: none; }

/* film grain */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* type helpers */
.kicker {
  font: 600 12px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 1.2em;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lang-si .kicker { letter-spacing: .08em; font-size: 13px; }
.display { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 400; }
.display em, .h2 em { font-style: italic; color: var(--accent-2); }
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 46em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* buttons */
.btn {
  --b: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--b);
  font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--text); background: transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lang-si .btn { letter-spacing: .02em; text-transform: none; font-size: 15px; }
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-gold:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 12px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; letter-spacing: .06em; }
.text-link:hover .icon { transform: translateX(4px); }
.text-link .icon { transition: transform .3s var(--ease); }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.site-header.is-solid, body.no-hero .site-header { background: var(--header-solid); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { text-decoration: none; display: inline-flex; align-items: center; color: var(--text); }
.logo-img { height: 46px; width: auto; }
.logo-word { font: 500 22px/1 var(--serif); letter-spacing: .28em; white-space: nowrap; }
.logo-word span { margin-left: .3em; color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav ul a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); position: relative; padding: 6px 0; }
.lang-si .main-nav ul a { letter-spacing: .02em; text-transform: none; font-size: 14.5px; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav ul a:hover, .main-nav ul a[aria-current] { color: var(--text); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-extra { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch a[aria-current] { background: var(--text); color: var(--bg); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; color: var(--text); cursor: pointer; position: relative; z-index: 2; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 11px; width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); content: ""; }
.nav-toggle .bars { top: 22px; }
.nav-toggle .bars::before { left: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center;
    gap: 36px; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; padding: 90px var(--gutter) 40px;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 10px; }
  .main-nav ul a { font: 400 clamp(1.9rem, 7vw, 2.6rem)/1.3 var(--serif); letter-spacing: .02em; text-transform: none; }
  .nav-extra { flex-direction: column; }
  body.nav-open { overflow: hidden; }
}

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg) center/cover no-repeat; }
.hero-media img.hero-poster, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img.hero-poster { animation: kenburns 24s var(--ease) infinite alternate; }
.hero-media .yt-bg { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 1.6s ease; border: 0; }
.hero-media .yt-bg.is-ready { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,13,11,.55) 0%, rgba(14,13,11,.15) 35%, rgba(14,13,11,.55) 70%, var(--bg) 100%), radial-gradient(ellipse at 30% 70%, rgba(14,13,11,.55), transparent 60%); }
.letterbox { position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 3; pointer-events: none; transition: height 1.8s cubic-bezier(.7, 0, .2, 1) .25s; }
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
/* The bars open like a cinema curtain and slide fully away, so the film runs behind the transparent menu. */
.hero.is-open .letterbox { height: 0; }
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(70px, 14vh, 140px); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); font-weight: 400; max-width: 12em; margin-bottom: .35em; }
.lang-si .hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); max-width: 14em; }
.hero .lead { max-width: 34em; margin-bottom: 2em; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 9vh; z-index: 4; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); writing-mode: vertical-rl; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.hero-scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--accent), transparent); animation: scrolline 2.2s ease-in-out infinite; }
@media (max-width: 700px) { .hero-scroll { display: none; } }
@keyframes scrolline { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 2.6em; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lang-si .hero-meta { letter-spacing: .04em; font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(60px, 12vh, 130px)) 0 clamp(50px, 9vh, 90px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; background: center/cover no-repeat; transform: scale(1.06); filter: saturate(.9); }
.page-hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,13,11,.7), rgba(14,13,11,.82) 60%, var(--bg)); }
.page-hero .display { max-width: 15em; }

/* sections */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .h2 { margin: 0; max-width: 14em; }
.rule { width: 60px; height: 1px; background: var(--accent); border: 0; margin: 28px 0; }

/* statement */
.statement { font: 400 clamp(1.7rem, 3.4vw, 2.9rem)/1.32 var(--serif); max-width: 22em; margin: 0 auto; text-align: center; }
.lang-si .statement { font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.6; }
.statement em { color: var(--accent-2); }
.signature { margin-top: 1.6em; font: italic 400 1.3rem var(--serif); color: var(--accent); text-align: center; }

/* feature strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 34px 28px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature .num { font: italic 400 1rem var(--serif); color: var(--accent); display: block; margin-bottom: 10px; }
.feature h3 { font-size: 1.45rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature:nth-child(3) { border-left: 0; } .feature:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } .feature { border-left: 0; border-top: 1px solid var(--line); } .feature:first-child { border-top: 0; } }

/* films */
.film-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 36px); }
.film-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.film-grid .film-card.is-wide { grid-column: span 2; }
@media (max-width: 900px) { .film-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .film-grid, .film-grid.cols-3 { grid-template-columns: 1fr; } .film-grid .film-card.is-wide { grid-column: auto; } }
.film-card { margin: 0; }
.film-card[hidden] { display: none; }
.film-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-3); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.92) brightness(.86); }
.film-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,13,11,.55)); }
.film-thumb:hover img, .film-thumb:focus-visible img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.film-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; color: #f3eee6; border: 1px solid rgba(243,238,230,.7); background: rgba(14,13,11,.25); backdrop-filter: blur(4px); transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s; }
.film-play .icon { margin-left: 4px; }
.film-thumb:hover .film-play { transform: scale(1.1); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.film-dur { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #f3eee6; background: rgba(14,13,11,.7); padding: 3px 8px; border-radius: 3px; }
.film-meta { padding: 16px 2px 0; }
.film-meta h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 0; }
.film-cat { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.lang-si .film-cat { letter-spacing: .05em; font-size: 12.5px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text-2); cursor: pointer; transition: all .3s var(--ease); }
.lang-si .filters button { letter-spacing: .02em; text-transform: none; font-size: 14px; }
.filters button:hover { border-color: var(--text-2); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(5,5,4,.94); display: grid; place-items: center; padding: 60px var(--gutter); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(243,238,230,.08); color: #f3eee6; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: #f3eee6; color: #0e0d0b; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 28px 0 0; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: italic 400 3.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--accent); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* split blocks */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.split-media.wide { aspect-ratio: 16 / 11; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(243,238,230,.25); pointer-events: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } .split-media { aspect-ratio: 16 / 11; } }

/* services */
.service-list { display: grid; gap: clamp(70px, 10vw, 120px); }
.service h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.service .bullets { list-style: none; padding: 0; margin: 1.4em 0 2em; display: grid; gap: 10px; }
.service .bullets li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.service .bullets .icon { color: var(--accent); margin-top: 5px; }

/* packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 300px)); justify-content: center; gap: 24px; align-items: stretch; }
@media (max-width: 980px) { .pkg-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.pkg-card { position: relative; display: flex; flex-direction: column; padding: 40px 32px 34px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .5s var(--ease), border-color .4s; }
.pkg-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.pkg-card.is-featured { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border-color: var(--accent-soft); }
.pkg-badge { position: absolute; top: -13px; left: 32px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.lang-si .pkg-badge { letter-spacing: .02em; font-size: 12.5px; }
.pkg-name { font-size: 2.1rem; margin-bottom: .2em; }
.pkg-tag { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.15rem; min-height: 1.6em; }
.pkg-price { padding: 20px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.pkg-price small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.lang-si .pkg-price small { letter-spacing: .03em; font-size: 12.5px; }
.pkg-price strong { font: 500 2.3rem/1 var(--serif); color: var(--accent-2); }
.pkg-features { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.pkg-features li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; color: var(--text-2); }
.pkg-features .icon { color: var(--accent); margin-top: 5px; }
.pkg-card .btn { width: 100%; }
.pkg-note { margin-top: 36px; color: var(--muted); font-size: .95rem; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font: 500 1.35rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 28px var(--sans); color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 40px 22px 0; margin: 0; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.quote { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin: 0; }
.quote blockquote { margin: 0 0 20px; font: italic 400 1.3rem/1.5 var(--serif); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.4rem; line-height: .6; color: var(--accent); margin-bottom: 12px; }
.quote figcaption { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.quote figcaption span { display: block; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; margin-top: 4px; }

/* cta band */
.cta-band { position: relative; padding: clamp(100px, 14vw, 170px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.cta-bg { position: absolute; inset: -10% 0; z-index: -2; background: center/cover no-repeat; filter: saturate(.85); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,13,11,.72); }
.cta-inner .kicker { justify-content: center; }
.cta-inner .display { max-width: 14em; margin: 0 auto .9em; }
.date-check { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 560px; margin: 0 auto; }
.date-check input[type="date"] { flex: 1 1 220px; }
.avail-msg { flex-basis: 100%; min-height: 1.6em; margin: 6px 0 0; font-weight: 600; }
.avail-msg.is-available { color: var(--ok); }
.avail-msg.is-limited { color: var(--warn); }
.avail-msg.is-booked, .avail-msg.is-past { color: var(--bad); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.lang-si .field label { letter-spacing: .02em; text-transform: none; font-size: 14px; }
.field label .opt { color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], select, textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; font: 400 16px/1.4 var(--sans); color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, background .3s;
  color-scheme: var(--scheme);
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
select option { background: var(--bg-2); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--field-focus); }
.field .hint { font-size: 13px; margin: 8px 0 0; min-height: 1.3em; font-weight: 600; }
.field .hint.is-available { color: var(--ok); }
.field .hint.is-limited { color: var(--warn); }
.field .hint.is-booked, .field .hint.is-past { color: var(--bad); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); font-weight: 600; margin: 14px 0 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form-foot small { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 36px; border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card h2 { font-size: 1.9rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: 4px; }
.contact-list small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lang-si .contact-list small { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.contact-list a { text-decoration: none; }
.thanks { text-align: center; padding: 56px 28px; border: 1px solid var(--accent-soft); border-radius: var(--radius); background: var(--bg-2); }
.thanks .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; background: var(--accent); color: var(--on-accent); }
.thanks .ref { font: 500 1.5rem var(--serif); color: var(--accent-2); letter-spacing: .1em; }

/* about */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { padding-top: 26px; border-top: 1px solid var(--accent); }
.value h3 { font-size: 1.6rem; }
.value p { color: var(--muted); }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }
.prose { max-width: 42em; color: var(--text-2); font-size: 1.06rem; }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 70px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); max-width: 26em; margin: 18px 0 22px; }
.footer-h { font: 700 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.lang-si .footer-h { letter-spacing: .04em; font-size: 13.5px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; color: var(--text-2); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-2); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.footer-contact .icon { color: var(--accent); margin-top: 5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-2); transition: all .3s var(--ease); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-base a { color: var(--muted); }

/* floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 85; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.notfound .big { font: italic 400 clamp(6rem, 20vw, 12rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .letterbox { display: none; }
}

@media print {
  .site-header, .site-footer, .wa-float, .grain { display: none !important; }
}

/* ---------- per-theme details ---------- */
[data-theme="modern"] h1, [data-theme="modern"] h2, [data-theme="modern"] h3,
[data-theme="modern"] .display, [data-theme="modern"] .statement, [data-theme="modern"] .pkg-price strong { font-weight: 300; letter-spacing: -.01em; }
[data-theme="modern"] .logo-word { font-weight: 400; letter-spacing: .34em; font-size: 19px; }
[data-theme="modern"] .pkg-card, [data-theme="modern"] .quote, [data-theme="modern"] .contact-card, [data-theme="modern"] .film-thumb,
[data-theme="modern"] input, [data-theme="modern"] select, [data-theme="modern"] textarea { border-radius: 0; }
[data-theme="blush"] .pkg-card, [data-theme="blush"] .quote, [data-theme="blush"] .contact-card, [data-theme="blush"] .film-thumb { border-radius: 14px; }
[data-theme="sage"] .pkg-card, [data-theme="sage"] .quote, [data-theme="sage"] .contact-card, [data-theme="sage"] .film-thumb { border-radius: 10px; }
/* Light themes: soften the photo overlays a touch and give cards a gentle lift. */
[data-theme="ivory"] .pkg-card, [data-theme="sage"] .pkg-card, [data-theme="blush"] .pkg-card, [data-theme="modern"] .pkg-card,
[data-theme="ivory"] .contact-card, [data-theme="sage"] .contact-card, [data-theme="blush"] .contact-card { background: #fff; box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .25); }
[data-theme="ivory"] .pkg-card.is-featured, [data-theme="sage"] .pkg-card.is-featured, [data-theme="blush"] .pkg-card.is-featured, [data-theme="modern"] .pkg-card.is-featured { background: #fff; border-width: 2px; }
.pkg-price-ask strong { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.pkg-price-ask span { display: block; color: var(--muted); font-size: .92rem; }
[data-theme="ivory"] .quote, [data-theme="sage"] .quote, [data-theme="blush"] .quote, [data-theme="modern"] .quote { background: #fff; }
/* Admin theme preview bar (only shown to a signed-in admin while previewing) */
.theme-preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 120; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; border-radius: 999px; background: #121212; color: #fff; font: 500 13px/1.3 "Manrope", system-ui, sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); max-width: calc(100% - 110px); }
.theme-preview-bar a { color: #121212; background: #fff; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.theme-preview-bar a:last-child { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
@media (max-width: 700px) {
  .theme-preview-bar { left: 10px; right: 84px; bottom: 14px; transform: none; max-width: none; border-radius: 12px; padding: 8px 10px; gap: 6px 8px; font-size: 12px; }
  .theme-preview-bar span { flex-basis: 100%; }
  .theme-preview-bar a { padding: 5px 10px; }
}

/* ---------- brand logo ---------- */
.brand { align-items: center; gap: 12px; line-height: 0; }
.brand.lv-light { display: var(--logo-light); }
.brand.lv-dark { display: var(--logo-dark); }
.brand-mark { height: 40px; width: auto; }
.brand-word { height: 14px; width: auto; }
.site-footer .brand-mark { height: 46px; }
.site-footer .brand-word { height: 15px; }
@media (max-width: 420px) { .brand-mark { height: 34px; } .brand-word { height: 12px; } .brand { gap: 10px; } }

/* ---------- packages: groups, dual prices, add-ons, bundle offer ---------- */
@media (max-width: 980px) { .pkg-grid { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); max-width: none; } }
.pkg-group-head { margin-bottom: 44px; }
.pkg-group-head .lead { margin-left: auto; margin-right: auto; }
.pkg-price .pkg-res { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pkg-price .pkg-res + .pkg-res { margin-top: 6px; }
.pkg-price .pkg-res small { margin: 0; }
.pkg-price .pkg-res strong { font-size: 1.75rem; }
.pkg-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.pkg-jump a { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text-2); }
.lang-si .pkg-jump a { letter-spacing: .02em; text-transform: none; font-size: 14px; }
.pkg-jump a:hover { border-color: var(--accent); color: var(--text); }
.addon-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; border-top: 1px solid var(--line); }
.addon-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.addon-list li span { display: inline-flex; align-items: center; gap: 12px; }
.addon-list .icon { color: var(--accent); }
.addon-list b { font: 500 1.35rem var(--serif); color: var(--accent-2); white-space: nowrap; }
.bundle-band { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--accent-soft); border-radius: var(--radius); background: var(--bg-2); }
.bundle-band .h2 { margin-bottom: .3em; }
.bundle-band .lead { margin-bottom: 1.2em; }
.bundle-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.bundle-steps li { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
.bundle-steps li + li::before { content: "+"; margin-right: 10px; color: var(--accent); font-weight: 700; }
.bundle-side { text-align: center; display: grid; justify-items: center; gap: 12px; }
.bundle-pc { font: 500 2.2rem/1 var(--serif); color: var(--accent-2); }
.bundle-pc.big { font-size: clamp(4.5rem, 9vw, 7rem); }
.bundle-pc small { font-size: .45em; margin-left: 2px; }
.bundle-off { font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.lang-si .bundle-off { letter-spacing: .04em; text-transform: none; font-size: 14px; }
@media (max-width: 760px) { .bundle-band { grid-template-columns: 1fr; text-align: center; } .bundle-steps { justify-content: center; } }
.bundle-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin: 44px auto 0; padding: 18px 24px; max-width: 900px; border: 1px dashed var(--accent-soft); border-radius: var(--radius); text-align: center; }
.bundle-strip p { margin: 0; font-size: 1.05rem; }
[data-theme="ivory"] .bundle-band, [data-theme="sage"] .bundle-band, [data-theme="blush"] .bundle-band, [data-theme="modern"] .bundle-band { background: #fff; }
.field-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--accent-soft); border-radius: var(--radius); cursor: pointer; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.field-check span { font-size: .98rem; color: var(--text-2); }
.field-check b { color: var(--accent-2); }
@media (min-width: 1100px) { .pkg-grid.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pkg-grid.count-4 .pkg-card { padding: 34px 24px 28px; } }
@media (min-width: 700px) and (max-width: 1099px) { .pkg-grid.count-4, .pkg-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .pkg-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 340px)); } }
