/* ==========================================================================
   DLRS Management — Design System
   Style: Swiss Modernism / Minimal · Navy + Blue · Poppins / Open Sans
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --navy: #0F172A;
  --navy-800: #1E293B;
  --slate: #334155;
  --slate-500: #64748B;
  --accent: #0369A1;
  --accent-hover: #025E8C;
  --accent-soft: #E0F2FE;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --fg: #0F172A;
  --fg-muted: #475569;
  --muted: #EEF2F6;
  --border: #E2E8F0;
  --success: #047857;
  --success-soft: #ECFDF5;
  --ring: #0369A1;

  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12), 0 4px 8px rgba(15,23,42,.06);

  --container: 1180px;
  --gap: 1.5rem;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
em { color: var(--accent); font-style: normal; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--muted { background: var(--muted); }
.section--navy { background: var(--navy); color: #E2E8F0; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem; }
.section--navy .eyebrow { color: #7DD3FC; }
.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 60ch; }
.section--navy .lead { color: #CBD5E1; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.measure { max-width: 70ch; }

/* ----- Skip link ----- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,250,252,.9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.brand-logo { height: 42px; width: auto; display: block; }
.site-footer .brand-logo { height: 52px; }
@media (max-width: 800px) { .brand-logo { height: 36px; } }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-family: var(--font-head); font-weight: 500; font-size: .95rem; padding: .5rem .7rem; border-radius: 8px; }
.nav-links a:hover { color: var(--navy); background: var(--muted); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-phone { font-family: var(--font-head); font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav-phone:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1; padding: .85rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); min-height: 48px; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--slate-500); background: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }

/* ----- Hero ----- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero .container { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.25rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--success); flex: none; }

/* ----- Grid & cards ----- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #CBD5E1; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--fg-muted); margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 600; margin-top: 1rem; }
.card-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card--link:hover .card-link svg { transform: translateX(3px); }

/* ----- Feature list ----- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; }
.feature-list svg { width: 24px; height: 24px; color: var(--success); flex: none; margin-top: 2px; }
.feature-list strong { display: block; color: var(--navy); font-family: var(--font-head); }
.feature-list span { color: var(--fg-muted); }

/* ----- Split / two-column ----- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* ----- Stats ----- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); color: #fff; line-height: 1; }
.stat .label { color: #CBD5E1; font-size: .95rem; margin-top: .4rem; }

/* ----- CTA band ----- */
.cta-band { background: var(--navy); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.25rem); text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #CBD5E1; margin-inline: auto; margin-bottom: 1.75rem; }

/* ----- Forms ----- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: .4rem; }
.field .req { color: var(--accent); }
.field .help { font-size: .85rem; color: var(--slate-500); margin-top: .35rem; }
.input, .select, .textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--fg); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .9rem; min-height: 48px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3,105,161,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hp { position: absolute; left: -5000px; } /* honeypot */

/* ----- ROI calculator ----- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.calc-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); position: sticky; top: 90px; }
.calc-result h3 { color: #fff; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.result-row:last-of-type { border-bottom: none; }
.result-row .k { color: #CBD5E1; }
.result-row .v { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #fff; font-variant-numeric: tabular-nums; }
.result-total { margin-top: 1rem; padding-top: 1.25rem; border-top: 2px solid rgba(255,255,255,.25); }
.result-total .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem,5vw,2.75rem); color: #7DD3FC; font-variant-numeric: tabular-nums; line-height: 1.1; }
.calc-note { font-size: .8rem; color: var(--slate-500); margin-top: 1rem; }
.section--navy .calc-note { color: #94A3B8; }

/* ----- Breadcrumb ----- */
.breadcrumb { font-size: .9rem; color: var(--slate-500); padding-block: 1rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--slate-500); }

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #94A3B8; padding-block: 3.5rem 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-grid a { color: #CBD5E1; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand .mark { background: #fff; color: var(--navy); }
.footer-brand p { color: #94A3B8; max-width: 32ch; }
.footer-contact { display: grid; gap: .5rem; font-style: normal; }
.footer-contact a { color: #CBD5E1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; color: #64748B; }

/* ----- Helpers ----- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; }

/* ----- Focus states ----- */
a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; box-shadow: var(--shadow-md); }
  .site-header.open .nav-links a { padding: .75rem; font-size: 1.05rem; }
  .split, .calc, .stats { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .stats { gap: 2rem; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
