/* =========================================
   Cedar Valley Psychiatry - Base Styles
   Variables, Reset, Typography, Layout, Buttons
   ========================================= */

/* CSS Variables */
:root {
  /* Primary Palette - Logo Greens */
  --cedar-900: #2a3f1a;
  --cedar-800: #3a5420;
  --cedar-700: #4a6f23;  /* Dark olive from logo mountains */
  --cedar-600: #5a8328;
  --cedar-500: #6a972d;
  --cedar-400: #7db035;
  --cedar-300: #8bc63f;  /* Bright lime from logo circle */
  --cedar-200: #a8d46a;
  --cedar-100: #d4e9b0;
  --cedar-50: #eef6e0;

  /* Warm Neutrals */
  --ivory-50: #fefdfb;
  --ivory-100: #fcfbf7;
  --ivory-200: #f7f5ef;
  --ivory-300: #efeae0;
  --ivory-400: #e5ddd0;
  --ivory-500: #c9bda5;

  /* Accent - Lime highlight */
  --gold-500: #8bc63f;  /* Using bright lime as accent */
  --gold-400: #9ed04f;
  --gold-300: #b5dc70;

  /* Semantic */
  --text-primary: #1a1a1a;
  --text-secondary: #3d4a3a;
  --text-muted: #5c6b58;
  --text-light: #8a9686;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 46, 31, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 46, 31, 0.1);
  --shadow-lg: 0 8px 30px rgba(26, 46, 31, 0.12);
  --shadow-xl: 0 20px 50px rgba(26, 46, 31, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--ivory-100);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--cedar-600);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-4xl) 0;
}

/* Section Header */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cedar-600);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: var(--cedar-100);
  border-radius: var(--radius-sm);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header p {
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cedar-700);
  color: white;
}

.btn-primary:hover {
  background: var(--cedar-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--cedar-700);
  border: 1.5px solid var(--cedar-300);
}

.btn-outline:hover {
  background: var(--cedar-50);
  border-color: var(--cedar-500);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}
