:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #4a4843;
  --faint: #7a766e;
  --border: #e4e0d8;
  --border-strong: #c9c4ba;
  --accent: #274a6d;
  --accent-hover: #1b3550;
  --bar: #e9e5de;
  --bar-strong: #d9d4cb;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --radius-lg: 8px;
  --container: 1248px;
  --gutter: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Keep jump targets clear of the sticky header */
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
svg { flex-shrink: 0; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}

.fineprint {
  font-size: 14px;
  color: var(--faint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn--dark { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 28px; height: 28px; color: var(--text); }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
}
.nav__menu a { color: var(--muted); }
.nav__menu a:hover { color: var(--text); }
.nav__menu .btn, .nav__menu .btn:hover { color: var(--bg); }
.nav__brandline { display: none; }
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero { padding: 104px 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 7fr 1fr 4fr;
  align-items: center;
  gap: 32px;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* Sample quotation */
.quote {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 56px -40px rgba(28, 27, 25, 0.45);
  font-size: 14px;
}
.quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.quote__head > div { display: flex; flex-direction: column; gap: 4px; }
.quote__label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.quote__company { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.quote__meta { font-size: 13px; color: var(--faint); }
.quote__meta--right { align-items: flex-end; text-align: right; }
.quote__lines { display: flex; flex-direction: column; gap: 12px; }
.quote__lines li, .quote__total { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quote__total { font-size: 15px; font-weight: 600; }
.quote__amount { width: 64px; height: 12px; background: var(--bar); border-radius: 3px; }
.quote__amount--total { width: 80px; height: 14px; background: var(--bar-strong); }
.quote__note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.quote__note svg { color: var(--accent); }

/* Sections */
.section { padding-bottom: 112px; }
.section__inner {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.split {
  display: grid;
  grid-template-columns: 4fr 1fr 7fr;
  gap: 32px;
}
.split > :last-child { grid-column: 3; }
.stack { display: flex; flex-direction: column; gap: 36px; }
.stack > div { display: flex; flex-direction: column; gap: 8px; }
.stack p { font-size: 17px; color: var(--muted); text-wrap: pretty; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.steps .card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}
.steps h3 { font-size: 20px; }
.steps p:not(.step__num) { color: var(--muted); text-wrap: pretty; }
.step__num { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23274a6d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center;
}

/* Pricing */
.pricing { display: flex; flex-direction: column; gap: 20px; }
.pricing__lead {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.25;
  text-wrap: balance;
}
.pricing__rate { color: var(--accent); }
.pricing > p:not(.pricing__lead) { font-size: 17px; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.pricing__lines { margin-top: 12px; }
.pricing__lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 17px;
}
.pricing__lines li:last-child { border-bottom: 1px solid var(--border); font-weight: 600; }
.pricing__lines li > span:last-child { color: var(--muted); text-align: right; }
.pricing__lines li:last-child > span:last-child { color: var(--text); }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  gap: 32px;
  align-items: start;
}
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact__intro > p { font-size: 17px; color: var(--muted); text-wrap: pretty; }
.channels { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s ease;
}
.channel:hover { border-color: var(--text); color: var(--text); }
.channel svg { color: var(--accent); }
.channel > span { display: flex; flex-direction: column; gap: 2px; }
.channel strong { font-size: 15px; font-weight: 600; }
.channel span span { font-size: 14px; color: var(--muted); }
.details { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; font-size: 15px; }
.details > div { display: flex; gap: 12px; }
.details dt { width: 72px; flex-shrink: 0; color: var(--faint); }

.form {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.form input, .form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: #a19c93; }
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.form input.is-invalid, .form textarea.is-invalid { border-color: #b3261e; }
.form__error { font-size: 14px; color: #b3261e; }
.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.form .btn { height: 48px; }

/* Legal pages */
.legal { padding: 72px 0 112px; }
.legal__inner { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.legal__title { margin-bottom: 8px; }
.legal__meta { font-size: 15px; color: var(--faint); padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.legal h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin-top: 24px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.legal ul { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; list-style: disc; }
.legal li::marker { color: var(--accent); }
.nav__menu--simple { gap: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--faint);
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand .brand { font-size: 15px; }
.footer__brand .brand__mark { width: 24px; height: 24px; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { color: var(--faint); }
.footer__links a:hover { color: var(--text); }

/* Tablet */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .quote { grid-column: auto; max-width: 480px; }
  .split, .contact { grid-template-columns: 1fr; gap: 32px; }
  .split > :last-child, .form { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav__inner { height: 64px; }
  [id] { scroll-margin-top: 80px; }
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu--simple { display: flex; position: static; flex-direction: row; align-items: center; gap: 16px; padding: 0; border: 0; background: none; }
  .nav__menu--simple a { padding: 0; font-size: 14px; }
  .nav__menu--simple .btn { display: none; }
  .legal { padding: 40px 0 56px; }
  .legal p, .legal li { font-size: 16px; }
  .nav__menu a { padding: 14px 0; font-size: 16px; }
  .nav__menu .btn { margin-top: 8px; }
  .nav__brandline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  .nav__brandlogo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
  .nav__tagline { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
  .hero { padding: 56px 0 48px; }
  .hero__copy { gap: 20px; }
  .lead { font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .quote { padding: 22px; box-shadow: 0 24px 40px -32px rgba(28, 27, 25, 0.45); }
  .section { padding-bottom: 56px; }
  .section__inner { padding-top: 36px; gap: 28px; }
  .stack { gap: 28px; }
  .stack p { font-size: 16px; }
  .steps .card { padding: 22px; gap: 10px; }
  .steps h3 { font-size: 18px; }
  .steps p:not(.step__num) { font-size: 15px; }
  .step__num { font-size: 26px; }
  .checks li { font-size: 16px; padding: 16px 0; gap: 12px; }
  .pricing__lines li { font-size: 15px; flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px 0; }
  .pricing__lines li > span:last-child { text-align: left; }
  .form { padding: 22px; gap: 14px; }
  .form__grid { grid-template-columns: 1fr; gap: 14px; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .form__buttons { flex-direction: column; }
  .form .btn { width: 100%; height: 50px; }
  .footer__inner { flex-direction: column; align-items: flex-start; padding-top: 28px; padding-bottom: 36px; font-size: 13px; }
  .footer__links { gap: 20px; }
}
