/* ═══════════════════════════════════════════════════
   수다 Sooda — Hanji & Hearth v2
   Warm, premium Korean childcare aesthetic
   Inspired by Toss, Karrot — not Care.com
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Outfit:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

:root {
  --cream: #FDF8F3;
  --cream-mid: #F5EDE4;
  --cream-dark: #EDE3D6;
  --terra: #D4856B;
  --terra-dark: #B8704E;
  --terra-light: #F2DDD3;
  --terra-glow: rgba(212,133,107,0.08);
  --sage: #8BA888;
  --sage-dark: #6E8C6B;
  --sage-light: #DDE9DA;
  --sage-glow: rgba(139,168,136,0.07);
  --ink: #2C2C2C;
  --ink-soft: #3D3534;
  --secondary: #6B5E55;
  --muted: #8C7E72;
  --white: #FFFFFF;
  --shadow-rest: 0 2px 12px rgba(180,140,120,0.06);
  --shadow-hover: 0 8px 28px rgba(180,140,120,0.12);
  --shadow-elevated: 0 12px 40px rgba(180,140,120,0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 400;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* English body font */
[data-lang="en"] body,
[data-lang="en"] .form-input,
[data-lang="en"] .form-textarea,
[data-lang="en"] .form-select,
[data-lang="en"] .btn {
  font-family: 'Outfit', sans-serif;
}

/* ─── Bilingual: show only active language ───────── */

[data-lang="ko"] [data-en] { display: none; }
[data-lang="en"] [data-ko] { display: none; }

/* ─── Typography scale ───────────────────────────── */

h1 { font-size: 44px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -0.5px; }
h3 { font-size: 22px; font-weight: 500; line-height: 1.4; }
p { line-height: 1.75; }

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  body { font-size: 18px; }
}

/* ─── Layout ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Scroll reveal ──────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Header ─────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,243,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(180,140,120,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.logo-ko {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 3px;
}

.logo-en {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-base);
}

.nav-link:hover { color: var(--terra); }

.lang-toggle {
  padding: 10px 20px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  min-height: 44px;
  transition: all var(--transition-base);
}

.lang-toggle:hover {
  background: var(--terra);
  color: white;
  border-color: var(--terra);
}

/* ─── Hero ───────────────────────────────────────── */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Organic background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -160px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--terra-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -140px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--sage-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: var(--terra);
}

.hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

/* ─── Buttons ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  letter-spacing: 0.3px;
  position: relative;
}

[data-lang="en"] .btn { font-family: 'Outfit', sans-serif; }

.btn-terra {
  background: var(--terra);
  color: white;
  box-shadow: 0 4px 16px rgba(212,133,107,0.25);
}

.btn-terra:hover {
  background: var(--terra-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(212,133,107,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid var(--terra);
}

.btn-outline:hover {
  background: var(--terra);
  color: white;
}

.btn-sage {
  background: var(--sage);
  color: white;
  box-shadow: 0 4px 16px rgba(139,168,136,0.25);
}

.btn-sage:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.btn-sm { padding: 12px 24px; font-size: 15px; min-height: 44px; }
.btn-lg { padding: 18px 48px; font-size: 18px; }

/* ─── Section spacing ────────────────────────────── */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid rgba(180,140,120,0.06);
  border-bottom: 1px solid rgba(180,140,120,0.06);
}

.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-label {
  display: inline-block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--terra);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 17px;
  color: var(--secondary);
  margin-top: 8px;
  font-weight: 400;
}

/* ─── Cards ──────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--cream-mid);
}

.card-body { padding: 24px; }

.card-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 14px;
  font-weight: 400;
}

.card-tagline {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--cream);
  color: var(--secondary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

.tag svg { width: 12px; height: 12px; }
.tag-terra { background: var(--terra-light); color: var(--terra-dark); }
.tag-sage { background: var(--sage-light); color: var(--sage-dark); }

/* ─── Caregiver Grid ─────────────────────────────── */

.cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* ─── How it Works ───────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 32px 20px;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-icon-terra { background: var(--terra-light); color: var(--terra); }
.step-icon-sage { background: var(--sage-light); color: var(--sage); }
.step-icon-cream { background: var(--cream-dark); color: var(--secondary); }

.step-number {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--terra);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 16px;
  color: var(--secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── Trust Section ──────────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.trust-item {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  transition: transform var(--transition-base);
}

.trust-item:hover { transform: translateY(-3px); }

.trust-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-rest);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--terra);
}

