/* ============================================================
   Nomadiet — shared styles
   Fonts: Playfair Display (display/serif) + Inter (body/sans)
   Palette: warm cream + deep blue + terracotta accent
   ============================================================ */

:root {
  --cream: #f4ead9;
  --cream-deep: #ece0cb;
  --paper: #fffdf9;
  --navy: #0d214f;
  --navy-deep: #081733;
  --ink: #223349;
  --ink-soft: #52697f;
  --terracotta: #c26a4b;
  --terracotta-deep: #a8543a;
  --sage: #7c9070;
  --line: #e3d5bd;

  --font-display: "Playfair Display", "Noto Serif", Georgia, serif;
  --font-body: "Inter", "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 60px -20px rgba(13, 33, 79, 0.25);
  --shadow-card: 0 12px 30px -12px rgba(13, 33, 79, 0.18);

  --container-w: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  line-height: 1.7;
  color: var(--ink-soft);
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---------- page frame (mirrors the reference: cream page,
   floating rounded white "card" that holds the whole site) ---------- */

.page-frame {
  padding: 14px;
}

@media (min-width: 768px) {
  .page-frame {
    padding: 22px;
  }
}

.site-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .nav {
    padding: 24px 40px;
  }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.nav__logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer__brand svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.footer__brand span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
  color: var(--terracotta-deep);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  background: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 860px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  border-bottom: 1px solid var(--line);
}

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

.nav__mobile a {
  padding: 12px 4px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.nav__mobile a:last-child {
  border-bottom: none;
}

@media (min-width: 860px) {
  .nav__mobile {
    display: none !important;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--paper);
}

.btn-terracotta {
  background: var(--terracotta);
  color: var(--paper);
}

.btn-terracotta:hover {
  background: var(--terracotta-deep);
}

.btn-block {
  width: 100%;
}

/* ---------- badges / pills ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

/* ---------- hero ---------- */

.hero {
  padding: 48px 20px 60px;
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .hero {
    padding: 70px 40px 90px;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 0.92fr 1.15fr;
    align-items: center;
    gap: 48px;
  }
}

.hero__headline {
  font-size: 2.6rem;
  letter-spacing: -0.01em;
}

@media (min-width: 560px) {
  .hero__headline {
    font-size: 3.4rem;
  }
}

@media (min-width: 980px) {
  .hero__headline {
    font-size: 4rem;
  }
}

@media (min-width: 1240px) {
  .hero__headline {
    font-size: 4.6rem;
  }
}

.hero__headline--long {
  font-size: 2rem;
}

@media (min-width: 560px) {
  .hero__headline--long {
    font-size: 2.5rem;
  }
}

@media (min-width: 980px) {
  .hero__headline--long {
    font-size: 2.9rem;
  }
}

@media (min-width: 1240px) {
  .hero__headline--long {
    font-size: 3.3rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

@media (min-width: 768px) {
  .hero__media {
    max-width: 520px;
  }
}

@media (min-width: 1240px) {
  .hero__media {
    max-width: 600px;
  }
}

.hero__ring {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--cream-deep), var(--terracotta) 140%);
  padding: 14px;
}

.hero__ring img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  font-size: 0.85rem;
}

.floating-card--top {
  top: -14px;
  right: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 168px;
  padding: 11px 14px;
}

.floating-card--top > div {
  font-size: 0.68rem;
  line-height: 1.3;
}

.floating-card--top strong {
  font-size: 1.15rem;
}

@media (min-width: 560px) {
  .floating-card--top {
    top: -6px;
    right: -30px;
    max-width: 230px;
    padding: 16px 20px;
    gap: 10px;
  }

  .floating-card--top > div {
    font-size: 0.78rem;
  }

  .floating-card--top strong {
    font-size: 1.5rem;
  }
}

@media (min-width: 560px) {
  .floating-card--top {
    right: -30px;
  }
}

.floating-card--bottom {
  left: -14px;
  bottom: 8px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 560px) {
  .floating-card--bottom {
    left: -30px;
  }
}

.floating-card strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--paper);
  margin-left: -8px;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

/* ---------- the need band ---------- */

.need-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  margin: 0 20px 20px;
  padding: 44px 24px;
  color: var(--paper);
}

@media (min-width: 768px) {
  .need-band {
    margin: 0 40px 40px;
    padding: 64px 56px;
  }
}

.need-band__grid {
  display: grid;
  gap: 40px;
  max-width: var(--container-w);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .need-band__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .need-band__grid--media-left {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.need-band h2 {
  color: var(--paper);
  font-size: 2.6rem;
}

@media (min-width: 768px) {
  .need-band h2 {
    font-size: 3.4rem;
  }
}

.need-band__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 0;
}

.eyebrow--dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

.need-band__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.need-band__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--paper);
}

