/* ==========================================================================
   Xeniya Hesse theme — main stylesheet
   Design tokens live in tokens/*.css (imported below). Everything in this
   file is plain CSS you can edit directly — layout and design are not
   controlled by WordPress or ACF, only the text/image content is.
   ========================================================================== */

@import url('tokens/fonts.css');
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
}

a { color: var(--accent-primary-hover); text-decoration: none; }
a:hover { color: var(--color-ink); }

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

input, textarea { font-size: 16px; } /* prevents iOS auto-zoom on focus */

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

.section { padding: clamp(48px, 9vw, 96px) 0; background: var(--bg-page); position: relative; }
.section--surface { background: var(--bg-surface); }
.section--cream-2 { background: #F2EEE9; }
.section--terracotta { background: var(--color-terracotta); }
.section--lilac { background: var(--bg-band-lilac); }
.section--sage { background: var(--bg-band-sage); }
.section--overflow-hidden { overflow: hidden; }
.section--anchor { scroll-margin-top: 80px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--text-primary);
  margin: 0 0 12px;
}
.section-title--center { text-align: center; }

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0 0 56px;
}

/* ── Decorative flower motif ──────────────────────────────────────────── */
/* Scattered accent built from circle "petals" — not an illustration. */

.decor-flower {
  --size: 56px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  pointer-events: none;
}
.decor-flower .petal {
  position: absolute;
  width: calc(var(--size) * 0.42);
  height: calc(var(--size) * 0.58);
  border-radius: 50%;
  background: var(--petal-color, var(--color-lilac));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--size) * -0.28));
}
.decor-flower .petal:nth-child(1) { --angle: 0deg; }
.decor-flower .petal:nth-child(2) { --angle: 72deg; }
.decor-flower .petal:nth-child(3) { --angle: 144deg; }
.decor-flower .petal:nth-child(4) { --angle: 216deg; }
.decor-flower .petal:nth-child(5) { --angle: 288deg; }
.decor-flower .petal-center {
  position: absolute;
  top: 50%; left: 50%;
  width: calc(var(--size) * 0.24);
  height: calc(var(--size) * 0.24);
  border-radius: 50%;
  background: var(--color-cream);
  transform: translate(-50%, -50%);
}
@media (max-width: 760px) {
  .decor-flower { display: none; }
}

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

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn--sm { padding: 13px 22px; font-size: var(--text-xs); }
.btn--md { padding: 14px 28px; font-size: var(--text-sm); }
.btn--lg { padding: 18px 36px; font-size: var(--text-base); }

.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--accent { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border: 1.5px solid var(--color-ink); }
.btn--outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-soft); }
.btn--ghost { background: transparent; color: var(--color-lilac-dark); }

/* ── Badge ────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.badge--lilac { background: var(--bg-band-lilac); color: var(--color-lilac-dark); }
.badge--ink { background: var(--color-ink); color: var(--color-cream); }
.badge--outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-soft); }

/* ── Card ─────────────────────────────────────────────────────────────── */

.card {
  border-radius: var(--radius-md);
  padding: var(--space-6);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card--surface { background: var(--bg-surface-raised); border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); }
.card--lilac { background: var(--bg-band-lilac); border: none; }

.card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-lilac-dark);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}
.card__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ── Image placeholder (empty ACF image field) ───────────────────────── */

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: color-mix(in oklab, var(--color-ink) 6%, transparent);
  border: 1.5px dashed var(--border-soft);
  color: var(--text-faint);
  font-size: 13px;
  border-radius: inherit;
}

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

