/*
  ELFIN landing pages: shared styles for page content inside the site shell.
  Published at /assets/landing/landing.css. Everything is scoped under .lp so it
  never touches the Enfold header, contact section or footer.

  Values are measured from the live focus pages (see 02-design-system.md).
  Add a component here only when a second page needs it. Page-only styles go
  into a <style> block at the top of the page's content file.
*/

.lp {
  --lp-orange: #ea8735;
  --lp-orange-hover: #ff933b;
  --lp-orange-text: #c86513; /* orange for small text on white (contrast) */
  --lp-navy: #052535;
  --lp-teal: #219ebc;
  --lp-text: #444;
  --lp-ink: #000;
  --lp-muted: #777;
  --lp-line: #e1e1e1;
  --lp-soft: #f4f4f4;
  --lp-max: 1010px;
  --lp-gutter: 50px;
  --lp-pad: 130px;

  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--lp-text);
}
.lp *,
.lp *::before,
.lp *::after {
  box-sizing: border-box;
}

/* ---------- Layout ---------- */
.lp-wrap {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 var(--lp-gutter);
}
.lp-section {
  padding: var(--lp-pad) 0;
  background: #fff;
}
.lp-section--tight {
  padding: 80px 0;
}
.lp-section--soft {
  background: var(--lp-soft);
}
.lp-section--navy {
  background: var(--lp-navy);
  color: #fff;
}
.lp-section--orange {
  background: var(--lp-orange) url("/wp-content/uploads/2024/04/bg.jpg") center / cover no-repeat;
  color: #fff;
}
.lp-section--navy :is(h2, h3, h4),
.lp-section--orange :is(h2, h3, h4),
.lp-hero :is(h1, h2, h3, h4) {
  color: #fff;
}
.lp-section--navy a:not(.lp-btn),
.lp-section--orange a:not(.lp-btn) {
  color: #fff;
  text-decoration: underline;
}

