/* =========================================================
   Greenthumb Bros — Shared Stylesheet
   ========================================================= */

:root {
  --forest: #1f3a2e;
  --moss: #2d5a3d;
  --leaf: #4a7c59;
  --sage: #a8c5a4;
  --cream: #f7f3e9;
  --paper: #fdfbf4;
  --bark: #3d2f1f;
  --sun: #e8b547;
  --clay: #c47d5a;
  --ink: #1a1a1a;
  --muted: #6b6b6b;

  --serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --sans: 'Nunito', 'Helvetica Neue', sans-serif;

  --shadow-soft: 0 4px 20px rgba(31, 58, 46, 0.08);
  --shadow-lift: 0 12px 40px rgba(31, 58, 46, 0.15);
}

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito:wght@300;400;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle grain texture across the whole site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--moss); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--sun); }

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(31, 58, 46, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(253, 251, 244, 0.92);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sun);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--forest);
  color: var(--paper) !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

.nav-cta::after { display: none; }

/* =========================================================
   Layout
   ========================================================= */
main { flex: 1; }

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

.section {
  padding: 5rem 0;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--forest);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--moss);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: var(--paper);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 3rem 2rem 2rem;
  margin-top: auto;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247, 243, 233, 0.2);
}

.footer-wrapper h4 {
  color: var(--sun);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.site-footer p,
.site-footer li {
  color: var(--cream);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--sun);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.fade-up {
  animation: fadeUp 0.8s ease-out backwards;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .nav-wrapper { padding: 1rem; flex-wrap: wrap; }
  .nav-links { gap: 1.25rem; font-size: 0.9rem; }
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .footer-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}