.need-band__col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

.need-band__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.need-band__frame {
  position: absolute;
  inset: 22px 22px -22px -22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  z-index: 0;
}

.need-band__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-md);
  filter: grayscale(1) contrast(1.05);
}

/* ---------- sections ---------- */

section {
  padding: 56px 20px;
}

@media (min-width: 768px) {
  section {
    padding: 80px 40px;
  }
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 2.4rem;
  }
}

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

/* ---------- stat panel (credential row) ---------- */

.stat-panel {
  max-width: 760px;
  margin: 0 auto;
}

.stat-panel__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (min-width: 640px) {
  .stat-panel__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-panel__item h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.stat-panel__item-title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.stat-panel__item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: var(--container-w);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat h3 {
  font-size: 2.4rem;
  margin-bottom: 4px;
}

.stat p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- service / consult cards ---------- */

.card-grid {
  display: grid;
  gap: 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--terracotta-deep);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* ---------- mission / split ---------- */

.split {
  display: grid;
  gap: 36px;
  max-width: var(--container-w);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .split--reverse {
    direction: rtl;
  }
  .split--reverse > * {
    direction: ltr;
  }
}

.split img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
}

/* ---------- cta band ---------- */

.cta-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  margin: 0 20px 20px;
  padding: 48px 28px;
  text-align: center;
  color: var(--paper);
}

@media (min-width: 768px) {
  .cta-band {
    margin: 0 40px 40px;
    padding: 64px 40px;
  }
}

.cta-band h2 {
  color: var(--paper);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 20px 28px;
}

@media (min-width: 768px) {
  .footer {
    padding: 48px 40px 32px;
  }
}

.footer__grid {
  display: grid;
  gap: 32px;
  max-width: var(--container-w);
  margin: 0 auto 28px;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.footer p, .footer a {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer li {
  margin-bottom: 8px;
}

.footer__bottom {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- about page ---------- */

.credential-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}

.credential-list li:last-child {
  border-bottom: none;
}

.credential-list .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 7px;
}

.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-item time {
  font-weight: 700;
  color: var(--terracotta-deep);
  font-size: 0.9rem;
}

.timeline-item h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- scheduling page ---------- */

.consult-options {
  display: grid;
  gap: 22px;
  max-width: var(--container-w);
  margin: 0 auto 50px;
}

@media (min-width: 700px) {
  .consult-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .consult-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.consult-option {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.consult-option:hover {
  border-color: var(--terracotta);
}

.consult-option.is-selected {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(194, 106, 75, 0.12);
}

.consult-option__check {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.consult-option.is-selected .consult-option__check {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.consult-option__check svg {
  opacity: 0;
  width: 14px;
  height: 14px;
  stroke: white;
  transition: opacity 0.2s ease;
}

.consult-option.is-selected .consult-option__check svg {
  opacity: 1;
}

.consult-option__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--terracotta-deep);
  background: var(--cream-deep);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.consult-option h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.consult-option p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.booking-embed {
  max-width: var(--container-w);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.booking-embed iframe {
  display: block;
}

.form-callout {
  max-width: var(--container-w);
  margin: 28px auto 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .form-callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}

.form-callout h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.form-callout p {
  font-size: 0.9rem;
  margin: 0;
}

.form-callout .btn {
  flex: none;
}

/* ---------- form dialog (questionnaire picker) ---------- */

.form-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.form-dialog[hidden] {
  display: none;
}

.form-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 23, 51, 0.55);
}

.form-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 32px 28px 24px;
  box-shadow: 0 30px 70px rgba(8, 23, 51, 0.35);
}

.form-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.form-dialog__close:hover,
.form-dialog__close:focus-visible {
  background: var(--cream);
  color: var(--ink);
  outline: none;
}

.form-dialog__close svg {
  width: 16px;
  height: 16px;
}

.form-dialog__panel h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  padding-right: 34px;
}

.form-dialog__panel > p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.form-dialog__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-dialog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.form-dialog__item + .form-dialog__item {
  border-top: 1px solid var(--line);
}

.form-dialog__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--terracotta);
  transition: transform 0.15s ease;
}

.form-dialog__item:hover,
.form-dialog__item:focus-visible {
  background: var(--cream);
  color: var(--terracotta-deep);
  outline: none;
}

.form-dialog__item:hover svg,
.form-dialog__item:focus-visible svg {
  transform: translateX(3px);
}

/* ---------- utility ---------- */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
