:root {
  --accent: #0f4c5c;
  --accent-dark: #0a3742;
  --ink: #1c2529;
  --muted: #5b6770;
  --line: #e4e8ea;
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --max: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--muted); font-weight: 600; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.strapline {
  margin: 16px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.strapline strong { color: var(--accent); font-weight: 600; }
.lede {
  max-width: 560px;
  margin: 20px auto 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 32px;
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 12px 28px rgba(15, 76, 92, 0.1);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); border-block: 1px solid var(--line); }
.about p { max-width: 640px; margin-bottom: 16px; color: var(--muted); }
.about .signature { color: var(--ink); font-weight: 600; }

/* ---------- Team ---------- */
.site-nav a[aria-current="page"] { color: var(--accent); }
.team h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 12px; }
.team-lede { color: var(--muted); margin-bottom: 32px; }
.member { text-align: center; }
.member-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}
.member h3 { margin-bottom: 2px; }
.card.member { cursor: pointer; }
.member-open {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.member-open:focus-visible { outline: none; }
.card.member:has(.member-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Member modal ---------- */
.member-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  color: var(--ink);
}
.member-dialog::backdrop { background: rgba(28, 37, 41, 0.55); }
.member-dialog-body { padding: 48px 40px 40px; }
.member-dialog-body > p:not(.member-role) { color: var(--muted); font-size: 1.05rem; }
.member-dialog .member-photo { width: 140px; height: 140px; font-size: 3rem; }
.member-dialog h3 { font-size: 1.6rem; }
.member-dialog .member-role { font-size: 1.1rem; }
.member-dialog .member-skills { font-size: 1.05rem; }
.member-dialog .member-skills li + li { margin-top: 8px; }
.member-dialog .member-skills li::before { width: 20px; height: 20px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { background: var(--bg-soft); color: var(--ink); }
.dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
body:has(.member-dialog[open]) { overflow: hidden; }
@media (max-width: 640px) {
  .member-dialog-body { padding: 44px 20px 28px; }
}
.member .member-role { color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.member-skills {
  display: inline-block;
  margin-top: 14px;
  list-style: none;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
}
.member-skills li { display: flex; align-items: center; gap: 8px; }
.member-skills li + li { margin-top: 4px; }

/* Skill icons: one SVG per skill, tinted with the accent colour via mask. */
.member-skills li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.skill-admin { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='8' y='2' width='8' height='4' rx='1'/><path d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/></svg>"); }
.skill-ecommerce { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='21' r='1'/><circle cx='19' cy='21' r='1'/><path d='M2 2h2l2.7 12.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 1.9-1.6L22 7H5.1'/></svg>"); }
.skill-supply { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/><path d='M15 18H9'/><path d='M19 18h2a1 1 0 0 0 1-1v-3.6a1 1 0 0 0-.2-.6l-3.5-4.4a1 1 0 0 0-.8-.4H14'/><circle cx='17' cy='18' r='2'/><circle cx='7' cy='18' r='2'/></svg>"); }
.skill-service { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>"); }
.skill-leads { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>"); }
.skill-ai { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 3l1.9 5.1L18 10l-5.1 1.9L11 17l-1.9-5.1L4 10l5.1-1.9z'/><path d='M19 16v5M16.5 18.5h5'/></svg>"); }
.skill-social { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z'/><path d='M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14'/><path d='M8 6v8'/></svg>"); }
.skill-brand { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/><circle cx='7.5' cy='7.5' r='1.5'/></svg>"); }
.skill-mortgage { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/><path d='M3 10a2 2 0 0 1 .7-1.5l7-6a2 2 0 0 1 2.6 0l7 6a2 2 0 0 1 .7 1.5v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/></svg>"); }
.skill-compliance { --icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.7 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/><path d='m9 12 2 2 4-4'/></svg>"); }

/* ---------- Contact ---------- */
.contact > .wrap > p { color: var(--muted); margin-bottom: 28px; }

#contact-form {
  max-width: 520px;
  display: grid;
  gap: 18px;
}
#contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
#contact-form input,
#contact-form textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  width: 100%;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
#contact-form .btn { justify-self: start; }

#form-status { font-weight: 500; font-size: 0.95rem; }
#form-status.ok { color: #1a7f4b; }
#form-status.err { color: #b3261e; }

.contact-alt { margin-top: 28px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
  }
  .wordmark span { display: none; }
  section, .hero { padding: 56px 0; }
}
