@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

/* Global variables */
:root {
  --bg: #ffffff;
  --text: #222;

  /* Updated to your sage palette */
  --accent: #2a4d3c;        /* dark sage */
  --accent-hover: #1f3a2d;  /* darker sage */

  --max-width: 900px;
  --font: 'Nunito', system-ui, -apple-system, Arial, sans-serif;
}

/* Base styles */
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Header banner */
header {
  text-align: center;
  padding: 1rem 0 0.5rem;
  background: linear-gradient(
    to bottom,
    #ebf7ec 0%,
    #f7fdf8 100%
  );
  border-bottom: 1px solid #d9e2ec;
}

header img {
  max-width: 200px;
  height: auto;
}

/* Navigation */
nav {
  margin-top: 1rem;
}

nav a {
  margin: 0 1rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-hover);
}

nav a[aria-current="page"] {
  font-weight: 700;
}

/* Main content layout */
main {
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 1rem;
}

/* Content wrapper (modern card) */
.content-wrapper {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffffcc;
  backdrop-filter: blur(2px);
  padding: 1.2rem 2rem;
  border: 1px solid #e0efe3;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: left;
}

/* H1 accent */
.content-wrapper h1 {
  display: block;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  white-space: normal;
  margin-bottom: 0.6rem;
  position: relative;
  padding-bottom: 0.3rem;
}

.content-wrapper h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background-color: #7fa88d;
  border-radius: 2px;
  margin: 0.4rem auto 0;
}

/* H2 accent */
.content-wrapper h2 {
  font-size: 1.25rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.3rem;
}

.content-wrapper h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background-color: #7fa88d;
  border-radius: 2px;
  margin: 0.4rem auto 0;
}

/* Paragraph spacing */
.content-wrapper p {
  margin: 0.6rem 0;
}

/* Footer (keep only THIS footer block) */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #444;
  background: linear-gradient(
    to top,
    #ebf7ec 0%,
    #f7fdf8 100%
  );
  border-top: 1px solid #d9e2ec;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}

/* Footer links */
footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent-hover);
}

/* Footer link container */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;        /* <-- restores spacing */
  margin-bottom: 1.2rem;
}

/* Divider line */
.footer-divider {
  width: 100px;
  height: 2px;
  background-color: #7fa88d;
  margin: 0.5rem auto 1.2rem;
  border-radius: 2px;
}

/* Footer text */
.footer-copy,
.footer-maintainer {
  margin: 0.3rem 0;
  opacity: 0.8;
}

/* Section spacing */
section + section {
  margin-top: 2rem;
}

/* Supplier cards */
.supplier-card {
  background: #ffffffdd;
  border: 1px solid #e0efe3;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.supplier-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.6rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.35rem;
}

.supplier-card h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #7fa88d;
  border-radius: 2px;
  margin-top: 0.35rem;
}


.supplier {
  margin-bottom: 1.2rem;
  padding: 0.4rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e0efe3;
}

.supplier:last-of-type {
  border-bottom: none;
}

.supplier-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.2rem;
}

.supplier-list li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.supplier:not(:last-child) {
  border-bottom: 1px solid #e0efe3;
}

.supplier h3 {
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.25rem;
}
.supplier:hover {
  background: #f7fdf8;
  border-radius: 6px;
  transition: background 0.2s ease;
}

/* Multi-column layout for suppliers */
@media (min-width: 700px) {
  .supplier-card {
    /* remove columns from the card itself */
  }

/* Two-column GRID layout for suppliers */
@media (min-width: 700px) {
  .supplier-card .supplier-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 1.2rem;
  }

  .supplier-card .supplier {
    break-inside: avoid;
  }
}


@media (min-width: 700px) {
  .customer-list,
  .supplier-list {
    columns: 2;
  }
}

/* GLOBAL LINK STYLE — animated underline */
a {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #7fa88d;
  transition: width 0.25s ease;
  border-radius: 2px;
}

a:hover {
  color: var(--accent-hover);
}

a:hover::after {
  width: 100%;
}

a:visited {
  color: var(--accent);
}

/* Customer spacing */
.customer-list {
  padding-left: 1.2rem;
  margin: 0.8rem 0;
  line-height: 1.6;
}

/* Return to Top */
.back-to-top {
  text-align: right;
  margin-top: 1rem;
}

.back-to-top a {
  font-size: 0.85rem;
  opacity: 0.8;
}

.back-to-top a:hover {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}


.customer-list li,
.supplier-list li {
  margin-bottom: 0.4rem;
}
.supplier-card,
.customer-card {
  margin: 1.8rem 0;
}


@media (min-width: 700px) {
  .customer-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 0.4rem;
    padding-left: 1.2rem; /* keep your indent */
  }
}


.customer-list li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

.customer-card h2,
.customer-section h2 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.6rem;
  position: relative;
  padding-bottom: 0.35rem;
}

.customer-card h2::after,
.customer-section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background-color: #7fa88d;
  border-radius: 2px;
  margin: 0.4rem auto 0;
}

.customer-list li:hover {
  background: #f7fdf8;
  border-radius: 4px;
  transition: background 0.2s ease;
}

/* Scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
