/* ==========================================================================
   LITS-SA Global Stylesheet
   - Green agricultural dark/light glassmorphism theme
   - Inspired by Ngabantu styles, simplified for landing page
   ========================================================================== */

/* Reset & base ----------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    -system-ui, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #f9fafb;
}

/* Links ------------------------------------------------------------------ */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Theming tokens --------------------------------------------------------- */

body[data-theme="dark"] {
  --ls-bg: #020714;
  --ls-bg-soft: #020d0b;
  --ls-surface: rgba(10, 19, 10, 0.95);
  --ls-surface-strong: rgba(9, 26, 13, 0.98);
  --ls-border: rgba(148, 163, 184, 0.5);
  --ls-border-soft: rgba(148, 163, 184, 0.18);

  --ls-primary: #22c55e;
  --ls-primary-soft: rgba(34, 197, 94, 0.14);
  --ls-secondary: #65a30d;
  --ls-accent: #bef264;

  --ls-text: #f9fafb;
  --ls-text-soft: #e5e7eb;
  --ls-text-muted: #9ca3af;

  --ls-pill-bg: rgba(15, 23, 42, 0.85);

  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.19) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(101, 163, 13, 0.15) 0, transparent 60%),
    linear-gradient(135deg, #020617, #020817);
  color: var(--ls-text);
}

body[data-theme="light"] {
  --ls-bg: #ecfdf3;
  --ls-bg-soft: #f0fdf4;
  --ls-surface: rgba(255, 255, 255, 0.98);
  --ls-surface-strong: rgba(255, 255, 255, 1);
  --ls-border: rgba(148, 163, 184, 0.5);
  --ls-border-soft: rgba(148, 163, 184, 0.18);

  --ls-primary: #15803d;
  --ls-primary-soft: rgba(22, 163, 74, 0.12);
  --ls-secondary: #65a30d;
  --ls-accent: #16a34a;

  --ls-text: #022c22;
  --ls-text-soft: #1f2937;
  --ls-text-muted: #4b5563;

  --ls-pill-bg: rgba(240, 253, 244, 0.96);

  background:
    radial-gradient(circle at top left, #bbf7d0 0, #e0f2fe 40%, #f9fafb 100%);
  color: var(--ls-text);
}

/* Default if no theme set: dark ----------------------------------------- */

body:not([data-theme]) {
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.19) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(101, 163, 13, 0.15) 0, transparent 60%),
    linear-gradient(135deg, #020617, #020817);
  color: #f9fafb;
}

/* Layout ----------------------------------------------------------------- */

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

/* Top bar + theme toggle ------------------------------------------------- */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.top-bar-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.8;
  color: var(--ls-text-muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ls-border);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(6, 95, 70, 0.98));
  color: #e5e7eb;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.theme-toggle-icon {
  font-size: 0.9rem;
}

/* Adjust toggle appearance in light mode -------------------------------- */

body[data-theme="light"] .theme-toggle {
  background:
    linear-gradient(135deg, #f9fafb, #dcfce7);
  color: #022c22;
  border-color: rgba(22, 163, 74, 0.6);
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.35);
}

/* Languages ------------------------------------------------------------- */

.top-bar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top-bar-actions > * + * {
  margin-top: 2px; /* tiny overlap-like spacing */
}


/* Container for the custom dropdown */
.lang-menu {
  position: relative;
}

/* Reuse .theme-toggle pill for the visible button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Dropdown panel */
.lang-menu-list {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 10px;
  background: var(--ls-surface);
  box-shadow: 0 14px 45px rgba(0,0,0,0.40), 0 10px 18px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 20;
}

[data-theme="light"] .lang-menu-list {
  background: var(--ls-surface);
  border-color: rgba(0,0,0,0.08);
}

/* Each language option */
.lang-menu-item {
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-menu-item:hover {
  background: rgba(111, 216, 167, 0.15);
}

[data-theme="light"] .lang-menu-item:hover {
  background: rgba(16, 148, 101, 0.08);
}


/* Typography ------------------------------------------------------------- */

h1 {
  font-size: 3rem;
  background: linear-gradient(to right, #22c55e, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.coming {
  opacity: 0.85;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h2 {
  color: var(--ls-primary);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

p,
li {
  line-height: 1.7rem;
  opacity: 0.92;
  color: var(--ls-text-soft);
}

ul {
  margin-left: 1.2rem;
}

/* Cards ------------------------------------------------------------------ */

.card {
  background: var(--ls-surface);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 20px;
  border: 1px solid var(--ls-border-soft);
  backdrop-filter: blur(12px);
  text-align: left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

body[data-theme="light"] .card {
  background: var(--ls-surface);
  border-color: var(--ls-border);
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.4);
}

/* OR, slightly more precise: only when one <p> follows another */
.card p + p {
  margin-top: 0.9rem;
}

/* CTA button ------------------------------------------------------------- */

.cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(to right, #22c55e, #65a30d);
  color: #022c22;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.8);
  filter: brightness(1.05);
}

/* Pills & tags ----------------------------------------------------------- */

.pill-list {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
}

.pill {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ls-border-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
  background: var(--ls-pill-bg);
}

/* Subsection titles ------------------------------------------------------ */

.subsection-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  opacity: 0.95;
  color: #a5f3fc;
}

body[data-theme="light"] .subsection-title {
  color: #0369a1;
}

/* Two-column layout ------------------------------------------------------ */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .container {
    padding-top: 2.4rem;
  }

  h1 {
    font-size: 2.4rem;
  }
}

/* Footer ----------------------------------------------------------------- */

.footer {
  opacity: 0.75;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--ls-text-muted);
}

.footer a {
  color: #6fd8a7;
}

/* Accessibility ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  border: 1px solid var(--ls-border-soft);
  z-index: 9999;
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(165, 243, 252, 0.85);
  outline-offset: 3px;
}

/* Explore / pill nav reset */
.explore-nav ul,
.contact-nav ul {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}


/* Footer disclaimer (independence / non-affiliation) */
.footer-disclaimer{
  margin-top:10px;
  font-size:0.9em;
  opacity:0.9;
  line-height:1.4;
  max-width:960px;
}
.footer-disclaimer strong{font-weight:700;}
