:root {
  --body-bg: #fbf8f3;
  --paper: #ffffff;
  --ink: #24342e;
  --ink-soft: #4d5d56;
  --sage: #789488;
  --sage-deep: #526f63;
  --terracotta: #b66f58;
  --terracotta-deep: #965845;
  --sand: #f1e7dc;
  --sand-light: #f7f0e8;
  --line: rgba(36, 52, 46, 0.14);
  --shadow: 0 22px 70px rgba(56, 68, 61, 0.12);
  --title-font: "Marcellus", Georgia, serif;
  --body-font: "DM Sans", Arial, sans-serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--body-bg);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--terracotta-deep);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(182, 111, 88, 0.65);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--terracotta-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: var(--title-font);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
}

h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

p {
  margin: 0 0 1.35em;
}

.lead {
  max-width: 700px;
  font-size: clamp(1.1rem, 1.65vw, 1.3rem);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.text-link::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-brand,
.btn-quiet {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 180ms ease, border 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn-brand {
  color: #fff;
  background: var(--terracotta);
  box-shadow: 0 12px 30px rgba(150, 88, 69, 0.2);
}

.btn-brand:hover {
  color: #fff;
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

.btn-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.btn-quiet:hover {
  color: var(--ink);
  border-color: rgba(36, 52, 46, 0.35);
  background: #fff;
}

.topbar {
  color: rgba(255, 255, 255, 0.86);
  background: var(--ink);
  font-size: 0.82rem;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar a:hover {
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(18px);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 10px 36px rgba(36, 52, 46, 0.08);
}

.nav-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}

/* The logo disc is nearly the same green as the footer background,
   so it needs a light backing there to stay visible. */
.site-footer .brand-mark {
  padding: 3px;
  background: var(--sand-light);
}

.brand-copy {
  display: grid;
  color: var(--ink);
  line-height: 1;
}

.brand-name {
  font-family: var(--title-font);
  font-size: 1.23rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 7px;
  color: var(--sage-deep);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 29px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav .nav-link {
  position: relative;
  padding-block: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav .nav-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

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

.nav-toggle {
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  width: 21px;
  height: 2px;
  display: block;
  content: "";
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before {
  position: absolute;
  top: -7px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 7px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 735px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 17%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 26%),
    linear-gradient(112deg, var(--sand-light), #ead8cb);
}

.hero::before {
  position: absolute;
  z-index: -1;
  right: -72px;
  bottom: -95px;
  width: 410px;
  height: 430px;
  content: "";
  background: url("../img/decor/leaf-large.png") center / contain no-repeat;
  opacity: 0.2;
  transform: rotate(-10deg);
}

.hero-grid {
  min-height: 735px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  gap: clamp(42px, 7vw, 95px);
  padding-block: 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

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

/* Longer, conversational hero headline needs a smaller scale than the default h1. */
.hero h1.hero-hook {
  max-width: 880px;
  font-size: clamp(2.3rem, 3.9vw, 3.85rem);
  line-height: 1.14;
}

.hero h1 em {
  color: var(--terracotta-deep);
  font-style: italic;
  font-weight: 400;
}

.hero .lead {
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: grid;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.48);
  border-radius: 48% 52% 44% 56% / 39% 47% 53% 61%;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  left: -35px;
  bottom: 46px;
  max-width: 240px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 35px rgba(36, 52, 46, 0.12);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--terracotta-deep);
  font-size: 1.02rem;
}

.fact-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.fact-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.fact {
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 32px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact .fact-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--terracotta-deep);
  background: var(--sand-light);
}

.fact .fact-icon i {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.fact strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: 1.05rem;
  font-weight: 400;
}

.fact span {
  display: block;
  font-size: 0.83rem;
  line-height: 1.5;
}

.section {
  position: relative;
  padding-block: clamp(82px, 9vw, 128px);
}

.section-tight {
  padding-block: clamp(62px, 7vw, 96px);
}

.section-white {
  background: var(--paper);
}

.section-sand {
  background: var(--sand-light);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 62px);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered .eyebrow::after {
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

.intro-grid,
.story-grid,
.contact-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(46px, 8vw, 110px);
}

.intro-art {
  position: relative;
  min-height: 450px;
  padding: 36px;
  border-radius: 40px 8px 40px 8px;
  background: var(--sage-deep);
  overflow: hidden;
}

.intro-art::before,
.intro-art::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.intro-art::before {
  width: 330px;
  height: 330px;
  right: -100px;
  top: -90px;
}

.intro-art::after {
  width: 420px;
  height: 420px;
  left: -230px;
  bottom: -230px;
}

.intro-art-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
}

.intro-art-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-art h3 {
  max-width: 390px;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 4.1rem);
}

.intro-art-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro-art-list span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
}

.check-list,
.plain-list,
.link-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 31px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.08em;
  color: var(--terracotta);
  content: "\2713";
  font-weight: 700;
}

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

