/* =====================================================================
   Nobel Security Group — Design System (app.css)
   Palette: amber/gold + near-black + steel, on warm off-white.
   Sections: 1 Tokens · 2 Reset/Base · 3 Typography · 4 Layout ·
             5 Utilities · 6 Buttons · 7 Chips/Badges · 8 Forms ·
             9 Header/Nav · 10 Footer/FAB · 11 Cards · 12 Sections ·
             13 Components · 14 Motion · 15 Responsive
   ===================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Brand palette — light premium corporate */
  --ink:        #16181D;   /* near-black: headings & primary buttons */
  --ink-2:      #2C2F36;
  --ink-3:      #3A3D45;
  --steel:      #565961;   /* body copy */
  --muted:      #8E9099;
  --line:       #E7E4DD;   /* warm hairline */
  --line-2:     #F1EEE8;
  --paper:      #FCFBF8;   /* warm near-white canvas */
  --paper-2:    #F5F2EC;   /* ivory alt band */
  --surface:    #FFFFFF;

  --gold:       #B0862F;   /* refined accent — used sparingly */
  --gold-strong:#8C6820;   /* accent text on light (AA) */
  --gold-deep:  #6F521A;
  --gold-soft:  #EADEC2;
  --gold-tint:  #F8F2E4;
  --gold-glow:  #C9A24A;

  --ok:  #1F7A4D;
  --warn:#946012;
  --err: #B23B36;
  --ok-bg:#EAF3ED; --warn-bg:#F7EFDD; --err-bg:#F7E9E7;

  /* Typography — premium corporate sans */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.5vw, 2.375rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --fs-h4: clamp(1.1rem, 1.02rem + 0.35vw, 1.25rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lead: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing (8pt) */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(20,22,26,.06), 0 1px 3px rgba(20,22,26,.05);
  --sh-2: 0 6px 16px rgba(20,22,26,.08), 0 2px 6px rgba(20,22,26,.05);
  --sh-3: 0 18px 44px rgba(20,22,26,.14), 0 6px 14px rgba(20,22,26,.08);
  --sh-gold: 0 10px 30px rgba(232,144,27,.28);

  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,1,.36,1);
  --t-fast: .18s var(--ease);
  --t: .3s var(--ease);
}

/* ------------------------------------------------------------ 2. RESET/BASE */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--steel);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-strong); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-deep); }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* ------------------------------------------------------------ 3. TYPOGRAPHY */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--ink); font-weight: 600; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.6; font-family: var(--font-body); }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.text-gold { color: var(--gold-strong); }
.rich > * + * { margin-top: var(--sp-4); }
.rich h2, .rich h3 { margin-top: var(--sp-6); }
.rich ul { display: grid; gap: .55rem; }
.rich ul li { position: relative; padding-left: 1.6rem; }
.rich ul li::before { content: "\f00c"; font: 900 .8rem/1 "Font Awesome 6 Free"; color: var(--gold-strong); position: absolute; left: 0; top: .35rem; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }

