/* ============================================================
   Fabricius-Brand Becker Wilkening – Kanzlei für Familienrecht
   Design system (Bloom-inspired, editorial & warm)
   ============================================================ */

:root {
  --cream:        #F7F2EA;
  --cream-light:  #FBF8F2;
  --cream-deep:   #EFE7D9;
  --teal:         #3F5E5A;
  --teal-deep:    #2A3A37;
  --sage:         #7C9A93;
  --sand:         #C7B299;
  --sand-soft:    #E4D6C1;
  --blush:        #D9B8A8;
  --ink:          #2A3A37;
  --ink-soft:     #55655F;
  --line:         rgba(63, 94, 90, 0.16);
  --shadow-soft:  0 24px 60px -30px rgba(42, 58, 55, 0.45);
  --shadow-card:  0 18px 40px -28px rgba(42, 58, 55, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.font-serif { font-family: "Fraunces", Georgia, "Times New Roman", serif; }

.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--teal);
}

.eyebrow {
  font-family: "Nunito Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage);
}

.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.75; }

a { color: inherit; }

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal-deep);
  padding: 0.35rem 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--sage);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--sage); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.btn-primary { background: var(--teal); color: var(--cream-light); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-deep); border-color: var(--sage); transform: translateY(-2px); }

/* ---------- Organic arch / oval frames (Bloom signature) ---------- */
.arch {
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--sand-soft), var(--sage) 130%);
  box-shadow: var(--shadow-soft);
}
.arch--tall { aspect-ratio: 3 / 5; }
.arch--portrait { aspect-ratio: 3 / 4; }

/* Motif/photo image filling an arch frame */
.arch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder styling for photo slots (no invented photos) */
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 1.5rem;
}
.photo-slot .monogram {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
}
.photo-slot .slot-hint {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  opacity: 0.85;
}

/* ---------- Cards ---------- */
.card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 55px -30px rgba(42, 58, 55, 0.5);
  border-color: rgba(124, 154, 147, 0.5);
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--cream-deep);
  color: var(--teal);
}

/* ---------- Section dividers ---------- */
.rule {
  width: 64px; height: 2px;
  background: var(--sand);
  border: 0;
  margin: 1.5rem 0;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Botanical accents ---------- */
.botanical { color: var(--sage); opacity: 0.85; pointer-events: none; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Hidden only when JS is active; no-JS visitors see all content. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Forms ---------- */
.field {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field::placeholder { color: rgba(85, 101, 95, 0.55); }
.field:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124, 154, 147, 0.22);
}
label.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

/* ---------- Note / placeholder callout ---------- */
.note {
  border: 1px dashed rgba(124, 154, 147, 0.6);
  background: rgba(124, 154, 147, 0.08);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(247, 242, 234, 0.82);
  border-bottom: 1px solid var(--line);
}
.logo-word {
  font-family: "Fraunces", serif;
  font-weight: 400;
  letter-spacing: 0.24em;
  font-size: 1.35rem;
  color: var(--teal);
}
.logo-sub {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

/* Mobile menu */
#mobileMenu { transition: max-height 0.4s ease, opacity 0.3s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobileMenu.open { max-height: 480px; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: #D8E0DC; }
.site-footer a { color: #D8E0DC; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--sand); }

/* ---------- Utility ---------- */
.container-x { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.link-underline { text-decoration: none; border-bottom: 1.5px solid var(--sand); padding-bottom: 2px; transition: border-color 0.25s ease, color 0.25s ease; }
.link-underline:hover { color: var(--sage); border-color: var(--sage); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card { transition: none !important; }
}
