:root {
  --sage: #2f8750;
  --deep-sage: #16653a;
  --harbor: #0754a6;
  --ink: #182323;
  --muted: #5c6965;
  --cream: #f4efe5;
  --mist: #dce8e2;
  --sky: #d8e5f3;
  --gold: #d99a24;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(24, 35, 35, 0.1);
  backdrop-filter: blur(18px);
}

.brand img {
  width: clamp(200px, 17vw, 250px);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a,
.header-cta,
.button,
.service-grid a,
.text-link {
  text-decoration: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  font-weight: 700;
}

.header-cta {
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
}

.section-band {
  padding: clamp(54px, 7vw, 92px) clamp(22px, 5vw, 72px);
}

section {
  scroll-margin-top: 128px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding-top: clamp(70px, 8vw, 112px);
  padding-bottom: clamp(150px, 14vw, 190px);
  background:
    linear-gradient(
      90deg,
      rgba(244, 239, 229, 0.95) 0%,
      rgba(244, 239, 229, 0.78) 24%,
      rgba(220, 232, 226, 0.14) 46%,
      rgba(220, 232, 226, 0.04) 100%
    ),
    url("assets/hero-family-generations-2000.jpg") 58% center / cover no-repeat,
    var(--cream);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--deep-sage);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
}

h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 5vw, 5.35rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.6vw, 4.9rem);
}

h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.1;
}

.lead {
  max-width: 560px;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.45vw, 1.34rem);
  font-weight: 700;
}

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

.button-primary {
  border-color: var(--harbor);
  background: var(--harbor);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero-photo p {
  margin: 0;
  padding: 18px clamp(22px, 5vw, 72px);
  color: var(--white);
  background: rgba(22, 101, 58, 0.88);
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(50px, 6vw, 78px) clamp(22px, 5vw, 72px);
  background: var(--white);
}

.intro h2,
.section-heading h2 {
  font-size: clamp(2.25rem, 4.3vw, 4.35rem);
}

.intro > p,
.feature-copy p,
.contact p,
.about-card p {
  color: var(--muted);
  font-size: 1.12rem;
}

.services {
  background: var(--sky);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: 30px;
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

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

.service-grid article {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  background: var(--white);
  border: 1px solid rgba(24, 35, 35, 0.12);
}

.service-grid span {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-grid p {
  color: var(--muted);
}

.service-grid a,
.text-link {
  width: fit-content;
  margin-top: auto;
  color: var(--harbor);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  min-height: 600px;
}

.feature.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 0.95fr);
}

.feature-image,
.feature-copy,
.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 66px);
}

.logo-field {
  overflow: hidden;
  background: var(--mist);
}

.logo-field img {
  width: min(720px, 118%);
  max-width: none;
  margin-left: -10%;
  box-shadow: 0 18px 44px rgba(24, 35, 35, 0.16);
}

.photo-field {
  overflow: hidden;
  padding: 0;
  background: var(--mist);
}

.photo-field img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center;
}

.feature-copy {
  background: var(--white);
}

.feature-copy h2,
.contact h2 {
  font-size: clamp(2.25rem, 4.3vw, 4.45rem);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  color: var(--ink);
  background: linear-gradient(var(--sage), var(--sage)) left 0.7em / 12px 2px no-repeat;
  font-weight: 700;
}

.quote-panel {
  background: var(--deep-sage);
  color: var(--white);
}

.quote-panel p {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.3vw, 4.6rem);
  line-height: 1.1;
}

.why {
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(24, 35, 35, 0.14);
}

.why-grid div {
  min-height: 220px;
  padding: 28px;
  background: var(--cream);
}

.why-grid p {
  color: var(--muted);
}

.about {
  padding: clamp(42px, 5vw, 68px) clamp(22px, 5vw, 72px);
  background: var(--white);
}

.about-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 22px;
  align-items: start;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-media {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.about-media img {
  width: 220px;
  padding: 14px;
  background: var(--white);
  justify-self: start;
}

.about-headshot {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.about-credential {
  width: min(100%, 188px);
  height: auto;
  padding: 10px;
}

.about-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.about-copy p {
  margin-bottom: 14px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-card .registered-mark {
  font-size: 0.38em;
  vertical-align: super;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.contact .eyebrow {
  color: var(--gold);
}

.contact p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  min-height: 50px;
  border: 0;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.contact-links {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-links a {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  text-decoration: none;
}

.contact-links span {
  margin-left: 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(22px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.95rem;
}

footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .hero {
    background-position: 54% center;
  }
}

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

  section {
    scroll-margin-top: 156px;
  }

  nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro,
  .section-heading,
  .feature,
  .feature.reverse,
  .about-card,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background-position: 52% center;
  }

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

  .feature.reverse .quote-panel {
    order: -1;
  }

  .about-media {
    justify-items: center;
  }

  .about-media img {
    grid-row: auto;
    width: 180px;
  }

  .about-credential {
    width: 168px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    gap: 14px;
  }

  .brand img {
    width: 164px;
  }

  .header-cta {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  nav {
    gap: 18px;
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 126px;
    background:
      linear-gradient(
        180deg,
        rgba(244, 239, 229, 0.97) 0%,
        rgba(244, 239, 229, 0.82) 44%,
        rgba(220, 232, 226, 0.24) 100%
      ),
      url("assets/hero-family-generations-1200.jpg") 47% center / cover no-repeat,
      var(--cream);
  }

  .hero-photo p {
    padding: 16px 14px;
    font-size: 1.1rem;
  }

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

  .service-grid article {
    min-height: 310px;
  }

  .feature,
  .feature.reverse {
    min-height: auto;
  }

  .photo-field img {
    min-height: 320px;
  }

  .logo-field img {
    width: 132%;
    margin-left: -17%;
  }

  .contact-links span {
    display: block;
    margin: 2px 0 0;
  }

  footer {
    flex-direction: column;
  }
}