/* Eyebrow label (refined, sans) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-body); font-weight: 600; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-strong);
  margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow--light { color: var(--gold-glow); }
.eyebrow--center { justify-content: center; }

/* ---------------------------------------------------------------- 4. LAYOUT */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 780px; }
.section { padding-block: clamp(3.25rem, 2.25rem + 4vw, 6rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--ink { background: var(--ink); color: #C7C9CF; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--paper2 { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-4); color: var(--steel); font-size: var(--fs-lead); }
.section--ink .section-head p { color: #A7AEB9; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* ------------------------------------------------------------- 5. UTILITIES */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-3{margin-top:var(--sp-3)}.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}
.mb-0{margin-bottom:0}.mb-4{margin-bottom:var(--sp-4)}.mb-6{margin-bottom:var(--sp-6)}
.hairline { height: 1px; background: var(--line); border: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------- 6. BUTTONS */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  line-height: 1; padding: .95rem 1.6rem; border-radius: 6px; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn i { font-size: .9em; }
.btn--primary { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: #000; box-shadow: 0 8px 22px rgba(22,24,29,.18); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #000; box-shadow: var(--sh-2); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; }
.btn--gold:hover { --btn-bg: var(--gold-strong); box-shadow: 0 8px 22px rgba(176,134,47,.28); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-fg: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--paper-2); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-fg: #fff; }
.btn--sm { padding: .68rem 1.1rem; font-size: var(--fs-xs); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: .98rem; }
/* Text-link CTA (premium, minimal) */
.tlink { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--ink); transition: gap var(--t), color var(--t), border-color var(--t); }
.tlink:hover { gap: .8rem; color: var(--gold-strong); border-color: var(--gold-strong); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------------------------------------------------------- 7. CHIPS/BADGES */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-display);
  padding: .4rem .8rem; border-radius: var(--r-pill);
  background: var(--gold-tint); color: var(--gold-deep); border: 1px solid var(--gold-soft);
}
.chip i { color: var(--gold-strong); }
.chip--dark { background: rgba(255,255,255,.06); color: #D6DAE1; border-color: rgba(255,255,255,.14); }
.chip--dark i { color: var(--gold-glow); }
.chip--ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: .2rem .6rem; border-radius: var(--r-sm); background: var(--paper-2); color: var(--steel); }
.badge--new { background: var(--ok-bg); color: var(--ok); }

/* ----------------------------------------------------------------- 8. FORMS */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field .req { color: var(--err); }
.input, .textarea, .select {
  width: 100%; padding: .85rem 1rem; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23565D69' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field-error { color: var(--err); font-size: var(--fs-xs); margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--sh-2); }

/* Flash / alerts */
.flash { padding: .85rem 0; font-weight: 500; }
.flash--success { background: var(--ok-bg); color: var(--ok); }
.flash--error { background: var(--err-bg); color: var(--err); }
.flash--info { background: var(--gold-tint); color: var(--gold-deep); }
.alert { padding: 1rem 1.15rem; border-radius: var(--r-sm); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.alert--success { background: var(--ok-bg); color: var(--ok); }
.alert--error { background: var(--err-bg); color: var(--err); }

/* ------------------------------------------------------------- 9. HEADER/NAV */
.topbar { background: var(--ink); color: #A7AEB9; font-size: var(--fs-xs); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: var(--sp-4); }
.topbar__meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__meta a, .topbar__badge { color: #C7CCD4; display: inline-flex; align-items: center; gap: .45rem; }
.topbar__meta a:hover { color: var(--gold-glow); }
.topbar__meta i, .topbar__badge i { color: var(--gold); }
.topbar__badge { color: #9AA1AC; }
.topbar__social { display: flex; gap: .35rem; }
.topbar__social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-pill); color: #C7CCD4; transition: background var(--t-fast), color var(--t-fast); }
.topbar__social a:hover { background: var(--gold); color: var(--ink); }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t), background var(--t); }
.header.is-scrolled { box-shadow: var(--sh-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--sp-5); }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 48px; height: 48px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; letter-spacing: -0.005em; line-height: 1.05; white-space: nowrap; }
.brand__text small { font-family: var(--font-body); font-weight: 500; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .8rem; border-radius: var(--r-sm); font-family: var(--font-body); font-weight: 500; font-size: .92rem; letter-spacing: .005em; color: var(--ink-2); transition: color var(--t-fast), background var(--t-fast); }
.nav__link:hover { color: var(--gold-strong); }
.nav__link.is-active { color: var(--gold-strong); }
.nav__link.is-active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px; background: var(--gold); border-radius: 2px; }
.nav__caret { font-size: .6rem; transition: transform var(--t-fast); }
.has-dropdown:hover .nav__caret { transform: rotate(180deg); }

.dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 1rem; opacity: 0; visibility: hidden; transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 120; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.dropdown__link { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: .92rem; transition: background var(--t-fast), color var(--t-fast); }
.dropdown__link i { color: var(--gold); font-size: .75rem; }
.dropdown__link:hover { background: var(--gold-tint); color: var(--gold-deep); }
.dropdown__foot { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; }
.dropdown__foot a { font-weight: 600; color: var(--ink-2); }
.dropdown__foot a:hover { color: var(--gold-strong); }
.dropdown__all { margin-left: auto; color: var(--gold-strong) !important; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__search { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2); border: 1px solid var(--line); transition: all var(--t-fast); }
.header__search:hover { border-color: var(--ink); color: var(--gold-strong); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20,22,26,.5); opacity: 0; transition: opacity var(--t); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 360px); background: var(--surface); box-shadow: var(--sh-3); transform: translateX(100%); transition: transform var(--t); display: flex; flex-direction: column; padding: var(--sp-5); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.drawer__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.drawer__close { width: 42px; height: 42px; border-radius: var(--r-sm); font-size: 1.3rem; color: var(--ink); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: .9rem .25rem; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.drawer__nav a.is-active, .drawer__nav a:hover { color: var(--gold-strong); }
.drawer__cta { margin-top: auto; padding-top: var(--sp-5); display: grid; gap: var(--sp-3); }

/* ------------------------------------------------------------ 10. FOOTER/FAB */
.footer { background: var(--ink); color: #9AA1AC; padding-top: clamp(3rem,5vw,5rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer__logo { width: 60px; height: 60px; object-fit: contain; margin-bottom: var(--sp-4); }
.footer__tagline { color: #A7AEB9; font-size: var(--fs-sm); max-width: 34ch; }
.footer__certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-4); }
.footer__title { color: #fff; font-size: 1rem; margin-bottom: var(--sp-4); font-family: var(--font-display); }
.footer__links { display: grid; gap: .6rem; }
.footer__links a, .footer__contact a { color: #A7AEB9; font-size: var(--fs-sm); }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold-glow); }
.footer__contact { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__contact li { display: flex; gap: .7rem; font-size: var(--fs-sm); }
.footer__contact i { color: var(--gold); margin-top: .25rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); padding-block: var(--sp-4); font-size: var(--fs-xs); }
.footer__legal { display: flex; gap: 1.2rem; }
.footer__legal a { color: #9AA1AC; }
.footer__legal a:hover { color: var(--gold-glow); }
.footer__credit { text-align: center; padding-block: var(--sp-4); font-size: var(--fs-xs); color: #8A909B; border-top: 1px solid rgba(255,255,255,.06); }
.footer__credit i { color: #E4655A; margin: 0 .1rem; }
.footer__credit a { color: var(--gold-glow); font-weight: 600; }
.footer__credit a:hover { color: #fff; }

/* ---- Lead-capture modal ---- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12,13,16,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: modalFade .2s ease; }
.modal__dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(92vw, 440px); max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: clamp(1.5rem, 4vw, 2.25rem); animation: modalIn .24s var(--ease); }
.modal__close { position: absolute; top: .7rem; right: .7rem; width: 38px; height: 38px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--steel); font-size: 1.1rem; transition: background var(--t-fast), color var(--t-fast); }
.modal__close:hover { background: var(--paper-2); color: var(--ink); }
.modal .eyebrow { margin-bottom: var(--sp-2); }
.modal__title { margin: .1rem 0 .35rem; }
.modal__lede { color: var(--steel); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.modal form .field { margin-bottom: var(--sp-3); }
.modal__note { font-size: var(--fs-xs); color: var(--muted); margin: .85rem 0 0; text-align: center; }
.modal__success { text-align: center; padding: var(--sp-3) 0 var(--sp-2); }
.modal__tick { font-size: 3rem; color: var(--gold-strong); line-height: 1; margin-bottom: var(--sp-3); }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%,-46%) scale(.98); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal__dialog, .modal__backdrop { animation: none; } }

/* ---- Form enhancements: leading icons, select, math captcha ---- */
.field--icon { position: relative; }
.field--icon > i { position: absolute; left: 1rem; top: 1.5rem; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; z-index: 2; }
.field--icon .input, .field--icon .select { padding-left: 2.6rem; }
.field--captcha { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .75rem .85rem; }
.field--captcha label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); margin-bottom: .45rem; }
.field--captcha b { color: var(--gold-strong); font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }
.field--captcha .input { max-width: 140px; }
.modal__note i { color: var(--gold-strong); margin-right: .3rem; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: .6rem; }
.fab__btn { width: 52px; height: 52px; padding: 0; line-height: 1; border-radius: var(--r-pill); display: grid; place-items: center; color: #fff; font-size: 1.25rem; box-shadow: var(--sh-3); transition: transform var(--t-fast); }
.fab__btn > i { display: block; }
.fab__btn:hover { transform: scale(1.08); color: #fff; }
.fab__btn--wa { background: #25D366; }
.fab__btn--call { background: var(--gold); color: var(--ink); }
.fab__btn--top { background: var(--ink); opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t-fast); }
.fab__btn--top.is-visible { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ 11. CARDS */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: var(--sp-6); transition: box-shadow var(--t), border-color var(--t); }
.card:hover { box-shadow: 0 12px 40px rgba(22,24,29,.07); border-color: var(--ink); }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center; justify-content: flex-start; font-size: 1.5rem; color: var(--gold-strong); margin-bottom: var(--sp-4); transition: color var(--t); }
.card__title { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--gold-strong); }
.card__text { font-size: var(--fs-sm); }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--sp-4); font-weight: 600; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--gold-strong); }
.card__more i { transition: transform var(--t-fast); }
.card:hover .card__more i { transform: translateX(4px); }

/* Media card (image on top) */
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.mcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.mcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.05); }
.mcard__body { padding: var(--sp-5); }
.mcard__meta { display: flex; gap: .8rem; font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-2); }

/* ------------------------------------------------------------- 12. SECTIONS */
.breadcrumbs { font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-strong); }
.breadcrumbs span[aria-current] { color: var(--ink-2); }
.breadcrumbs .sep { color: var(--line); }

.page-hero { position: relative; background: var(--ink); color: #C7CCD4; padding-block: clamp(3rem, 4vw, 5rem); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 400px at 80% -10%, rgba(232,144,27,.16), transparent 60%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: #fff; margin-top: var(--sp-4); }
.page-hero p { color: #A7AEB9; margin-top: var(--sp-3); font-size: var(--fs-lead); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); color: var(--gold); line-height: 1; letter-spacing: -.03em; }
.stat__label { margin-top: var(--sp-2); font-size: var(--fs-sm); color: inherit; }

/* --------------------------------------------------------- 13. COMPONENTS */
/* Accordion */
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); color: var(--ink); }
.accordion__btn .ico { flex: none; width: 30px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-strong); transition: transform var(--t), background var(--t), color var(--t); }
.accordion__item.is-open .accordion__btn .ico { background: var(--gold); color: var(--ink); transform: rotate(45deg); }
.accordion__panel { overflow: hidden; max-height: 0; transition: max-height var(--t); }
.accordion__panel-inner { padding: 0 0 1.25rem; color: var(--steel); }

/* Logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); align-items: center; }
.logo-wall__item { display: grid; place-items: center; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 90px; font-family: var(--font-display); font-weight: 700; color: var(--steel); text-align: center; font-size: var(--fs-sm); transition: color var(--t), border-color var(--t); }
.logo-wall__item:hover { color: var(--ink); border-color: var(--gold-soft); }
.logo-wall__item img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .7; transition: filter var(--t), opacity var(--t); }
.logo-wall__item:hover img { filter: none; opacity: 1; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); counter-reset: step; }
.step { position: relative; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold); -webkit-text-stroke: 0; }
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step h4 { margin: var(--sp-2) 0; }

/* Feature list with checks */
.checks { display: grid; gap: var(--sp-3); }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li i { color: var(--gold-strong); margin-top: .3rem; }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: var(--sp-7); }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: #C7CCD4; position: relative; overflow: hidden; padding-block: clamp(2.5rem, 3vw, 4rem); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 300px at 90% 120%, rgba(232,144,27,.18), transparent 60%); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band__text { color: #A7AEB9; margin-top: var(--sp-2); max-width: 46ch; }
.cta-band__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* Stars */
.stars { display: inline-flex; gap: .15rem; color: var(--gold); }
.stars .is-empty { color: var(--line); }

/* Testimonial card */
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-1); }
.tcard__quote { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.6; margin: var(--sp-3) 0 var(--sp-5); }
.tcard__who { display: flex; align-items: center; gap: .9rem; }
.tcard__avatar { width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--gold-tint); color: var(--gold-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.tcard__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.tcard__role { font-size: var(--fs-xs); color: var(--muted); }

/* --------------------------------------------------------------- 14. MOTION */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"]{transition-delay:.08s}[data-reveal-delay="2"]{transition-delay:.16s}[data-reveal-delay="3"]{transition-delay:.24s}[data-reveal-delay="4"]{transition-delay:.32s}[data-reveal-delay="5"]{transition-delay:.4s}
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* =====================================================================
   SITE-WIDE PREMIUM POLISH — matches the homepage's depth & finish.
   Applies to every page (app.css loads globally). Pure CSS on tokens.
   ===================================================================== */
:root {
  --gold-bright: #E3A63C;                     /* accent on dark imagery */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Editorial section headings site-wide ---- */
.section-head h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.7rem); font-weight: 800; }