.trust-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-desc {
  font-size: 16px;
  color: var(--secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── CTA Banner ─────────────────────────────────── */

.cta-banner {
  background: linear-gradient(135deg, var(--terra) 0%, #C07058 50%, var(--terra-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  color: white;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-banner h2 {
  font-size: 28px;
  margin-bottom: 10px;
  position: relative;
}

.cta-banner p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 32px;
  font-size: 16px;
}

.cta-banner .btn {
  background: white;
  color: var(--terra);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.cta-banner .btn:hover {
  background: var(--cream);
  transform: translateY(-2px) scale(1.02);
}

/* ─── Profile Page ───────────────────────────────── */

.profile-hero {
  padding: 40px 0 16px;
  text-align: center;
}

.profile-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-elevated);
  margin: 0 auto 24px;
}

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

.profile-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--secondary);
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  min-height: 36px;
}

.badge svg { width: 16px; height: 16px; }
.badge-terra { background: var(--terra-light); color: var(--terra-dark); }
.badge-sage { background: var(--sage-light); color: var(--sage-dark); }
.badge-stone { background: var(--cream-mid); color: var(--secondary); }

.profile-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-rest);
}

.profile-section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section-title svg { width: 20px; height: 20px; color: var(--terra); }

.profile-bio {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.9;
  font-weight: 400;
  white-space: pre-wrap;
}

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

.profile-detail-item {
  padding: 12px 0;
}

