/* ========================= */
/* CORE.CSS – SHARED STYLES */
/* ========================= */

/* ====== GLOBAL COLORS ====== */

:root {
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ECO COLOR PALETTE */
  --green: #3a7d44;
  --green-light: #e8f3ec;
  --blue: #2a6f97;
  --blue-light: #e7f1f8;
  --sand: #f4e9d8;
  --sand-dark: #d8c7ac;

  --text-dark: #1f1f1f;
  --text-muted: #555;
  --bg-light: #ffffff;

  --max-width: 960px;
}

/* ====== BASE ====== */

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-light);
  margin: 0;
  line-height: 1.65;
}

/* ====== RESET ====== */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 400;
}

/* ====== NAVIGATION ====== */

nav {
  position: sticky;
  top: 0;
  background: #ffffffee;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--sand-dark);
  z-index: 100;
}

nav ul {
  margin: 0;
  padding: 0.6rem 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

/* ====== LAYOUT ====== */

header, section, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ====== HERO (SHARED) ====== */

header#home {
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  border-bottom: 3px solid var(--green);
  border-radius: 0 0 12px 12px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-title {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--green);
}

.hero-subtitle {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--blue);
}

.hero-meta {
  margin-top: 0.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-image {
  max-width: 520px;
  width: 100%;
  height: auto;
  margin: 2rem auto 0;
  display: block;
  border-radius: 8px;
}

/* ====== SECTION HEADERS ====== */

section h2 {
  font-size: 1.9rem;
  color: var(--green);
  border-left: 6px solid var(--green);
  padding-left: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ====== COLORED SECTIONS ====== */

section:nth-of-type(odd) {
  background: var(--blue-light);
}

section:nth-of-type(even) {
  background: var(--sand);
}

/* ====== BUTTONS ====== */

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* ====== FOOTER ====== */

footer {
  border-top: 2px solid var(--sand-dark);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--blue-light);
}

/* ====== QR CODE ====== */

.qr-code {
  background: white;
  padding: 8px;
  border-radius: 6px;
  max-width: 180px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0.5rem 0 0 0;
}

img.qr-code {
  width: 180px !important;
  max-width: 180px !important;
}

.qr-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
