/* ==========================================================================
   Lavish Touch — Global Styles
   1. Tokens
   2. Reset & base
   3. Typography
   4. Layout helpers
   5. Buttons & links
   6. Preloader, cursor
   7. Header & navigation
   8. Page hero (inner pages)
   9. Shared sections (CTA band, section heads, media)
   10. Forms
   11. Modal
   12. Footer
   13. Motion helpers
   14. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Light theme, built around the logo's gold.
     Surfaces */
  --bg: #f7f0e3;              /* page base (bright ivory linen) */
  --surface: #f0e4cf;         /* alternate sections */
  --paper: #fffaf2;           /* cards, panels, light bands */
  --line: #e2cfae;            /* borders and rules */
  /* Text */
  --text: #241a12;            /* primary text */
  --text-muted: #5f4f3e;      /* secondary text (AA on all surfaces) */
  --accent: #8f5418;          /* links, active states, small gold text */
  --on-gold: #241a12;         /* text placed on the gold gradient */
  /* Brand gold (from the logo) */
  --gold: #c98f45;
  --bronze: #8a5620;
  --wordmark: #f0cf86;

  /* Dark scheme values, used on photo heroes and the footer */
  --dark-bg: #1a130e;
  --dark-surface: #241b14;
  --dark-text: #f7efe2;
  --dark-muted: rgba(247, 239, 226, .8);
  --dark-accent: #f8d48a;
  --dark-line: rgba(243, 208, 144, .3);

  --gold-gradient: linear-gradient(135deg, #fde7ae 0%, #ecc073 38%, #c98f45 70%, #9a6a35 100%);
  --gold-line: linear-gradient(90deg, transparent, var(--gold), transparent);

  /* Mandala ornament fills: deeper gold on light surfaces, logo gold on dark, jewel tones ring by ring */
  --mandala-fill: linear-gradient(135deg, #e2a650 0%, #c0802f 50%, #8f5418 100%);
  --mandala-jewel: radial-gradient(circle closest-side,
    #f6cf7a 0%, #f6cf7a 13%, #e2477f 15%, #f08a3c 28%, #f6cf7a 31%, #f6cf7a 34%,
    #19b3ad 36%, #2c6fd6 56%, #f6cf7a 59%, #f6cf7a 61%, #f08a3c 63%, #e2477f 79%,
    #f6cf7a 81%, #f6cf7a 83%, #8b4fd8 85%, #19b3ad 98%);

  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;   /* even strokes, no hairlines */
  --font-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  /* Type scale — larger base for comfortable reading */
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-base: 1.125rem;
  --fs-md: 1.375rem;
  --fs-lg: clamp(1.7rem, 2.5vw, 2.2rem);
  --fs-xl: clamp(2.3rem, 4.4vw, 3.8rem);
  --fs-2xl: clamp(2.8rem, 6.4vw, 5.6rem);
  --fs-3xl: clamp(3.1rem, 8vw, 7.2rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark scope: photo heroes, solution panels, header + mobile menu, footer.
   Re-points the semantic tokens so every component inside just works. */
.hero,
.page-hero,
.product-hero,
.space,
.site-footer,
.site-header,
.mobile-menu {
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --paper: var(--dark-surface);
  --line: var(--dark-line);
  --text: var(--dark-text);
  --text-muted: var(--dark-muted);
  --accent: var(--dark-accent);
  --gold: #e6b968;
  --mandala-fill: var(--gold-gradient);
  color: var(--text);
}

/* 2. Reset & base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 1000;
  padding: .75rem 1.25rem; background: var(--accent); color: var(--on-gold);
}
.skip-link:focus { top: 1rem; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

em, .serif-italic { font-style: italic; }

p { max-width: 62ch; }
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--text); }
.muted { color: var(--text-muted); }
strong, b { font-weight: 500; }

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Small kicker used only where it names a real category */
.kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-sm); font-weight: 500; color: var(--accent); letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* 4. Layout helpers -------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--light { background: var(--paper); }
strong, b { font-weight: 500; }
.section--raised { background: var(--surface); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--top { align-items: start; }

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem;
  align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head p { color: var(--text-muted); }

.rule { height: 1px; background: var(--line); border: 0; }

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
  --btn-pad: 1rem 1.9rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  padding: var(--btn-pad);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out), transform .4s var(--ease-out);
  white-space: nowrap;
}
.btn--gold { background: var(--gold-gradient); color: var(--on-gold); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #241a12; transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn--gold:hover { color: #f7efe2; }
.btn--gold:hover::after { transform: translateY(0); }

.btn--ghost { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--ghost::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.btn--ghost:hover { color: var(--on-gold); }
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: left; }

.section--light .btn--ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--bronze); }
.section--light .btn--ghost:hover { color: var(--on-gold); }

.btn svg, .link-line svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent); font-weight: 500; padding-bottom: 4px;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(.3);
  transition: transform .5s var(--ease-out);
}
.link-line svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .4s var(--ease-out); }
.link-line:hover svg { transform: translateX(4px); }
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* 6. Preloader, cursor -------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: none; place-items: center;
  background: var(--dark-bg);
}
/* Logo in a gold medallion, with a mandala blooming and turning around it */
.preloader__mark { position: relative; display: grid; place-items: center; width: clamp(200px, 22vw, 280px); aspect-ratio: 1; }
.preloader__mark::before {
  content: ""; position: absolute; z-index: 1; width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: var(--dark-bg); box-shadow: 0 0 0 1px rgba(243, 208, 144, .55), 0 0 40px rgba(236, 192, 115, .25);
}
.preloader__mark img { position: relative; z-index: 2; width: 26%; height: auto; filter: drop-shadow(0 0 12px rgba(243, 200, 120, .35)); }
.preloader .mandala {
  inset: 0; width: 100%; opacity: .95; --mandala-fill: var(--gold-gradient);
  animation: mandala-spin 24s linear var(--loader-spin, 0s) infinite;   /* delay set from the clock in head.blade.php */
}
.js-preload .preloader { display: grid; animation: preloader-failsafe 0s 5s forwards; }
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.js-preload .preloader.is-hidden { display: none; }

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 997; pointer-events: none;
  border-radius: 50%; transform: translate3d(-50%, -50%, 0);
  opacity: 0; transition: opacity .3s;
}
.cursor { width: 7px; height: 7px; background: var(--bronze); }
.cursor-ring {
  width: 40px; height: 40px;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background .35s, opacity .3s;
}
/* The ring is a small turning mandala. Over links it shrinks and tucks below-right
   of the pointer, so the text under the pointer stays readable. */