/* ---- Page hero: cinematic gradient, grain, stronger type ---- */
.page-hero { padding-block: clamp(3.5rem, 3rem + 4vw, 6rem);
  background: linear-gradient(158deg, #1b1f27 0%, var(--ink) 60%);
  border-bottom: 1px solid rgba(255,255,255,.05); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--grain); background-size: 220px 220px; opacity: .05;
  mix-blend-mode: overlay; pointer-events: none; }
.page-hero h1 { font-size: clamp(2.1rem, 1.55rem + 2.5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.page-hero .eyebrow--light { color: var(--gold-bright); }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.5); }
.page-hero .breadcrumbs a:hover { color: var(--gold-bright); }
.page-hero .breadcrumbs span[aria-current] { color: rgba(255,255,255,.85); }
.page-hero .breadcrumbs .sep { color: rgba(255,255,255,.22); }

/* ---- Cards: gold top-accent, lift, icon & arrow motion ---- */
.card { border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,22,26,.04);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold); transition: width .4s var(--ease); z-index: 1; }
.card:hover::before { width: 100%; }
.card:hover { transform: translateY(-5px); border-color: var(--gold-soft);
  box-shadow: 0 26px 52px -28px rgba(20,22,26,.42); }
.card__icon { transition: transform var(--t), color var(--t); }
.card:hover .card__icon { transform: translateY(-2px); color: var(--gold); }

