﻿/* ==========================================================================
   KINLINK - public website styles
   Lightweight, mobile-first, no frameworks.
   ========================================================================== */

:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --ink: #241c17;
  --ink-soft: #4a3f37;
  --muted: #6e6057;
  --line: #eadfd2;
  --line-soft: #f2e9de;
  --green: #155e4b;
  --green-dark: #0d4436;
  --green-soft: #eaf3ef;
  --gold: #e3a72f;
  --gold-soft: #fbf1d8;
  --terra: #c4553a;
  --cream: #f6ece0;
  --shadow-sm: 0 6px 18px -12px rgba(36, 28, 23, 0.4);
  --shadow: 0 24px 48px -30px rgba(36, 28, 23, 0.45);
  --radius: 20px;
  --radius-sm: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --container: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(253, 250, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(36, 28, 23, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.brand-name span {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.site-nav .nav-cta {
  background: var(--green);
  color: #fff;
  margin-left: 8px;
  padding: 10px 18px;
}

.site-nav .nav-cta:hover {
  background: var(--green-dark);
  color: #fff;
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 25px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 26px -18px rgba(13, 68, 54, 0.9);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-gold {
  background: var(--gold);
  color: #2a2008;
}

.btn-gold:hover {
  background: #d99a22;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
  color: #fff;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero-slide.is-active img {
  transform: scale(1.09);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(9, 34, 26, 0.88) 0%, rgba(9, 34, 26, 0.62) 46%, rgba(9, 34, 26, 0.3) 100%),
    linear-gradient(0deg, rgba(9, 34, 26, 0.65) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 96px 0 150px;
  max-width: 780px;
  margin-left: max(20px, calc((100% - var(--container)) / 2));
  margin-right: auto;
}

[data-content] {
  white-space: pre-line;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.55rem, 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin-bottom: 16px;
}

.hero-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  margin-bottom: 30px;
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 34px;
  margin-right: auto;
}

.hero-caption strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.hero-caption span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--gold);
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.slider-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a2008;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  position: relative;
  z-index: 5;
  margin-top: -58px;
}

.trust-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 28px;
}

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

.trust-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--terra);
}

.trust-item h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 2px 0 3px;
}

.trust-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.section-soft {
  background: var(--cream);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

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

.section-head .eyebrow {
  color: var(--terra);
}

.section-head .eyebrow::before {
  background: var(--terra);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-wrap: balance;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 640px;
}

.section-head.center p {
  margin-inline: auto;
}

/* ---------- About ---------- */

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.split.no-media {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 26px;
  z-index: -1;
}

.split-media .media-badge {
  position: absolute;
  right: -14px;
  bottom: 26px;
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  max-width: 200px;
  line-height: 1.5;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.split-text p {
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.mini-card h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
  font-weight: 800;
}

.mini-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin-top: clamp(34px, 5vw, 56px);
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px);
}

.info-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.info-panel.dark {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
}

.info-panel.dark h3 {
  color: #fff;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  transform: rotate(-45deg);
}

.info-panel.dark .check-list li {
  color: rgba(255, 255, 255, 0.82);
}

.info-panel.dark .check-list li::before {
  background: rgba(227, 167, 47, 0.24);
}

.info-panel.dark .check-list li::after {
  border-color: var(--gold);
}

/* ---------- Services ---------- */

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #dfd1c1;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  background: linear-gradient(160deg, #fff 0%, #fdf6eb 100%);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  margin-bottom: 18px;
}

.service-card:nth-child(even) .service-icon {
  background: var(--gold-soft);
  color: var(--terra);
}

.service-card h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

.process {
  margin-top: clamp(40px, 6vw, 70px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 44px);
}

.process-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.process-head h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0;
}

.process-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 380px;
  text-align: right;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 22px 20px 20px;
}

.process-step .step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.process-step h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.process-step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Family search ---------- */

.family-section {
  background:
    radial-gradient(1200px 420px at 15% -10%, rgba(227, 167, 47, 0.16), transparent 65%),
    radial-gradient(1000px 500px at 100% 0%, rgba(21, 94, 75, 0.09), transparent 60%),
    var(--bg);
}

.family-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.family-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.family-intro h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}

.family-intro p {
  color: var(--muted);
}

.family-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--green-dark);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 8px 0 20px;
}

.family-stat strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

.family-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.family-intro .who {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.who-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.who-item b {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.who-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
}

.who-item + .who-item .who-dot {
  background: var(--terra);
}

.search-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 30px);
}

.search-panel h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.search-panel .hint {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fffdfa;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 94, 75, 0.12);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--terra);
}

.field-error {
  font-size: 0.78rem;
  color: var(--terra);
  min-height: 0;
}

.search-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.search-actions .btn {
  flex: 1;
}

