:root {
  --primary: #009A44;
  --accent: #00C853;
  --bg: #F8FAFC;
  --text: #000000;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
}

[data-theme="dark"] {
  --primary: #00C853;
  --accent: #009A44;
  --bg: #0F172A;
  --text: #E2E8F0;
  --card-bg: #1E293B;
  --border: #334155;
}

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

body {
  font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  background-image: url('../glide-logo2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--accent); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary), #00722F 60%, var(--accent));
  color: #fff;
  padding: 30px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
}

.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary { background: #fff; color: var(--primary); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ---------- SECTIONS ---------- */
.section { padding: 40px 0; }
.section-alt { background: var(--card-bg); }

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  opacity: 0.8;
}

/* ---------- GRID / CARDS ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 16px;
}

.card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--primary); }
.card p { font-size: 1.02rem; opacity: 0.85; }

.tag {
  display: inline-block;
  background: rgba(0, 154, 68, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 2px 4px 2px 0;
}

/* ---------- NEWS / LIST ---------- */
.list-item {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.list-item .date { font-size: 0.95rem; font-weight: 700; color: var(--accent); }

/* ---------- PEOPLE ---------- */
.person {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.person h3 { color: var(--primary); margin-bottom: 4px; font-size: 1.2rem; }
.person .role { font-size: 0.95rem; opacity: 0.7; margin-bottom: 12px; }

/* ---------- PUBLICATIONS ---------- */
.pub-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.pub-item h4 { color: var(--primary); margin-bottom: 6px; font-size: 1.1rem; }
.pub-item .venue { font-style: italic; opacity: 0.8; font-size: 0.95rem; }
.pub-links { margin-top: 10px; display: flex; gap: 14px; }
.pub-links a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* ---------- FORM ---------- */
.form-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.form-box label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; margin-top: 16px; }

.form-box input, .form-box textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-box button { margin-top: 22px; width: 100%; }

/* ---------- CONTACT (index page) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}

.contact-card h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.contact-card p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.98rem;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
  margin-top: 0;
}

footer .copyright {
  font-size: 0.9rem;
  margin: 0;
  color: #fff !important;
  opacity: 1;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ---------- LIGHT MODE — force all colored text to black ---------- */
html:not([data-theme="dark"]) .brand,
html:not([data-theme="dark"]) .section-title,
html:not([data-theme="dark"]) .card h3,
html:not([data-theme="dark"]) .person h3,
html:not([data-theme="dark"]) .pub-item h4,
html:not([data-theme="dark"]) .contact-card h4,
html:not([data-theme="dark"]) .contact-card a,
html:not([data-theme="dark"]) .btn-primary,
html:not([data-theme="dark"]) .nav-links a:hover,
html:not([data-theme="dark"]) .nav-links a.active,
html:not([data-theme="dark"]) .tag,
html:not([data-theme="dark"]) .list-item .date,
html:not([data-theme="dark"]) .pub-links a {
  color: #000000;
}
