:root {
  --paper: #f6f3ec;
  --paper-strong: #eee6d8;
  --surface: #fffdf8;
  --ink: #101114;
  --muted: #5b5f5a;
  --line: #ddd5c6;
  --blue: #08175d;
  --blue-soft: #d9e2f2;
  --sage: #dce9dc;
  --sage-strong: #a9c8ac;
  --gold: #f4ce73;
  --clay: #e8c5b5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 17, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: 62px;
  line-height: 0.98;
}

h2 {
  font-size: 42px;
  line-height: 1.08;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 104px 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px max(24px, calc((100vw - 1160px) / 2));
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid rgba(221, 213, 198, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  border-radius: 8px;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.primary-nav .nav-cta {
  margin-left: 6px;
  color: var(--surface);
  background: var(--ink);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus {
  color: var(--surface);
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--surface);
  background: var(--ink);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--blue);
}

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

.button-secondary:hover,
.button-secondary:focus {
  background: var(--surface);
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  border-bottom: 2px solid currentColor;
}

.text-link:hover,
.text-link:focus {
  color: var(--blue);
}

.hero {
  padding-top: 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.76fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 760px;
}

.hero-lede {
  max-width: 660px;
  margin-top: 26px;
  color: #30332f;
  font-size: 21px;
  line-height: 1.55;
}

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

.hero-visual {
  position: relative;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 47% 45%;
  transform: scale(1.48);
  transform-origin: 47% 45%;
}

.hero-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(221, 213, 198, 0.92);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
}

.hero-note strong {
  color: var(--ink);
  font-size: 18px;
}

.hero-note span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  padding: 28px 32px 30px 0;
}

.proof-strip div + div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.proof-strip span {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.proof-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.proof-strip p {
  font-size: 15px;
  line-height: 1.6;
}

.intro-panel {
  padding: 86px 0;
  background: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 70px;
  align-items: start;
}

.intro-panel .eyebrow,
.contact-section .eyebrow {
  color: var(--gold);
}

.intro-panel h2,
.contact-section h2,
.site-footer h2 {
  color: var(--surface);
}

.intro-text {
  display: grid;
  gap: 22px;
}

.intro-text p {
  color: #dbded7;
  font-size: 18px;
}

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

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

.service-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(16, 17, 20, 0.1);
}

.service-card h3 {
  min-height: 84px;
}

.service-card p {
  font-size: 16px;
}

.service-index {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.45);
}

.accent-sage {
  background: var(--sage);
}

.accent-blue {
  background: var(--blue-soft);
}

.accent-gold {
  background: #f8e4a7;
}

.accent-clay {
  background: var(--clay);
}

.image-band {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--surface);
  background: var(--ink);
}

.image-band-media {
  position: absolute;
  inset: 0;
  background-image: url("../img/services.jpg");
  background-position: center;
  background-size: cover;
}

.image-band-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(8, 12, 18, 0.58);
}

.image-band-content {
  position: relative;
  z-index: 1;
  padding: 112px 0;
}

.image-band h2 {
  max-width: 700px;
  color: var(--surface);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid rgba(255, 253, 248, 0.38);
  border-bottom: 1px solid rgba(255, 253, 248, 0.38);
}

.process-list div {
  min-height: 220px;
  padding: 28px 24px;
}

.process-list div + div {
  border-left: 1px solid rgba(255, 253, 248, 0.38);
}

.process-list span {
  display: block;
  margin-bottom: 40px;
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
}

.process-list p {
  color: #f1eee6;
  font-size: 15px;
  line-height: 1.6;
}

.story-section {
  background: var(--surface);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1fr;
  align-items: center;
  gap: 74px;
}

.story-card {
  padding: 42px;
  border: 1px solid rgba(16, 17, 20, 0.08);
  border-radius: 8px;
  background: var(--sage);
}

.story-card img {
  width: 74px;
  margin-bottom: 42px;
}

.story-card .eyebrow {
  margin-bottom: 18px;
}

.story-copy {
  display: grid;
  gap: 24px;
}

.story-copy p {
  color: #333630;
  font-size: 19px;
}

.reviews-section {
  position: relative;
  overflow: hidden;
  background: #e8e5dd;
}

.reviews-section::before {
  position: absolute;
  inset: 0;
  width: 44%;
  content: "";
  background-image: url("../img/testimonials.jpg");
  background-position: center;
  background-size: cover;
}