.cursor-ring::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; translate: -50% -50%;
  background: linear-gradient(135deg, #f3cf7a 0%, #c98f45 50%, #8f5418 100%);
  -webkit-mask: url("../images/mandala-mini.svg") center / contain no-repeat;
  mask: url("../images/mandala-mini.svg") center / contain no-repeat;
  animation: mandala-spin 9s linear infinite;
  transition: left .35s var(--ease-out), top .35s var(--ease-out), width .35s var(--ease-out), height .35s var(--ease-out);
}
.cursor-ring.is-hover::before { left: 105%; top: 105%; width: 24px; height: 24px; animation-duration: 3s; }
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }

/* 7. Header & navigation --------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .5s, backdrop-filter .5s, transform .5s var(--ease-out), height .4s;
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(26, 19, 14, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--dark-line), 0 10px 30px rgba(20, 14, 9, .18);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand img { height: 44px; width: auto; transition: height .4s; filter: drop-shadow(0 0 10px rgba(243, 200, 120, .3)); }
.site-header.is-scrolled .brand img { height: 36px; }
.brand__name {
  font-size: 1rem; letter-spacing: .3em; font-weight: 500; color: var(--accent);
  text-transform: uppercase;    /* mirrors the logo's wordmark */
  background: linear-gradient(180deg, #fff1c9 0%, #f3cf86 55%, #d9a55a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand__text { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; line-height: 1; }
.brand__tagline {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .5625rem; letter-spacing: .28em; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; white-space: nowrap; opacity: .85;
}
.brand__tagline::before, .brand__tagline::after { content: ""; width: 1.25em; height: 1px; background: currentColor; opacity: .7; }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__link {
  position: relative; font-size: 1.0625rem; font-weight: 500; color: var(--text);
  padding-block: .5rem; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
  transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after, .nav__link:hover::after { transform: translateX(-50%) scale(1); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__actions .btn { --btn-pad: .75rem 1.4rem; }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--accent);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  background: var(--bg);
  clip-path: circle(0% at calc(100% - 44px) 42px);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
.mobile-menu ul { display: grid; gap: .5rem; }
.mobile-menu a.m-link {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 9.5vw, 3.4rem); line-height: 1.2; color: var(--text);
  display: inline-block; transform: translateY(30px); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .7s, color .3s;
}
.mobile-menu a.m-link.is-active, .mobile-menu a.m-link:hover { color: var(--accent); }
.mobile-menu.is-open a.m-link { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(1) a { transition-delay: .25s; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .3s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .35s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .4s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .45s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .5s; }
.mobile-menu__foot { margin-top: 3rem; color: var(--text-muted); font-size: 1.0625rem; font-weight: 500; display: grid; gap: .4rem; }

/* 8. Page hero (inner pages) ---------------------------------------------- */
.page-hero {
  position: relative; min-height: 78vh; min-height: 78svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(140deg, #3a2a1b, #1a130e); }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; filter: brightness(.68) saturate(1.1); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,14,9,.45) 0%, rgba(20,14,9,.1) 40%, rgba(20,14,9,.7) 100%);
}.page-hero__title { font-size: var(--fs-3xl); line-height: .98; max-width: 14ch; }
.page-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.page-hero__intro { max-width: 40ch; color: var(--text-muted); font-size: var(--fs-md); line-height: 1.55; }

.breadcrumb { display: flex; gap: .6rem; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }

/* 9. Shared sections ------------------------------------------------------- */
.media {
  position: relative; overflow: hidden; border-radius: 2px;
  background: linear-gradient(140deg, #e3d4bd, #efe3d1 55%, #d8c3a3);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.img-failed img, .space.img-failed img,
.hero__media.img-failed img, .page-hero__media.img-failed img { display: none; }
.media.img-failed::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 70px; height: 80px;
  background: url("../images/logo-mark.png") center / contain no-repeat; opacity: .55;
}

.cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: radial-gradient(120% 140% at 85% 0%, #fbe6bd 0%, var(--paper) 45%, var(--surface) 100%);
  border-block: 1px solid var(--line);
}
.cta-band__inner { display: grid; grid-template-columns: 1.4fr auto; align-items: end; gap: 2rem 4rem; }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 16ch; }
.cta-band p { color: var(--text-muted); margin-top: 1.25rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-band__mark {
  position: absolute; right: -4%; top: 50%; width: min(42vw, 520px);
  transform: translateY(-50%); opacity: .14; pointer-events: none;
}

/* Mandala ornament ---------------------------------------------------------
   Line art from mandala.svg used as a mask, so any colour or gradient fills it.
   Half-cut against a section edge with --left / --right. */
.has-mandala { isolation: isolate; overflow: clip; }
.mandala {
  position: absolute; z-index: -1; pointer-events: none;
  width: var(--mandala-size, min(78vw, 760px)); aspect-ratio: 1;
  background: var(--mandala-fill);
  -webkit-mask: url("../images/mandala.svg") center / contain no-repeat;
  mask: url("../images/mandala.svg") center / contain no-repeat;
  opacity: var(--mandala-opacity, .16);
  animation: mandala-spin 200s linear infinite;
}
.mandala--right { right: 0; top: 50%; translate: 50% -50%; }
.mandala--left { left: 0; top: 50%; translate: -50% -50%; }
/* Corner placements: a quarter to a third of the circle shows */
.mandala--top-right, .mandala--bottom-left, .mandala--bottom-right { --mandala-size: min(80vw, 660px); --mandala-opacity: .2; }
.mandala--top-right { top: 0; right: 0; translate: 45% -45%; }
.mandala--bottom-left { bottom: 0; left: 0; translate: -40% 22%; animation-direction: reverse; }
.mandala--bottom-right { bottom: 0; right: 0; translate: 40% 22%; animation-direction: reverse; }
.mandala--jewel { background: var(--mandala-jewel); }
/* Big-petal bloom (full colour artwork, like the gift box): jewel tones or gold */
.mandala--bloom, .mandala--bloom-gold { -webkit-mask: none; mask: none; background: url("../images/mandala-bloom.svg") center / contain no-repeat; }
.mandala--bloom-gold { background-image: url("../images/mandala-bloom-gold.svg"); }
@keyframes mandala-spin { to { rotate: 360deg; } }

/* Feature list with gold line icons */
.icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--accent); background: var(--paper);
  flex-shrink: 0;
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .6rem 1.15rem; border-radius: 999px; font-size: var(--fs-sm);
  font-weight: 500; color: var(--text-muted); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s, background .3s, box-shadow .3s;
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.chip.is-active { background: var(--gold-gradient); color: var(--on-gold); box-shadow: none; font-weight: 500; }

/* 10. Forms ---------------------------------------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.form__full { grid-column: 1 / -1; }
.field { position: relative; display: grid; gap: .45rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text);
  background: var(--paper); border: 1px solid var(--line);
  padding: .85rem 1rem; border-radius: 6px; transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a5626' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 122, 63, .18); }
.field input::placeholder, .field textarea::placeholder { color: #8c7b67; }
.field__line {
  display: none; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out); pointer-events: none;
}
.field:focus-within .field__line { transform: scaleX(1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0573f; }
.field__error { font-size: var(--fs-xs); font-weight: 500; color: #b4432c; min-height: 1em; }

.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; }
.choice-group legend { margin-bottom: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; font-size: var(--fs-sm);
  font-weight: 500; color: var(--text-muted); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  transition: all .3s;
}
.choice input:checked + span { background: var(--gold-gradient); color: var(--on-gold); box-shadow: none; font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__note { font-size: var(--fs-sm); color: var(--text-muted); }
.form__success {
  display: none; padding: 2.5rem; border: 1px solid var(--gold); border-radius: 8px;
  background: var(--paper);
}
.form__success h3 { margin-bottom: .75rem; }
.form.is-sent { display: none; }
.form.is-sent + .form__success { display: block; }

/* 11. Modal ---------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: var(--gutter);
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(36, 26, 18, .55);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(100%, 1040px); max-height: 88vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 40px 100px rgba(36, 26, 18, .25);
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__media { min-height: 360px; }
.modal__body { padding: clamp(2rem, 4vw, 3.25rem); display: grid; gap: 1.25rem; align-content: start; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--accent); box-shadow: 0 0 0 1px var(--line);
  transition: transform .4s var(--ease-out);
}
.modal__close:hover { transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; }
.spec-list { display: grid; gap: .65rem; }
.spec-list li { display: flex; gap: .75rem; color: var(--text); font-size: var(--fs-sm); }
.spec-list li::before { content: ""; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { position: relative; padding-top: clamp(4rem, 8vw, 7rem); background: var(--bg); overflow: hidden; }
.site-footer .mandala { --mandala-size: min(90vw, 680px); --mandala-opacity: .2; top: 0; right: 0; translate: 45% -45%; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 4rem; }
.footer__brand img { width: 150px; margin-bottom: 1.5rem; }
.footer__brand .kicker { display: flex; margin-bottom: 1rem; }
.footer__brand p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 34ch; }
.footer__title { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--accent); margin-bottom: 1.25rem; letter-spacing: .03em; }
.footer__links { display: grid; gap: .6rem; font-size: var(--fs-sm); color: var(--text-muted); }
.footer__links a { transition: color .3s, padding .3s var(--ease-out); }
.footer__links a:hover { color: var(--accent); padding-left: 6px; }

.newsletter { display: flex; border-bottom: 1px solid var(--line); margin-top: 1rem; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); padding: .8rem 0; font: inherit; }
.newsletter input:focus { outline: none; }
.newsletter button { color: var(--accent); padding-left: 1rem; font-size: var(--fs-sm); font-weight: 500; }
.newsletter-msg { font-size: var(--fs-xs); color: var(--gold); margin-top: .5rem; min-height: 1.2em; }

.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); transition: all .35s;
}
.socials a:hover { color: var(--on-gold); background: var(--gold-gradient); box-shadow: none; }
.socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.footer__wordmark {
  font-family: var(--font-body); font-weight: 300; text-transform: uppercase;
  font-size: clamp(2.4rem, 10.4vw, 10.5rem); letter-spacing: .12em; line-height: .85;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(240,207,134,.42), rgba(240,207,134,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; margin-bottom: -1.2vw;
}
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-muted);
}
.footer__bottom a:hover { color: var(--accent); }
.footer__credit { font-size: .78rem; opacity: .75; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }

.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--accent); box-shadow: 0 8px 24px rgba(36, 26, 18, .14);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease-out);
}
/* The button's own border doubles as the scroll progress (--progress 0..1, set by main.js) */
.to-top::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress, 0) * 1turn), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; position: relative; z-index: 1; }

/* 13. Motion helpers ------------------------------------------------------- */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: block; will-change: transform; }

.js [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; }
  .cursor, .cursor-ring { display: none; }
  .mandala, .preloader .mandala { animation: none; }
}

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .split, .section-head, .cta-band__inner { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { min-height: 240px; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand__text { display: none; }
  .nav__actions .btn { display: none; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-hero { min-height: 70svh; }
}

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
