/* ==========================================================================
   Lendiom marketing site
   Design tokens from the official Lendiom brandbook:
     - Navy primary:  #000036 (text, dark backgrounds)
     - Lime accent:   #88BE40 (primary buttons, brand highlights)
     - Teal:          #00A86B (secondary accent / positive states)
     - Soft green:    #A5CE8A (muted accent / hovers)
     - White:         #FFFFFF
     - Typeface:      Poppins for everything (Bold headings, Regular body)
   ========================================================================== */

:root {
  --c-navy: #000036;
  --c-lime: #88be40;
  --c-lime-dark: #729f34;
  --c-teal: #00a86b;
  --c-soft-green: #a5ce8a;
  --c-white: #ffffff;

  --c-text: var(--c-navy);
  --c-text-muted: #4a5464;
  --c-accent: var(--c-lime);
  --c-accent-dark: var(--c-lime-dark);
  --c-bg: var(--c-white);
  --c-bg-muted: #f6f6f6;
  --c-border: #e7e7e7;
  --c-hero-overlay: rgba(0, 0, 54, 0.85);

  --font-body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gap: 1.5rem;
  --radius: 0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 54, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 54, 0.08);
}

/* Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); text-decoration: none; }
a:hover { color: var(--c-accent-dark); }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--muted { background: var(--c-bg-muted); }
.section--dark {
  position: relative;
  background-color: var(--c-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/background-pattern.png');
  background-size: 340px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.section--dark > * { position: relative; z-index: 1; }
/* Opt-out: use on dark sections whose main content is a bright/busy asset
   (like a video thumbnail) that fights the pattern. Keeps the navy, drops
   the wallpaper. */
.section--dark.section--plain::before { content: none; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-header h2 { color: var(--c-lime); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-accent); color: #000;
  padding: 0.75rem 1.25rem; font-weight: 500;
}
.skip-link:focus { left: 0; z-index: 1000; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
}
.site-header[data-transparent="false"] {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { height: 44px; width: auto; }
.site-header__logo img.site-header__logo-light { display: none; }
.site-header[data-transparent="true"] .site-header__logo img.site-header__logo-dark { display: none; }
.site-header[data-transparent="true"] .site-header__logo img.site-header__logo-light { display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--c-text);
  transition: color .15s ease;
}
.site-header[data-transparent="true"] .site-nav a { color: #fff; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--c-accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--c-text);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header[data-transparent="true"] .nav-toggle span { background: #fff; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background .15s ease, transform .1s ease, color .15s ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--c-accent);
  color: #000;
}
.btn--primary:hover {
  background: var(--c-accent-dark);
  color: #000;
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--c-text); }
.btn--nav { padding: 0.75rem 1.5rem; }
.btn--lg { padding: 1.25rem 2.5rem; font-size: 1.1rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  /* Fill the viewport so the hero content lands neatly at the fold on
     desktop. Use 100svh (small viewport height) so mobile browser chrome
     doesn't clip content. min-height floors it on very short viewports. */
  min-height: 620px;
  min-height: 100svh;
  padding: 7rem 0 3rem;
  color: #fff;
  overflow: hidden;
  background-color: var(--c-navy);
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero > .container { width: 100%; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: saturate(0.7);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  /* Angled overlay: heavier on the left where the headline sits,
     softer on the right so the contract imagery reads through. */
  background:
    linear-gradient(100deg,
      rgba(0, 0, 54, 0.88) 0%,
      rgba(0, 0, 54, 0.78) 35%,
      rgba(0, 0, 54, 0.55) 70%,
      rgba(0, 0, 54, 0.35) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.hero p.lead { font-size: clamp(1rem, 1.1vw, 1.1rem); margin-bottom: 2rem; max-width: 44ch; }
/* Hero mockup as click-to-play video CTA -------------------------- */
.hero__visual {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  transition: transform .2s ease;
}
.hero__visual:hover { transform: scale(1.01); }
.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}
.hero__visual__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--c-lime);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background .15s ease, transform .15s ease;
}
.hero__visual:hover .hero__visual__play {
  background: var(--c-lime-dark);
  transform: translate(-50%, -50%) scale(1.08);
}
.hero__visual__caption {
  position: absolute;
  top: -4.5rem;
  right: 4%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--c-lime);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.15;
  text-align: right;
  pointer-events: none;
  z-index: 3;
}
.hero__visual__caption-text {
  background: transparent;
  padding: 0 0 0.25rem;
}
.hero__visual__arrow {
  color: var(--c-lime);
  margin-right: 1.75rem;
  margin-top: -0.25rem;
}

