/* ReStory Biznis — shared styles. Palette taken from restorybusiness.com. */
:root {
  --yellow: #ffd457;
  --yellow-deep: #f6a117;
  --green: #27926b;
  --green-dark: #1d6145;
  --red: #da766e;
  --purple: #4665af;
  --ink: #111;
  --grey: #6b6b6b;
  --paper: #fff;
  --soft: #faf7ee;
  --radius: 10px;
  --wrap: 1120px;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-head: "Bricolage Grotesque", "Open Sans", sans-serif;
  --font-mark: "Anton", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-mark);
  text-transform: uppercase;
  line-height: .86;
  font-size: 26px;
  letter-spacing: .01em;
  text-decoration: none;
  display: inline-block;
}
.wordmark span { display: block; }
.wordmark--lg { font-size: 48px; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--yellow); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 8px; padding: 6px 12px; font: 600 15px var(--font-body); cursor: pointer; }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 3vw, 38px); margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--yellow); display: none; border-top: 1px solid rgba(0,0,0,.15); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 18px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font: 700 15px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 8px; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Labels ---------- */
.label {
  display: inline-block; font-weight: 700; font-size: 15px;
  padding-bottom: 4px; border-bottom: 4px solid var(--yellow); margin-bottom: 28px;
}

/* ---------- Home: hero ---------- */
.hero { position: relative; background: var(--soft); overflow: hidden; }
.hero picture img { width: 100%; height: auto; }
.hero h1 {
  position: absolute; left: 17%; top: 46%; width: min(42%, 520px);
  font-size: clamp(22px, 3.6vw, 48px); margin: 0;
  text-shadow: 0 0 18px var(--soft), 0 0 8px var(--soft);
}
@media (max-width: 700px) {
  .hero h1 { position: static; width: auto; padding: 28px 16px 8px; text-align: center; font-size: 30px; }
}

