/* ── Brava theme — static styles ─────────────────────────────────────────── */
/* The only dynamic value is .brava-mark's mask URL, which is injected by     */
/* front-page.php as a tiny inline <style> so servers don't need to process   */
/* this file as PHP.                                                            */

/* ── Palette tokens (overridden at runtime by the Tweaks panel) ─────────── */
:root {
  --c-ivory:     245 239 228;
  --c-paper:     251 247 238;
  --c-ink:        30  30  30;
  --c-terra:     192 102  58;
  --c-terraDeep: 156  79  44;
  --c-gold:      201 168  76;
  --c-sage:      138 158 140;
  --c-sageDeep:   94 117  97;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: rgb(var(--c-ivory) / 1);
  color: rgb(var(--c-ink) / 1);
  font-family: var(--font-sans);
  transition: background-color .5s ease, color .5s ease;
  margin: 0;
}
/* WordPress admin bar adds margin-top to <html>; keep it visible */
body.admin-bar #wpadminbar { position: fixed; }

h1, h2, h3 { font-family: var(--font-serif); }

/* ── Grain overlay ─────────────────────────────────────────────────────────── */
.grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: multiply; opacity: .18;
}

/* ── Reveal animation ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Underline link ────────────────────────────────────────────────────────── */
.ul-link { position: relative; }
.ul-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.ul-link:hover::after { transform: scaleX(1); }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.pill { border-radius: 999px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-sage  { background: rgb(var(--c-sageDeep) / 1); color: rgb(var(--c-ivory) / 1); }
.btn-sage:hover  { filter: brightness(.92); }
.btn-terra { background: rgb(var(--c-terra) / 1); color: rgb(var(--c-ivory) / 1); }
.btn-terra:hover { background: rgb(var(--c-terraDeep) / 1); }
.btn-outline { border: 1px solid currentColor; }

/* ── Cards & images ────────────────────────────────────────────────────────── */
.card-hover { transition: transform .5s ease, box-shadow .5s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(30,30,30,.25); }
.img-zoom img { transition: transform 1.1s ease; }
.img-zoom:hover img { transform: scale(1.06); }

/* ── Select arrow ──────────────────────────────────────────────────────────── */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='currentColor' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(to right, transparent, #1E1E1E33, transparent); }

/* ── Modal animations ──────────────────────────────────────────────────────── */
@keyframes modalIn  { from { opacity:0; transform: scale(0.97); } to { opacity:1; transform: scale(1); } }
@keyframes modalOut { from { opacity:1; transform: scale(1);   } to { opacity:0; transform: scale(0.97); } }
.animate-modal-in  > .relative { animation: modalIn  .28s cubic-bezier(.2,.7,.2,1) both; }
.animate-modal-out > .relative { animation: modalOut .25s ease both; }

/* ── Line-clamp ────────────────────────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Hero Ken-Burns ────────────────────────────────────────────────────────── */
@keyframes kenburns-in  { from { transform: scale(1.06) translate(-1%,0); } to { transform: scale(1.18) translate(1%,-1%); } }
@keyframes kenburns-out { from { transform: scale(1.18) translate(1%,-1%); } to { transform: scale(1.06) translate(-1%,0); } }
.kb-a { animation: kenburns-in  9s ease-in-out both; }
.kb-b { animation: kenburns-out 9s ease-in-out both; }

/* ── Brava mark — base rule (mask-image URL injected inline by PHP) ────────── */
.brava-mark {
  display: inline-block;
  background-color: currentColor;
  /* mask-image is set by the inline <style> in front-page.php */
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  flex: 0 0 auto;
}

/* ── Blob mask ─────────────────────────────────────────────────────────────── */
.blob-frame {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360' preserveAspectRatio='none'><path d='M30,80 C20,40 60,18 110,22 C175,28 220,48 285,40 C355,32 410,8 480,18 C560,30 590,80 580,150 C572,210 600,260 575,310 C545,360 470,348 400,340 C320,330 250,360 170,348 C95,338 22,330 18,270 C14,210 40,170 30,80 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360' preserveAspectRatio='none'><path d='M30,80 C20,40 60,18 110,22 C175,28 220,48 285,40 C355,32 410,8 480,18 C560,30 590,80 580,150 C572,210 600,260 575,310 C545,360 470,348 400,340 C320,330 250,360 170,348 C95,338 22,330 18,270 C14,210 40,170 30,80 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
