/* GF SACCO site styling - content-preserving modernisation */
:root {
  --green-950: #0b3d25;
  --green-900: #124c2d;
  --green-800: #175f37;
  --green-700: #1f7a43;
  --green-100: #e9f6ee;
  --green-50: #f5fbf7;
  --cream: #fff7dc;
  --gold-muted: #e0c56e;
  --text: #102018;
  --muted: #526458;
  --border: rgba(20, 83, 45, 0.16);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-alt: rgba(242, 249, 245, 0.96);
  --shadow-soft: 0 14px 34px rgba(8, 55, 31, 0.10);
  --shadow-lift: 0 18px 46px rgba(8, 55, 31, 0.16);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 67, 0.14), transparent 34rem),
    linear-gradient(180deg, #f3fbf5 0%, #eaf6ee 48%, #f7fbf8 100%);
}

a { color: var(--green-800); }
a:hover { color: var(--green-950); }

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 55, 31, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.logo-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 6px;
}

.logo-container a { flex: 0 0 auto; }

.logo {
  display: block;
  width: 58px;
  height: auto;
  max-width: none;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.logo-container h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6px 0 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--green-950);
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

main,
.hero,
.two-column-layout {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

main { flex: 1 0 auto; }

.hero {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239, 249, 243, 0.96));
  box-shadow: var(--shadow-soft);
}

.hero h1,
h2,
h3 {
  color: var(--green-950);
  line-height: 1.2;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.hero p { max-width: 74ch; }

.two-column-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
  align-items: start;
}

.column {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.column:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.left-column { background: var(--panel); }
.right-column { background: var(--panel-alt); }

.column h2:first-child,
.column h3:first-child { margin-top: 0; }

.column ul { padding-left: 1.25rem; }
.column li { margin: 0.35rem 0; }

.responsive-image,
.column img:not(.logo) {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(20, 83, 45, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 55, 31, 0.10);
}

.hero .responsive-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Products page: keep the original image count and order, but make the display readable. */
.page-products .left-column .responsive-image {
  display: inline-block;
  width: min(100%, 400px);
  max-width: 100%;
  margin: 12px 18px 16px 0;
  vertical-align: top;
  object-fit: contain;
}

.page-products .right-column .responsive-image {
  display: inline-block;
  width: clamp(160px, 31%, 230px);
  height: 245px;
  margin: 8px;
  padding: 8px;
  vertical-align: top;
  object-fit: contain;
}

.page-products .right-column br { display: none; }

.page-products .right-column {
  line-height: 1.2;
}

.page-contact .right-column img {
  display: block;
  width: min(100%, 420px) !important;
  margin: 0 auto 18px;
}

iframe {
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--border);
  background: #fff;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

input[type="submit"],
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(23, 95, 55, 0.18);
}

input[type="submit"]:hover,
.button:hover {
  background: var(--green-950);
  color: #fff;
}

.social-link-list,
.footer-socials {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link-list a,
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--green-950);
  text-decoration: none;
  font-weight: 700;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer {
  margin-top: 34px;
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer a { color: #fff; }
.footer a:hover { color: var(--cream); }

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr) minmax(240px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.footer h2,
.footer h3 {
  margin: 0 0 10px;
  color: #fff;
}

.footer p { margin: 0.28rem 0; }

.footer .contact-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-socials a {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.92rem;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .logo-container,
  .nav,
  main,
  .hero,
  .two-column-layout,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .two-column-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .logo-container {
    align-items: flex-start;
  }

  .logo { width: 54px; }

  .nav-item {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

  .hero,
  .column {
    border-radius: 18px;
  }

  .page-products .right-column .responsive-image {
    width: min(100%, 260px);
    height: auto;
    display: block;
    margin: 12px auto;
  }
}
