/* DeWitt Solutions */

:root {
  --brand: #276093;
  --brand-600: #1f4f7a;
  --brand-700: #183d5f;
  --brand-50: #eef4fa;
  --brand-100: #dbe7f3;
  --swoosh: #9ba1a6;
  --ink: #10233a;
  --ink-2: #3d4f63;
  --ink-3: #6a7a8c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 58, .06), 0 1px 3px rgba(16, 35, 58, .08);
  --shadow: 0 10px 30px -12px rgba(16, 35, 58, .18), 0 4px 10px -6px rgba(16, 35, 58, .10);
  --shadow-lg: 0 30px 60px -20px rgba(16, 35, 58, .30);
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow {
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body);
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(39, 96, 147, .7); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(16, 35, 58, .4); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: auto; height: 50px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.site-nav a:not(.btn):hover { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 20px 30px -20px rgba(16, 35, 58, .3);
    display: none;
  }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--brand-100), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, #eef1f4, transparent 60%),
    linear-gradient(180deg, #fbfcfe, #fff);
}
/* Echo of the logo's swoosh */
.hero-bg::after {
  content: ""; position: absolute;
  width: 820px; height: 560px; right: -260px; top: -120px;
  border-radius: 50%;
  border: 26px solid transparent;
  border-top-color: rgba(155, 161, 166, .22);
  border-right-color: rgba(155, 161, 166, .22);
  transform: rotate(-18deg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--brand); }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; aspect-ratio: 1.1 / 1; }
.shot { position: absolute; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.shot::before { content: ""; display: block; height: 22px; background: #f1f4f8 radial-gradient(circle at 12px 11px, #f26b5e 4px, transparent 4.5px), #f1f4f8; border-bottom: 1px solid var(--line); }
.shot::after { content: ""; position: absolute; top: 7px; left: 26px; width: 8px; height: 8px; border-radius: 50%; background: #f5c04f; box-shadow: 14px 0 0 #61c454; }
.shot-back { width: 86%; top: 0; right: 0; transform: rotate(2deg); }
.shot-front { width: 74%; bottom: 0; left: 0; transform: rotate(-2deg); }

.stats {
  list-style: none; margin: 64px 0 0; padding: 26px 8px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stats li { text-align: center; padding: 6px 16px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 800 2.2rem/1.1 var(--font-head); color: var(--brand); letter-spacing: -.02em; }
.stats span { font-size: .95rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; padding: 8px 20px; margin-top: 48px; }
  .stats li { padding: 16px 0; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { font-size: 1.08rem; color: var(--ink-3); margin: 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

.icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--brand-50); color: var(--brand);
  margin-bottom: 20px;
}

/* Services */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card p { margin: 0; font-size: .98rem; color: var(--ink-3); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } .card { padding: 26px; } }

/* About */
.about { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border-radius: var(--radius-lg); background: var(--brand); opacity: .12;
}
.about-photo img { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.about-copy h2 { margin-bottom: 4px; }
.role { font-weight: 600; color: var(--brand); margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.aside { color: var(--ink-3); font-style: italic; margin: 0; }
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { max-width: 340px; margin: 0 22px 0 0; }
}

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value p { color: var(--ink-3); margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px 0 40px; }
.filter {
  font: 500 .95rem/1 var(--font-body); color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card[hidden] { display: none; }
.work-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50);
  border-bottom: 1px solid var(--line);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-count {
  position: absolute; right: 12px; bottom: 12px;
  font: 600 .78rem/1 var(--font-body); color: #fff;
  background: rgba(16, 35, 58, .78); padding: 7px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-body p { font-size: .95rem; color: var(--ink-3); margin-bottom: 18px; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 500; color: var(--brand-700); background: var(--brand-50); padding: 5px 10px; border-radius: 999px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  width: min(1200px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 22, 38, .78); backdrop-filter: blur(4px); }
.lightbox-inner { position: relative; }
.lightbox figure { margin: 0; }
.lb-stage { position: relative; background: #eef2f6; display: grid; place-items: center; }
.lb-stage img { max-height: calc(100vh - 200px); width: auto; max-width: 100%; }
.lightbox figcaption { padding: 18px 24px 22px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.lightbox figcaption strong { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.lightbox figcaption span { color: var(--ink-3); font-size: .95rem; }
.lb-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; border-radius: 50%;
}
.lb-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 26px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: #fff; color: var(--brand); }
.lightbox.single .lb-nav { display: none; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 10px; left: 28px;
  font: 800 4.5rem/1 var(--font-head); color: var(--brand-100);
}
.quote { padding-top: 64px; }
.quote-wide { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); }
.quote-wide::before { color: rgba(255, 255, 255, .1); }
.quote-wide blockquote { color: #d5dee8; font-size: 1.05rem; columns: 2; column-gap: 40px; }
.quote-wide blockquote p { break-inside: avoid; }
.quote-wide figcaption span { color: #9fb1c4; }
.quote-wide figcaption span strong { color: #fff; }
.quote blockquote { margin: 0 0 24px; position: relative; font-size: .98rem; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote figcaption img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption .avatar { display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font: 700 1.1rem/1 var(--font-head); }
.quote figcaption span { display: flex; flex-direction: column; font-size: .9rem; color: var(--ink-3); line-height: 1.4; }
.quote figcaption strong { color: var(--ink); font-size: 1rem; }
@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr; }
  .quote-wide blockquote { columns: 1; }
}
@media (max-width: 600px) { .quote { padding: 26px; } }

/* ---------- Clients ---------- */
.clients { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.clients-label { text-align: center; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 32px; }
.client-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.client-logos img { max-height: 46px; max-width: 150px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.client-logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 600px) { .client-logos { gap: 24px 36px; } .client-logos img { max-height: 36px; max-width: 120px; } }

/* ---------- Contact ---------- */
.contact-section {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(39, 96, 147, .5), transparent 60%),
    var(--ink);
  color: #c9d5e2;
}
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #8fb6dc; }
.contact-copy > p { font-size: 1.1rem; }
.contact-details { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.contact-details li { display: flex; gap: 14px; align-items: center; }
.contact-details svg { flex: none; color: #8fb6dc; margin-top: 2px; }
.contact-details a { color: #fff; font-weight: 500; }
.contact-details a:hover { color: #8fb6dc; }

.contact-form {
  background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg);
  display: grid; gap: 18px; color: var(--ink-2);
}
.contact-form h3 { font-size: 1.35rem; margin: 0 0 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-3); }
.contact-form input, .contact-form textarea {
  font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  padding: 12px 14px; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(39, 96, 147, .14);
}
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: .8rem; color: var(--ink-3); margin: -4px 0 0; }
/* Keap's validation messages */
.infusion-field-required { border-color: #d64545 !important; }
.infusion-field-required-errorMessage { color: #c53030; font-size: .85rem; font-weight: 500; }
/* Hide the floating reCAPTCHA badge; the form note above provides the required disclosure */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 600px) {
  .contact-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-inner .brand img { height: 42px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-inner nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.footer-inner nav a:hover { color: var(--brand); }
.footer-inner p { margin: 0; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 760px) { .footer-inner { flex-direction: column; text-align: center; } }