/* Video modal ----------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  animation: video-modal-in .18s ease-out;
}
.video-modal[hidden] { display: none; }
@keyframes video-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.video-modal__close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.video-modal__close:hover { background: rgba(255, 255, 255, 0.25); }
.video-modal__frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.video-modal__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
body.video-modal-open { overflow: hidden; }

/* Section header ------------------------------------------------------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--c-accent); }
.section-header p { max-width: 60ch; margin: 0 auto; color: var(--c-text-muted); }

/* Grids ---------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Feature cards -------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.feature h3 { color: var(--c-text); margin-bottom: .6rem; }

/* Testimonials --------------------------------------------------------- */
.testimonials { text-align: center; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
.testimonial { }
.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-text);
}
.testimonial cite {
  font-style: normal;
  font-weight: 500;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Split (image + copy) ------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split--reverse .split__media { order: 2; }

/* CTA banner ---------------------------------------------------------- */
.cta-banner {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--c-accent);
}
.cta-banner h2 { color: #000; margin-bottom: 1rem; }
.cta-banner p { color: #0a0a1c; margin-bottom: 2rem; }
.cta-banner .btn {
  background: #000;
  color: #fff;
}
.cta-banner .btn:hover { background: var(--c-text); color: #fff; }

/* Lendiom Pay hero-style section (dark bg image + centered content) - */
.pay-hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background-color: var(--c-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.pay-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: saturate(0.6);
}
.pay-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,54,0.82) 0%, rgba(0,0,54,0.92) 100%);
}
.pay-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.pay-hero__logo {
  max-width: 340px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}
.pay-hero__copy {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lite video embed (click-to-play, no Vimeo chrome until played) ---- */
.video-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transition: transform .2s ease;
}
.video-lite:hover { transform: scale(1.005); }
.video-lite img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-lite__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--c-lime);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: background .15s ease, transform .15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.video-lite:hover .video-lite__play {
  background: var(--c-lime-dark);
  transform: translate(-50%, -50%) scale(1.05);
}
.video-lite iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Video page ---------------------------------------------------------- */
.video-list { display: grid; gap: 3rem; }
.video-item { }
.video-item h3 { margin-bottom: 1rem; }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Contact page -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--c-bg-muted);
  padding: 2rem;
  border-radius: 6px;
}
.contact-card h3 { color: var(--c-accent); margin-bottom: 0.5rem; }
.contact-card a:not(.btn) { color: var(--c-text); font-weight: 500; }
.contact-card a:not(.btn):hover { color: var(--c-accent-dark); }

/* FAQ / popular-questions list ---------------------------------------- */
.faq-list {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--c-border);
}
.faq-list li {
  border-bottom: 1px solid var(--c-border);
}
.faq-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.25rem;
  color: var(--c-text);
  font-weight: 500;
  transition: color .15s ease, padding .15s ease;
}
.faq-list a::after {
  content: "→";
  margin-left: auto;
  color: var(--c-accent);
  transition: transform .15s ease;
}
.faq-list a:hover {
  color: var(--c-accent-dark);
  padding-left: 0.75rem;
}
.faq-list a:hover::after { transform: translateX(4px); }

.faq-accordion {
  display: grid;
  border-top: 1px solid var(--c-border);
}
.faq-accordion details {
  border-bottom: 1px solid var(--c-border);
}
.faq-accordion summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.25rem;
  color: var(--c-text);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  margin-left: auto;
  color: var(--c-accent);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .15s ease;
}
.faq-accordion details[open] summary::after {
  content: "–";
}
.faq-accordion summary:hover {
  color: var(--c-accent-dark);
}
.faq-accordion details p {
  padding: 0 0.25rem 1.25rem;
  line-height: 1.7;
  max-width: 70ch;
}

/* Legal (terms/privacy) ---------------------------------------------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; color: var(--c-accent); }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.5rem; margin-bottom: 1em; }
.legal ul li, .legal ol li { list-style: disc; margin-bottom: 0.4em; }

/* Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-muted);
  color: var(--c-text);
  padding: 4rem 0 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer__logo { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer__tag { color: var(--c-text-muted); font-size: 0.95rem; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul a { font-size: 0.95rem; color: var(--c-text); }
.site-footer ul a:hover { color: var(--c-accent-dark); }
.site-footer__base {
  border-top: 1px solid var(--c-border);
  padding: 1.25rem 0;
}
.site-footer__base-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.site-footer__base ul {
  display: flex;
  gap: 1.5rem;
}
.site-footer__base a { color: var(--c-text-muted); }
.site-footer__base a:hover { color: var(--c-accent-dark); }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner,
  .split,
  .feature-grid,
  .testimonials__grid,
  .contact-grid,
  .site-footer__inner { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero { padding: 6rem 0 3rem; }
  /* Mockup stays visible as the video CTA, but drop the decorative
     caption + arrow on mobile — they crowd the small viewport. Shrink
     the play button so it doesn't dominate. Cap the mockup width so it
     doesn't blow past the CTAs. */
  .hero__inner { gap: 2rem; }
  .hero__visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .hero__visual__caption { display: none; }
  .hero__visual__play {
    width: 60px;
    height: 60px;
  }
  .hero__visual__play svg { width: 22px; height: 22px; }
  .site-footer__inner { gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.25rem;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .site-header[data-transparent="true"] .site-nav { background: var(--c-text); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text);
  }
  .site-header[data-transparent="true"] .site-nav a { color: #fff; border-color: rgba(255,255,255,.15); }
  .btn--nav { text-align: center; margin-top: 0.5rem; }
  .site-footer__base-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .btn-row .btn { width: 100%; text-align: center; }
}
