/*
Theme Name: Lesonkiste Bilingual
Theme URI: https://lesonkiste.com
Author: Lesonkiste.com
Description: A responsive bilingual English/French WordPress theme with a shared site-wide banner, advocacy pages, contact form, and support calls to action.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: lesonkiste
*/

:root {
  --ink: #10213b;
  --ink-soft: #40516c;
  --brand: #0b6b4f;
  --brand-dark: #084b39;
  --accent: #e5b94a;
  --paper: #ffffff;
  --mist: #f3f6f7;
  --line: #dce4e7;
  --shadow: 0 18px 48px rgba(16, 33, 59, .12);
  --radius: 18px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 36px), var(--content)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,228,231,.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 78px; display: flex; align-items: center; gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.custom-logo { max-height: 52px; width: auto; }
.site-title { font-weight: 850; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.site-title span { color: var(--brand); }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 650;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--mist); color: var(--brand); }
.language-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 800; color: var(--ink); background: white;
}
.menu-toggle {
  display: none; border: 0; background: var(--mist); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; font-size: 1.35rem;
}

.shared-banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 360px; display: grid; place-items: center;
  color: white;
  background:
    linear-gradient(110deg, rgba(4,42,33,.92), rgba(11,107,79,.70)),
    var(--banner-image, linear-gradient(135deg, #084b39, #0b6b4f));
  background-size: cover; background-position: center;
}
.shared-banner::after {
  content: ""; position: absolute; inset: auto -10% -55% auto; z-index: -1;
  width: 560px; height: 560px; border: 90px solid rgba(229,185,74,.15); border-radius: 50%;
}
.banner-content { padding: 70px 0; max-width: 880px; }
.banner-kicker {
  display: inline-flex; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28);
  text-transform: uppercase; font-size: .78rem; font-weight: 850; letter-spacing: .11em;
}
.banner-title {
  margin: 18px 0 14px; font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1.02; letter-spacing: -.055em;
}
.banner-text { max-width: 720px; margin: 0; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.88); }

.main-content { padding: 72px 0 90px; }
.page-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.entry-header { margin-bottom: 26px; }
.entry-title { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.04em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.1em; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.03em; }
.entry-content h3 { margin-top: 1.7em; line-height: 1.25; }
.entry-content p, .entry-content li { color: var(--ink-soft); }
.entry-content blockquote {
  margin: 28px 0; padding: 24px 28px; background: var(--mist);
  border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}

.home-intro { max-width: 820px; margin-bottom: 44px; }
.lead { font-size: 1.22rem; color: var(--ink-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); box-shadow: 0 10px 30px rgba(16,33,59,.06);
}
.card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card-number {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(11,107,79,.1); color: var(--brand); font-weight: 900;
}
.section-band {
  margin-top: 64px; padding: 42px; border-radius: 26px; background: var(--mist);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.section-band h2 { margin: 0 0 8px; }
.section-band p { margin: 0; color: var(--ink-soft); }
.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 12px; background: var(--brand); color: white;
  font-weight: 800; border: 0; cursor: pointer; transition: transform .16s ease, background .16s ease;
}
.button:hover, .button:focus, .wp-block-button__link:hover { color: white; background: var(--brand-dark); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.button.secondary:hover { color: white; background: var(--brand); }

.contact-form {
  max-width: 760px; padding: 30px; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; font-weight: 750; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid #bcc9cd; border-radius: 10px; padding: 12px 14px;
  color: var(--ink); background: white;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid rgba(11,107,79,.14); border-color: var(--brand);
}
.notice { padding: 14px 18px; margin-bottom: 22px; border-radius: 12px; }
.notice.success { background: #e6f6ef; color: #09583f; border: 1px solid #b9e4d2; }
.notice.error { background: #fff1ef; color: #81291f; border: 1px solid #f0c4be; }

.site-footer { background: #0d1b2e; color: rgba(255,255,255,.76); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.site-footer h2 { margin-top: 0; color: white; font-size: 1.3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav {
    display: none; position: absolute; top: 78px; left: 18px; right: 18px;
    padding: 14px; background: white; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-band { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { min-height: 70px; gap: 10px; }
  .site-title { font-size: 1.08rem; }
  .primary-nav { top: 70px; }
  .shared-banner { min-height: 310px; }
  .banner-content { padding: 58px 0; }
  .main-content { padding: 52px 0 70px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
