/* Kennard Solutions — site styles */
:root {
  /* Brand colours, matched to the Services & Fees brochure */
  --brand-900: #083b35;
  --brand-800: #0e5a50;
  --brand-700: #126a5e;
  --brand-600: #177a6c;
  --teal-600: #0e5a50;
  --teal-500: #177a6c;
  --teal-100: #e3efec;
  --gold-500: #c69c5d;
  --gold-600: #b3884a;
  --bronze: #8b5a1b;
  --cream: #f6f4ee;
  --cream-2: #ece7dc;
  --ink: #16191d;
  --ink-2: #474d55;
  --ink-3: #6e747c;
  --line: #e3ded2;
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --red-600: #c0392b;
  --red-50: #fdecea;
  --green-600: #1e7d4f;
  --green-50: #e6f5ed;
  --blue-600: #1f5fa8;
  --blue-50: #e8f0fb;
  --amber-50: #fdf4e3;
  --amber-700: #8a5a00;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 52, 46, 0.06), 0 1px 3px rgba(10, 52, 46, 0.08);
  --shadow: 0 4px 12px rgba(10, 52, 46, 0.08), 0 12px 32px rgba(10, 52, 46, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand-800); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--ink-3); }
.muted-light { color: rgba(255, 255, 255, 0.72); margin: 0; }
.small { font-size: 0.875rem; }
.inline { display: inline; margin: 0; }
.pre { white-space: pre-line; }

/* Icons */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 36px; height: 36px; }
.icon-accent { color: var(--teal-500); }

/* Buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn-xs { --h: 32px; padding: 0 12px; font-size: 0.85rem; }
.btn-lg { --h: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-800); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--gold-500); color: var(--brand-900); }
.btn-accent:hover { background: var(--gold-600); }
.btn-ghost { background: #fff; color: var(--brand-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-link { background: none; color: var(--ink-2); padding: 0 8px; }
.btn-link:hover { color: var(--brand-800); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-danger-ghost { background: #fff; color: var(--red-600); border-color: #f1c7c2; }
.btn-danger-ghost:hover { border-color: var(--red-600); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-600); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-800); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.brand-name small { font-size: 0.62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); margin-top: 4px; }
.brand-light .brand-name strong { color: #fff; }
.brand-light .brand-name small { color: var(--gold-500); }
.brand-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--brand-800); background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { color: var(--brand-800); font-weight: 650; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--brand-800); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Flash and alerts */
.flash { padding: 14px 0; font-weight: 500; border-bottom: 1px solid transparent; }
.flash-success, .alert-success { background: var(--green-50); color: var(--green-600); border-color: #c4e6d3; }
.flash-error, .alert-error { background: var(--red-50); color: var(--red-600); border-color: #f4c9c4; }
.flash-info { background: var(--blue-50); color: var(--blue-600); border-color: #cddcf2; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 18px; font-size: 0.95rem; }
.notice { background: var(--amber-50); color: var(--amber-700); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14, 90, 80, 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(198, 156, 93, 0.18), transparent 60%),
    linear-gradient(160deg, var(--brand-900), var(--brand-700));
  padding: 96px 0 104px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero .lead { color: rgba(255, 255, 255, 0.82); font-size: 1.2rem; max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 0.78rem; font-weight: 700; color: var(--bronze); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hero .eyebrow, .app-head .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-500); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  background: rgba(255, 255, 255, 0.98); color: var(--ink); border-radius: 16px; padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); transform: rotate(1.5deg);
}
.hero-card-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hero-card-head strong { display: block; color: var(--brand-800); }
.hero-card-head span { font-size: 0.875rem; color: var(--ink-3); }
.hero-files { list-style: none; margin: 0; padding: 0; }
.hero-files li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hero-files li:last-child { border-bottom: 0; }
.hero-files .icon { color: var(--brand-600); width: 20px; height: 20px; }
.hero-files span { flex: 1; }
.hero-files em { font-style: normal; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--green-50); color: var(--green-600); }
.hero-files em.mine { background: var(--blue-50); color: var(--blue-600); }

