:root {
  --mfs-green: #97D729;
  --mfs-green-dark: #6FA31E;
  --bg-black: #101012;
  --bg-black-2: #18181B;
  --text-light: #F2F2EF;
  --text-muted: #A8A8A2;
}
html { overflow-anchor: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg-black);
  color: var(--text-light);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-anchor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  background: var(--mfs-green);
  padding: 30px 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s ease;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: gap 0.3s ease;
}
.brand img.icon { height: 190px; width: 190px; transition: height 0.3s ease, width 0.3s ease; }
.brand img.wordmark { height: 150px; transition: height 0.3s ease; }

nav { display: flex; gap: 32px; transition: transform 0.3s ease; }
nav a {
  color: #14210a;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
nav a:hover, nav a.active { border-color: #14210a; }

header.scrolled {
  padding: 10px 40px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
header.scrolled .brand { gap: 12px; }
header.scrolled .brand img.icon { height: 46px; width: 46px; }
header.scrolled .brand img.wordmark { height: 34px; }
header.scrolled nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  gap: 28px;
}

/* Hero */
.hero {
  background: var(--bg-black-2);
  padding: 90px 40px;
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
}
.hero h1 { font-size: 38px; letter-spacing: 1px; margin-bottom: 14px; }
.hero p { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto 30px; }

.btn {
  display: inline-block;
  background: var(--mfs-green);
  color: #14210a;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin: 0 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn.outline { background: transparent; border: 2px solid var(--mfs-green); color: var(--mfs-green); }

/* Sections */
section { padding: 70px 40px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 26px; text-align: center; margin-bottom: 8px; letter-spacing: 0.5px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 46px; font-size: 15px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--bg-black-2);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--mfs-green); transform: translateY(-3px); }
.service-card .icon-badge {
  width: 46px; height: 46px;
  background: var(--mfs-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #14210a; margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--mfs-green); }
.service-card ul { list-style: none; color: var(--text-muted); font-size: 14px; }
.service-card li { padding: 4px 0; }
.service-card li::before { content: "\203A "; color: var(--mfs-green); }

/* Gallery */
.gallery-section { background: var(--bg-black-2); border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.gallery-toolbar { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.filter-pill {
  border: 1px solid #3a3a3a;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  font-family: inherit;
}
.filter-pill.active { background: var(--mfs-green); color: #14210a; border-color: var(--mfs-green); font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #1e2b12;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #2a2a2a;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: rgba(16,16,18,0.75);
  display: flex; align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 13px; font-weight: 700; color: var(--mfs-green);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 4px; }
.lightbox .lightbox-caption { text-align: center; margin-top: 14px; color: var(--text-light); font-size: 14px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--text-light); font-size: 32px; cursor: pointer; line-height: 1;
}

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-form label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; margin-top: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: var(--bg-black-2);
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--text-light);
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { margin: 22px 0 0; display: inline-block; }
.contact-info h3 { color: var(--mfs-green); margin-bottom: 14px; font-size: 18px; }
.contact-info p { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.form-message { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 10px; }
.form-message.success { background: rgba(151,215,41,0.15); color: var(--mfs-green); border: 1px solid var(--mfs-green); }
.form-message.error { background: rgba(226,75,74,0.15); color: #e24b4a; border: 1px solid #e24b4a; }

/* Footer */
footer { background: var(--mfs-green); color: #14210a; padding: 50px 40px 30px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { margin-bottom: 14px; font-size: 16px; }
footer p, footer a { font-size: 14px; opacity: 0.85; display: block; margin-bottom: 8px; }
.footer-bottom { max-width: 1200px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(20,33,10,0.25); font-size: 12px; opacity: 0.7; text-align: center; }

/* Admin */
.admin-body { background: #f4f4f2; color: #1a1a1a; font-family: 'Segoe UI', Roboto, Arial, sans-serif; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #14210a; color: #fff; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .brand-mini { display: flex; align-items: center; gap: 10px; padding: 0 20px 24px; }
.admin-sidebar .brand-mini img { height: 36px; width: 36px; }
.admin-sidebar .brand-mini span { font-weight: 700; font-size: 14px; }
.admin-sidebar a {
  display: block; padding: 12px 20px; color: #d8e8c0; font-size: 14px;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(151,215,41,0.15); border-left-color: var(--mfs-green); color: #fff; }
.admin-main { flex: 1; padding: 32px 40px; max-width: 1100px; }
.admin-main h1 { font-size: 24px; margin-bottom: 24px; }
.admin-card { background: #fff; border: 1px solid #e2e2de; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table th { color: #666; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table img.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.admin-btn {
  display: inline-block; background: var(--mfs-green-dark); color: #fff; border: none;
  padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.admin-btn.secondary { background: #e2e2de; color: #333; }
.admin-btn.danger { background: #c0392b; }
.admin-form label { display: block; font-size: 13px; color: #555; margin: 14px 0 6px; font-weight: 600; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.admin-form textarea { min-height: 90px; }
.admin-checklist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.admin-checklist label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; background: #f4f4f2; padding: 6px 10px; border-radius: 4px; }
.admin-flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.admin-flash.success { background: #eaf7d9; color: #3b6d11; border: 1px solid #97C459; }
.admin-flash.error { background: #fbe4e4; color: #a32d2d; border: 1px solid #f09595; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #14210a; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; width: 340px; text-align: center; }
.login-box img { height: 70px; margin: 0 auto 16px; }
.login-box h1 { font-size: 18px; margin-bottom: 20px; }
.drag-handle { cursor: grab; color: #999; }