.search-results {
  margin-top: clamp(30px, 4vw, 44px);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.results-count {
  font-size: 0.84rem;
  color: var(--muted);
}

.results-count strong {
  color: var(--ink);
}

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

.family-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.family-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.family-photo {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: var(--cream);
  overflow: hidden;
}

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

.avatar-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--green-dark);
  background:
    radial-gradient(circle at 30% 25%, rgba(227, 167, 47, 0.5), transparent 55%),
    linear-gradient(140deg, #f8ead2, #e7f0eb);
}

.family-country {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(13, 68, 54, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.family-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.family-body h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.family-sub {
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.family-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 9px;
}

.chip.gold {
  color: #6d4d05;
  background: var(--gold-soft);
}

.family-body .btn {
  margin-top: auto;
  width: 100%;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 24px;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-soft);
  border: 1px solid #d7e7e0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--green-dark);
  line-height: 1.6;
}

.privacy-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.family-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.family-cta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-section {
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 4vw, 46px);
  align-items: stretch;
}

.contact-info {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 42px);
  position: relative;
  overflow: hidden;
}

.contact-info::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -110px;
  bottom: -130px;
  background: radial-gradient(circle, rgba(227, 167, 47, 0.28), transparent 70%);
}

.contact-info h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  margin-bottom: 26px;
}

.contact-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.contact-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.contact-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.contact-list small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin-bottom: 1px;
}

.contact-list a,
.contact-list span {
  color: #fff;
  text-decoration: none;
  font-size: 0.93rem;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.social-row {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a2008;
}

.social-row.is-empty {
  display: none;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}

.contact-form-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-status {
  display: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

.form-status.is-success {
  display: block;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid #cfe4db;
}

.form-status.is-error {
  display: block;
  background: #fbedeb;
  color: #8c2f1f;
  border: 1px solid #f2cfc9;
}

.form-foot {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #171e1a;
  color: rgba(255, 255, 255, 0.66);
  padding: 62px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 0.8fr;
  gap: 32px;
  padding-bottom: 42px;
}

.footer-grid.no-social {
  grid-template-columns: 1.5fr 0.8fr 0.9fr;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
  text-decoration: none;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fdfaf6;
  border-radius: 50%;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.07em;
}

.site-footer p {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.site-footer h3 {
  font-family: var(--sans);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-size: 0.87rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--gold);
  color: #2a2008;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-note {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 22, 0.65);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background: #fff;
}

.modal-hero {
  aspect-ratio: 16 / 8;
  background: var(--cream);
  overflow: hidden;
}

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

.modal-hero .avatar-initials {
  font-size: 4rem;
}

.modal-content {
  padding: clamp(24px, 4vw, 36px);
}

.modal-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 4px;
}

.modal-kicker {
  color: var(--terra);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.detail-item {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

.detail-item small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.detail-item strong {
  font-size: 0.92rem;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  z-index: 150;
  background: var(--green-dark);
  color: #fff;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: #8c2f1f;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Loader skeleton ---------- */

.is-loading {
  position: relative;
  color: transparent !important;
}

.is-loading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.55em;
  height: 0.9em;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line-soft) 25%, #fff 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .family-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .family-intro {
    position: static;
  }

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

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: 0 24px 40px -28px rgba(36, 28, 23, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .split,
  .purpose-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-media {
    max-width: 520px;
  }

  .split-media::before {
    display: none;
  }

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

  .trust-item {
    padding: 20px;
  }

  .hero-inner {
    margin-inline: auto;
    width: min(100% - 40px, var(--container));
    padding: 76px 0 140px;
  }
}

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

  :root {
    --header-h: 68px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name strong {
    font-size: 1.2rem;
  }

  .brand-name span {
    font-size: 0.57rem;
  }

  .trust-card {
    grid-template-columns: 1fr;
  }

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

  .trust-strip {
    margin-top: -34px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-inner {
    padding-bottom: 150px;
  }

  .hero-controls {
    flex-wrap: wrap;
    bottom: 54px;
  }

  .hero-caption {
    width: 100%;
    order: 3;
  }

  .hero-actions .btn {
    flex: 1;
  }

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

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

  .process-head {
    display: block;
  }

  .process-head p {
    text-align: left;
    margin-top: 8px;
  }

  .search-fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .family-layout {
    gap: 24px;
  }

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

  .modal-hero {
    aspect-ratio: 4 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom .footer-note {
    margin-top: 6px;
  }

  .section {
    scroll-margin-top: calc(var(--header-h) + 4px);
  }

  .split-media .media-badge {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

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

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

  .hero-slide img {
    transform: none !important;
  }

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

@media print {
  .site-header,
  .hero-controls,
  .nav-toggle,
  .site-footer,
  .modal,
  .toast {
    display: none !important;
  }
}

