/* style.css: Yorro tokens, base type, layout, components, motion.
   Values from client-yorro/design-system/colors_and_type.css (the site's own tokens.css). Fonts self hosted. */
@import url("../fonts/fonts.css");

:root {
  --brand: #1C2340; --brand-lift: #2A3356;
  --accent: #F0A422; --accent-press: #D8921E; --accent-bg: #FDF6E8; --accent-border: #F1DFB4;
  --text-primary: #1C2340; --text-secondary: #3C4566; --text-muted: #7A8099;
  --text-on-brand: #FFFFFF; --text-on-brand-soft: rgba(255,255,255,0.72);
  --bg-base: #F0EFED; --bg-alt: #FFFFFF; --bg-alt-deep: #EBEAE6; --bg-brand: #1C2340;
  --border: #E4E3DF; --shadow-color: rgba(28,35,64,0.07);
  --shadow-card: 0 2px 16px var(--shadow-color); --shadow-hover: 0 8px 32px var(--shadow-color);
  --font-headline: 'Domine', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-display: 76px; --text-h1: 56px; --text-h2: 40px; --text-h3: 28px; --text-h4: 22px;
  --text-lead: 20px; --text-body: 17px; --text-small: 14px; --text-label: 12px;
  --section-pad: 104px; --wrap-max: 1200px; --gutter: 24px; --measure: 68ch;
  --r-sm: 6px; --r-btn: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --ease: cubic-bezier(0.4,0,0.2,1); --dur-fast: 150ms; --dur: 200ms; --dur-slow: 400ms;
}

html { background: var(--bg-base); scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: var(--text-body); line-height: 1.7; color: var(--text-secondary); background: var(--bg-base); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-headline); font-weight: 700; color: var(--text-primary); margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: .6rem; }
h4 { font-size: var(--text-h4); line-height: 1.3; margin-bottom: .4rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--text-lead); line-height: 1.65; }
.small { font-size: var(--text-small); line-height: 1.6; color: var(--text-muted); }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-press); }

/* The slash label */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.label::before { content: '/'; font-weight: 400; font-size: 16px; }
.hl { box-shadow: inset 0 -0.18em 0 var(--accent); padding: 0 0.04em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1; padding: 15px 30px; border-radius: var(--r-btn); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-lift); color: #fff; transform: translateY(-1px); }
.btn-amber { background: var(--accent); color: var(--brand); }
.btn-amber:hover { background: var(--accent-press); color: var(--brand); transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Layout */
.container { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-pad) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-brand); color: var(--text-on-brand-soft); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .label { color: var(--accent); }
.section--centred .label { justify-content: center; width: 100%; }
.section--centred h2 { text-align: center; max-width: none; }
.section__intro { max-width: 720px; margin: 0 auto 2.5rem !important; text-align: center; font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.grid-2--even { grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Cards */
.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-tint { background: var(--accent-bg); border-color: var(--accent-border); }
.card p { max-width: none; }

/* Statistic card */
.stat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 28px 24px; box-shadow: var(--shadow-card); }
.stat__num { font-family: var(--font-headline); font-size: 72px; font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; color: var(--text-primary); margin-bottom: 10px; }
.stat__num span { color: var(--accent); }
.stat__what { font-size: var(--text-body); color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; max-width: none; }
.stat__src { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Pull quote */
.pullquote { font-family: var(--font-headline); font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-primary); border-left: 4px solid var(--accent); padding: 6px 0 6px 26px; margin: 34px 0; max-width: 26ch; }

/* Photo frame and badge */
.photo-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.photo-frame img { width: 100%; height: auto; }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--brand); background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 6px 14px; box-shadow: var(--shadow-card); }
.badge::before { content: '/'; color: var(--accent); }
.photo-frame .badge { position: absolute; left: 16px; bottom: 16px; }

/* Icon tile */
.tile { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-bg); border: 1px solid var(--accent-border); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); flex: none; }
.tile svg { width: 20px; height: 20px; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease); }
.nav--scrolled { background: rgba(255,255,255,0.96); box-shadow: 0 2px 12px var(--shadow-color); padding: 12px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--brand); text-decoration: none; }
.nav__links a:hover { color: var(--accent-press); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__lang { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); text-decoration: none; }
.nav__lang:hover { color: var(--brand); }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; background: none; border: 0; text-align: left; padding: 22px 48px 22px 0; font-family: var(--font-headline); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--text-primary); cursor: pointer; position: relative; }
.faq__q::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 400; font-size: 26px; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.faq__a p { padding: 0 0 22px; max-width: none; }

/* Footer */
.footer { padding: 48px 0; background: var(--bg-base); border-top: 1px solid var(--border); font-size: var(--text-small); color: var(--text-muted); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer img { height: 26px; width: auto; margin-bottom: 14px; }
.footer a { color: var(--text-secondary); }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer p { max-width: none; }

/* Motion */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }
.stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }
  .grid-2, .grid-2--even, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .grid-2 > .grid__image { order: -1; }
  .nav__links { display: none; }
}
@media (max-width: 760px) {
  :root { --text-display: 44px; --text-h1: 38px; --text-h2: 30px; --text-h3: 24px; --text-h4: 20px; --text-lead: 18px; --section-pad: 64px; }
  .stat__num { font-size: 56px; }
  .pullquote { font-size: 22px; max-width: none; }
}
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
  .btn-lg { padding: 16px 22px; font-size: 15px; }
  .btn-sm { width: auto; white-space: nowrap; padding: 10px 14px; font-size: 13px; }
  .card, .stat { padding: 22px; }
  .nav__logo img { height: 24px; }
  .nav__right { gap: 12px; }
  .faq__q { font-size: 18px; padding-right: 40px; }
  .label { white-space: normal; }
}

/* Cookie bar. Reject and accept sit on the same layer, same size, one click each. */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding: 16px var(--gutter); background: var(--brand); color: var(--text-on-brand); box-shadow: 0 -2px 24px var(--shadow-color); }
.cookiebar[hidden] { display: none; }
.cookiebar__text { margin: 0; max-width: none; font-size: var(--text-small); color: var(--text-on-brand-soft); }
.cookiebar__text a { color: #fff; }
.cookiebar__text a:hover { color: var(--accent); }
.cookiebar__actions { display: flex; gap: 10px; }
.cookiebar__btn { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1; padding: 11px 22px; border-radius: var(--r-btn); cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.cookiebar__btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.cookiebar__btn--ghost:hover { background: rgba(255,255,255,0.12); }
.cookiebar__btn--solid { background: var(--accent); color: var(--brand); border: 1px solid var(--accent); }
.cookiebar__btn--solid:hover { background: var(--accent-press); border-color: var(--accent-press); }
.cookiebar__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .cookiebar { justify-content: flex-start; } .cookiebar__actions { width: 100%; } .cookiebar__btn { flex: 1; } }