.service-card,
.value-card,
.legal-card,
.contact-card {
  position: relative;
  padding: clamp(28px, 3.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  border-color: rgba(182, 111, 88, 0.35);
  box-shadow: 0 20px 52px rgba(36, 52, 46, 0.1);
  transform: translateY(-6px);
}

.service-card-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sand-light);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.card-number {
  display: block;
  margin-bottom: 24px;
  color: var(--terracotta);
  font-family: var(--title-font);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--terracotta-deep);
  background: var(--sand-light);
  font-size: 1.25rem;
}

.service-card p,
.value-card p {
  margin-bottom: 20px;
}

.method-row {
  padding-block: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line);
}

.method-row:first-child {
  border-top: 0;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 8vw, 105px);
}

.method-label {
  position: sticky;
  top: 125px;
  align-self: start;
}

.method-label .method-number {
  display: block;
  margin-bottom: 20px;
  color: var(--terracotta);
  font-family: var(--title-font);
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.method-visual {
  aspect-ratio: 4 / 3;
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 24px 8px 24px 8px;
  background: var(--sand-light);
  box-shadow: 0 18px 48px rgba(56, 68, 61, 0.1);
}

.method-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.note-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 3px solid var(--terracotta);
  background: var(--sand-light);
  font-size: 0.92rem;
}

.note-box p:last-child {
  margin-bottom: 0;
}

.image-card {
  position: relative;
}

.image-card img {
  width: 100%;
  border-radius: 30px 10px 30px 10px;
  box-shadow: var(--shadow);
}

.about-portrait-card {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
}

.about-portrait-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px 10px 30px 10px;
  box-shadow: var(--shadow);
}

.image-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
}

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

.credential-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.credential-card img {
  width: 150px;
  height: 190px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.credential-card p {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 425px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(112deg, var(--sand-light), #ead8cb);
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  right: -45px;
  bottom: -170px;
  width: 420px;
  height: 480px;
  content: "";
  background: url("../img/decor/leaf-large.png") center / contain no-repeat;
  opacity: 0.16;
}

.page-hero-inner {
  padding-block: 82px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.page-hero .lead {
  max-width: 780px;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--terracotta-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  opacity: 0.55;
}

.story-photo {
  position: relative;
}

.story-photo img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 42px 8px 42px 8px;
  box-shadow: var(--shadow);
}

.story-quote {
  margin: 30px 0;
  padding: 22px 0 22px 28px;
  border-left: 2px solid var(--terracotta);
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.45;
}

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

.step {
  padding: 32px 30px;
  border-top: 2px solid var(--terracotta);
  background: rgba(255, 255, 255, 0.65);
  counter-increment: steps;
}

.step::before {
  display: block;
  margin-bottom: 22px;
  color: var(--terracotta);
  content: "0" counter(steps);
  font-family: var(--title-font);
  font-size: 0.95rem;
}

.faq-list {
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--title-font);
  font-size: 1.22rem;
  text-align: left;
}

.faq-question::after {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "+";
  font-family: var(--body-font);
}

.faq-question[aria-expanded="true"]::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 54px 24px 0;
}

.faq-answer[hidden] {
  display: none;
}

.cta-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(38px, 6vw, 70px);
  border-radius: 28px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--sage-deep);
  overflow: hidden;
}

.cta-panel::after {
  position: absolute;
  z-index: -1;
  right: -40px;
  bottom: -135px;
  width: 340px;
  height: 370px;
  content: "";
  background: url("../img/decor/leaf-large.png") center / contain no-repeat;
  opacity: 0.12;
}

