/* FREDICAM SARL — website & administration styles.
   Brand colours are taken from the official logo (navy #012259, corporate blue #0068cb, red #e30916). */
:root {
  --navy: #012259;
  --navy-2: #011a44;
  --navy-3: #002f71;
  --blue: #0068cb;
  --blue-soft: #e7f1fc;
  --red: #e30916;
  --red-dark: #bf020d;
  --red-soft: #fde8ea;
  --white: #fff;
  --gray-50: #f5f7fb;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #66768b;
  --text: #11294c;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(1, 34, 89, .08), 0 4px 14px rgba(1, 34, 89, .06);
  --focus: 0 0 0 3px rgba(0, 104, 203, .35);
  /* Bundled Noto fonts (public/assets/fonts, SIL OFL) cover Latin, Cyrillic and Simplified Chinese wherever the
     system font does not; unicode-range subsets mean a page only downloads the glyphs it uses. */
  --font: "Segoe UI", "Noto Sans", system-ui, -apple-system, Roboto, Arial, "Noto Sans SC", sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", "Noto Sans", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-zh: "Noto Sans SC", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--gray-50); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: Consolas, monospace; font-size: .9em; background: var(--gray-100); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.muted { color: var(--gray-500); }
.small { font-size: .85em; }
.red { color: var(--red); }
.center { text-align: center; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none !important; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy-3); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost.danger, .danger { color: var(--red); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { min-height: 50px; padding: 12px 26px; font-size: 15px; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; margin-bottom: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: #fff; color: var(--navy); }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn.danger { color: var(--red); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; min-width: 0; }
.field label, .cb-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .copy-input, .inline-form input:not([type=checkbox]):not([type=file]), .toolbar input, .toolbar select, .note-form textarea, .refund-form input {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .note-form textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--blue); box-shadow: var(--focus); outline: none; }
.field input:disabled, .field textarea:disabled, .field select:disabled { background: var(--gray-100); color: var(--gray-500); }
.field.has-error input, .field.has-error textarea, .field.has-error select, input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: var(--red); }
.field-error { display: block; color: var(--red); font-size: 13px; margin-top: 4px; font-weight: 600; }
.help { display: block; color: var(--gray-500); font-size: 12px; margin-top: 4px; }
.req { color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 10px 0; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.form-row, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.file-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 13px; background: #fff; }
.file-label input { position: absolute; left: -9999px; }
.file-label:focus-within { box-shadow: var(--focus); }
.inline { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.inline-form input:not([type=checkbox]):not([type=file]) { width: auto; flex: 1; min-width: 140px; }
.grid-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.grid-form .field { flex: 1 1 160px; margin-bottom: 0; }
.grid-form .field.grow, .toolbar .grow { flex: 3 1 220px; }
.password-field { position: relative; }
.password-field button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-500); }

/* ---------- Flash & badges ---------- */
.flash-stack { max-width: 1240px; margin: 12px auto 0; padding: 0 16px; }
.admin-shell .flash-stack { max-width: none; margin: 12px 24px 0; padding: 0; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 10px; font-weight: 600; border: 1px solid; }
.flash-success { background: var(--green-soft); color: #14532d; border-color: #86efac; }
.flash-error { background: var(--red-soft); color: #7f1d1d; border-color: #fca5a5; }
.flash-info { background: var(--blue-soft); color: var(--navy); border-color: #a9cdf5; }
.flash span { flex: 1; }
.flash-close { background: none; border: 0; color: inherit; padding: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--gray-100); color: var(--gray-500); white-space: nowrap; }
.badge-published, .badge-active, .badge-completed, .badge-paid, .badge-sent, .badge-verified, .badge-success, .badge-succeeded, .badge-approved, .badge-converted, .badge-live, .badge-done, .badge-replied, .badge-available { background: var(--green-soft); color: #166534; }
.badge-ongoing, .badge-issued, .badge-queued, .badge-in_progress, .badge-reviewing, .badge-quoted, .badge-sandbox, .badge-read, .badge-scheduled, .badge-pending, .badge-initiated, .badge-sending, .badge-on_request { background: var(--blue-soft); color: var(--blue); }
.badge-on_hold, .badge-partially_paid, .badge-draft, .badge-medium, .badge-warning, .badge-unpublished, .badge-live_pending, .badge-limited, .badge-blocked, .badge-test, .badge-disabled { background: var(--amber-soft); color: var(--amber); }
.badge-cancelled, .badge-failed, .badge-void, .badge-rejected, .badge-reversed, .badge-high, .badge-overdue, .badge-new, .badge-spam, .badge-expired, .badge-unavailable, .badge-inactive, .badge-refunded { background: var(--red-soft); color: var(--red-dark); }
.badge-not_configured, .badge-archived, .badge-planning, .badge-low, .badge-closed, .badge-open { background: var(--gray-100); color: var(--gray-500); }
.yes { color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Cards & shared blocks ---------- */
.card, .panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state > .icon { width: 44px; height: 44px; color: var(--gray-300); margin: 0 auto 12px; display: block; }
.empty-mini { color: var(--gray-500); font-size: 14px; padding: 8px 0; margin: 0; }
.empty-note { color: var(--gray-500); list-style: none; padding: 12px 0; }
.empty-note.light { color: #cfd8e6; }
.error-state .error-code { font-family: var(--font-display); font-size: 64px; color: var(--red); margin: 0; line-height: 1; }
.note { font-size: 13px; color: var(--gray-500); background: var(--gray-50); border-left: 3px solid var(--blue); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.progress { display: inline-block; width: 80px; height: 8px; background: var(--gray-200); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--navy-3)); border-radius: 999px; }
.progress-lg { width: 100%; height: 12px; }
.progress-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }

/* ======================================================================
   PUBLIC WEBSITE
   ====================================================================== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.announcement { text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 600; background: var(--navy); color: #fff; }
.announcement a { color: #fff; }
.announcement-warning { background: var(--amber-soft); color: var(--amber); }
.announcement-success { background: var(--green-soft); color: #166534; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(1,34,89,.08); }
.site-header-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand img { width: 200px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: flex-end; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 10px 10px; font-weight: 700; font-size: 14px; color: var(--navy); border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.site-nav ul a:hover, .site-nav ul a.active { color: var(--red); border-bottom-color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search { display: flex; align-items: center; border: 1px solid var(--gray-300); border-radius: 999px; padding: 0 4px 0 12px; height: 38px; }
.nav-search input { border: 0; outline: 0; width: 110px; background: transparent; font-size: 13px; }
.nav-search button { border: 0; background: none; color: var(--navy); padding: 6px; display: flex; }
/* Language selector (partials/lang_switcher.php): native <details> disclosure; no flags. */
.lang-menu { position: relative; flex: none; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 10px 6px 11px; border: 1px solid var(--blue); border-radius: var(--radius-sm); color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; background: #fff; user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { background: var(--blue-soft); }
.lang-menu > summary:focus-visible { box-shadow: var(--focus); outline: none; }
.lang-menu[open] > summary { background: var(--blue); color: #fff; }
.lang-menu-chevron { transition: transform .15s; }
.lang-menu[open] .lang-menu-chevron { transform: rotate(180deg); }
.lang-menu-code { display: none; }
.lang-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 90; width: max-content; min-width: 230px; max-width: min(320px, calc(100vw - 32px)); max-height: min(70vh, 380px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; margin: 0; }
.lang-menu.align-start .lang-menu-panel { right: auto; left: 0; }
.lang-menu.drop-up .lang-menu-panel { top: auto; bottom: calc(100% + 6px); }
.lang-menu-title { margin: 2px 8px 6px; font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.lang-menu-list, .site-nav .lang-menu-list { display: block; list-style: none; margin: 0; padding: 0; }
.site-nav .lang-menu-list li { border: 0; padding: 0; }
.lang-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 7px 10px; border: 0; border-radius: 4px; background: none; color: var(--navy); text-align: left; cursor: pointer; }
.lang-option:hover { background: var(--gray-100); }
.lang-option:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-soft); }
.lang-option.is-active { background: var(--blue-soft); color: var(--blue); }
.lang-option-text { display: flex; flex-direction: column; min-width: 0; }
.lang-option-native { font-weight: 700; font-size: 14px; line-height: 1.3; }
.lang-option-name { font-size: 12px; color: var(--gray-500); line-height: 1.3; }
.lang-option-check { flex: none; width: 18px; display: inline-flex; color: var(--blue); }
.lang-menu.is-loading > summary { opacity: .7; cursor: progress; }
:lang(zh-CN), :lang(zh) { font-family: var(--font-zh); }
html:lang(zh-CN) body { --font-display: var(--font-zh); line-break: strict; word-break: normal; }
.nav-toggle { display: none; background: none; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--navy); }
/* Drawer-only parts of the navigation (see the max-width: 1080px block). */
.nav-drawer-head, .nav-ico, .nav-chevron, .nav-quote-doc, .nav-backdrop { display: none; }
.nav-drawer-body { display: contents; }

.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
picture { display: contents; }
.hero-media { position: absolute; inset: 0; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,24,58,.97) 0%, rgba(1,34,89,.9) 38%, rgba(1,34,89,.45) 70%, rgba(1,34,89,.15) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 56px 20px 40px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; max-width: 520px; color: #dbe6f5; }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; color: #fff; margin: 14px 0 18px; letter-spacing: -.01em; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--red); }
.hero-lead { max-width: 560px; font-size: 18px; color: #e8eef7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.hero-benefits { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
.hero-benefits li { display: flex; gap: 10px; align-items: flex-start; }
.hero-benefits .icon { width: 28px; height: 28px; color: #fff; }
.hero-benefits strong { display: block; font-size: 14px; }
.hero-benefits small { color: #cbd7e8; font-size: 12px; }
.hero-slides { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-slide-chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); padding: 8px 12px; color: #fff; max-width: 260px; }
.hero-slide-chip span { display: block; font-size: 12px; color: #cbd7e8; }
.hero-stripe { position: absolute; right: -60px; bottom: -10px; width: 260px; height: 60px; background: linear-gradient(115deg, transparent 30%, var(--red) 30%, var(--red) 62%, var(--blue) 62%); transform: skewX(-20deg); z-index: 1; }

.section { padding: 64px 0; }
.section-muted { background: var(--gray-100); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section-dark .section-title, .section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.section-title.normal-case { text-transform: none; }
.section-intro { max-width: 420px; color: var(--gray-500); margin: 0; }
.section-sub { color: #dbe6f5; margin: 6px 0 0; }
.section-more { margin-top: 18px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.eyebrow.red { color: var(--red); }

.service-num { font-family: var(--font-display); color: var(--red); font-size: 20px; }
/* Homepage "What we do": numbered service cards (select = show photo, arrow = open page) + featured photo panel. */
.section-services { background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%); }
.section-services .section-intro { max-width: 600px; font-size: 18px; line-height: 1.5; color: #4f6280; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.svc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.svc-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid #dce5f0; border-radius: 14px; box-shadow: 0 2px 8px rgba(1, 34, 89, .05); transition: border-color .2s, box-shadow .2s, background .2s; }
.svc-card:hover { border-color: #c4d3e6; box-shadow: 0 6px 18px rgba(1, 34, 89, .08); }
.svc-card.is-active { background: #fff4f5; border-color: #f4b8be; box-shadow: inset 5px 0 0 var(--red), 0 8px 22px rgba(227, 9, 22, .1); }
.svc-select { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 4px; background: none; border: 0; border-radius: 10px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.svc-select:focus-visible { outline: 3px solid rgba(0, 104, 203, .45); outline-offset: 2px; }
.svc-num { flex: none; width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #e8eff9; color: var(--navy); font-size: 21px; font-weight: 800; transition: background .2s, color .2s; }
.svc-ico { flex: none; width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e1e9f3; color: var(--navy); transition: color .2s; }
.svc-ico .icon { width: 28px; height: 28px; }
.svc-text { min-width: 0; }
.svc-text strong { display: block; font-size: 19px; line-height: 1.25; font-weight: 800; text-transform: uppercase; color: var(--navy); }
.svc-text small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: #5a6c86; }
.svc-go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e8eff9; color: var(--navy); text-decoration: none !important; transition: background .2s, color .2s, transform .2s; }
.svc-go:hover { transform: translateX(2px); }
.svc-go:focus-visible { outline: 3px solid rgba(0, 104, 203, .45); outline-offset: 2px; }
.svc-go .icon { width: 22px; height: 22px; }
.svc-card.is-active .svc-num, .svc-card.is-active .svc-go { background: var(--red); color: #fff; }
.svc-card.is-active .svc-ico { color: var(--red); border-color: #f6cdd1; }
.svc-feature { margin: 0; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: 0 10px 30px rgba(1, 34, 89, .14); }
.svc-media { position: relative; flex: 1; min-height: 340px; background: #dfe7f1; }
.svc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.svc-slide.is-active { opacity: 1; }
.svc-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.svc-caption { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 26px 22px 34px; background: #0a1f45; color: #fff; }
.svc-caption::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--red); }
.svc-caption-icon { flex: none; width: 54px; height: 54px; border-radius: 12px; background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.svc-caption-icon .icon { width: 26px; height: 26px; }
.svc-caption strong { display: block; font-size: 20px; line-height: 1.3; }
.svc-caption small { display: block; margin-top: 2px; font-size: 15px; color: #c8d5e8; }

.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.product-grid-page { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: #fff; color: var(--text); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-thumb { display: block; aspect-ratio: 16 / 11; background: var(--gray-100); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.thumb-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, #d9c3a0, #b9925f); color: #fff; }
.thumb-placeholder .icon { width: 44px; height: 44px; opacity: .85; }
.thumb-placeholder.big { min-height: 320px; border-radius: var(--radius-sm); }
.product-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-body h2, .product-body h3 { font-size: 15px; margin: 0 0 4px; }
.product-body h2 a, .product-body h3 a { color: var(--navy); }
.product-body p { font-size: 13px; color: var(--gray-500); flex: 1; margin-bottom: 10px; }
.product-grid-page .product-body h2 { font-size: 18px; }
.meta-list { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; }
.meta-list li { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }

.project-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.project-tile { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; min-height: 200px; background: var(--navy); color: #fff; text-decoration: none !important; }
.project-tile.tile-lg { grid-column: span 2; min-height: 260px; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-tile:hover img { transform: scale(1.05); }
.tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 50px 16px 16px; background: linear-gradient(transparent, rgba(1,20,50,.92)); }
.tile-caption strong { display: block; text-transform: uppercase; font-size: 15px; }
.tile-caption small { color: #d6e0ee; }
.tile-arrow { position: absolute; right: 14px; bottom: 18px; color: #fff; }

.company-band { color: #fff; padding: 80px 0; background: linear-gradient(90deg, rgba(1,24,58,.97) 10%, rgba(1,34,89,.75) 60%, rgba(1,34,89,.4)), url('../images/sand-business/fredicam-materials-yard-1280.webp') center / cover; }
.company-band h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.4rem); color: #fff; margin: 0; line-height: 1; }
.company-band h3 { font-family: var(--font-display); color: #fff; font-size: clamp(1.2rem, 3vw, 2rem); text-transform: uppercase; }
.company-band p { max-width: 620px; color: #e2e9f3; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.contact-list strong { display: block; color: var(--navy); }
.contact-list small { color: var(--gray-500); }
.contact-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-card h2, .form-card h3 { font-size: 20px; }

.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 48px 0 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; bottom: -20px; width: 220px; height: 50px; background: linear-gradient(115deg, var(--red) 55%, var(--blue) 55%); transform: skewX(-20deg); opacity: .9; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3.2rem); margin: 0; }
.page-hero .lead { color: #dbe6f5; max-width: 680px; margin: 10px 0 0; font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 16px; color: #b8c7dc; }
.breadcrumbs a { color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; }
.service-card-head { display: flex; justify-content: space-between; align-items: center; }
.service-card h2, .service-card h3 { font-size: 20px; margin-top: 10px; }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.card-img { border-radius: var(--radius-sm); margin: -6px -6px 14px; width: calc(100% + 12px); height: auto; max-width: none; aspect-ratio: 16/9; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.detail-img { border-radius: var(--radius-sm); margin-bottom: 18px; width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.about-figure { margin: 0 0 18px; }
.about-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.footer-note { opacity: .75; }
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.identity-card dl, .fact-card dl, .summary-dl { margin: 0 0 16px; }
.identity-card dt, .fact-card dt, .summary-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-top: 10px; }
.identity-card dd, .fact-card dd, .summary-dl dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.side-list ul { list-style: none; padding: 0; margin: 0; }
.side-list li a { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-200); color: var(--navy); font-weight: 600; }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 22px; margin-top: 1.2em; }
.prose h3 { font-size: 18px; margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--gray-200); padding: 6px 10px; }
.spec-list { list-style: none; padding: 0; }
.spec-list li { padding: 8px 0 8px 22px; border-bottom: 1px dashed var(--gray-200); position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }
.gallery { padding: 12px; }
.gallery-main { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-sm); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: var(--radius-sm); padding: 0; background: none; flex: 0 0 84px; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--red); }

/* Heavy equipment listings */
.badge-reserved { background: var(--amber-soft); color: var(--amber); }
.badge-sold { background: var(--gray-100); color: var(--gray-500); }
.badge-demo { background: var(--amber-soft); color: #7c4a03; border: 1px dashed currentColor; text-transform: uppercase; letter-spacing: .04em; }
.equipment-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 12px; flex: none !important; }
.filter-pills .pill-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--gray-100); color: var(--navy); font-size: 12px; text-align: center; }
.filter-pills a.active .pill-count, .filter-pills a:hover .pill-count { background: rgba(255, 255, 255, .2); color: #fff; }
.gallery { position: relative; }
.gallery-badge { position: absolute; top: 22px; left: 22px; z-index: 1; }
.spec-table, .prose .spec-table { display: table; width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.spec-table th, .spec-table td, .prose .spec-table th, .prose .spec-table td { padding: 9px 10px; border: 0; border-bottom: 1px dashed var(--gray-200); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.spec-table th { width: 42%; color: var(--gray-500); font-weight: 600; }
.equipment-inquiry { margin-top: 20px; scroll-margin-top: 110px; }
.equipment-demo-notice .icon { vertical-align: -3px; }
.gallery-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-pills a, .chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.filter-pills a.active, .filter-pills a:hover, .chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.team-card { text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; margin: 0 auto 12px; }
.faq-item { padding: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .prose { padding: 0 22px 18px; }
.search-bar { display: flex; gap: 10px; }
.search-bar input { flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); }
.result-list { list-style: none; padding: 0; }
.result-list h2 { font-size: 19px; margin: 8px 0 4px; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pay-status-label { font-size: 18px; }

.site-footer { background: var(--navy-2); color: #cfd8e6; padding-top: 50px; }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 0 20px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.footer-logo img { width: 180px; }
.legal-ids { font-size: 12px; color: #9fb0c8; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 8px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.site-footer a { color: #e2e9f3; }
.socials { display: flex; gap: 8px; margin: 14px 0; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.footer-subscribe label { display: block; font-size: 13px; font-weight: 700; color: #fff; margin: 14px 0 6px; }
.input-row { display: flex; gap: 6px; }
.input-row input[type=email] { flex: 1; min-width: 0; min-height: 36px; border-radius: var(--radius-sm); border: 0; padding: 6px 10px; color: var(--text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: 1240px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ======================================================================
   AUTH
   ====================================================================== */
.auth-body { background: var(--gray-50); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-visual { background: linear-gradient(90deg, rgba(1,24,58,.95), rgba(1,34,89,.7)), url('../images/homepage/fredicam-homepage-hero-1280.webp') center / cover; color: #fff; display: flex; align-items: flex-end; padding: 48px; }
.auth-visual h1 { color: #fff; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; }
.auth-visual em { color: var(--red); font-style: normal; }
.auth-visual p { color: #dbe6f5; max-width: 420px; font-size: 13px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.auth-logo img { width: 210px; margin-bottom: 20px; }
.auth-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.auth-card-top .auth-logo img { margin-bottom: 12px; max-width: 100%; }
.auth-lang { margin-left: auto; }
.auth-title { font-size: 26px; }
.auth-links { margin-top: 16px; font-size: 14px; }

/* ======================================================================
   ADMIN
   ====================================================================== */
.admin-body { background: #eef3f9; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: linear-gradient(175deg, var(--navy-3) 0%, var(--navy) 45%, var(--navy-2) 100%); color: #fff; display: flex; flex-direction: column; z-index: 60; overflow: hidden; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 4px; }
.sidebar-brand { display: block; background: #fff; border-radius: var(--radius-sm); padding: 8px 10px; width: 100%; }
.sidebar-brand img { width: 100%; max-width: 190px; margin: 0 auto; }
.sidebar-close { display: none; background: none; border: 0; color: #fff; padding: 6px; }
.sidebar-tagline { font-size: 11px; text-align: center; color: #b9c8de; margin: 8px 14px 6px; line-height: 1.35; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 10px 12px; overscroll-behavior: contain; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); color: #e7eef8; font-size: 14px; font-weight: 600; background: none; border: 0; text-align: left; text-decoration: none !important; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(227,9,22,.35); }
.nav-link span:first-of-type { flex: 1; }
.nav-badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; flex: 0 0 auto !important; }
.nav-link.active .nav-badge { background: #fff; color: var(--red); }
.nav-group .chevron { transition: transform .2s; }
.nav-group.open .chevron { transform: rotate(180deg); }
.nav-sub { display: none; padding: 2px 0 6px 44px !important; }
.nav-group.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 7px 10px; font-size: 13px; color: #c9d6e8; border-radius: var(--radius-sm); }
.nav-sub a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-sub a.active { color: #fff; background: rgba(227,9,22,.85); }
.sidebar-foot { padding: 16px 18px; font-family: var(--font-display); font-size: 20px; line-height: 1.05; background: linear-gradient(115deg, transparent 72%, var(--red) 72%, var(--red) 84%, var(--blue) 84%); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(1,20,50,.55); z-index: 55; }

.admin-shell { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 45; background: #fff; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 16px; padding: 10px 24px; min-height: 66px; }
.topbar-icon { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: none; border: 0; color: var(--navy); }
.topbar-icon:hover { background: var(--gray-100); }
.menu-btn { display: none; }
.dot-badge { position: absolute; top: 3px; right: 2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.global-search { position: relative; flex: 1; min-width: 0; max-width: 520px; display: flex; align-items: center; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 0 10px; height: 42px; background: #fff; }
.global-search:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.global-search input { border: 0; outline: 0; flex: 1; padding: 0 10px; min-width: 0; background: transparent; }
.global-search .search-icon { color: var(--gray-500); }
.global-search kbd { font-size: 11px; color: var(--gray-500); border: 1px solid var(--gray-200); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; z-index: 70; }
.search-results .sr-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); padding: 8px 12px 4px; }
.search-results a { display: block; padding: 8px 12px; color: var(--navy); }
.search-results a:hover, .search-results a.focused { background: var(--blue-soft); text-decoration: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.topbar-date { font-size: 13px; color: var(--gray-500); display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 8px 10px; }
.account-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px; border-radius: var(--radius-sm); text-align: left; }
.account-btn:hover { background: var(--gray-100); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.account-meta strong { display: block; font-size: 14px; color: var(--navy); }
.account-meta small { color: var(--gray-500); font-size: 12px; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 80; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button[role=menuitem] { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; color: var(--navy); background: none; border: 0; border-radius: 4px; font-size: 14px; text-align: left; text-decoration: none; }
.dropdown-menu a:hover, .dropdown-menu button[role=menuitem]:hover { background: var(--gray-100); }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.notif-menu { width: 340px; max-width: calc(100vw - 24px); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: block; padding: 10px 8px; border-bottom: 1px solid var(--gray-100); color: var(--text); font-size: 13px; }
.notif-item.unread { background: var(--blue-soft); }
.notif-item strong { display: block; color: var(--navy); }

.admin-main { flex: 1; padding: 20px 24px 30px; outline: none; }
.admin-footer { padding: 14px 24px; font-size: 12px; color: var(--gray-500); border-top: 1px solid var(--gray-200); background: #fff; }
.admin-page { max-width: 1600px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-header h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.page-header h1 small { font-size: 16px; font-weight: 500; }
.header-actions, .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.crumb { margin: 0 0 6px; font-size: 13px; }
.crumb a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.panel h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.subhead { font-size: 15px; margin: 18px 0 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; }
.toolbar .field { margin: 0; flex: 1 1 160px; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); background: var(--gray-50); padding: 10px 12px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tbody tr:hover { background: #fafcff; }
.table .num { text-align: right; }
.strong-link { font-weight: 700; color: var(--navy); }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.col-order { width: 84px; white-space: nowrap; }
.col-actions { width: 1%; white-space: nowrap; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); color: var(--navy); }
.pagination a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--gray-200); margin-bottom: 18px; }
.tabs a { padding: 10px 14px; white-space: nowrap; color: var(--gray-500); font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; text-decoration: none; }
.tabs a.active, .tabs a:hover { color: var(--navy); border-bottom-color: var(--red); }

/* Dashboard */
.dash-banner { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; justify-content: space-between; gap: 20px; padding: 28px 32px; min-height: 190px; background: linear-gradient(90deg, rgba(1,24,58,.97) 0%, rgba(1,34,89,.85) 50%, rgba(1,34,89,.35) 100%), url('../images/homepage/fredicam-homepage-hero-960.webp') center / cover; margin-bottom: 18px; }
.dash-banner::after { content: ""; position: absolute; right: -30px; bottom: -10px; width: 180px; height: 70px; background: linear-gradient(115deg, var(--red) 55%, var(--blue) 55%); transform: skewX(-20deg); }
.dash-banner h1 { color: #fff; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 6px; }
.dash-welcome { font-size: 19px; font-weight: 700; margin: 0; }
.dash-banner p { color: #dbe6f5; margin: 4px 0; }
.dash-pillars { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 24px; }
.dash-pillars li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.dash-pillars .icon { width: 28px; height: 28px; }
.dash-banner-side { position: relative; z-index: 1; text-align: right; align-self: center; }
.dash-banner-side strong { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); line-height: 1.05; }
.dash-banner-side small { display: block; color: #dbe6f5; margin-top: 8px; max-width: 220px; margin-left: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; min-width: 0; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(1,34,89,.12); }
.stat-icon { width: 54px; height: 54px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.stat-icon .icon { width: 26px; height: 26px; }
.stat-blue { background: linear-gradient(135deg, var(--blue), var(--navy-3)); }
.stat-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.stat-body { min-width: 0; }
.stat-body small { display: block; font-size: 13px; color: var(--gray-500); font-weight: 600; }
.stat-body strong { display: block; font-size: 22px; color: var(--navy); font-weight: 800; overflow-wrap: anywhere; line-height: 1.2; }
.stat-body em { font-style: normal; font-size: 12px; color: var(--gray-500); }
.dash-row { display: grid; gap: 16px; margin-bottom: 2px; }
.dash-row-3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.dash-row-3b { grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr) minmax(0, 1fr); }
.dash-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; }
.chart .grid { stroke: var(--gray-200); stroke-width: 1; }
.chart .axis { fill: var(--gray-500); font-size: 10px; }
.chart .bar { fill: var(--blue); }
.chart .line { fill: none; stroke: var(--red); stroke-width: 2; }
.chart .dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.legend { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--gray-500); flex-wrap: wrap; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.key-blue { background: var(--blue); }
.key-red { background: var(--red); margin-left: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.donut { width: 170px; height: 170px; transform: rotate(0deg); }
.donut-ring { fill: none; stroke: var(--gray-100); stroke-width: 6; }
.donut-num { font-size: 8px; font-weight: 800; fill: var(--navy); }
.donut-label { font-size: 3.4px; fill: var(--gray-500); }
.donut-legend { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.donut-legend strong { margin-left: auto; padding-left: 10px; color: var(--navy); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-action { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-sm); border: 1px solid; text-decoration: none !important; min-height: 64px; }
.quick-action strong { display: block; font-size: 14px; }
.quick-action small { font-size: 12px; opacity: .85; }
.qa-solid-red { background: var(--red); border-color: var(--red); color: #fff; }
.qa-solid-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.qa-outline-red { border-color: var(--red); color: var(--navy); background: #fff; }
.qa-outline-red .icon { color: var(--red); }
.qa-outline-blue { border-color: var(--blue); color: var(--navy); background: #fff; }
.qa-outline-blue .icon { color: var(--blue); }
.quick-action:hover { filter: brightness(.96); }
.gateway-list, .cms-list, .alert-list, .mini-list, .timeline, .file-list, .note-list, .milestone-list, .contact-cards { list-style: none; padding: 0; margin: 0; }
.gateway-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 8px; }
.gw-name { font-weight: 800; color: var(--navy); }
.gw-pawapay { color: #6b21a8; }
.gw-stripe { color: #635bff; }
.gw-paypal { color: #003087; }
.cms-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.cms-list li > span:first-child { flex: 1; min-width: 0; }
.cms-list small { display: block; color: var(--gray-500); }
.timeline li, .alert-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 6px; }
.dot-high { background: var(--red); }
.dot-medium { background: #f5a623; }
.tl-text { flex: 1; min-width: 0; }
.alert-list a { flex: 1; color: var(--navy); }
.user-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.user-groups div { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px 8px; text-align: center; }
.user-groups .icon { color: var(--red); }
.user-groups strong { display: block; font-size: 24px; color: var(--navy); }
.user-groups small { color: var(--gray-500); font-size: 12px; }
.mini-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Forms & detail layouts */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.form-side .sticky { position: sticky; top: 84px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.detail-main, .detail-side { min-width: 0; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(238,243,249,.95); padding: 12px 0; z-index: 5; }
/* CMS translations: per-language tabs, completeness and status badges. */
.tr-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding: 0; border-bottom: 1px solid var(--gray-200); }
.tr-tab { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: none; color: var(--gray-500); font-weight: 700; text-decoration: none; cursor: pointer; }
.tr-tab:hover { color: var(--navy); background: var(--gray-50); }
.tr-tab.active { background: #fff; color: var(--navy); border-color: var(--gray-200); box-shadow: inset 0 3px 0 var(--red); }
.tr-tab:focus-visible { outline: none; box-shadow: var(--focus); }
.tr-state { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--gray-100); color: var(--gray-500); white-space: nowrap; }
.tr-state.tr-published { background: var(--green-soft); color: #166534; }
.tr-state.tr-draft, .tr-state.tr-changed { background: var(--amber-soft); color: var(--amber); }
.tr-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tr-summary p { margin: 0; }
.tr-meter { width: 140px; height: 8px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.tr-meter span { display: block; height: 100%; background: var(--blue); }
.tr-source { margin: 2px 0 6px; font-size: 13px; }
.tr-source summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.tr-source div { margin-top: 6px; padding: 8px 10px; background: var(--gray-50); border-left: 3px solid var(--gray-300); color: var(--text); overflow-wrap: anywhere; }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tr-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.tr-badge { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }
.tr-badge.tr-published { background: var(--green-soft); color: #166534; border-color: #bbf7d0; }
.tr-badge.tr-draft, .tr-badge.tr-changed { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.kv-grid small { display: block; color: var(--gray-500); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.kv-grid strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.kv-list dt { color: var(--gray-500); }
.kv-list dd { margin: 0; overflow-wrap: anywhere; }
.workflow-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.workflow-steps { display: flex; list-style: none; padding: 0; margin: 0 0 14px; gap: 4px; flex-wrap: wrap; }
.workflow-steps li { flex: 1; text-align: center; font-size: 12px; padding: 6px 4px; background: var(--gray-100); border-radius: 4px; color: var(--gray-500); font-weight: 700; }
.workflow-steps li.current { background: var(--navy); color: #fff; }
.detail-side form + form { margin-top: 0; }
.detail-side .mail-test-form { margin-top: 12px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 14px 0; font-size: 14px; }
.totals dt { color: var(--gray-500); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 800; color: var(--navy); font-size: 16px; border-top: 1px solid var(--gray-200); padding-top: 6px; }
.totals-right { max-width: 360px; margin-left: auto; }
.items-table input { width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid var(--gray-300); border-radius: 4px; }
.items-table .w-qty { width: 90px; }
.items-table .w-unit { width: 100px; }
.items-table .w-price { width: 140px; }
.items-table .w-total { width: 140px; }
.image-field { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.image-preview { width: 140px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.image-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.thumb-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.thumb { position: relative; margin: 0; }
.thumb img { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); }
.thumb form { position: absolute; top: 4px; right: 4px; }
.rte { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.rte-toolbar button { min-width: 34px; height: 32px; border: 1px solid transparent; background: none; border-radius: 4px; font-size: 13px; color: var(--navy); }
.rte-toolbar button:hover, .rte-toolbar button.active { background: #fff; border-color: var(--gray-300); }
.rte-area { min-height: 180px; padding: 12px; outline: none; overflow-wrap: anywhere; }
.rte-area:focus { box-shadow: inset var(--focus); }
.rte .rte-source { display: none; border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-family: Consolas, monospace; font-size: 13px; width: 100%; min-height: 180px; padding: 12px; }
.rte.source-mode .rte-source { display: block; }
.rte.source-mode .rte-area { display: none; }
.rte.no-js .rte-source { display: block; }
.rte.no-js .rte-area, .rte.no-js .rte-toolbar { display: none; }
.file-list li, .note-list li { padding: 10px 0; border-bottom: 1px solid var(--gray-100); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-list li a { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.note-list li { display: block; }
.note-list p { margin: 0 0 4px; white-space: pre-wrap; }
.note-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.milestone-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.milestone-list li > span:first-child { flex: 1; min-width: 200px; }
.milestone-list small { display: block; }
.milestone-list select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--gray-300); border-radius: 4px; }
.contact-cards li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.content-block { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.matrix th[scope=row] span { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13px; }
.matrix th[scope=row] { background: #fff; white-space: normal; min-width: 220px; }
.matrix .group-row th { background: var(--navy); color: #fff; }
.matrix input { width: 18px; height: 18px; accent-color: var(--blue); }
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.role-card { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px; }
.gateway-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.live-form { margin-top: 14px; border-top: 1px solid var(--gray-200); padding-top: 12px; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 6px; }
.copy-input { font-family: Consolas, monospace; font-size: 12px; min-height: 32px !important; padding: 4px 8px !important; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.media-card { margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { aspect-ratio: 4 / 3; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .icon { width: 40px; height: 40px; color: var(--gray-500); }
.media-card figcaption { padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.upload-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border: 2px dashed var(--gray-300); }
.upload-zone.dragover { border-color: var(--blue); background: var(--blue-soft); }
.upload-zone > .icon { width: 32px; height: 32px; color: var(--blue); }
.upload-zone .field { margin: 0; flex: 1 1 200px; }
.check-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 4px 10px; margin-bottom: 10px; }
.mail-preview { width: 100%; min-height: 560px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(1,20,50,.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.3); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.media-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-picker-grid button { border: 2px solid transparent; border-radius: var(--radius-sm); padding: 0; background: var(--gray-100); overflow: hidden; }
.media-picker-grid button:hover, .media-picker-grid button:focus-visible { border-color: var(--red); }
.media-picker-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Print & documents */
.print-body { background: #fff; }
.print-toolbar { position: fixed; top: 12px; right: 12px; z-index: 10; }
.print-doc { max-width: 900px; margin: 0 auto; padding: 30px 24px; font-size: 13px; }
.doc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid var(--navy); padding-bottom: 12px; margin-bottom: 16px; }
.doc-company { text-align: right; font-size: 12px; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.doc-table th, .doc-table td { border: 1px solid var(--gray-200); padding: 6px 8px; text-align: left; }
.doc-table th { background: var(--gray-50); }
@media print {
  .no-print, .sidebar, .topbar, .admin-footer, .site-header, .site-footer, .back-to-top { display: none !important; }
  .admin-shell { margin: 0; }
  body { background: #fff; }
  .panel, .card { box-shadow: none; border-color: #ccc; }
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1280px) {
  .site-nav ul a { padding: 10px 7px; font-size: 13px; }
  .nav-search { display: none; }
  .site-header .lang-menu-current { display: none; }
  .site-header .lang-menu-code { display: inline; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-row-3, .dash-row-3b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row-3 > :first-child, .dash-row-3b > :first-child { grid-column: 1 / -1; }
  .stat-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  /* Public mobile navigation drawer: slides in from the right; fixed head, scrolling body (links, then search,
     language and quote, which join the scroll on short screens instead of being clipped). */
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; top: 0; right: 0; left: auto; z-index: 120; width: min(92vw, 420px); height: 100vh; height: 100dvh; max-height: 100dvh; background: #fff; border-radius: 26px 0 0 26px; box-shadow: -16px 0 48px rgba(1, 24, 58, .28); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 0; overflow: hidden; transform: translateX(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  /* visibility is switched by class, not transitioned, so focus can move in the moment the drawer opens (also under
     prefers-reduced-motion); .closing keeps it visible while it slides out (app.js). */
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav.closing { visibility: visible; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(1, 18, 45, .55); opacity: 0; visibility: hidden; transition: opacity .28s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .nav-backdrop.closing { visibility: visible; }
  .nav-drawer-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; padding: 14px 20px 10px 24px; }
  .nav-drawer-logo img { width: 100%; max-width: 190px; height: auto; display: block; }
  .nav-close { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid #dce5f0; background: var(--gray-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
  .nav-close:hover { background: var(--gray-100); }
  .nav-close .icon { width: 24px; height: 24px; }
  .nav-drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid #e6ecf4; padding: 4px 0; }
  .site-nav ul a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 12px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 700; color: var(--navy); }
  .site-nav ul a:hover { background: var(--gray-50); color: var(--navy); }
  .site-nav ul a.active { background: var(--red-soft); color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
  .nav-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gray-100); color: var(--navy); }
  .nav-ico .icon { width: 22px; height: 22px; }
  .site-nav ul a.active .nav-ico { background: #fbd9dc; color: var(--red); }
  .nav-label { flex: 1; min-width: 0; }
  .nav-chevron { display: block; flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--gray-500); }
  .site-nav ul a.active .nav-chevron { color: var(--red); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: auto; padding-top: 22px; }
  .site-nav .nav-search { display: flex; height: 52px; padding: 0 18px; gap: 10px; border: 1px solid #dce5f0; background: #fafcfe; border-radius: 999px; }
  .site-nav .nav-search:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
  .site-nav .nav-search button { order: -1; padding: 0; color: var(--navy); }
  .site-nav .nav-search button .icon { width: 22px; height: 22px; }
  .site-nav .nav-search input { width: 100%; height: 100%; font-size: 16px; color: var(--navy); }
  /* In the drawer the selector expands inline (no overlay), so the list scrolls with the drawer body. */
  .site-nav .lang-menu { align-self: stretch; }
  .site-nav .lang-menu > summary { width: 100%; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--blue); border-radius: 999px; font-size: 16px; justify-content: flex-start; }
  .site-nav .lang-menu-current { display: inline; }
  .site-nav .lang-menu-code { display: none; }
  .site-nav .lang-menu-chevron { margin-left: auto; }
  .site-nav .lang-menu-panel { position: static; width: auto; max-width: none; min-width: 0; max-height: none; margin-top: 8px; box-shadow: none; border-radius: 14px; }
  .site-nav .lang-option { min-height: 50px; font-size: 16px; }
  .nav-quote.btn { position: relative; min-height: 60px; border-radius: 15px; font-size: 17px; justify-content: center; gap: 12px; padding: 0 56px; box-shadow: 0 10px 24px rgba(227, 9, 22, .28); }
  .nav-quote-doc { display: block; width: 24px; height: 24px; flex: none; }
  .nav-quote-arrow.icon { position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); }
  body.nav-open { overflow: hidden; }

  .sidebar { transform: translateX(-100%); transition: transform .25s; width: min(290px, 86vw); }
  .sidebar.open { transform: none; }
  .sidebar-close { display: inline-flex; }
  .admin-shell { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 8px 14px; gap: 8px; }
  .topbar-date, .account-meta, .global-search kbd { display: none; }
  .admin-main { padding: 14px; }
  .admin-shell .flash-stack { margin: 12px 14px 0; }
  .form-layout, .detail-columns { grid-template-columns: 1fr; }
  .form-side .sticky { position: static; }
  .svc-layout, .contact-grid, .detail-grid, .about-grid { grid-template-columns: 1fr; }
  .svc-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .project-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .site-brand img { width: 160px; }
  :root { --header-h: 66px; }
  .section { padding: 44px 0; }
  .hero-inner { padding: 40px 16px 32px; }
  .svc-card { padding: 10px 12px 10px 10px; gap: 8px; }
  .svc-select { gap: 10px; padding: 2px; }
  .svc-num, .svc-ico { width: 42px; height: 42px; border-radius: 10px; font-size: 17px; }
  .svc-ico .icon { width: 22px; height: 22px; }
  .svc-text strong { font-size: 15px; }
  .svc-text small { font-size: 13px; }
  .svc-go { width: 38px; height: 38px; }
  .svc-go .icon { width: 18px; height: 18px; }
  .svc-caption { padding: 16px 16px 16px 24px; gap: 12px; }
  .svc-caption-icon { width: 44px; height: 44px; }
  .svc-caption strong { font-size: 16px; }
  .svc-caption small { font-size: 13px; }
  .section-services .section-intro { font-size: 15px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(1,24,58,.9) 0%, rgba(1,34,89,.66) 45%, rgba(1,34,89,.58) 70%, rgba(1,24,58,.82) 100%); }
  .hero-lead { font-size: 16px; }
  .container { padding: 0 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .project-tile.tile-lg { grid-column: span 2; }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 42px; height: 42px; }
  .stat-body strong { font-size: 17px; }
  .dash-row-3, .dash-row-3b, .dash-row-2 { grid-template-columns: 1fr; }
  .dash-banner { flex-direction: column; padding: 22px; }
  .dash-banner-side { text-align: left; }
  .dash-banner-side small { margin-left: 0; }
  .panel, .card { padding: 16px; }
  .page-header h1 { font-size: 21px; }
  .global-search { max-width: none; }
  .topbar .lang-menu-current { display: none; }
  .topbar .lang-menu-code { display: inline; }
  .topbar .lang-menu > summary { padding: 6px 7px; gap: 5px; min-height: 42px; }
  .topbar .lang-menu-chevron { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  /* Responsive tables: rows become labelled cards. */
  .table-responsive thead { display: none; }
  .table-responsive, .table-responsive tbody, .table-responsive tr, .table-responsive td { display: block; width: 100%; }
  .table-responsive tr { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 6px 10px; background: #fff; }
  .table-responsive td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table-responsive td::before { content: attr(data-label); font-weight: 700; color: var(--gray-500); font-size: 12px; text-align: left; flex-shrink: 0; }
  .table-responsive td.num { text-align: right; }
  .table-responsive td.col-order::before { content: ""; }
  .row-actions { justify-content: flex-end; }
  .note-form { flex-direction: column; align-items: stretch; }
  .search-bar { flex-direction: column; }
  .user-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  /* Narrow phones: number above icon so the service text keeps a readable line length. */
  .svc-select { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; align-items: center; }
  .svc-num { grid-column: 1; grid-row: 1; width: 40px; height: 40px; font-size: 16px; }
  .svc-ico { grid-column: 1; grid-row: 2; width: 40px; height: 40px; }
  .svc-ico .icon { width: 20px; height: 20px; }
  .svc-text { grid-column: 2; grid-row: 1 / span 2; }
  .product-grid { grid-template-columns: 1fr; }
  .project-mosaic { grid-template-columns: 1fr; }
  .project-tile.tile-lg { grid-column: auto; }
  .hero-benefits { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid-6 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .topbar-right { gap: 4px; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  /* transition: none rather than a tiny duration: a .01ms transition still delays inherited visibility by a frame,
     which made the mobile drawer refuse focus. */
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; scroll-behavior: auto !important; }
}
