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

:root {
  --black: #0e0e0e;
  --white: #fafaf8;
  --cream: #f3f1ec;
  --ink: #1a1a1a;
  --slate: #4a4a4a;
  --muted: #8a8a8a;
  --green: #1a6b3c;
  --green-light: #e8f5ee;
  --green-accent: #2d9e5f;
  --border: #e2dfd8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── READING PROGRESS BAR ─── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-accent), #4ade80);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(45,158,95,0.4);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--green-accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--green-accent); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--green-accent);
  border-radius: 1px;
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--green);
  transform: translateY(-1px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--cream);
  padding: 48px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 20px;
}
footer .nav-logo { font-size: 1.1rem; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  display: inline-block;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,60,0.25);
}
.btn-primary:hover::after { opacity: 1; }

/* ─── SECTION COMMON ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 900;
}
.section-sub {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  font-weight: 300;
  max-width: 540px;
}


/* ─── BACK TO TOP ─── */
.back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--ink);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  z-index: 90;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  border: none;
  cursor: pointer;
}
.back-top:hover { background: var(--green); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,107,60,0.3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}