.reviews-section::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  content: "";
  background: rgba(246, 243, 236, 0.28);
}

.reviews-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 88px;
  align-items: start;
}

.reviews-heading {
  padding: 42px 0;
}

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

blockquote {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
}

blockquote p {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.contact-section {
  padding: 86px 0;
  background: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 78px;
  align-items: center;
}

.contact-actions {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.contact-actions p {
  color: #e6ebff;
  font-size: 18px;
}

.contact-section .button-primary {
  color: var(--ink);
  background: var(--gold);
}

.contact-section .button-primary:hover,
.contact-section .button-primary:focus {
  background: var(--surface);
}

.site-footer {
  padding: 62px 0 30px;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 0.82fr;
  gap: 54px;
}

.footer-logo {
  width: 54px;
  margin-bottom: 22px;
}

.site-footer p,
.site-footer a {
  color: #c7cabf;
  font-size: 15px;
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 15px;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--surface);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
}

.footer-bottom p {
  font-size: 14px;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 750;
}

.service-hero {
  padding: 80px 0 96px;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.service-hero h1 {
  font-size: 60px;
}

.service-hero p.lede {
  max-width: 700px;
  margin-top: 24px;
  color: #30332f;
  font-size: 21px;
  line-height: 1.55;
}

.service-hero-art {
  position: relative;
  height: 480px;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.service-hero-art.contain-art {
  display: grid;
  place-items: center;
  padding: 58px;
  background: var(--sage);
}

.service-hero-art.contain-art img {
  width: 160px;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.detail-section {
  padding: 92px 0;
  background: var(--surface);
}

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

.detail-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(16, 17, 20, 0.1);
  border-radius: 8px;
  background: var(--paper);
}

.detail-card h2,
.detail-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.18;
}

.detail-card p {
  font-size: 16px;
}

.planning-note {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 54px;
  margin-top: 72px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.planning-note h2 {
  font-size: 34px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #333630;
  font-size: 17px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--sage-strong);
  content: "";
}

.related-services {
  padding: 78px 0 100px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.related-link {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 750;
}

.related-link span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.related-link:hover,
.related-link:focus {
  border-color: var(--ink);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 56px;
  }

  .hero-grid,
  .service-hero-grid {
    gap: 46px;
  }

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

  .process-list div:nth-child(3) {
    border-left: 0;
  }

  .process-list div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 253, 248, 0.38);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 20px;
  }

  .brand img {
    width: 164px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 73px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .primary-nav a,
  .primary-nav .nav-cta {
    margin: 0;
    padding: 13px 14px;
  }

  .hero-grid,
  .intro-grid,
  .story-grid,
  .reviews-grid,
  .contact-grid,
  .service-hero-grid,
  .planning-note {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    height: 520px;
    min-height: 0;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip div,
  .proof-strip div + div {
    padding: 24px 0;
    border-left: 0;
  }

  .proof-strip div + div {
    border-top: 1px solid var(--line);
  }

  .reviews-section::before,
  .reviews-section::after {
    display: none;
  }

  .reviews-heading {
    padding: 0;
  }

  .detail-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 150px;
  }

  .primary-nav {
    top: 78px;
    right: 14px;
    left: 14px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .section-pad,
  .detail-section {
    padding: 70px 0;
  }

  h1,
  .service-hero h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  p,
  li {
    font-size: 16px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-lede,
  .service-hero p.lede {
    font-size: 17px;
  }

  .hero-lede {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 28px;
  }

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

  .hero-visual,
  .hero-visual img {
    height: 440px;
    min-height: 0;
  }

  .hero-note {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

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

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

  .service-card h3 {
    min-height: 0;
  }

  .process-list div,
  .process-list div + div {
    min-height: 0;
    border-left: 0;
  }

  .process-list div + div {
    border-top: 1px solid rgba(255, 253, 248, 0.38);
  }

  .image-band {
    min-height: 0;
  }

  .image-band-content {
    padding: 82px 0;
  }

  .story-card {
    padding: 28px;
  }

  blockquote {
    padding: 22px;
  }

  blockquote p {
    font-size: 18px;
  }

  .contact-section,
  .site-footer,
  .service-hero,
  .related-services {
    padding: 64px 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
