@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --bg: #f5f5f3;
  --fg: #111827;
  --card: #ffffff;
  --card-fg: #111827;
  --primary: #0d9373;
  --primary-fg: #ffffff;
  --secondary: #e8eaed;
  --secondary-fg: #1e2633;
  --muted: #9ca3af;
  --border: #dde1e7;
  --accent: #e8a317;
  --radius: 0.75rem;
  --shadow: 0 4px 24px -4px rgba(17,24,39,0.08);
  --shadow-hover: 0 12px 32px -8px rgba(17,24,39,0.14);
  --hero-gradient: linear-gradient(135deg, #0d9373, #2b7eb5);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 1.5rem; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* Hero */
.hero { background: var(--hero-gradient); padding: 5rem 0; text-align: center; color: var(--primary-fg); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; opacity: 0.9; max-width: 640px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.5rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-secondary:hover { background: #d8dbe0; }
.btn-outline { background: transparent; color: var(--primary-fg); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* Cards Grid */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Card */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.3s, transform 0.3s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card img { width: 100%; height: 192px; object-fit: cover; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin: 0.5rem 0 0.75rem; color: var(--card-fg); }
.card-excerpt { font-size: 0.875rem; color: var(--muted); flex: 1; }
.card-meta { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.75rem; color: var(--muted); }
.card a { color: inherit; text-decoration: none; }
.card a:hover { text-decoration: none; }
.card a:hover .card-title { color: var(--primary); }

/* Section */
.section { padding: 4rem 0; }
.section-alt { background: var(--secondary); }
.section-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 3rem 0; }
.footer h3, .footer h4 { font-weight: 700; margin-bottom: 0.75rem; }
.footer p, .footer a { font-size: 0.875rem; color: var(--muted); }
.footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer nav a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1rem 0; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* Prose */
.prose { line-height: 1.8; }
.prose h2 { font-size: 1.375rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--fg); }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose ul, .prose ol { color: var(--muted); margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--fg); }

/* Contact form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.875rem; background: var(--card); color: var(--fg); }
.form-group textarea { resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* Back link */
.back-link { display: inline-block; font-size: 0.875rem; color: var(--primary); margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
}