.profile-detail-item label {
  display: block;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.profile-detail-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* ─── Gallery ────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.gallery img:hover { transform: scale(1.03); }

/* ─── Forms ──────────────────────────────────────── */

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-hint {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  min-height: 48px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(212,133,107,0.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
}

/* ─── Footer ─────────────────────────────────────── */

.footer {
  padding: 56px 0;
  border-top: 1px solid rgba(180,140,120,0.08);
  text-align: center;
}

.footer-text {
  font-size: 15px;
  color: var(--secondary);
  font-weight: 400;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 15px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 400;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-base);
}

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

/* ─── Bottom Tab Bar (mobile) ────────────────────── */

.nav-mobile-lang { display: none !important; }

.bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(253,248,243,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(180,140,120,0.1);
  z-index: 100;
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  grid-template-columns: repeat(3, 1fr);
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

.bottom-tab svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.bottom-tab.active,
.bottom-tab:active {
  color: var(--terra);
}

/* ─── Sticky Mobile CTA ─────────────────────────── */

.sticky-cta {
  position: fixed;
  bottom: 64px;
  left: 0;
  right: 0;
  padding: 12px 24px;
  background: rgba(253,248,243,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(180,140,120,0.08);
  z-index: 90;
  display: none;
}

.sticky-cta .btn { width: 100%; }

/* ─── Meet & Greet Form in Sticky ──────────────── */

.meet-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.meet-success-full {
  text-align: center;
  padding: 32px 16px;
  animation: meetSuccessFadeIn 0.4s ease;
}
.meet-success-full svg { margin: 0 auto 16px; }
.meet-success-full .success-title { font-weight: 600; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.meet-success-full .success-sub { font-size: 15px; color: var(--secondary); line-height: 1.6; }
.meet-success-full .success-home {
  display: inline-block; margin-top: 20px; padding: 10px 28px;
  background: var(--terra); color: #fff; border-radius: var(--radius-sm, 8px);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: opacity 0.2s;
}
.meet-success-full .success-home:hover { opacity: 0.85; }

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

/* ─── Toggle Chips (multi-select days/times) ──── */

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 8px 14px;
  border: 1.5px solid var(--cream-dark, #E8DDD4); border-radius: 20px;
  font-size: 13px; font-weight: 500; color: var(--secondary, #7A6B5D);
  background: #fff; cursor: pointer; user-select: none;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--terra, #D4856B); color: var(--terra, #D4856B); }
.chip.selected {
  background: var(--terra, #D4856B); color: #fff;
  border-color: var(--terra, #D4856B);
}

/* ─── Desktop Meet & Greet CTA ─────────────────── */

.desktop-meet-cta {
  margin-top: 32px;
  padding: 28px;
  background: var(--cream-mid, #F5EDE4);
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(180,140,120,0.12);
}

@media (max-width: 768px) {
  .desktop-meet-cta { display: none !important; }
}

/* ─── Share Buttons ────────────────────────────── */

.profile-share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  min-height: 44px;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.share-btn:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Toast ────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toast.show { opacity: 1; }

/* ─── Empty State ────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--cream-dark);
  margin-bottom: 20px;
}

/* ─── Disclaimer ─────────────────────────────────── */

.disclaimer {
  margin-top: 28px;
  padding: 20px;
  background: var(--cream-mid);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── Success state ──────────────────────────────── */

.success-card {
  background: var(--sage-light);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  margin-bottom: 32px;
}

.success-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.success-card p {
  font-size: 15px;
  color: var(--sage-dark);
  font-weight: 300;
}

/* ─── Error state ────────────────────────────────── */

.error-bar {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  color: #991B1B;
  font-size: 14px;
  font-weight: 400;
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cg-grid { grid-template-columns: 1fr; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 72px 0; }
  body { padding-bottom: 80px; }

  /* Hide desktop nav, show bottom tabs + mobile lang toggle */
  .nav-desktop { display: none; }
  .nav-mobile-lang { display: inline-flex !important; }
  .bottom-tabs { display: grid; }
  .sticky-cta { display: block; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .container { padding: 0 18px; }
  .cta-banner { padding: 48px 24px; }
}

/* ─── Accessibility: Reduced motion ─────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .trust-item:hover, .btn-terra:hover,
  .btn-sage:hover, .gallery img:hover { transform: none; }
}

/* ─── Accessibility: Focus indicators ───────────── */

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 3px solid var(--terra-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(212,133,107,0.2);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: none;
}

:focus:not(:focus-visible) { outline: none; }

/* ─── Accessibility: Card click affordance ──────── */

a.card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

a.card:hover, a.card:active { border-color: var(--terra-light); }
a.card:active { transform: scale(0.98); box-shadow: var(--shadow-rest); }

/* ─── Responsive: 2-column form grid ────────────── */

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .form-row-2col { grid-template-columns: 1fr; }
}

/* ─── Browse Directory Page ──────────────────────── */

.browse-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.browse-breadcrumb a { color: var(--secondary); text-decoration: none; }
.browse-breadcrumb a:hover { color: var(--terra); }
.browse-breadcrumb-sep { margin: 0 8px; color: var(--cream-dark); }
.browse-breadcrumb-current { color: var(--ink-soft); font-weight: 500; }

.browse-header { margin-bottom: 20px; }
.browse-title { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.browse-count { font-size: 15px; color: var(--secondary); font-weight: 400; }

.browse-filters { margin-bottom: 28px; }
.browse-market-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.browse-nh-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.browse-nh-pills::-webkit-scrollbar { display: none; }

.browse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.browse-pill:hover { border-color: var(--terra); color: var(--terra); }
.browse-pill.active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.browse-pill-count {
  font-size: 12px;
  font-weight: 600;
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 1px 7px;
}
.browse-pill.active .browse-pill-count {
  background: rgba(255,255,255,0.25);
}

.browse-list { display: flex; flex-direction: column; gap: 16px; }

.browse-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  border: 2px solid transparent;
}
.browse-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--terra-light);
}

.browse-card-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 200px;
}
.browse-card-img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center 20%;
  background: var(--cream-mid);
  display: block;
}
.browse-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.browse-card-badge-float {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--terra);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.browse-card-body {
  flex: 1;
  padding: 20px 0;
  min-width: 0;
}
.browse-card-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.browse-card-meta { font-size: 14px; color: var(--secondary); margin-bottom: 8px; }
.browse-card-tagline {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.browse-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.browse-card-action {
  display: flex;
  align-items: center;
  padding-right: 24px;
  flex-shrink: 0;
}

/* Mobile: stack browse cards vertically */
@media (max-width: 768px) {
  .browse-title { font-size: 24px; }
  .browse-card { flex-direction: column; gap: 0; }
  .browse-card-photo-wrap { width: 100%; }
  .browse-card-img { height: 220px; min-height: 220px; }
  .browse-card-body { padding: 16px 20px; }
  .browse-card-action { display: none; }
}

/* ─── Profile Page: 2-Column Layout ─────────────── */

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.profile-main { min-width: 0; }
.profile-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-glance-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  padding: 24px;
}
.profile-glance-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-glance-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-mid);
  font-size: 15px;
}
.profile-glance-row:last-child { border-bottom: none; }
.profile-glance-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  margin-top: 2px;
}
.profile-glance-label { color: var(--secondary); min-width: 60px; }
.profile-glance-value { color: var(--ink-soft); font-weight: 500; }

.profile-sidebar-cta {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  padding: 24px;
}

/* Scroll header (mobile only) */
.profile-scroll-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(253,248,243,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease-out);
  border-bottom: 1px solid var(--cream-dark);
}
.profile-scroll-header.visible { transform: translateY(0); }
.profile-scroll-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}
.profile-scroll-header-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 12px;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .profile-sidebar {
    position: static;
  }
  .profile-sidebar .profile-sidebar-cta { display: none; }
  .profile-scroll-header { display: block; }
  .profile-hero { text-align: center; }
}

@media (min-width: 769px) {
  .profile-hero { text-align: left; }
  .profile-hero .profile-photo-wrap { margin: 0 0 16px; }
  .profile-hero .profile-badges { justify-content: flex-start; }
  .profile-hero .profile-share-row { justify-content: flex-start; }
  .desktop-meet-cta { display: none; }
}
