:root {
  --paper: #dceef8;
  --paper-strong: #eef8ff;
  --ink: #102b3f;
  --muted: #1f3749;
  --line: rgba(16, 43, 63, 0.17);
  --sage: #5aa2c8;
  --sage-dark: #175d84;
  --terracotta: #8d4f3f;
  --blue: #1f7fab;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(23, 64, 86, 0.13);
  --container: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html.js body {
  opacity: 0;
  transform: translateX(38px);
}

html.js body.page-ready {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 360ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js body.page-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-38px);
  transition:
    opacity 240ms ease,
    transform 300ms cubic-bezier(0.4, 0, 1, 1);
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js body,
  html.js body.page-ready,
  html.js body.page-leaving {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: transparent;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-is-open,
.site-header.header-solid {
  background: rgba(23, 93, 132, 0.96);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(16, 43, 63, 0.16);
  backdrop-filter: blur(18px);
}

.page-hero + .section {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a[aria-current="page"],
.site-header.nav-is-open .site-nav a:hover,
.site-header.nav-is-open .site-nav a[aria-current="page"],
.site-header.header-solid .site-nav a:hover,
.site-header.header-solid .site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 5vw, 56px) 72px;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  left: -1px;
  width: calc(100% + 2px);
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(13, 37, 50, 0.58) 0%, rgba(13, 37, 50, 0.18) 24%, transparent 44%),
    linear-gradient(90deg, rgba(13, 37, 50, 0.78) 0%, rgba(13, 37, 50, 0.5) 36%, rgba(13, 37, 50, 0.14) 72%),
    linear-gradient(0deg, rgba(13, 37, 50, 0.48) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c5a8;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-size: clamp(54px, 8vw, 112px);
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 25px;
}

p {
  margin: 0;
}

p + p {
  margin-top: 16px;
}

.hero-lead {
  width: min(640px, 100%);
  margin-top: 22px;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--sage-dark);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.68);
  color: var(--white);
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.intro-band,
.deduction-band {
  background: #eaf6fd;
}

.intro-grid,
.deduction-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.deduction-layout {
  grid-template-columns: minmax(320px, 520px) minmax(360px, 1fr);
  gap: clamp(64px, 10vw, 150px);
}

.deduction-layout h2 {
  max-width: 520px;
}

.intro-grid > p,
.deduction-layout p {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.section-heading {
  display: block;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(34, 35, 31, 0.08);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.86);
  box-shadow: 0 18px 48px rgba(16, 83, 119, 0.12);
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  background: var(--white);
  box-shadow: 0 24px 60px rgba(16, 83, 119, 0.18);
  transform: translateY(-3px);
}

.detail-index {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 84px;
  padding: 5px 10px;
  border: 1px solid rgba(141, 79, 63, 0.28);
  border-radius: 999px;
  background: rgba(141, 79, 63, 0.07);
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card p {
  margin-top: 18px;
  color: var(--muted);
}

.people-section {
  background:
    linear-gradient(120deg, rgba(110, 167, 189, 0.16), transparent 52%),
    var(--paper);
}

.people-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.people-layout p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.people-layout h2 {
  margin-bottom: 24px;
}

.people-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portrait-card {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center top;
}

.portrait-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(238, 248, 255, 0.92);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(16, 83, 119, 0.14);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.page-hero {
  min-height: 54vh;
  display: grid;
  align-items: end;
  padding: 140px 0 70px;
  background:
    radial-gradient(circle at 86% 20%, rgba(90, 162, 200, 0.28), transparent 28%),
    linear-gradient(135deg, #cfe8f6, var(--paper) 54%, #b9dced);
}

.page-hero-inner {
  max-width: 850px;
}

.page-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.page-hero p:last-child {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 21px;
}

.detail-list {
  border-top: 1px solid var(--line);
}

.detail-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(28px, 6vw, 80px);
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item .detail-index {
  margin-bottom: 18px;
}

.detail-item p {
  color: var(--muted);
  font-size: 18px;
}

.price-stack {
  display: grid;
  gap: 34px;
}

.price-note {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  padding: 22px 24px;
  border-left: 5px solid var(--sage);
  background: var(--paper-strong);
  border-radius: var(--radius);
}

.price-note p {
  color: var(--muted);
}

.price-block {
  padding: 30px;
  background: rgba(248, 252, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-block-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.price-block-heading span {
  color: var(--muted);
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  color: var(--sage-dark);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.small-print {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.78);
}

.primary-contact {
  grid-column: span 2;
  min-height: 270px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(112, 133, 110, 0.18), rgba(183, 100, 69, 0.13)),
    var(--paper-strong);
}

.contact-card h2 {
  margin-bottom: 16px;
}

.pending {
  margin-top: 18px;
  color: var(--terracotta);
  font-weight: 750;
}

.phone-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sage-dark);
  font-size: 22px;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.company-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.company-list div {
  display: grid;
  gap: 3px;
}

.company-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-list dd {
  margin: 0;
}

.site-footer {
  padding: 34px 0;
  background: #142d3a;
  color: rgba(255, 255, 255, 0.8);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.site-footer p {
  margin-top: 4px;
}

.site-footer a,
.site-footer span {
  display: block;
}

.site-footer a {
  color: var(--white);
  font-weight: 750;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 82px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-radius: 6px;
    padding: 13px 12px;
  }

  .site-header.nav-is-open .site-nav a:hover,
  .site-header.nav-is-open .site-nav a[aria-current="page"] {
    background: rgba(31, 127, 171, 0.14);
  }

  .hero {
    min-height: 76vh;
  }

  .intro-grid,
  .deduction-layout,
  .people-layout,
  .detail-item,
  .price-note {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 260px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .primary-contact {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    padding: 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 17px;
  }

  .hero {
    min-height: 74vh;
    padding: 118px 14px 44px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(13, 37, 50, 0.58) 0%, rgba(13, 37, 50, 0.18) 24%, transparent 44%),
      linear-gradient(90deg, rgba(13, 37, 50, 0.82), rgba(13, 37, 50, 0.42)),
      linear-gradient(0deg, rgba(13, 37, 50, 0.48) 0%, transparent 48%);
  }

  h1 {
    font-size: 54px;
  }

  .hero-lead,
  .page-hero p:last-child {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 48px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .service-grid,
  .people-panel {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .portrait-card,
  .portrait-card img {
    min-height: 240px;
  }

  .page-hero {
    min-height: 45vh;
    padding: 112px 0 44px;
  }

  .page-hero h1 {
    font-size: 45px;
  }

  .price-block,
  .contact-card {
    padding: 22px;
  }

  .price-block-heading {
    display: block;
  }

  .price-block-heading .text-link,
  .price-block-heading span {
    margin-top: 10px;
  }

  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .price-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .price-table tr:last-child {
    border-bottom: 0;
  }

  .price-table td {
    display: grid;
    grid-template-columns: minmax(110px, 42%) 1fr;
    gap: 12px;
    padding: 7px 0;
    border: 0;
  }

  .price-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .footer-layout {
    display: grid;
  }
}