.stats-strip { background: var(--brand-800); color: #fff; border-top: 1px solid rgba(255,255,255,0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-500); }
.stat span { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.page-hero { background: linear-gradient(160deg, var(--brand-900), var(--brand-700)); color: #fff; padding: 72px 0 64px; }
.page-hero-sm { padding: 56px 0 48px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; max-width: 640px; margin: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.prose p, .prose li { color: var(--ink-2); font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service-card { padding: 26px; display: flex; flex-direction: column; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d3dbe5; }
.service-card p { color: var(--ink-2); flex: 1; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-100); color: var(--teal-600); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon-lg { width: 64px; height: 64px; margin: 0; }
.card-icon-lg .icon { width: 30px; height: 30px; }
.value-card { padding: 28px; border-top: 3px solid var(--teal-500); }
.value-card p { color: var(--ink-2); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 22px; border-top: 4px solid var(--brand-800); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--teal-500); }
.step-num { display: block; font-size: 2rem; font-weight: 800; color: var(--bronze); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-2); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--ink-2); }
.check-list .icon { color: var(--teal-500); width: 20px; height: 20px; margin-top: 3px; }
.feature-panel { background: var(--bg-alt); border-radius: 16px; padding: 12px; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 10px; }
.feature-row .icon { color: var(--teal-600); margin-top: 2px; }
.feature-row strong { display: block; color: var(--brand-800); margin-bottom: 2px; }
.feature-row span { color: var(--ink-2); font-size: 0.95rem; }

.quote-panel { background: var(--brand-800); color: #fff; border-radius: 16px; padding: 44px; position: relative; }
.quote-panel { margin: 0; }
.quote-panel blockquote { margin: 0; }
.quote-panel p { font-size: 1.35rem; font-weight: 650; line-height: 1.45; letter-spacing: -0.01em; }
.quote-panel figcaption { color: rgba(255,255,255,.75); font-size: 0.95rem; }
.quote-panel span { color: var(--gold-500); font-weight: 600; }

.service-list { display: grid; gap: 20px; }
.service-detail { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-detail h2 { font-size: 1.5rem; margin-bottom: 6px; }
.service-detail p { color: var(--ink-2); margin: 0; }
.service-detail .check-list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 14px 0 0; }

.cta-band { background: linear-gradient(120deg, var(--brand-800), var(--brand-600)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: 1.08rem; }

/* Forms */
.form-card { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--brand-800); margin-bottom: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 0.85rem; }
.req { color: var(--red-600); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cfd7e1; border-radius: var(--radius-sm);
  padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a5a6c' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(14, 90, 80, 0.18); }
input:disabled { background: var(--bg-alt); color: var(--ink-3); }
.hint { font-size: 0.85rem; color: var(--ink-3); margin: 6px 0 0; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: 0.875rem; margin: 6px 0 0; font-weight: 500; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: 0.95rem; }
.field-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand-800); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.contact-aside { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item .icon { color: var(--teal-600); margin-top: 2px; }
.contact-item strong { display: block; color: var(--brand-800); }
.contact-item a, .contact-item span { color: var(--ink-2); }
.aside-card { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 8px; }
.aside-card p { color: var(--ink-2); font-size: 0.95rem; }

/* Auth */
.auth-section { padding: 72px 24px 96px; background: var(--bg-alt); display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; padding: 40px; }
.auth-card-wide { max-width: 640px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .icon { margin: 0 auto 14px; }
.auth-head h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-head p { color: var(--ink-2); margin: 0; }
.auth-foot { text-align: center; margin: 22px 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* App (portal + admin) */
.app-head { background: linear-gradient(160deg, var(--brand-900), var(--brand-700)); color: #fff; padding: 40px 0 36px; }
.app-head-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.app-head h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 4px; }
.app-head .eyebrow { margin-bottom: 6px; }
.app-head-actions { display: flex; gap: 10px; }
.app-tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.08); padding: 4px; border-radius: 10px; }
.app-tabs a { color: rgba(255, 255, 255, 0.8); padding: 8px 16px; border-radius: 7px; font-weight: 500; font-size: 0.95rem; }
.app-tabs a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.app-tabs a.active { background: #fff; color: var(--brand-800); font-weight: 650; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-cards-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { padding: 20px 22px; display: flex; flex-direction: column; color: inherit; }
.stat-card span { color: var(--ink-3); font-size: 0.9rem; font-weight: 500; }
.stat-card strong { font-size: 2rem; color: var(--brand-800); font-weight: 700; line-height: 1.2; }
.stat-link:hover { text-decoration: none; border-color: var(--teal-500); }

.app-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.app-grid-even { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 24px; min-width: 0; }
.panel { padding: 24px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; margin: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty .icon { margin: 0 auto 12px; color: #b5c0cc; }
.empty p { margin: 0; max-width: 380px; margin-inline: auto; }

.table-wrap { overflow-x: auto; margin: 0 -24px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.table td { padding: 14px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfd; }
.actions { text-align: right; white-space: nowrap; }
.actions .inline, .actions .btn { margin-left: 6px; }
.doc-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-800); word-break: break-word; }
.doc-name .icon { color: var(--ink-3); }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 3px 10px; border-radius: 99px; text-transform: capitalize; white-space: nowrap; vertical-align: middle; font-family: var(--font); letter-spacing: 0; }
.badge-green, .badge-closed { background: var(--green-50); color: var(--green-600); }
.badge-blue, .badge-contacted { background: var(--blue-50); color: var(--blue-600); }
.badge-new { background: var(--amber-50); color: var(--amber-700); }

.upload-form .field { margin: 16px 0; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 2px dashed #cbd5e0; border-radius: var(--radius); background: var(--bg-alt); cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--teal-500); background: var(--teal-100); }
.dropzone.has-file { border-style: solid; border-color: var(--teal-500); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-text { color: var(--ink-2); }
.dropzone-text strong { color: var(--brand-800); }
.secure-note { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; }

.list { list-style: none; padding: 0; margin: 0 -24px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.list li > div { display: flex; flex-direction: column; min-width: 0; }
.list-block { flex-direction: column; align-items: stretch !important; }
.list-row { display: flex; justify-content: space-between; align-items: center; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 0.92rem; background: #fff; }
.chip:hover { border-color: var(--brand-600); text-decoration: none; }
.chip.active { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.enquiry-list { display: grid; gap: 16px; }
.enquiry { padding: 24px; }
.enquiry-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.enquiry-head h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.enquiry-head p { margin: 0; }
.enquiry-actions { display: flex; gap: 8px; align-items: center; }
.status-form select { width: auto; padding: 6px 34px 6px 12px; font-size: 0.9rem; height: 32px; }
.enquiry-message { white-space: pre-line; color: var(--ink-2); margin: 14px 0; }
.enquiry-contact { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
.enquiry-contact a { display: inline-flex; gap: 6px; align-items: center; }

.search-bar { display: flex; gap: 10px; margin-bottom: 20px; max-width: 620px; }
.details { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; margin: 0; font-size: 0.95rem; }
.details dt { color: var(--ink-3); }
.details dd { margin: 0; color: var(--ink); word-break: break-word; }
.danger-zone { border-color: #f1c7c2; }

/* Footer */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, 0.72); padding: 64px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 340px; }
.site-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 24px; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 480px; transform: none; }
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-grid, .app-grid-even { grid-template-columns: 1fr; }
  .stat-cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 24px 24px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-actions { flex-wrap: wrap; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; }
  .stat:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .card-grid, .card-grid-4, .steps, .form-row, .stat-cards { grid-template-columns: 1fr; gap: 16px; }
  .stat-cards-4 { grid-template-columns: 1fr 1fr; }
  .form-row { gap: 0; }
  .form-card, .auth-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 24px; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 3px 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: 0.85rem; }
  .table td:first-child::before { content: none; }
  .actions { text-align: left; padding-top: 8px !important; }
  .actions .inline, .actions .btn { margin: 0 6px 0 0; }
  .search-bar { flex-wrap: wrap; }
  .search-bar input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Brochure-based components ---------------------------------------- */
body { background: #fff; }
.hero, .page-hero, .app-head { background: linear-gradient(160deg, var(--brand-900), var(--brand-800) 70%); }
.hero::after { opacity: .05; }
.hero-sig { margin: 28px 0 0; display: flex; flex-direction: column; font-size: 0.95rem; color: rgba(255,255,255,.75); }
.hero-sig strong { color: #fff; font-size: 1.05rem; }
.hero-card { transform: none; padding: 26px 28px; background: var(--cream); }
.hero-card-label { text-transform: uppercase; letter-spacing: .14em; font-size: 0.75rem; font-weight: 700; color: var(--bronze); margin: 0 0 8px; }
.hero-services { list-style: none; margin: 0; padding: 0; }
.hero-services a { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.hero-services li:last-child a { border-bottom: 0; }
.hero-services a:hover { color: var(--brand-800); text-decoration: none; }
.hero-services .num, .price-list .num { font-size: 0.8rem; font-weight: 700; color: var(--bronze); width: 22px; }

.num-badge { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 4px; background: var(--bronze); color: #fff; font-size: 0.82rem; font-weight: 750; letter-spacing: 0; }
.num-badge-lg { min-width: 48px; height: 40px; font-size: 1rem; }
.service-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.service-card h3 { font-size: 1.12rem; }
.service-card:hover { text-decoration: none; border-color: var(--brand-800); }
.price-from { font-weight: 750; color: var(--brand-800); font-size: 0.95rem; }

.promise-band { margin-top: 32px; background: var(--brand-800); color: #fff; border-radius: var(--radius); padding: 30px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise-band h3 { color: #fff; margin-bottom: 6px; }
.promise-band p { color: rgba(255,255,255,.8); margin: 0; }

.which-list { border-top: 1px solid var(--line); }
.which-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.which-row:hover { background: var(--cream); text-decoration: none; }
.which-need { font-size: 1.05rem; }
.which-answer { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; color: var(--brand-800); white-space: nowrap; }

.service-list { gap: 14px; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s; }
.service-row:hover { text-decoration: none; border-color: var(--brand-800); box-shadow: var(--shadow); }
.service-row h2 { font-size: 1.35rem; margin-bottom: 4px; }
.service-row p { color: var(--ink-2); margin: 0; }
.service-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }

.section-tight-top { padding-top: 48px; }
.service-intro { max-width: 860px; margin-bottom: 36px; }
.lead-dark { font-size: 1.15rem; color: var(--ink-2); }
.ideal { margin: 0; color: var(--ink-2); }
.ideal strong { text-transform: uppercase; letter-spacing: .08em; font-size: 0.82rem; color: var(--bronze); margin-right: 6px; }
.split-top { align-items: start; }
.track-panel { background: var(--cream-2); border-radius: var(--radius); padding: 28px; }
.track-panel ul, .dot-list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.track-panel li, .dot-list li { padding: 4px 0; }
.pricing-title { margin-top: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; display: flex; flex-direction: column; }
.price-card h3 { margin-bottom: 4px; }
.price-basis { text-transform: uppercase; letter-spacing: .1em; font-size: 0.75rem; color: var(--ink-3); margin: 0 0 14px; }
.price { margin: 0 0 10px; color: var(--ink); }
.price strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--ink-3); font-size: 0.9rem; }
.price-text { color: var(--ink-2); flex: 1; }
.price-card.featured { background: var(--brand-800); border-color: var(--brand-800); }
.price-card.featured h3, .price-card.featured .price, .price-card.featured .price strong { color: #fff; }
.price-card.featured .price-basis, .price-card.featured .price span { color: rgba(255,255,255,.7); }
.price-card.featured .price-text { color: rgba(255,255,255,.85); }
.fine-print { margin-top: 16px; }
.service-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }

.table-card { overflow: hidden; }
.table-card .table-wrap { margin: 0; }
.table-fees th { background: var(--ink); color: #fff; }
.rate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rate { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; display: flex; flex-direction: column; }
.rate strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-800); }
.rate span { color: var(--ink-2); font-size: 0.92rem; }
.fees-split { margin: 40px 0; }
.compare { margin: 0 0 12px; }
.compare div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #d8d1c2; }
.compare dt { color: var(--ink-2); }
.compare dd { margin: 0; font-weight: 750; white-space: nowrap; }
.compare .hl dd { color: var(--brand-800); }
.bundle-panel { background: var(--brand-800); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 28px; }
.bundle-panel h2 { color: #fff; }
.bundle-panel strong { color: #fff; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.price-list a { display: flex; gap: 10px; color: var(--ink); font-weight: 600; }
.price-list li > span { color: var(--brand-800); font-weight: 700; white-space: nowrap; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 0.92rem; color: var(--ink-2); }
.quote-wide { padding: 44px 48px; }
.quote-wide p { font-size: 1.55rem; }
.quote-aside { font-size: 0.95rem !important; font-weight: 400 !important; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.2); margin: 20px 0 0; padding-top: 16px; }
.value-card { border-top-color: var(--bronze); }

.cta-band { background: var(--cream); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-2); max-width: 640px; }
.cta-band .eyebrow { color: var(--bronze); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-phone { color: var(--brand-800); font-weight: 650; }
.btn-accent { background: var(--gold-500); color: var(--ink); }
.cta-band .btn-accent { background: var(--brand-800); color: #fff; }
.cta-band .btn-accent:hover { background: var(--brand-700); }
.site-footer { background: var(--brand-900); }
.footer-strap { color: var(--gold-500); font-weight: 600; margin-bottom: 6px; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .rate-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .promise-band, .pricing-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: auto 1fr; }
  .service-meta { grid-column: 2; align-items: flex-start; }
  .which-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .card-grid-5, .rate-grid { grid-template-columns: 1fr 1fr; }
  .service-pager { flex-direction: column; }
  .quote-wide { padding: 32px 24px; }
}

/* Admin notifications */
.app-tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--gold-500); color: var(--ink); font-size: 0.72rem; font-weight: 750; }
.stat-alert { border-color: var(--gold-500); background: #fbf6ec; }
.uploads-panel { margin-bottom: 24px; }

/* Site password page */
.gate-section { min-height: 100vh; align-items: center; }
.gate-logo { margin: 0 auto 14px; border-radius: 8px; }

/* Client portals list (master login) */
.portal-count { margin: -6px 0 14px; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.portal-card { display: flex; flex-direction: column; gap: 16px; padding: 22px; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.portal-card:hover { text-decoration: none; border-color: var(--brand-800); box-shadow: var(--shadow); transform: translateY(-2px); }
.portal-card-head { display: flex; align-items: center; gap: 12px; }
.portal-card-head > div { flex: 1; min-width: 0; }
.portal-card h2 { font-size: 1.08rem; font-weight: 750; margin: 0; letter-spacing: -0.01em; }
.portal-card-head p { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-800); color: #fff; font-weight: 750; font-size: 1.05rem; }
.portal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-meta dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.portal-meta dd { margin: 2px 0 0; font-weight: 650; }
.portal-card:hover .btn-ghost { border-color: var(--brand-800); }
