/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #f8faf8;
  --bg-secondary: #ffffff;
  --bg-alt: #f0f4f0;
  --accent: #2d6a4f;
  --accent-light: #40916c;
  --accent-muted: #52b788;
  --text-primary: #1a1a1a;
  --text-secondary: #333333;
  --text-muted: #6b7280;
  --text-light: #4b5563;
  --border: rgba(45, 106, 79, 0.15);
  --border-light: rgba(45, 106, 79, 0.08);
  --chip-bg: rgba(45, 106, 79, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(45, 106, 79, 0.12);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo a {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.4px;
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.cta-link {
  color: var(--accent) !important;
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* Hero Section */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-title {
  color: var(--text-primary);
  font-size: 44px;
  line-height: 52px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-description {
  color: var(--text-light);
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  transition: all 0.25s ease;
  font-size: 15px;
}

.cta-button.primary {
  background: var(--accent);
  color: #fff;
}

.cta-button.primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cta-button.secondary {
  background: var(--bg-secondary);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-button.secondary:hover {
  background: var(--chip-bg);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.feature-tag {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

/* Cold plunge benefits section */
.benefits {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.section-title {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.benefit-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.benefit-card h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 24px;
}

.benefits-cta {
  text-align: center;
}

/* Featured articles */
.featured {
  padding: 80px 0;
  background: var(--bg-primary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.article-card-image {
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.article-card-body {
  padding: 24px;
}

.article-card .category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.article-card h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 16px;
}

.article-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-link:hover {
  color: var(--accent-light);
}

/* Subscribe / Email consent section */
.subscribe {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.subscribe-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-card h2 {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.subscribe-card > .subscribe-intro {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.consent-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.consent-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.consent-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.consent-message {
  min-height: 24px;
  font-size: 14px;
  margin-top: 8px;
}

/* Footer */
.footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Articles listing page */
.page-header {
  padding: 56px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.page-header h1 {
  color: var(--text-primary);
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}

.articles-listing {
  padding: 64px 0;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.articles-list .article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 24px;
}

.articles-list .article-card-image {
  height: 140px;
  border-radius: 12px 0 0 0;
}

.articles-list .article-card-body {
  padding: 24px 24px 24px 0;
}

@media (max-width: 768px) {
  .articles-list .article-card {
    grid-template-columns: 1fr;
  }

  .articles-list .article-card-image {
    height: 160px;
    border-radius: 12px 12px 0 0;
  }

  .articles-list .article-card-body {
    padding: 24px;
  }
}

/* Article single page */
.article-page {
  padding: 48px 0 80px;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 40px;
}

.article-header .category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.article-header h1 {
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-body h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-body h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

.article-back {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.article-back:hover {
  color: var(--accent-light);
}

.related-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.related-articles h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  margin-bottom: 10px;
}

.related-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.related-list a:hover {
  text-decoration: underline;
}

.back-to-top {
  display: inline-block;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--accent);
}

/* Buttons */
.view-all {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-top: 24px;
  transition: color 0.2s ease;
}

.view-all:hover {
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 26px;
  }

  .benefits-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-card {
    padding: 32px 24px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .article-header h1 {
    font-size: 28px;
  }

  .article-body p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 34px;
  }

  .section-title {
    font-size: 22px;
  }
}
