/*
  =============================================
  GoMabel - Seattle DHH Resources Directory
  Styles for gomabel.com
  
  This CSS file is organized into sections:
  1. CSS Variables (colors, fonts, spacing)
  2. Base Styles (resets and defaults)
  3. Layout (container, grid)
  4. Header & Navigation
  5. Hero Section
  6. Resources Section
  7. Our Story Section
  8. Contact Section
  9. Footer
  10. Ad Placeholders
  11. Utilities & Animations
  =============================================
*/

/* ============================================
   1. CSS VARIABLES
   These are like settings we can change in one place
   ============================================ */
:root {
  /* Colors inspired by Seattle/Pacific Northwest */
  --color-ocean-blue: #4A90A4;
  --color-ocean-dark: #2C5F73;
  --color-forest-green: #6B8E7A;
  --color-soft-sage: #A8C5B5;
  --color-warm-sand: #F5F1EB;
  --color-cream: #FFFBF5;
  --color-text-dark: #2D3748;
  --color-text-medium: #4A5568;
  --color-text-light: #718096;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  
  /* Fonts */
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* Max width for content */
  --max-width: 1200px;
}

/* ============================================
   2. BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
}

/* Large, readable text for accessibility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Links */
a {
  color: var(--color-ocean-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-ocean-dark);
}

/* Strong focus indicators for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--color-ocean-blue);
  outline-offset: 2px;
}

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.site-header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-ocean-blue);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-ocean-dark);
}

.tagline {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-list a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  background-color: var(--color-soft-sage);
  color: var(--color-text-dark);
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--color-text-dark);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: var(--color-text-dark);
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--color-soft-sage) 0%, var(--color-ocean-blue) 100%);
  color: var(--color-white);
  padding: var(--space-xxl) 0;
  text-align: center;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.hero-image-container {
  flex-shrink: 0;
}

.hero-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-lg);
}

.hero-text-container {
  text-align: left;
}

.hero-section h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  font-size: 2.75rem;
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-ocean-dark);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  margin-top: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-ocean-dark);
}

/* ============================================
   6. RESOURCES SECTION
   ============================================ */
.resources-section {
  padding: var(--space-xxl) 0;
  background-color: var(--color-cream);
}

.resources-section h2 {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--color-ocean-dark);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-medium);
}

.resources-grid {
  display: grid;
  gap: var(--space-lg);
}

