@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&subset=greek&family=Source+Sans+3:wght@400;600;700&display=swap');

/* Greek-language font override for accurate glyph rendering */
html[lang="el"] body {
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
}

:root {
  --bg: #F8FDF5;
  --bg-strong: #e8f5e9;
  --text: #2C3E50;
  --muted: #546e7a;
  --primary: #27AE60;
  --primary-strong: #229954;
  --accent: #2E8B57;
  --card: #ffffff;
  --border: #c8e6c9;
  --shadow: 0 14px 40px rgba(39, 174, 96, 0.08);
  --header-bg: #0b6a18;
  --footer-bg: #0F3B2D;
  --heading-color: #0b6a18;
  --tooltip-bck: #F5F7F6;
  --tooltip-color: #0F1F17;

  --overlay-dark: rgba(15, 59, 45, 0.30);
  --overlay-light: rgba(248, 253, 245, 0.88);
  --overlay-light-strong: rgba(248, 253, 245, 0.92);

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 99999;
}

.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===============================
   Header / Navigation
   =============================== */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.brand {
  display: flex;
  align-items: center;
}

.glk-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.lang-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-icon {
  width: 32px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: block;
  opacity: 0.9;
}

.lang-icon:hover {
  transform: scale(1.08);
  opacity: 1;
}

.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* FIX: make room for CTA */
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  color: #ffffff;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* Active link */
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

/* New button styles (matches updated HTML) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(27, 31, 23, 0.12);
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Backward compatibility (old .cta classes) */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(27, 31, 23, 0.12);
  background: var(--primary-strong);
  color: #fff;
}

.cta.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.cta.secondary:hover {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

/* ===============================
   Hero
   =============================== */

.hero {
  background:
    linear-gradient(to bottom, rgba(15, 59, 45, 0.18) 0%, var(--overlay-light-strong) 85%),
    url('fields.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: center;
  color: #000000;
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
  line-height: 1.2;
  text-wrap: balance;
}

.hero p.lead {
  margin: 0 0 16px;
  font-size: 18px;
  color: #000000;
  max-width: 75ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-start;
}

.hero-cert {
  width: 100%;
  text-align: center;
  padding: 24px 20px;
  margin: 0;
  color: #F8FDF5;
  background: #0d6d1a;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}


/* ===============================
   Cards / Tags
   =============================== */

.hero-grid {
  display: grid;
  gap: 12px;
}

.card-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  color: var(--text);
  /* FIX: was forcing light text */
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: #253f2d;
}

.card-title {
  /* FIX for updated HTML: h2 in card */
  margin: 0 0 10px;
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--heading-color);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--heading-color);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  /* slightly roomier */
  border-radius: 8px;
  background: var(--bg-strong);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 13px;
}

.tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.card-img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
}

/* ===============================
   Background helper sections
   =============================== */

.bg-farming {
  background:
    linear-gradient(to bottom, rgba(248, 253, 245, 0.55) 0%, rgba(248, 253, 245, 0.75) 85%),
    url('farming.jpg') center/cover no-repeat;
  background-attachment: scroll;
}

.bg-crops {
  background:
    linear-gradient(to bottom, rgba(248, 253, 245, 0.55) 0%, rgba(248, 253, 245, 0.75) 85%),
    url('crops.jpg') center/cover no-repeat;
  background-attachment: scroll;
}

.bg-production {
  background:
    linear-gradient(to bottom, rgba(248, 253, 245, 0.55) 0%, rgba(248, 253, 245, 0.75) 75%),
    url('production.jpg') center/cover no-repeat;
  background-attachment: scroll;
}

.bg-ecology {
  background:
    linear-gradient(to bottom, rgba(248, 253, 245, 0.65) 0%, rgba(248, 253, 245, 0.75) 75%),
    url('ecological-farming.jpg') center/cover no-repeat;
  background-attachment: scroll;
}

.bg-farming,
.bg-crops,
.bg-production,
.bg-ecology {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: #000000 !important;
}

/* ===============================
   Main content pages
   =============================== */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

main h1 {
  font-family: 'Merriweather', serif;
  font-size: 30px;
  margin-bottom: 8px;
  color: var(--heading-color);
}

main h2 {
  font-family: 'Merriweather', serif;
  margin-top: 28px;
  color: var(--heading-color);
}

main h3 {
  font-family: 'Merriweather', serif;
  margin-top: 22px;
  color: var(--heading-color);
}

main ul {
  padding-left: 20px;
  margin: 10px 0 16px;
}

main li+li {
  margin-top: 6px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -6px;
  margin-bottom: 18px;
}

.sds-download {
  color: #0b5d2a;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.sds-download:hover,
.sds-download:focus-visible {
  color: #08491f;
}

.inline-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}

.inline-cta a {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

/* ===============================
   Footer
   =============================== */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--footer-bg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.80);
}

.footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.90);
}

.footer-nav a:hover {
  color: #ffffff;
}

/* ===============================
   Patents / flags / modal (kept)
   =============================== */

.patent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-patent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-patent:hover {
  background: #fdfdfd;
  border-color: var(--primary);
  color: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.12);
}

.btn-patent img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.btn-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #444;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-flag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f9fdfa;
}

.btn-flag .flag {
  font-size: 1.2rem;
}

.patents-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  margin-top: 24px;
}

.patents-map {
  flex: 1 1 400px;
}

.patents-map img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.patents-list {
  flex: 1 1 300px;
}

.patents-list ul {
  column-count: 2;
  column-gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.patents-list li {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  break-inside: avoid;
}

.patents-list li::before {
  content: "•";
  color: var(--primary);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal.open {
  display: flex !important;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.70);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-modal:hover {
  background: white;
  color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bg-biostimulators {
  background-color: #DFE3DC;
}

/* Page layout refinement */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.page h1 {
  margin-bottom: 24px;
  line-height: 1.25;
}

.page h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.page h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page p {
  margin-bottom: 14px;
  max-width: 75ch;
}

.page ul {
  margin: 10px 0 18px 20px;
  padding: 0;
  max-width: 75ch;
}

.page ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.tech-section {
  margin-top: 8px;
}

.tech-section h2 {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.tech-section ul {
  padding-left: 18px;
}

.tech-section ul li strong {
  font-weight: 600;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 768px) {
  .nav-bottom {
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .glk-logo {
    height: 52px;
  }
}