/* ---------- Home: why ---------- */
.why-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.why-intro h2 { font-size: clamp(26px, 3vw, 34px); }
.why-statement { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; text-align: center; max-width: 820px; margin: 0 auto; }
@media (max-width: 700px) { .why-intro { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Photo grids ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photos + .photos, .photos + .video, .video + .photos { margin-top: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; width: min(760px, 100%); margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote-tile { background: var(--yellow); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 30px); display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; }
.quote-tile blockquote { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(17px, 2vw, 26px); line-height: 1.15; }
.quote-tile cite { font-style: normal; font-size: 13px; line-height: 1.3; }
.quote-tile cite strong { display: block; font-size: 15px; }
@media (max-width: 700px) {
  .photos { grid-template-columns: 1fr 1fr; }
  .photos > :first-child { grid-column: 1 / -1; }
  .quote-tile { aspect-ratio: auto; }
}

/* ---------- Values ---------- */
.values-lead { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; text-align: center; max-width: 760px; margin: 0 auto 56px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.value { background: var(--yellow); border-radius: var(--radius); padding: 26px 20px 18px; text-align: center; }
.value img { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: #fff; }
.value h3 { font-size: 21px; margin-bottom: .4em; }
.value .sub { font-size: 15px; line-height: 1.45; margin-bottom: 12px; }
.value details summary { list-style: none; cursor: pointer; font-size: 22px; font-weight: 700; line-height: 1; padding: 6px; }
.value details summary::-webkit-details-marker { display: none; }
.value details summary::before { content: "+"; }
.value details[open] summary::before { content: "–"; }
.value details p { font-size: 14.5px; line-height: 1.5; margin: 8px 0 6px; text-align: left; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Pathways ---------- */
.serve-lead { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3.8vw, 42px); line-height: 1.15; text-align: center; max-width: 760px; margin: 0 auto 56px; }
.paths { display: grid; gap: 0; max-width: 920px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; }
.path { display: grid; grid-template-columns: 1.4fr 1fr; }
.path-body { padding: clamp(24px, 4vw, 44px); }
.path--yellow .path-body { background: var(--yellow); }
.path--green .path-body { background: var(--green); color: #fff; }
.path img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.path .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 14px; margin-bottom: 14px; }
.path h3 { font-size: clamp(26px, 3.4vw, 38px); }
.path ul { padding-left: 1.1em; margin: 0 0 1.4em; }
.path li { margin-bottom: .45em; font-size: 15.5px; }
.path--green .btn { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; } .path img { min-height: 220px; max-height: 300px; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--purple); color: #fff; overflow: hidden; }
.testimonials .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.testimonials h2 { font-family: var(--font-mark); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 6vw, 76px); line-height: .9; letter-spacing: .01em; }
.testimonials .side { position: relative; }
.testimonials .side img { width: 180px; margin-top: 24px; }
.slider { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.slide { display: none; }
.slide.active { display: block; }
.slide h3 { font-size: 26px; }
.slide p { font-size: 16px; }
.slide strong { background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #ccc; cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--ink); }
.translated-note { font-size: 12.5px; color: var(--grey); margin: 14px 0 0; }
@media (max-width: 820px) { .testimonials .wrap { grid-template-columns: 1fr; } .testimonials .side img { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--yellow); padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1.5px solid var(--ink); }
.footer-top h2 { font-size: 28px; margin-bottom: 12px; }
.pill { display: inline-block; border: 1.5px solid var(--ink); border-radius: 8px; padding: 9px 16px; font-size: 15px; text-decoration: none; }
.pill:hover { background: var(--ink); color: var(--yellow); }
.footer-nav ul { list-style: none; margin: 0; padding: 26px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-bottom: 1.5px solid var(--ink); }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; }
.legal { font-size: 13px; margin-top: 22px; }
.legal p { margin: 0 0 4px; }

/* ---------- Connect page ---------- */
.page-hero { position: relative; min-height: min(70vh, 620px); display: grid; align-items: center; background: #222 center / cover no-repeat; color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.1)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(44px, 8vw, 92px); line-height: .98; max-width: 9ch; }
.big-statement { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3.8vw, 42px); line-height: 1.2; text-align: center; max-width: 780px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
.chart { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px 24px 12px; display: flex; flex-direction: column; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 300px; border-bottom: 10px solid var(--ink); }
.bar { border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; font-family: var(--font-mark); font-size: clamp(24px, 3.4vw, 40px); writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 0 6px 6px; }
.bars .bar:nth-child(1) { background: var(--red); height: 22%; }
.bars .bar:nth-child(2) { background: var(--yellow); height: 41%; }
.bars .bar:nth-child(3) { background: var(--yellow-deep); height: 84%; }
.bars .bar:nth-child(4) { background: var(--green); height: 100%; }
.years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; font-size: 13px; padding: 8px 0; }
.chart figcaption { font-size: 13px; text-align: center; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 4px; }
.stats-side { display: flex; flex-direction: column; gap: 22px; }
.stats-side .lead { font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.25; }
.churches { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 24px; font-size: 20px; line-height: 1.3; }
.churches strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 5vw, 56px); line-height: 1; margin: 6px 0; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } .bars { height: 240px; } }

.wwh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wwh-card { border-radius: var(--radius); overflow: hidden; background: var(--yellow); display: flex; flex-direction: column; }
.wwh-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.wwh-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.wwh-card h2 { font-size: 34px; }
.wwh-card p { font-size: 15.5px; }
.fact { margin-top: auto; border-top: 1.5px solid var(--ink); padding-top: 16px; display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.3; }
.fact b { font-family: var(--font-mark); font-weight: 400; font-size: 52px; line-height: 1; }
@media (max-width: 900px) { .wwh { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.closing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.closing h2 { font-size: clamp(32px, 4.6vw, 54px); }
.closing img { max-width: 260px; max-height: 420px; justify-self: center; width: 100%; }
@media (max-width: 760px) { .closing { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Contact page ---------- */
.contact-hero { background: var(--yellow); padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 64px); }
.contact-hero h1 { font-size: clamp(42px, 7vw, 76px); }
.contact-hero p { font-size: 19px; max-width: 560px; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.choice { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 12px 22px; font: 600 15px var(--font-body); cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--ink); color: #fff; }
.form-card { max-width: 720px; margin: 0 auto; }
.form-card h2 { font-size: clamp(28px, 3.6vw, 38px); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 7px; }
.field .req { color: #b42318; }
.field input, .field textarea, .field select {
  width: 100%; font: 16px var(--font-body); color: var(--ink);
  border: 1.5px solid #bbb; border-radius: 8px; padding: 13px 14px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.field textarea { min-height: 140px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio { display: flex; gap: 10px; align-items: center; font-size: 15.5px; margin-bottom: 8px; }
.radio input { width: 18px; height: 18px; accent-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; }
.consent { font-size: 13.5px; color: var(--grey); margin: 4px 0 22px; }
.status { margin-top: 18px; padding: 16px 18px; border-radius: 8px; font-weight: 600; display: none; }
.status.ok { display: block; background: #e7f5ee; color: var(--green-dark); }
.status.err { display: block; background: #fdecea; color: #8a1f17; }
.contact-direct { background: var(--soft); }
.contact-direct .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.contact-direct h2 { font-size: 26px; margin: 0; }

/* ---------- Stub page ---------- */
.stub { min-height: 50vh; display: grid; place-items: center; text-align: center; }
.stub h1 { font-size: clamp(36px, 6vw, 64px); }