/* card::before needs a positioning context */
.card { position: relative; }

/* ---- Image-led service card (services listing) ---- */
.svc-card { display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20,22,26,.04);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.svc-card:hover { transform: translateY(-6px); border-color: var(--gold-soft);
  box-shadow: 0 30px 60px -34px rgba(20,22,26,.45); }
.svc-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,13,16,.55), transparent 55%); }
.svc-card__icon { position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 1.05rem; border: 1px solid rgba(255,255,255,.28); }
.svc-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.svc-card__title { font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: var(--sp-2); }
.svc-card__text { color: var(--steel); font-size: var(--fs-sm); margin: 0 0 var(--sp-4); flex: 1; }
.svc-card__more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600;
  font-size: var(--fs-sm); color: var(--gold-strong); }
.svc-card__more i { transition: transform var(--t); }
.svc-card:hover .svc-card__more i { transform: translateX(4px); }

/* ---- Chip row (service "where it fits" tags) ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---- CTA band: film grain over the ink ---- */
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--grain); background-size: 220px 220px; opacity: .05;
  mix-blend-mode: overlay; pointer-events: none; }
.btn--onimg:hover { box-shadow: 0 12px 30px -8px rgba(227,166,60,.5); }

/* ---- About "story" media panel (was unstyled) ---- */
.overview__media { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, #1b1f27, var(--ink)); display: grid; place-items: center;
  box-shadow: 0 50px 90px -50px rgba(20,22,26,.55); }
.overview__media::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(227,166,60,.16), transparent 60%); }
.overview__media::after { content: ""; position: absolute; inset: 0; background: var(--grain);
  background-size: 220px 220px; opacity: .06; mix-blend-mode: overlay; }
.overview__watermark { font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem); letter-spacing: -.05em; color: rgba(255,255,255,.06); user-select: none; }
.overview__badge { position: absolute; right: clamp(1rem, 3vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-3); display: grid; gap: .1rem; z-index: 2; }
.overview__badge b { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold-strong); line-height: 1; }
.overview__badge span { font-size: var(--fs-xs); color: var(--steel); font-weight: 600; line-height: 1.3; }

/* ---- Process steps: gold numerals + connecting rhythm ---- */
.step__num { color: var(--gold-strong); letter-spacing: -.02em; }
.step h4 { letter-spacing: -.01em; }

/* ---- Focus & selection niceties ---- */
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- Rich (DB-driven) content stays contained & responsive ---- */
.rich img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.rich table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich pre { overflow-x: auto; }

/* ----------------------------------------------------------- 15. RESPONSIVE */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { gap: var(--sp-5); }
}
@media (max-width: 640px) {
  .topbar__meta a:not(:first-child), .topbar__badge { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .page-hero { padding-block: clamp(2.5rem, 8vw, 3.75rem); }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 460px) {
  .container { padding-inline: var(--sp-4); }
  .btn--lg { padding: .95rem 1.4rem; font-size: .94rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
