body {
  margin: 0;
  background: var(--page-bg, #f7f8f4);
  color: var(--ink, #172723);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.theme-service {
  --page-bg: #f7f8f4;
  --ink: #172723;
  --muted: #465b54;
  --accent: #174f45;
  --accent-dark: #113f37;
  --accent-rgb: 23, 79, 69;
  --accent-soft: #e9f4ee;
  --surface: #fbfbf7;
  --hero-gradient: linear-gradient(115deg, rgba(241, 247, 242, 0.94), rgba(255, 251, 244, 0.82) 50%, rgba(232, 243, 238, 0.82));
}

body.theme-cancer {
  --page-bg: #f3f8fb;
  --ink: #132b35;
  --muted: #45616b;
  --accent: #17617a;
  --accent-dark: #10485c;
  --accent-rgb: 23, 97, 122;
  --accent-soft: #e5f3f8;
  --surface: #fbfdff;
  --hero-gradient: linear-gradient(118deg, rgba(236, 247, 251, 0.96), rgba(255, 252, 245, 0.78) 48%, rgba(227, 241, 247, 0.88));
}

body.theme-parent {
  --page-bg: #fff7f1;
  --ink: #2f2924;
  --muted: #6a5549;
  --accent: #946247;
  --accent-dark: #704632;
  --accent-rgb: 148, 98, 71;
  --accent-soft: #faeadf;
  --surface: #fffaf5;
  --hero-gradient: linear-gradient(118deg, rgba(255, 246, 238, 0.96), rgba(244, 251, 247, 0.78) 48%, rgba(255, 235, 222, 0.82));
}

body.theme-hospital {
  --page-bg: #f4f8ff;
  --ink: #172a40;
  --muted: #4d6074;
  --accent: #285f95;
  --accent-dark: #1f4770;
  --accent-rgb: 40, 95, 149;
  --accent-soft: #e8f0fb;
  --surface: #fbfdff;
  --hero-gradient: linear-gradient(118deg, rgba(239, 246, 255, 0.96), rgba(255, 253, 247, 0.78) 48%, rgba(229, 238, 250, 0.9));
}

body.theme-dementia {
  --page-bg: #f8f5fb;
  --ink: #2d2938;
  --muted: #625b70;
  --accent: #66558f;
  --accent-dark: #4f4171;
  --accent-rgb: 102, 85, 143;
  --accent-soft: #eee9f6;
  --surface: #fefcff;
  --hero-gradient: linear-gradient(118deg, rgba(247, 243, 252, 0.96), rgba(248, 253, 250, 0.78) 48%, rgba(235, 229, 247, 0.86));
}

body.theme-about {
  --page-bg: #f7f7f2;
  --ink: #20251f;
  --muted: #5b645b;
  --accent: #345d50;
  --accent-dark: #253f38;
  --accent-rgb: 52, 93, 80;
  --accent-soft: #e9efea;
  --surface: #fcfcf7;
  --hero-gradient: linear-gradient(118deg, rgba(247, 247, 241, 0.96), rgba(255, 253, 247, 0.78) 48%, rgba(231, 239, 235, 0.84));
}

body.theme-contact {
  --page-bg: #fff8ed;
  --ink: #2c261d;
  --muted: #66584a;
  --accent: #7d6235;
  --accent-dark: #5e4725;
  --accent-rgb: 125, 98, 53;
  --accent-soft: #f7ecd9;
  --surface: #fffdf8;
  --hero-gradient: linear-gradient(118deg, rgba(255, 248, 237, 0.96), rgba(244, 251, 247, 0.78) 48%, rgba(247, 235, 214, 0.84));
}

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

* {
  box-sizing: border-box;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  12%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateY(520%);
    opacity: 0;
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 102, 91, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(45, 102, 91, 0);
  }
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb, 45, 102, 91), 0.22);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(205, 214, 203, 0.62);
  background: color-mix(in srgb, var(--surface, #fafaf6) 90%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(38, 58, 53, 0.04);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(56vw, 320px);
}

.logo:active,
.menu a:active,
.nav-cta:active,
.primary:active,
.secondary:active {
  transform: translateY(1px);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  color: color-mix(in srgb, var(--muted, #587168) 88%, #1a2b26);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.menu a:hover,
.menu .active {
  color: var(--accent-dark, #17463e);
}

.menu .active {
  box-shadow: none;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  border-radius: 999px;
  background: var(--accent, #174f45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.menu a:hover::after,
.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta,
.primary,
.secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-cta {
  padding: 0 18px;
  background: var(--accent, #174f45);
  color: #fff;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb, 23, 79, 69), 0.14);
}

.nav-cta:hover,
.primary:hover {
  background: var(--accent-dark, #113f37);
  box-shadow: 0 18px 42px rgba(var(--accent-rgb, 23, 79, 69), 0.2);
}

.primary {
  padding: 0 22px;
  background: var(--accent, #174f45);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--accent, #2d665b) 78%, white);
  box-shadow: 0 16px 38px rgba(var(--accent-rgb, 23, 79, 69), 0.18);
}

.secondary {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.82);
  color: #244039;
  border: 1px solid #d7e0d7;
}

.secondary:hover {
  border-color: color-mix(in srgb, var(--accent, #a9cfbe) 42%, white);
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dfe6dc;
  background:
    var(--hero-gradient, linear-gradient(115deg, rgba(241, 247, 242, 0.94), rgba(255, 251, 244, 0.82) 50%, rgba(232, 243, 238, 0.8))),
    var(--page-bg, #f7f8f4);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(var(--accent-rgb, 34, 88, 78), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb, 34, 88, 78), 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, black 0%, rgba(0, 0, 0, 0.55) 62%, transparent 100%);
}

.hero-inner,
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 18px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 42px;
  min-height: 560px;
}

.hero-copy,
.hero-card,
.section-head,
.card,
.detail-card,
.process-step,
.contact-box,
.cta-inner {
  animation: fadeUp 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0ms);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  color: var(--accent, #2d665b);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--muted, #6d7e76) 86%, white);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent, #174f45);
}

.breadcrumb span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #9ab6aa) 44%, white);
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

.lead {
  max-width: 740px;
  color: var(--muted, #465b54);
  font-size: 19px;
  line-height: 1.82;
}

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

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent, #d7e0d7) 24%, white);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 58px rgba(var(--accent-rgb, 38, 58, 53), 0.12);
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  height: 88px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb, 85, 180, 153), 0.18), transparent);
  mix-blend-mode: screen;
  animation: scanLine 5.6s ease-in-out infinite;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-cancer .hero-card img,
.theme-hospital .hero-card img {
  filter: saturate(1.12) contrast(1.03);
}

.theme-parent .hero-card img,
.theme-contact .hero-card img {
  filter: saturate(1.1) sepia(0.04) contrast(1.02);
}

.theme-dementia .hero-card img {
  filter: saturate(1.06) hue-rotate(-5deg) contrast(1.02);
}

.hero-card:hover img {
  transform: scale(1.018);
}

.hero-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent, #174f45);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  z-index: 2;
}

.stat-strip {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #dfe7dc;
  background: color-mix(in srgb, var(--surface, #fff) 78%, transparent);
}

.stat-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #dfe7dc;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(var(--accent-rgb, 238, 247, 242), 0.08)),
    #fff;
  padding: 18px;
  animation: fadeUp 540ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0ms);
}

.stat strong {
  color: var(--accent, #174f45);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.stat span {
  color: var(--muted, #587168);
  font-size: 14px;
  font-weight: 900;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted, #587168);
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid color-mix(in srgb, var(--accent, #dbe4da) 20%, white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 12px;
}

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

.detail-section {
  padding-bottom: 82px;
}

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

.detail-grid-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent, #dfe7dc) 20%, white);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb, 255, 255, 255), 0.035)),
    #fff;
  box-shadow: 0 18px 44px rgba(var(--accent-rgb, 38, 58, 53), 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.detail-card:hover {
  border-color: color-mix(in srgb, var(--accent, #9fd1bc) 46%, white);
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(var(--accent-rgb, 38, 58, 53), 0.1);
}

.detail-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--accent-soft, #e9efe9);
  filter: saturate(1.06) contrast(1.015);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-card:hover img {
  transform: scale(1.025);
}

.detail-copy {
  padding: 24px;
}

.detail-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #b9d5ca) 38%, white);
  color: var(--accent, #2d665b);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.06em;
}

.detail-card h3 {
  min-height: auto;
}

.detail-card p {
  color: var(--muted, #526860);
}

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent, #dfe7dc) 18%, white);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface, #fff) 86%, white);
  padding: 26px;
  box-shadow: 0 14px 34px rgba(var(--accent-rgb, 38, 58, 53), 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--accent, #174f45);
  opacity: 0.48;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent, #a9cfbe) 44%, white);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(var(--accent-rgb, 38, 58, 53), 0.08);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  margin-bottom: 18px;
  border: 1px solid #dbe4da;
  border-radius: 999px;
  color: var(--accent, #174f45);
  font-size: 12px;
  font-weight: 800;
}

.card h3 {
  min-height: 58px;
  margin-top: 0;
}

.card p {
  min-height: 58px;
  color: var(--muted, #526860);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.band {
  background: var(--surface, #fbfbf7);
  border-top: 1px solid #dfe7dc;
  border-bottom: 1px solid #dfe7dc;
}

.process-band {
  position: relative;
  overflow: hidden;
}

.process-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(var(--accent-rgb, 63, 139, 123), 0.13), transparent 28%),
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb, 23, 79, 69), 0.05), transparent);
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #dfe7dc) 18%, white);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  padding: 22px;
  box-shadow: 0 16px 38px rgba(var(--accent-rgb, 38, 58, 53), 0.055);
}

.process-step::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #174f45), rgba(var(--accent-rgb, 63, 139, 123), 0.18));
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 220ms ease;
}

.process-step:hover::after {
  transform: scaleX(1);
}

.process-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent, #174f45);
  color: #fff;
  font-weight: 1000;
  animation: softPulse 2.8s ease-in-out infinite;
}

.process-step h3 {
  margin-bottom: 0;
}

.process-step p {
  color: var(--muted, #526860);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 58px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent, #174f45);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 1000;
}

.list {
  margin: 0;
  padding-left: 0;
  color: var(--muted, #526860);
  list-style: none;
}

.list li {
  position: relative;
  margin: 8px 0;
  padding-left: 22px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent, #3f8b7b);
}

.notice {
  margin-top: 28px;
  padding: 20px;
  border-left: 2px solid var(--accent, #174f45);
  background: color-mix(in srgb, var(--accent-soft, #eaf6f0) 78%, white);
  color: var(--accent-dark, #174f45);
  font-weight: 900;
  line-height: 1.7;
}

.cta-band {
  border-top: 1px solid #dfe7dc;
  border-bottom: 1px solid #dfe7dc;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--accent-dark, #174f45) 96%, black), color-mix(in srgb, var(--accent, #2d665b) 92%, white)),
    var(--accent, #174f45);
  color: #fff;
}

.cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 18px;
}

.cta-inner .eyebrow {
  color: #cde8dc;
}

.cta-inner h2 {
  max-width: 850px;
}

.cta-inner p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.cta-inner .secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.contact-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  border: 1px solid #dbe4da;
  border-radius: 8px;
  background: var(--surface, #fbfbf7);
  padding: 28px;
  box-shadow: 0 22px 54px rgba(var(--accent-rgb, 38, 58, 53), 0.075);
}

#consultation-form {
  scroll-margin-top: 110px;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease;
}

.hp-field {
  display: none;
}

.field:focus-within {
  border-color: color-mix(in srgb, var(--accent, #c9e3d8) 30%, white);
  background: rgba(255, 255, 255, 0.78);
}

.field input,
.field select {
  min-height: 48px;
  border: 1px solid #dbe4da;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  color: var(--ink, #172723);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent, #2d665b);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 45, 102, 91), 0.12);
  outline: none;
}

.contact-box .primary,
.contact-box .secondary {
  width: 100%;
}

.consent-field {
  padding: 12px 14px;
  border-color: #dbe4da;
  background: #fffaf2;
  color: var(--muted, #4d615a);
  font-size: 14px;
}

.consent-field span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consent-field input {
  width: 16px;
  height: 16px;
}

.consent-field:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent, #9fd1bc) 42%, white);
  background: #fff;
  color: var(--accent, #174f45);
}

.notice[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid #dfe7dc;
  background: var(--surface, #fbfbf7);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 18px;
  color: var(--muted, #65756f);
  font-size: 14px;
}

.footer-inner strong {
  color: var(--ink, #172723);
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.footer-links a {
  color: var(--accent, #315d54);
  font-weight: 900;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark, #174f45);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .menu {
    width: 100%;
    overflow-x: auto;
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 2px;
    border-top: 1px solid rgba(228, 215, 196, 0.72);
    scroll-snap-type: x proximity;
  }

  .menu a {
    scroll-snap-align: start;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .contact-box,
  .grid,
  .two,
  .detail-grid,
  .detail-grid-six,
  .process-list {
    grid-template-columns: 1fr;
  }

  .stat-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .section {
    padding: 52px 18px;
  }

  .hero-card img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .detail-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .process-step {
    min-height: auto;
  }

  .menu a {
    flex: 0 0 auto;
    min-height: 32px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary,
  .secondary {
    padding: 0 14px;
  }

  .card h3,
  .card p {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 12px;
  }

  .logo img {
    height: 34px;
  }

  .hero-inner,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .menu a {
    font-size: 13px;
  }
}
