/* =========================================================
   FARBENDIALOG v2 — exact rebuild of reference mockup
   Full-screen single-view landing.
   ========================================================= */
:root {
  --ink:        #22405B;   /* navy — headings, nav, logo text */
  --ink-soft:   #3C5266;
  --body:       #5E6B78;   /* gray body text */
  --meta:       #8A94A0;   /* light meta text */
  --line:       rgba(34,64,91,.12);

  --coral:      #D3846A;   /* terracotta — buttons, accents */
  --coral-dk:   #BE6E52;

  --blue:       #5E86A8;
  --blue-soft:  #DCE7EF;
  --green:      #6E9A6A;
  --green-line: #7BA477;
  --green-soft: #DDE8D7;
  --peach-soft: #F1E1D6;

  --paper:      #FFFFFF;
  --cream:      #FBFAF6;

  --radius:     16px;
  --wrap:       min(1340px, calc(100vw - 64px));
  --font-serif: 'Fraunces', ui-serif, Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;

  /* soft page wash: pale blue (top-left) → pale green (top-right) → cream */
  --wash: linear-gradient(120deg, #E9EFF3 0%, #EDF0EA 42%, #E5EDE2 70%, #EEF0E9 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.55;
  color: var(--body);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
.wrap { width: var(--wrap); margin: 0 auto; }

/* =========================================================
   Header (transparent, over hero)
   ========================================================= */
.site-header { position: relative; z-index: 5; }
.header-inner {
  width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 22px 0 8px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo-mark { flex: 0 0 auto; }
.brand-text strong {
  font-family: var(--font-sans); font-weight: 700; font-size: 19px;
  color: var(--ink); letter-spacing: .14em; display: block; line-height: 1;
}
.brand-text small { display: block; font-size: 11px; color: var(--meta); letter-spacing: .01em; margin-top: 5px; line-height: 1.3; }
.main-nav { display: flex; gap: 38px; margin: 0 auto; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav a.is-active { color: var(--coral); }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark  { background: var(--ink); color: #fff; }
.btn-dark:hover  { background: #1a3247; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(34,64,91,.28); }
.btn-outline:hover { border-color: var(--ink); }
.btn-coral { background: var(--coral); color: #fff; height: 46px; padding: 0 26px; }
.btn-coral:hover { background: var(--coral-dk); }

.link-arrow { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   TOP block = header + hero over feathered photo
   ========================================================= */
.top-photo {
  position: absolute; top: 0; right: 0; z-index: 0;
  width: 63%; height: clamp(560px, 82vh, 860px);
  background: url('/assets/img/hero.png') center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%),
                      linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%),
                      linear-gradient(180deg, #000 78%, transparent 100%);
          mask-composite: intersect;
}

.hero { position: relative; z-index: 2; }
.hero-inner {
  width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
}
.hero-text { max-width: 500px; }
.hero-title {
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.96; letter-spacing: -0.03em; color: var(--ink);
}
.accent-rule { width: 56px; height: 3px; border-radius: 3px; background: var(--coral); margin: 30px 0 26px; }
.hero-lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-soft); max-width: 34ch; margin: 0 0 34px; line-height: 1.5; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Feature cards (3) — icon left, colored bottom border
   ========================================================= */
.features { position: relative; z-index: 2; }
.features .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2vw, 30px); }
.f-card {
  position: relative; background: rgba(255,255,255,.9);
  border-radius: var(--radius); padding: 28px 30px 26px;
  box-shadow: 0 26px 50px -34px rgba(34,64,91,.4);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  overflow: hidden;
}
.f-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.f-card.c-blue::after  { background: var(--blue); }
.f-card.c-green::after { background: var(--green-line); }
.f-card.c-coral::after { background: var(--coral); }
.f-ico { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; margin-top: 4px; }
.c-blue  .f-ico { background: var(--blue-soft);  color: var(--blue); }
.c-green .f-ico { background: var(--green-soft); color: var(--green); }
.c-coral .f-ico { background: var(--peach-soft); color: var(--coral-dk); }
.f-body h3 { font-size: 25px; margin: 2px 0 10px; }
.f-body p { color: var(--body); font-size: 14.5px; line-height: 1.5; margin: 0 0 14px; max-width: 30ch; }
.c-blue  .link-arrow { color: var(--blue); }
.c-green .link-arrow { color: var(--green); }
.c-coral .link-arrow { color: var(--coral); }

/* =========================================================
   Quote band + color fan
   ========================================================= */
.quote { position: relative; z-index: 2; padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 64px); }
.quote .wrap {
  background: linear-gradient(110deg, #EEF1EA 0%, #F0F0E8 50%, #F1EEE6 100%);
  border-radius: 18px; padding: clamp(28px, 3.5vw, 44px) clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  overflow: hidden; min-height: 150px;
}
.quote-mark { font-family: var(--font-serif); font-size: 64px; line-height: 1; height: 34px; color: var(--coral); margin-bottom: 4px; }
.quote-body {
  font-family: var(--font-serif); font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.22; color: var(--ink); letter-spacing: -0.01em; font-weight: 400; max-width: 26ch;
}
.color-fan { align-self: end; margin: 0 -24px -46px 0; }

/* =========================================================
   Footer (light)
   ========================================================= */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); color: var(--body); }
.footer-grid {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr .9fr;
  gap: clamp(20px, 2.4vw, 44px); padding: clamp(36px, 4vw, 56px) 0 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand { align-items: flex-start; }
.footer-brand .brand-text small { line-height: 1.35; }
.footer-flag { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); margin-top: 18px; }
.footer-col h4 { font-family: var(--font-sans); color: var(--ink); font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--body); font-size: 14.5px; }
.footer-col a:hover { color: var(--coral); }
.footer-news p { color: var(--body); font-size: 14px; margin: 0 0 16px; max-width: 24ch; line-height: 1.45; }
.news-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); max-width: 300px; }
.news-form input { flex: 1; height: 42px; padding: 0 16px; background: transparent; border: 0; outline: 0; color: var(--ink); font-family: inherit; font-size: 14px; }
.news-form input::placeholder { color: var(--meta); }
.news-form button { width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 17px; display: grid; place-items: center; transition: background .2s; }
.news-form button:hover { background: var(--coral); }
.footer-social-col h4 { font-family: var(--font-sans); color: var(--ink); font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.soc { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.soc:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.footer-bottom {
  width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--meta);
}
.footer-legal { display: flex; gap: 28px; }
.footer-legal a:hover { color: var(--coral); }
.footer-contact { display: flex; gap: 28px; }

/* =========================================================
   Interior page helpers (subpages)
   ========================================================= */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section.on-paper { background: rgba(255,255,255,.6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--body); font-size: 17px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--meta); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; }