.lp-grid {
  display: grid;
  gap: 40px;
}
.lp-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lp-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lp-grid--split {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 60px;
  align-items: start;
}
.lp-narrow {
  max-width: 720px;
}
.lp-center {
  text-align: center;
}
.lp-center.lp-narrow,
.lp-center .lp-narrow {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Type ---------- */
/* :where keeps this at low specificity so hero / navy / orange colours win */
:where(.lp) :is(h1, h2, h3, h4) {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: var(--lp-ink);
  margin: 0 0 0.6em;
  text-transform: none;
}
.lp h1 {
  font-size: 50px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 1px;
}
.lp h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.8em;
}
.lp h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}
.lp p {
  margin: 0 0 1em;
}
.lp p:last-child {
  margin-bottom: 0;
}
.lp a {
  color: var(--lp-orange-text);
}
.lp .lp-lead {
  font-size: 17px;
  line-height: 1.6;
}
.lp .lp-small {
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Buttons (as on the live site: orange pill, uppercase) ---------- */
.lp .lp-btn {
  display: inline-block;
  background: var(--lp-orange);
  border: 2px solid var(--lp-orange);
  color: #fff;
  font: 600 16px/1.2 Montserrat, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 35px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lp .lp-btn:hover {
  background: var(--lp-orange-hover);
  border-color: var(--lp-orange-hover);
  color: #fff;
}
.lp .lp-btn--navy {
  background: var(--lp-navy);
  border-color: var(--lp-navy);
}
.lp .lp-btn--navy:hover {
  background: #0b3a50;
  border-color: #0b3a50;
}
.lp .lp-btn--outline {
  background: transparent;
  border-color: #fff;
}
.lp .lp-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

/* ---------- Hero (navy overlay + EC watermark, as on the focus pages) ---------- */
.lp-hero {
  position: relative;
  min-height: min(50vh, 640px); /* cap: also keeps full-page screenshots realistic */
  padding: 200px 0 90px; /* clears the fixed 150px header */
  color: #fff;
  background: #fff; /* navy at 0.8 over white, exactly as the focus-page heroes */
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lp-navy) url("/wp-content/uploads/2024/04/Icon.png") 100% 100% no-repeat;
  opacity: 0.8;
}
.lp-hero > .lp-wrap {
  position: relative;
}
.lp-hero .lp-hero-text {
  max-width: 600px;
}
.lp-hero p {
  font-size: 17px;
  line-height: 1.6;
}
.lp-hero .lp-grid--split {
  align-items: center;
}

/* Hero side box: plain list, no decoration */
.lp-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 28px 30px;
}
.lp-box h2,
.lp-box h3 {
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.lp-box dl {
  margin: 0;
}
.lp-box dl > div {
  display: grid;
  grid-template-columns: minmax(70px, max-content) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.lp-box dt {
  font-weight: 700;
  color: var(--lp-orange-hover);
}
.lp-box dd {
  margin: 0;
  font-size: 14px;
}
.lp-box a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Lists ---------- */
/* Title + one line, no icons (feedback: no checkmarks) */
.lp-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-points > li {
  margin: 0 0 22px;
}
.lp-points > li:last-child {
  margin-bottom: 0;
}
.lp-points strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.lp ul.lp-bullets {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.lp ul.lp-bullets li {
  margin-bottom: 6px;
}

/* ---------- Cards ---------- */
.lp-card {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 30px;
}
.lp-section--soft .lp-card {
  border-color: transparent;
}
.lp-card--navy {
  background: var(--lp-navy);
  border-color: var(--lp-navy);
  color: #fff;
}
.lp-card--navy :is(h3, h4) {
  color: #fff;
}
.lp-card .lp-meta {
  font-size: 13px;
  color: var(--lp-muted);
  margin: -6px 0 14px;
}
.lp-card--navy .lp-meta {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Process (white chevrons on navy, like the EcoVadis graphic) ----------
   The chevron holds only the step name (1-2 words); one short line sits below it. */
.lp-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lp-step;
}
.lp-steps > li {
  counter-increment: lp-step;
}
.lp .lp-steps h3 {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin: 0 0 16px;
  padding: 10px 28px 10px 32px;
  background: #fff;
  color: var(--lp-ink);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
.lp .lp-steps > li:first-child h3 {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  padding-left: 20px;
}
.lp-steps h3::before {
  content: counter(lp-step) ".";
  flex: none;
  margin-right: 0.35em;
}
.lp-steps p {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 0 22px 0 20px;
}

/* ---------- Forms (download offer on orange band) ---------- */
.lp-form {
  display: grid;
  gap: 14px;
}
.lp-form input[type="text"],
.lp-form input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 40px;
  padding: 15px 22px;
  font: 400 15px Montserrat, Arial, Helvetica, sans-serif;
  color: var(--lp-text);
  background: #fff;
}
.lp-form label.lp-consent,
.lp-form label.lp-consent span {
  color: inherit;
  font-weight: 400;
}
.lp-form label.lp-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.lp-form .lp-btn {
  justify-self: start;
}
.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.lp-faq details {
  border-bottom: 1px solid var(--lp-line);
  padding: 18px 0;
}
.lp-faq details:first-of-type {
  border-top: 1px solid var(--lp-line);
}
.lp-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--lp-ink);
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: "+";
  color: var(--lp-orange);
  font-size: 22px;
  line-height: 1;
}
.lp-faq details[open] summary::after {
  content: "–";
}
.lp-faq details > div {
  padding-top: 12px;
}

/* ---------- Note (legal / status) ---------- */
.lp-note {
  font-size: 13px;
  color: var(--lp-muted);
  border-top: 1px solid var(--lp-line);
  padding-top: 16px;
  margin-top: 30px;
}

.lp-section--navy .lp-note,
.lp-section--orange .lp-note {
  color: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Quote (only real, published quotes) ---------- */
.lp-quote {
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--lp-orange);
  font-size: 17px;
  line-height: 1.6;
  color: var(--lp-ink);
}
.lp-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--lp-muted);
}

/* ---------- Responsive (Enfold switches at 989px and 767px) ---------- */
@media (max-width: 989px) {
  .lp {
    --lp-gutter: 30px;
    --lp-pad: 90px;
  }
  .lp-grid--3 {
    grid-template-columns: 1fr;
  }
  .lp-grid--split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lp-steps {
    grid-auto-flow: row;
    gap: 8px;
  }
  .lp .lp-steps h3,
  .lp .lp-steps > li:first-child h3 {
    clip-path: none;
    min-height: 0;
    padding: 14px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
  }
  .lp-steps p {
    padding: 0 20px 14px;
  }
}
@media (max-width: 767px) {
  .lp {
    --lp-gutter: 20px;
    --lp-pad: 60px;
  }
  .lp h1 {
    font-size: 30px;
  }
  .lp h2 {
    font-size: 24px;
  }
  .lp-grid--2 {
    grid-template-columns: 1fr;
  }
  .lp-hero {
    padding: 190px 0 60px;
  }
  .lp .lp-btn {
    padding: 16px 26px;
    font-size: 15px;
  }
}

/* Navigation fallback: landing.js sets this class when the menu items do not fit
   next to the logo (long German labels between 990px and ~1300px). */
html.lp-nav-collapse #top .av-main-nav > li.menu-item { display: none; }
html.lp-nav-collapse #top .av-burger-menu-main { display: block; }