.cta-panel h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.cta-panel p {
  max-width: 700px;
  margin-bottom: 0;
}

.contact-grid {
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--terracotta-deep);
  background: var(--sand-light);
}

.contact-item strong {
  display: block;
  color: var(--ink);
}

.contact-form-wrap {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.form-group {
  display: grid;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(36, 52, 46, 0.2);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  transition: border 180ms ease, box-shadow 180ms ease;
}

textarea.form-control {
  min-height: 145px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--terracotta);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(182, 111, 88, 0.12);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.form-status {
  min-height: 28px;
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-status.is-error {
  color: #9a3f32;
}

.form-status.is-success {
  color: #2d6a4f;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 8vw, 100px);
}

.legal-nav {
  position: sticky;
  top: 120px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.legal-nav strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
}

.legal-nav a {
  display: block;
  padding-block: 7px;
  font-size: 0.86rem;
}

.legal-content {
  max-width: 820px;
}

.legal-content section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.legal-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.legal-content h3 {
  margin-top: 1.4em;
  font-size: 1.25rem;
}

.legal-content li {
  margin-bottom: 9px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 75px);
  padding-block: 72px 58px;
}

.footer-brand .brand-copy,
.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  max-width: 330px;
  margin: 25px 0 0;
  font-size: 0.88rem;
}

.footer-column h2 {
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  .primary-nav .btn-brand {
    display: none;
  }

  .primary-nav ul {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 35px;
  }

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

@media (max-width: 900px) {
  .site-shell {
    width: min(var(--container), calc(100% - 36px));
  }

  .topbar-group:first-child a:nth-child(2) {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 84px);
    display: block;
    padding: 18px;
    border-top: 1px solid var(--line);
    background: var(--body-bg);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav ul {
    display: grid;
    gap: 0;
  }

  .primary-nav .nav-link {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav .nav-link::after {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 74px 115px;
  }

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

  .hero-visual {
    min-height: auto;
  }

  .hero-photo-wrap {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .hero-note {
    left: 5%;
  }

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

  .fact + .fact {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .intro-grid,
  .story-grid,
  .contact-grid,
  .detail-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-label {
    position: static;
  }

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

  .credential-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(var(--container), calc(100% - 30px));
  }

  .topbar-inner {
    min-height: 38px;
    justify-content: center;
  }

  .topbar-group {
    gap: 14px;
  }

  .topbar-group:last-child {
    display: none;
  }

  .site-header .nav-inner {
    min-height: 76px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1.04rem;
  }

  .brand-subtitle {
    font-size: 0.54rem;
  }

  .primary-nav { max-height: calc(100vh - 76px); }

  .hero-grid {
    gap: 52px;
    padding-block: 58px 100px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.1rem);
  }

  .hero h1.hero-hook {
    font-size: clamp(2rem, 8.4vw, 2.6rem);
  }

  .hero-note {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: -34px 14px 0;
  }

  .fact {
    min-height: 100px;
    padding: 20px 22px;
  }

  .card-grid,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .intro-art {
    min-height: 410px;
    padding: 28px;
  }

  .card-number {
    margin-bottom: 30px;
  }

  .credential-card {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 17px;
  }

  .credential-card img {
    width: 95px;
    height: 130px;
  }

  .page-hero {
    min-height: 360px;
  }

  .page-hero-inner {
    padding-block: 65px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 20px;
  }

  .button-row > * {
    width: 100%;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Phone chooser: WhatsApp / call / SMS */
.contact-actions-menu {
  z-index: 300;
  display: grid;
  gap: 2px;
  min-width: 214px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-actions-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-actions-item:hover,
.contact-actions-item:focus-visible {
  background: var(--sand-light);
  color: var(--terracotta-deep);
}

.contact-actions-item i {
  width: 18px;
  color: var(--sage-deep);
  text-align: center;
}

.contact-actions-item:hover i,
.contact-actions-item:focus-visible i {
  color: var(--terracotta-deep);
}

.phone-link {
  cursor: pointer;
}

.topbar-whatsapp i {
  color: #25d366;
}
