/* =========================================================
   Layout — header, hero, sections, forms, footer, mobile
   ========================================================= */

section,
header,
footer,
main {
  max-width: 100%;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary) 0%, #3f7356 55%, var(--solar) 120%);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-top-color: transparent;
  transform: rotate(-20deg);
}

.logo-text {
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  border-radius: 999px;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--primary);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.5rem;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero-tags span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 550;
}

.hero-media {
  position: relative;
}

.hero-media .media-placeholder,
.hero-media .media-frame.hero-shot {
  min-height: 340px;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
}

.hero-float {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(260px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-float strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

/* ---------- Trust strip ---------- */
.trust-strip,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.trust-item,
.trust-strip > div {
  padding: 0.75rem;
}

.trust-item strong,
.trust-strip > div strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  color: var(--text);
}

.trust-item p,
.trust-item span,
.trust-strip > div p,
.trust-strip > div span {
  margin: 0;
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

/* ---------- Flow diagram ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.flow-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  position: relative;
}

.flow-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.flow-item span {
  font-size: 0.88rem;
  color: var(--muted);
}

.flow-arrow {
  display: none;
}

/* ---------- Process steps ---------- */
.process-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.process-item .num,
.process-item .step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: 0;
}

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.price-card .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.5rem 0 0.25rem;
}

.price-card .amount small {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--muted);
}

.price-card .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--text-soft);
  flex: 1;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 160%);
}

/* ---------- Marquee ---------- */
.js-marquee-wrap {
  overflow: hidden;
  max-width: 100vw;
  padding: 1.5rem 0 2.5rem;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.js-mq-row {
  display: flex;
  width: max-content;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.js-mq-row.fwd {
  animation: mq-fwd 55s linear infinite;
}

.js-mq-row.rev {
  animation: mq-rev 60s linear infinite;
  margin-top: 0.35rem;
}

.js-mq-row span {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.12;
  padding-inline: 1.25rem;
}

@keyframes mq-fwd {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes mq-rev {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-soft);
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Form ---------- */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 93, 69, 0.15);
}

.form-field .error {
  color: var(--danger);
  font-size: 0.85rem;
}

.form-privacy {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-actions {
  margin-top: 1.25rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card a {
  text-decoration: none;
  font-weight: 600;
}

.placeholder-data {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Editorial / green ---------- */
.editorial {
  background: linear-gradient(160deg, #1f3328 0%, #2f5d45 55%, #3a6b52 100%);
  color: #f3f7f4;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

.editorial h2,
.editorial h3 {
  color: #fff;
}

.editorial p,
.editorial .lead {
  color: rgba(243, 247, 244, 0.88);
}

.editorial .eyebrow {
  color: #e4c878;
}

.editorial .eyebrow::before {
  background: #e4c878;
}

.band {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--border);
}

.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Transparency ---------- */
.transparency {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #17211b;
  color: rgba(243, 247, 244, 0.82);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(243, 247, 244, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(243, 247, 244, 0.72);
  max-width: 28rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(243, 247, 244, 0.6);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  max-width: 520px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-open {
  display: block;
}

.cookie-banner h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.cookie-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-panel.is-open {
  display: block;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option label {
  font-weight: 600;
  font-size: 0.92rem;
}

.cookie-option p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

.cookie-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

/* ---------- Legal / page chrome ---------- */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.page-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--primary);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.35rem;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.thanks-card {
  width: min(100%, 560px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-md);
}

.thanks-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.6rem;
}

/* ---------- Education cards ---------- */
.edu-grid .card .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--solar);
  margin-bottom: 0.6rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 1024px) {
  .trust-grid,
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(247, 245, 241, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    z-index: 999;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    margin: 0.75rem 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .hero-grid,
  .split,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }
}

@media (max-width: 700px) {
  .trust-grid,
  .trust-strip,
  .flow,
  .gallery-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-float {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-mq-row.fwd,
  .js-mq-row.rev {
    animation: none;
  }

  .nav {
    transition: none;
  }
}

/* Final overflow guard */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