.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg-page); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 4vw, 22px) clamp(20px, 5vw, 40px);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-link { color: var(--text-primary); font-weight: 600; font-size: 15px; padding: 8px 0; }
.nav-link:hover { color: var(--color-lilac-dark); }
.nav-links { display: flex; flex-wrap: wrap; row-gap: 10px; column-gap: clamp(14px, 3vw, 32px); align-items: center; }
.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--color-ink);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.hamburger span { width: 20px; height: 2px; background: var(--color-ink); }
.mobile-cta { display: none; }

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-page);
    padding: 12px clamp(20px, 5vw, 40px) 20px;
    box-shadow: var(--shadow-card);
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-link { padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 17px; }
  .nav-links a.cta-in-menu { border-bottom: none; }
  .hamburger { display: flex; }
  .desktop-cta { display: none; }
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    padding: 12px clamp(16px, 5vw, 24px);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--bg-page);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.25);
  }
  .mobile-cta .btn { flex: 1; text-align: center; }
  #page-body { padding-bottom: 76px; }
  .hero__photo { display: none; }
}

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

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  color: var(--text-primary);
  margin: 24px 0;
}
.hero__subtitle {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 36px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__photo {
  width: 100%;
  height: clamp(260px, 55vw, 460px);
  border: 3px solid var(--color-ink);
  border-radius: 32px;
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── About ────────────────────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}
.about__photo {
  width: 100%;
  max-width: 380px;
  height: clamp(320px, 80vw, 620px);
  border: 3px solid var(--color-ink);
  border-radius: 24px;
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ── Services ─────────────────────────────────────────────────────────── */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ── Approach (three pillars) ────────────────────────────────────────── */

.approach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.pillar { text-align: center; }
.pillar__index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--color-lilac-dark);
  margin-bottom: 12px;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.pillar__text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing__note {
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 24px;
}

/* ── FAQ (built with <details>/<summary>, no JS needed) ─────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--color-lilac-dark);
  font-size: var(--text-xl);
  font-weight: 300;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item__answer {
  padding: 0 0 var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 640px;
}

/* ── Quote ────────────────────────────────────────────────────────────── */

.quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--text-primary);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote__cta { display: flex; justify-content: center; margin-top: 32px; }

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.contact__lede {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 0 32px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  color: var(--text-primary);
}
.contact__card {
  background: var(--bg-surface-raised);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__divider { height: 1px; background: var(--border-soft); margin: 8px 0; }

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

.site-footer { background: var(--color-ink); color: var(--color-cream); padding: clamp(40px, 8vw, 64px) 0; }
.site-footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  padding: 0 clamp(20px, 5vw, 40px);
}
.site-footer__logo { font-family: var(--font-display); font-style: italic; font-size: 28px; margin-bottom: 16px; }
.site-footer__tagline { color: var(--color-lilac-light); font-size: 15px; line-height: 1.7; max-width: 340px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.site-footer__bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 24px clamp(20px, 5vw, 40px) 0;
  border-top: 1px solid rgba(242,239,232,0.15);
  font-size: 13px;
  color: var(--color-lilac-light);
}

/* ── Blog listing ─────────────────────────────────────────────────────── */

.blog-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.blog-hero__subtitle {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.article-card {
  text-decoration: none;
  color: inherit;
  background: var(--bg-surface-raised);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.article-card__image { width: 100%; height: 200px; border-bottom: 1.5px solid var(--color-ink); overflow: hidden; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--text-primary); margin: 4px 0 0; }
.article-card__excerpt { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.article-card__date { font-size: 13px; color: var(--text-faint); margin-top: 8px; }

.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 48px; }

/* ── Single article ───────────────────────────────────────────────────── */

.article__back { color: var(--color-lilac-dark); font-weight: 700; font-size: 14px; text-decoration: none; }
.article__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--text-primary);
  margin: 16px 0 12px;
  max-width: 720px;
}
.article__date { font-size: 14px; color: var(--text-faint); margin-bottom: 32px; }
.article__hero { width: 100%; max-width: 760px; height: 360px; border: 3px solid var(--color-ink); border-radius: 24px; margin-bottom: 32px; overflow: hidden; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__body {
  max-width: 720px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article__body p { margin: 0; }
