/* Cusala Solutions — palette sampled from the logo file */
:root {
  --navy: #052b57;        /* wordmark navy */
  --navy-deep: #031d3d;   /* darkest ribbon shadow */
  --blue: #0a4a8a;        /* ribbon body blue */
  --sky: #1a74c4;         /* ribbon highlight blue */
  --sky-soft: #8fc2f0;    /* tint of the highlight, for text on navy */
  --red: #b82020;         /* SOLUTIONS red */
  --red-bright: #e03a3a;  /* ribbon highlight red, decorative only */

  --surface: #ffffff;
  --raised: #f4f7fb;
  --sunken: #e8eef6;
  --border: #d7e0ec;
  --border-strong: #6f839c;
  --ink: #0a1f38;
  --ink-muted: #44566f;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(3, 29, 61, .10);
  --shadow-md: 0 10px 28px rgba(3, 29, 61, .14);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--sky-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--raised); border-block: 1px solid var(--border); }
.section--sunken { background: var(--sunken); }
.section--dark { background: var(--navy); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
p { margin: 0; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-muted); max-width: 40em; }
.section--dark .lead { color: rgba(255,255,255,.88); }
.eyebrow { font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section--dark .eyebrow { color: var(--sky-soft); }
.stack > * + * { margin-top: 16px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head > * + * { margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 2px solid transparent; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #9c1a1a; color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--sunken); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-soft); color: var(--navy-deep); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__name { font-weight: 700; font-size: 1.35rem; letter-spacing: .08em; color: var(--navy); }
.brand__sub { font-weight: 500; font-size: .56rem; letter-spacing: .5em; color: var(--red); margin-top: 5px; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { font-family: var(--font-display); font-weight: 500; font-size: .93rem; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:not(.btn):hover { color: var(--blue); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--red); }
.nav__toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border-strong); background: #fff; border-radius: var(--r-md); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--raised) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art::before { content: ""; position: absolute; inset: 6% 8%; border-radius: 50%; background: var(--sunken); }
.hero__art img { position: relative; width: min(100%, 400px); mix-blend-mode: multiply; }
.hero .lead { margin-top: 22px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 14px; }
.card:hover { box-shadow: var(--shadow-md); }
.card p { color: var(--ink-muted); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.card__icon svg { width: 26px; height: 26px; }
.card__link { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .92rem; text-decoration: none; padding-top: 6px; }
.card__link::after { content: " →"; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; color: var(--ink-muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 14px; height: 4px; border-radius: 2px; background: var(--red); }
.section--dark .list li { color: rgba(255,255,255,.9); }

/* Industry tiles */
.tile { border-radius: var(--r-lg); padding: 32px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 12px; min-height: 230px; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid var(--sky); opacity: .35; }
.tile:nth-child(2)::after { border-color: var(--red-bright); opacity: .45; }
.tile h3 { color: #fff; }
.tile p { color: rgba(255,255,255,.88); position: relative; z-index: 1; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.step { border-top: 3px solid var(--navy); padding-top: 22px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--sky); margin-bottom: 14px; }
.step p { color: var(--ink-muted); margin-top: 8px; }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: .8; color: var(--red); }
.quote footer { font-size: .92rem; color: var(--ink-muted); margin-top: auto; }
.quote footer strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: .95rem; }

/* CTA band */
.cta { text-align: center; }
.cta .lead { margin: 18px auto 0; }
.cta .btn-row { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; background: var(--raised); border-bottom: 1px solid var(--border); }
.page-hero .lead { margin-top: 18px; }

/* Split rows on service pages */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; padding: 56px 0; border-top: 1px solid var(--border); }
.split:first-of-type { border-top: 0; }
.split h2 { font-size: 1.9rem; }
.split__body > * + * { margin-top: 18px; }
.split h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* Forms */
.form { display: grid; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-md); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .88rem; color: var(--ink-muted); }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.err { color: #a31d1d; }
.form-status.ok { color: #17653f; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.88); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__logo { background: #fff; border-radius: var(--r-lg); padding: 16px 20px; display: inline-block; }
.footer__logo img { width: 150px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: var(--sky-soft); text-decoration: underline; }
.footer__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: rgba(255,255,255,.75); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split, .footer__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { width: min(60%, 280px); }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px 24px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav__links.open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li:last-child { border: 0; padding-top: 16px; }
  .nav__links a:not(.btn) { display: block; padding: 14px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form > .hint { font-size: .88rem; color: var(--ink-muted); margin: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a31d1d; }