.cards-grid { display: grid; gap: clamp(20px, 2vw, 30px); grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: rgba(255,255,255,.85); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 50px -36px rgba(34,64,91,.35); }
.card h3 { font-size: 24px; }
.page-hero { padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(44px, 5.4vw, 82px); color: var(--ink); font-family: var(--font-serif); font-weight: 400; line-height: 1; }
.page-hero .kicker { color: var(--body); font-size: 17px; max-width: 46ch; margin-top: 22px; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 14px; box-shadow: 0 20px 60px -10px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 100; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  :root { --wrap: min(1080px, calc(100vw - 40px)); }
  .top-photo { position: relative; width: 100%; height: 320px; -webkit-mask-image: none; mask-image: none; border-radius: var(--radius); margin-top: 12px; }
  .hero-text { max-width: none; }
  .features .wrap { grid-template-columns: 1fr; }
  .quote .wrap { grid-template-columns: 1fr; }
  .color-fan { justify-self: center; margin: 8px auto -20px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --wrap: min(640px, calc(100vw - 32px)); }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .main-nav { display: flex; position: fixed; top: 72px; left: 0; right: 0; background: #EDF0EA; flex-direction: column; padding: 24px; gap: 18px; z-index: 30; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-contact { flex-direction: column; gap: 6px; }
}
