:root {
  --navy: #08264a;
  --navy-deep: #061b35;
  --blue: #1769b7;
  --sky: #8bd1f0;
  --brick: #a94e37;
  --brick-dark: #743222;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #172235;
  --muted: #5c6878;
  --line: #d9e1e8;
  --shadow: 0 18px 50px rgba(8, 38, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px 6%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 38, 74, 0.12);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 218px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.98rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.header-action {
  background: var(--navy);
  color: var(--paper);
}

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

.hero {
  position: relative;
  min-height: 430px;
  height: calc(100svh - 170px);
  max-height: 620px;
  isolation: isolate;
  background-image: url("Mercantile.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 27, 53, 0.73);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: rgba(116, 50, 34, 0.28);
}

.hero-inner {
  width: min(1120px, 88%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.96rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.consultation-band .eyebrow {
  color: var(--sky);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 4.35rem;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 2.55rem;
}

h3 {
  color: var(--navy);
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 710px;
  margin-bottom: 28px;
  color: #edf7fc;
  font-size: 1.22rem;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-primary {
  background: var(--sky);
  color: var(--navy-deep);
}

.button-secondary {
  border: 2px solid rgba(255, 255, 255, 0.78);
  color: var(--paper);
}

.button-secondary:hover {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.hero-proof {
  margin-top: 24px;
}

.hero-proof span {
  border-left: 4px solid var(--sky);
  padding: 6px 16px 6px 12px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 700;
}

.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 78px;
  padding: 18px 6%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-strip p {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.section {
  width: min(1120px, 88%);
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 370px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 7px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-number {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #e6f5fc;
  color: var(--navy);
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

.service-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brick);
}

.consultation-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 70px 6%;
  background: var(--navy);
  color: var(--paper);
}

.consultation-band h2 {
  color: var(--paper);
}

.consultation-band p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: #d7effa;
  font-size: 1.12rem;
}

.button-light {
  background: var(--paper);
  color: var(--navy);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: center;
  gap: 58px;
}

.portrait-wrap {
  overflow: hidden;
  border-radius: 8px;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-section {
  padding-top: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(380px, 1.12fr);
  gap: 34px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: block;
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border-left: 6px solid var(--brick);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(8, 38, 74, 0.09);
  color: inherit;
  font-style: normal;
  text-decoration: none;
}

.contact-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.office-photo {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.office-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
}

.office-photo figcaption {
  padding: 16px 20px 20px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 6%;
  background: var(--navy-deep);
  color: var(--paper);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .brand img {
    width: 194px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .service-grid,
  .about-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .consultation-band {
    grid-template-columns: 1fr;
  }

  .button-light {
    width: fit-content;
  }

  .portrait-wrap {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 90px;
  }

  .site-header {
    min-height: 76px;
    gap: 14px;
    padding: 12px 5%;
  }

  .brand img {
    width: 152px;
  }

  .header-action {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 390px;
    height: calc(100svh - 180px);
    background-position: center;
  }

  .hero-inner,
  .section {
    width: min(100% - 34px, 1120px);
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.34rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

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

  .hero-proof {
    display: none;
  }

  .trust-strip {
    min-height: 68px;
  }

  .trust-strip p {
    font-size: 1.02rem;
  }

  .section {
    padding: 64px 0;
  }

  .service-card {
    min-height: auto;
    padding: 26px;
  }

  .consultation-band {
    padding: 58px 5%;
  }

  .office-photo img {
    height: 300px;
  }

  .site-footer {
    flex-direction: column;
  }
}
