@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1a4731;
  --green-mid: #2d6b4f;
  --green-light: #e8f0eb;
  --green-xlight: #f2f6f3;
  --black: #0f0f0f;
  --gray-dark: #3a3a3a; 
  --gray-mid: #777;
  --gray-light: #bbb;
  --gray-xlight: #e8e8e4;
  --white: #ffffff;
  --bg: #f9f9f7;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --nav-h: 68px;
  --max: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition: 200ms var(--ease-out);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--black); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(249,249,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--gray-xlight);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--black);
}
.nav-logo-mark {
  width: 28px; height: 28px; background: var(--green); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.nav-logo-text { font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14px; color: var(--gray-mid); text-decoration: none;
  padding: 6px 14px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--black); background: var(--gray-xlight); }
.nav-links a.active { color: var(--green); font-weight: 500; }
.nav-cta {
  font-size: 13px; background: var(--green); color: #fff !important;
  padding: 8px 18px !important; border-radius: 7px !important;
}
.nav-cta:hover { background: var(--green-mid) !important; color: #fff !important; }

/* mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--black); transition: var(--transition); border-radius: 2px; }

/* ── LAYOUT ── */
main { padding-top: var(--nav-h); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── TYPE ── */
h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; color: var(--black); }
h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--black); }
h3 { font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--black); }
p { color: var(--gray-dark); line-height: 1.72; }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--green); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: 8px; text-decoration: none;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out);
  cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--gray-xlight); }
.btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-xlight); }
.btn-ghost { background: transparent; color: var(--gray-mid); padding: 12px 0; }
.btn-ghost:hover { color: var(--green); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
}

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 4px;
  background: var(--green-light); color: var(--green);
  letter-spacing: 0.03em;
}

/* ── CARDS ── */
.card {
  background: var(--white); border: 0.5px solid var(--gray-xlight);
  border-radius: var(--radius-lg); padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-2px); }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--gray-xlight); margin: 0; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: rgba(255,255,255,0.5);
  padding: 48px 0; margin-top: 0;
}
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--serif); font-size: 20px; color: #fff; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy { font-size: 12px; width: 100%; padding-top: 24px; border-top: 0.5px solid rgba(255,255,255,0.1); margin-top: 8px; }

/* ── ANIMATIONS ── */
.fade-up    { opacity: 0; transform: translateY(28px);  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.fade-left  { opacity: 0; transform: translateX(-36px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.fade-right { opacity: 0; transform: translateX(36px);  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.scale-in   { opacity: 0; transform: scale(0.90);       transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1); }

.fade-up.visible, .fade-left.visible, .fade-right.visible, .scale-in.visible {
  opacity: 1; transform: none;
}

/* ── BUTTON MICROINTERACTIONS ── */
.btn { position: relative; overflow: hidden; }

.btn-ripple {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.55s ease-out forwards;
}
.btn-primary .btn-ripple  { background: rgba(255,255,255,0.30); }
.btn-outline .btn-ripple  { background: rgba(26,71,49,0.14); }
.btn-ghost   .btn-ripple  { background: rgba(26,71,49,0.10); }
.product-cta .btn-ripple  { background: rgba(255,255,255,0.28); }
.filter-btn  .btn-ripple  { background: rgba(26,71,49,0.12); }

@keyframes ripple-out {
  to { transform: translate(-50%, -50%) scale(160); opacity: 0; }
}

.product-cta, .filter-btn, .form-submit { position: relative; overflow: hidden; }
.product-cta:active, .filter-btn:active, .form-submit:active { transform: scale(0.97); }
.form-submit .btn-ripple { background: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 0.5px solid var(--gray-xlight); flex-direction: column; padding: 16px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-cta { display: none !important; }
  .nav-links.open .nav-cta { display: inline-flex !important; margin: 6px 14px 4px; }
  .nav-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right, .scale-in {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
}
