:root {
  --navy: #15233b;
  --navy2: #1e3a5f;
  --ink: #111827;
  --muted: #5b6573;
  --line: #e7e1d6;
  --paper: #f6f1e8;
  --card: #fffdf8;
  --call: #1d4ed8;
  --sms: #0f766e;
  --mail: #7c3aed;
  --video: #b45309;
  --ask: #b91c1c;
  --ok: #3f6212;
  --harbor: #1e3a5f;
  --marion: #3f6212;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
a { color: var(--navy2); }
.layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
nav {
  background: var(--navy);
  color: #e8eef7;
  padding: 28px 18px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
nav .brand { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #c4a574; font-weight: 700; }
nav h1 { font-size: 20px; margin: 8px 0 22px; letter-spacing: -.03em; color: #fff; }
nav a {
  display: block; color: #c9d4e5; text-decoration: none;
  padding: 8px 10px; border-radius: 8px; font-size: 14px; margin-bottom: 2px;
}
nav a:hover, nav a.active { background: #243754; color: #fff; }
nav .foot { margin-top: 28px; font-size: 11px; color: #8b9bb3; line-height: 1.4; }
main { padding: 36px 48px 80px; max-width: 980px; }
h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; }
h3 { font-size: 18px; margin: 28px 0 10px; }
.lead { color: var(--muted); margin: 0 0 22px; line-height: 1.5; max-width: 640px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; margin: 14px 0;
}
.row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.when { font-weight: 700; font-size: 13px; padding-top: 2px; }
.ch {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 99px; color: #fff; margin: 0 6px 4px 0;
}
.call { background: var(--call); } .sms { background: var(--sms); } .email { background: var(--mail); }
.vid { background: var(--video); } .ask { background: var(--ask); } .ok { background: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3eee4; font-size: 12px; }
.quote {
  background: #111827; color: #f3eee4; border-radius: 14px;
  padding: 14px 16px; font-size: 14px; line-height: 1.45; margin: 10px 0;
}
.quote .who { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #c4a574; margin-bottom: 6px; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.office { border-radius: 12px; padding: 16px; color: #fff; }
.office h3 { margin: 0 0 6px; color: #fff; }
.office p { margin: 0; font-size: 13px; opacity: .92; line-height: 1.45; }
.h { background: var(--harbor); } .m { background: var(--marion); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; font: inherit; font-size: 13px;
}
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel { display: none; } .panel.on { display: block; }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; margin-bottom: 18px;
}
.hero img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.btn {
  display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-right: 8px;
}
.btn.alt { background: #fff; color: var(--navy) !important; border: 1px solid var(--line); }
.steps { border-left: 3px solid var(--line); margin: 18px 0 18px 8px; padding-left: 18px; }
.step { margin: 0 0 22px; position: relative; }
.step:before {
  content: ""; width: 11px; height: 11px; background: var(--navy2); border-radius: 50%;
  position: absolute; left: -25px; top: 6px;
}
.sms-ui {
  max-width: 380px; background: #e8ece8; border-radius: 22px; padding: 16px 12px;
  margin: 10px 0 14px;
}
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 13px; line-height: 1.4; margin: 8px 0; }
.out { background: #1d4ed8; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.in { background: #fff; margin-right: auto; border-bottom-left-radius: 4px; }
.callbox { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.note { font-size: 13px; color: var(--muted); }
.size-calc { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.size-calc label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 4px; }
.size-calc input { width: 90px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.size-calc button { padding: 9px 14px; border-radius: 8px; border: 0; background: var(--navy); color: #fff; font: inherit; cursor: pointer; }
#sizeOut { margin-top: 10px; font-weight: 600; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  nav { position: relative; height: auto; }
  .hero, .offices { grid-template-columns: 1fr; }
  main { padding: 24px 18px 60px; }
}

img { max-width: 100%; height: auto; }
.menu-btn { display: none; }
.nav-links { display: contents; }

@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .layout { grid-template-columns: 1fr; }
  nav {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    max-height: 100dvh;
    overflow: auto;
    padding: 12px 16px;
    padding-right: 88px;
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  nav .brand { font-size: 10px; }
  nav h1 { font-size: 17px; margin: 4px 0 0; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: calc(12px + env(safe-area-inset-top));
    min-height: 44px;
    min-width: 72px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #c4a574;
    color: #15233b;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  nav { position: sticky; }
  .nav-links { display: none; margin-top: 12px; }
  nav.open {
    padding-right: 16px;
  }
  nav.open .nav-links { display: block; }
  nav.open .foot { margin-top: 16px; }
  nav a {
    padding: 12px 12px;
    font-size: 16px;
    min-height: 44px;
  }
  main {
    padding: 18px 16px calc(48px + env(safe-area-inset-bottom));
    max-width: 100%;
  }
  h2 { font-size: 24px; }
  h3 { font-size: 16px; }
  .lead { font-size: 15px; margin-bottom: 16px; }
  .hero, .offices { grid-template-columns: 1fr; }
  .hero { gap: 14px; }
  .btn {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    min-height: 44px;
    line-height: 24px;
    padding: 10px 16px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .when {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0;
  }
  .card {
    padding: 14px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { font-size: 13px; min-width: 520px; }
  .quote { font-size: 14px; }
  .sms-ui { max-width: 100%; }
  .tabs button { min-height: 40px; }
  .size-calc input, .size-calc button {
    min-height: 44px;
    font-size: 16px;
  }
  .size-calc input { width: 100%; max-width: 140px; }
  .callbox { font-size: 14px; }
}

@media (max-width: 420px) {
  h2 { font-size: 22px; }
  nav h1 { font-size: 16px; }
}
