/* ==========================================================================
   Monin Breff Group — shared design system
   Every brand site uses this file. Each site's theme.css only changes the
   tokens below (colours, fonts) plus anything unique to that brand.
   ========================================================================== */

:root {
  /* brand tokens (overridden per site in theme.css) */
  --brand: #ed1c24;
  --brand-ink: #ffffff;          /* text on top of --brand */
  --accent: #fdb913;
  --accent-2: #f7941d;

  /* neutrals */
  --bg: #0f1013;
  --bg-2: #16171c;
  --surface: #1c1d23;
  --line: #2a2c34;
  --text: #f2f2f4;
  --muted: #a6a8b3;

  --light-bg: #f6f5f2;
  --light-surface: #ffffff;
  --light-line: #e4e2dc;
  --light-text: #16171c;
  --light-muted: #5d5f6a;

  /* type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.sr-only { position: absolute; 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: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light .muted, .section-light .lede { color: var(--light-muted); }
.section-alt { background: var(--bg-2); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-light .eyebrow { color: var(--brand); }
.display { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 900; letter-spacing: -.035em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.hl { color: var(--brand); }
.hl-accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.section-light .btn-ghost:hover { background: var(--light-text); color: var(--light-bg); border-color: var(--light-text); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .2s ease; }
.btn.arrow::after { margin-left: 0; }
a:hover > .arrow::after, .btn:hover.arrow::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--muted); transition: color .15s ease; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active { box-shadow: inset 0 -2px 0 var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; position: relative; margin: 0 auto; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a.is-active { box-shadow: none; color: var(--brand); }
  .nav-cta { margin-top: 18px; }
}

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.section-light .card { background: var(--light-surface); border-color: var(--light-line); }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: 1rem; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; gap: 8px; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--brand); }
.tick-list li { position: relative; padding-left: 28px; margin: 8px 0; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 900 2.6rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--brand); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); background: var(--brand); color: var(--brand-ink); }
.cta-band .lede { color: color-mix(in srgb, var(--brand-ink) 85%, transparent); }
.cta-band .btn-primary { background: var(--bg); color: var(--text); }
.cta-band .btn-ghost:hover { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-2); transition: border-color .15s ease, box-shadow .15s ease; }
.section-light .field input, .section-light .field textarea, .section-light .field select { background: #fff; border-color: var(--light-line); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
.field .err { display: none; color: #ff6b6b; font-size: .88rem; margin-top: 6px; }
.section-light .field .err { color: #c0262d; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff6b6b; }
.field.has-error .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-status.is-ok { display: block; background: #e7f8ec; color: #145c2c; }
.form-status.is-bad { display: block; background: #fdeaea; color: #8a1a1f; }
.form-note { font-size: .88rem; }

/* ---------- footer ---------- */
.site-footer { background: #0a0a0c; border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .97rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer-about img { height: 46px; width: auto; margin-bottom: 18px; }
@media (min-width: 901px) { .footer-about img { height: 52px; } }   /* larger on desktop only */
.footer-about p { color: var(--muted); max-width: 40ch; }
.footer-h { font: 700 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-nav li { margin: 8px 0; }
.footer-nav a, .footer-about a { text-decoration: none; }
.footer-nav a:hover, .footer-about a:hover { color: var(--brand); }
.footer-nav a.is-active { color: var(--text); box-shadow: none; }
.fam-list { display: grid; gap: 10px; }
.fam-item a, .fam-item.is-here { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease; }
.fam-item a:hover { border-color: var(--brand); }
.fam-item.is-here { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.fam-name { font-weight: 700; }
.fam-tag { font-size: .85rem; color: var(--muted); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--text); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- simple prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose a { color: var(--brand); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }

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

/* ---------- language switcher + header tools ---------- */
.header-tools { display: flex; align-items: center; gap: 10px; order: 3; }
.site-nav { order: 2; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font: 700 .78rem/1 var(--font-body); letter-spacing: .06em; }
.lang-switch a, .lang-switch .lang-current { padding: 7px 10px; border-radius: 999px; text-decoration: none; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch .lang-current { background: var(--brand); color: var(--brand-ink); }

/* "View this page in your language?" banner */
.lang-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lang-banner p { margin: 0; flex: 1 1 220px; font-weight: 600; }
.lang-banner .btn-row { gap: 8px; }
.lang-banner button.btn-ghost { color: var(--muted); }

/* ==========================================================================
   Shared page sections (used by every brand; colours follow the brand tokens)
   ========================================================================== */

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero .display em { font-style: normal; color: var(--brand); }
.hero .lede { margin: 22px 0 34px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(60%, 260px); }
}

/* ---------- inner-page header ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; max-width: 16ch; }

/* ---------- brand-family cards ---------- */
.family-card { position: relative; display: flex; flex-direction: column; text-decoration: none; }
.family-card .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 16px; }
.family-card .card-link { margin-top: auto; padding-top: 14px; }

/* ---------- packages / plans ---------- */
.package { display: flex; flex-direction: column; }
.package .tick-list { margin: 18px 0 26px; }
.package .btn { margin-top: auto; align-self: flex-start; }
.package.is-featured { border: 2px solid var(--brand); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 45%); }
.section-light .package.is-featured { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, #fff), #fff 45%); }
.badge { align-self: flex-start; font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); margin-bottom: 16px; }
.package .for { font-weight: 600; color: var(--accent-2); margin-bottom: 6px; }
.section-light .package .for { color: var(--brand); }

/* ---------- service detail rows ---------- */
.service-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: clamp(16px, 3vw, 40px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--light-line); }
.service-row:last-child { border-bottom: 1px solid var(--light-line); }
.service-row .icon { margin: 0; }
.service-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-aside .card + .card { margin-top: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > .card { order: -1; } }

/* ---------- 404 / thank-you ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound img { width: 160px; margin: 0 auto 20px; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.nav-cta { white-space: nowrap; }