/* Category Cards */
.category-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card h3 {
  color: var(--color-ocean-dark);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.category-card h3::before {
  content: '🏥';
  font-size: 1.25rem;
}

.category-card:nth-child(2) h3::before { content: '🎓'; }
.category-card:nth-child(3) h3::before { content: '💪'; }
.category-card:nth-child(4) h3::before { content: '👶'; }
.category-card:nth-child(5) h3::before { content: '🤝'; }

.category-description {
  color: var(--color-text-medium);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

/* Resource Items */
.resource-list {
  list-style: none;
}

.resource-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-name {
  font-weight: 600;
  color: var(--color-ocean-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.resource-name:hover {
  color: var(--color-ocean-dark);
}

.resource-location {
  font-size: 0.875rem;
  color: var(--color-forest-green);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.resource-location::before {
  content: '📍';
  font-size: 0.75rem;
}

.resource-note {
  font-size: 0.9375rem;
  color: var(--color-text-medium);
  margin-bottom: 0.5rem;
}

.resource-details {
  font-size: 0.875rem;
  color: var(--color-forest-green);
  margin: 0.25rem 0;
}

.resource-details a {
  color: var(--color-ocean-blue);
}

.resource-updated {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.resources-note {
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-medium);
  border-left: 4px solid var(--color-ocean-blue);
}

/* Filter Bar */
.filter-bar {
  background-color: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-input,
.filter-select {
  padding: var(--space-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
  border-color: var(--color-ocean-blue);
  outline: none;
}

.filter-label {
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.9375rem;
}

.no-results-message {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-medium);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.loading-message {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-light);
}

/* ============================================
   7. NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  padding: var(--space-xxl) 0;
  background-color: var(--color-soft-sage);
}

.newsletter-section h2 {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--color-ocean-dark);
}

.newsletter-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-medium);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.newsletter-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.newsletter-form .submit-button {
  width: auto;
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-lg);
}

/* ============================================
   8. OUR STORY SECTION
   ============================================ */
.story-section {
  padding: var(--space-xxl) 0;
  background-color: var(--color-warm-sand);
}

.story-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-ocean-dark);
}

.story-content {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.story-content p {
  margin-bottom: var(--space-md);
}

.story-content p:last-child {
  margin-bottom: 0;
}

.growing-note {
  font-style: italic;
  color: var(--color-forest-green);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ============================================
   9. CONTACT SECTION
   ============================================ */
.contact-section {
  padding: var(--space-xxl) 0;
  background-color: var(--color-cream);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--color-ocean-dark);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-ocean-blue);
  outline: none;
}

.submit-button {
  width: 100%;
  background-color: var(--color-ocean-blue);
  color: var(--color-white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-button:hover,
.submit-button:focus {
  background-color: var(--color-ocean-dark);
  transform: translateY(-2px);
}

.form-success {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-md);
  background-color: var(--color-soft-sage);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-text-dark);
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-ocean-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.footer-content p:last-child {
  margin-bottom: 0;
}

.copyright {
  font-weight: 600;
}

.accessibility-note {
  font-size: 0.9375rem;
}

.disclaimer {
  font-size: 0.875rem;
  opacity: 0.75;
}

.footer-nav {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-white);
  opacity: 0.8;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
  text-decoration: underline;
}

/* Policy Pages */
.policy-section {
  padding: var(--space-xxl) 0;
  background-color: var(--color-cream);
}

.policy-section h1 {
  color: var(--color-ocean-dark);
  margin-bottom: var(--space-sm);
}

.policy-updated {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xl);
}

.policy-content {
  max-width: 800px;
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.policy-content h2 {
  color: var(--color-ocean-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  color: var(--color-text-dark);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
}

.policy-content p {
  margin-bottom: var(--space-md);
}

.policy-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.policy-content li {
  margin-bottom: var(--space-xs);
}

/* ============================================
   BLOG STYLES
   ============================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--color-soft-sage) 0%, var(--color-ocean-blue) 100%);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.blog-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.blog-intro {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

.blog-listing {
  padding: var(--space-xl) 0;
  background-color: var(--color-cream);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-content {
  padding: var(--space-lg);
}

.blog-category {
  display: inline-block;
  background-color: var(--color-soft-sage);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-card h2 a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h2 a:hover {
  color: var(--color-ocean-blue);
}

.blog-excerpt {
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Article page styles */
.article-page {
  padding: var(--space-xl) 0;
  background-color: var(--color-cream);
}

.article-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.article-header .blog-category {
  margin-bottom: var(--space-md);
}

.article-header h1 {
  color: var(--color-ocean-dark);
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

.article-meta {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.article-content h2 {
  color: var(--color-ocean-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.article-content h3 {
  color: var(--color-text-dark);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.article-content li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--color-soft-sage);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.back-to-blog {
  text-align: center;
  margin-top: var(--space-xl);
}

.back-to-blog a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-ocean-blue);
  font-weight: 600;
  text-decoration: none;
}

.back-to-blog a:hover {
  text-decoration: underline;
}

/* ============================================
   11. AD PLACEHOLDERS
   ============================================ */
.ad-placeholder {
  padding: var(--space-md) 0;
  background-color: var(--color-warm-sand);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ad-content {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-border);
}

.ad-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-mid {
  margin: var(--space-lg) 0;
}

/* ============================================
   11. RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 768px and up */
@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ad-mid {
    grid-column: span 2;
  }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .hero-section {
    padding: var(--space-xxl) 0 calc(var(--space-xxl) * 1.5);
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: var(--space-sm);
    gap: 0;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    border-top: 1px solid var(--color-border);
  }
  
  .nav-list a {
    display: block;
    padding: var(--space-sm);
  }
  
  .hero-section {
    padding: var(--space-xl) 0;
  }
  
  .hero-layout {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-image {
    width: 200px;
    height: 200px;
  }
  
  .hero-text-container {
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: 1.125rem;
  }
  
  .filter-bar {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .submit-button {
    width: 100%;
  }
  
  .story-content,
  .contact-form,
  .newsletter-form {
    padding: var(--space-md);
  }
  
  .category-card {
    padding: var(--space-md);
  }
}
