:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --surface-strong: #0f3140;
  --surface-soft: #dce8e9;
  --text: #14252d;
  --text-soft: #536067;
  --line: rgba(20, 37, 45, 0.12);
  --accent: #1f7a78;
  --accent-strong: #185f5d;
  --accent-pale: #c5dfda;
  --shadow: 0 24px 60px rgba(15, 49, 64, 0.08);
  --radius: 24px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 120, 0.12), transparent 24%),
    linear-gradient(180deg, #f1ece1 0%, var(--bg) 36%, #f9f7f1 100%);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 1.25rem 0 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 236, 0.78);
  border-bottom: 1px solid rgba(20, 37, 45, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong,
.hero-copy h1,
.section-heading h1,
.section-heading h2,
.card h2,
.card h3,
.reference-card h3,
.legal-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.legal-card p {
  margin: 4px 0;
}

.brand-copy strong {
  font-size: 1.05rem;
}

.brand-copy span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a,
.footer-links a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.96rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(31, 122, 120, 0.1);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.hero {
  padding-top: 4.5rem;
}

.hero-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-copy h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.05rem, 3.35vw, 3.55rem);
}

.lead,
.section-heading p,
.card p,
.reference-card p,
.legal-card p,
.profile-card p {
  color: var(--text-soft);
}

.lead {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #f9fcfb;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 30px rgba(31, 122, 120, 0.22);
}

.button-secondary {
  border: 1px solid rgba(20, 37, 45, 0.15);
  background: rgba(255, 253, 248, 0.72);
}

.hero-panel,
.card,
.reference-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(15, 49, 64, 0.98) 0%, rgba(18, 59, 66, 0.95) 100%),
    var(--surface-strong);
  color: #eff8f7;
  align-self: end;
  margin-top: clamp(1rem, 4vw, 3.25rem);
}

.hero-panel p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel ul,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li,
.detail-list li {
  position: relative;
  padding-left: 1.35rem;
}

.hero-panel li + li,
.detail-list li + li {
  margin-top: 0.85rem;
}

.hero-panel li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-pale);
}

.cards,
.services-grid,
.reference-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accent-card {
  padding: 1.6rem;
  min-height: 100%;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-strong);
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.large-card,
.service-card,
.profile-card,
.legal-card {
  padding: 1.8rem;
}

.reference-grid,
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.reference-card {
  padding: 1.6rem;
}

.reference-card span {
  display: block;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.reference-card span a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.section-contrast {
  position: relative;
  overflow: hidden;
  color: #eff8f7;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #173846 0%, #0f3140 48%, #174d4b 100%);
}

.section-contrast::after {
  content: "";
  position: absolute;
  inset: auto -5% -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(197, 223, 218, 0.08);
  filter: blur(2px);
}

.section-heading {
  max-width: 760px;
}

.section-heading-light .eyebrow,
.section-heading-light p {
  color: rgba(239, 248, 247, 0.8);
}

.compact-heading {
  max-width: none;
}

.services-grid {
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.service-card p {
  color: rgba(239, 248, 247, 0.84);
}

.profile-card {
  align-self: stretch;
}

.profile-list {
  margin: 0;
}

.profile-list div + div {
  margin-top: 1.1rem;
}

.profile-list dt {
  font-weight: 700;
  color: var(--accent-strong);
}

.profile-list dd {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.profile-list a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-block {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-block a {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-strong);
}

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(20, 37, 45, 0.08);
  background: rgba(255, 253, 248, 0.58);
}

.site-footer p {
    font-size: 15px;
}

.footer-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-layout p {
  margin-bottom: 0;
  max-width: 38ch;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.subpage-body {
  min-height: 100vh;
}

.subpage-header {
  position: relative;
}

.legal-layout {
  display: grid;
  gap: 1.25rem;
}

.legal-copy {
  display: grid;
  gap: 1rem;
}

.legal-copy p {
  margin: 0;
  color: var(--text-soft);
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

@media (max-width: 1024px) {
  .hero-layout,
  .profile-layout,
  .split-layout,
  .reference-grid,
  .services-grid,
  .cards-three {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .hero-panel {
    align-self: start;
    margin-top: 0;
  }

  .footer-layout,
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.6rem);
  }

  .brand {
    align-items: flex-start;
  }

  .site-nav a,
  .footer-links a,
  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}