@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --green: #1a6b4a;
  --green-light: #e8f5ee;
  --green-mid: #2d9e6b;
  --green-dark: #0f4530;
  --ink: #111810;
  --ink-60: rgba(17,24,16,0.6);
  --ink-20: rgba(17,24,16,0.12);
  --ink-08: rgba(17,24,16,0.06);
  --cream: #f8f6f1;
  --white: #ffffff;
  --gold: #b8922a;
  --gold-light: #fdf4e3;
  --red: #c0392b;
  --red-light: #fdf0ee;
  --blue: #1a4a8a;
  --blue-light: #eef3fc;
  --purple: #5a3d8a;
  --purple-light: #f0ebfa;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(17,24,16,0.08), 0 1px 2px rgba(17,24,16,0.05);
  --shadow-md: 0 4px 16px rgba(17,24,16,0.10), 0 2px 6px rgba(17,24,16,0.06);
  --shadow-lg: 0 12px 40px rgba(17,24,16,0.13), 0 4px 12px rgba(17,24,16,0.07);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-20); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 400; }
p { color: var(--ink-60); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--font-body); }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248,246,241,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-08);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}

/* Add this new rule for your SVG image */
.nav-logo-img {
  height: 40px; /* Adjust this value to make the logo larger or smaller */
  width: auto;  /* Ensures the logo keeps its correct proportions */
  display: block;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 400;
  color: var(--ink-60); background: none; border: none; cursor: pointer;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--ink); background: var(--ink-08); }
.nav-link.active { color: var(--ink); background: var(--ink-08); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  padding: 7px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--ink-60);
  background: none; border: 1px solid var(--ink-20);
  transition: all var(--transition);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-60); }
.btn-solid {
  padding: 7px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink);
  transition: all var(--transition);
}
.btn-solid:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ── MOBILE NAV ── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--transition); }
.mobile-menu {
  display: none; position: fixed; inset: 64px 0 0 0; z-index: 190;
  background: var(--cream); padding: 1.5rem 2rem;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--ink-08);
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 1rem; color: var(--ink); background: none;
  border: none; cursor: pointer; text-align: left;
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--ink-08); }

/* ── PAGE SYSTEM ── */
.page { display: none; }
.page.active { display: block; }

/* ── LAYOUT HELPERS ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 500;
  background: var(--green); color: white;
  border: 2px solid var(--green);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 500;
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink-20);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--ink-60); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--radius-sm); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 500;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-gold { background: var(--gold-light); color: var(--gold); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray { background: var(--ink-08); color: var(--ink-60); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--ink-20); border-radius: var(--radius-md);
  font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
}
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.7; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--ink-08); margin: 2rem 0; }

/* ── TAG ── */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.8rem; background: var(--ink-08); color: var(--ink-60);
  white-space: nowrap;
}

/* ── ALERT ── */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px;
}
.alert-info { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(26,74,138,0.15); }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(26,107,74,0.15); }
.alert-warning { background: var(--gold-light); color: var(--gold); border: 1px solid rgba(184,146,42,0.2); }

/* ── PROGRESS BAR ── */
.progress-bar-wrap { height: 6px; background: var(--ink-08); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.4s ease; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(17,24,16,0.45);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { transform: scale(0.92) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--ink-08);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-08); border: none; cursor: pointer;
  font-size: 1rem; color: var(--ink-60);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--ink-20); }
.modal-body { padding: 1.5rem 1.75rem; }
.modal-footer { padding: 1rem 1.75rem 1.5rem; display: flex; gap: 10px; justify-content: flex-end; }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ink-08); margin-bottom: 2rem; }
.tab-btn {
  padding: 10px 20px; border: none; background: none; cursor: pointer;
  font-size: 0.9rem; color: var(--ink-60);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); font-weight: 500; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink); color: white;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 0.875rem; box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.success { background: var(--green-dark); }
.toast.error { background: var(--red); }
@keyframes toastIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── LOADING SPINNER ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--ink-20);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 500; flex-shrink: 0;
}
.avatar-sm { width: 36px; height: 36px; font-size: 0.85rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }

/* ── FOOTER ── */
.footer {
  background: var(--ink); color: var(--white);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-col h4 { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 1rem; }
  .container-sm { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .modal { margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: absolute; bottom: 0; max-width: 100%; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
