/* BodyLief - Fitness Blog for Injury Recovery */
/* Fonts: Montserrat (headings), Open Sans (body) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap");

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --dark-text: #1a2f4e;
  --green-accent: #2ecc71;
  --green-light: #e8f5e9;
  --gray-text: #5a6a7a;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--dark-text);
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-text);
}

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER / NAV === */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-text);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--green-accent);
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav ul li a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--green-accent);
  border-bottom-color: var(--green-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

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

.nav-mobile ul {
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.nav-mobile ul li a {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-mobile ul li:last-child a {
  border-bottom: none;
}

.nav-mobile ul li a:hover {
  color: var(--green-accent);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #1a2f4e 0%, #2d4a7a 60%, #1a5c3a 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("/images/hero.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  background: var(--green-accent);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
}

.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
}

/* === SECTIONS === */
.section {
  padding: 70px 0;
}

.section-light {
  background: var(--light-bg);
}

.section-green {
  background: var(--green-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-label {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-accent);
  margin-bottom: 10px;
}

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

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #2ecc71, #1a2f4e);
}

.card-image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-image-placeholder.knee {
  background: linear-gradient(135deg, #27ae60, #1a5c3a);
}
.card-image-placeholder.back {
  background: linear-gradient(135deg, #2980b9, #1a2f4e);
}
.card-image-placeholder.shoulder {
  background: linear-gradient(135deg, #8e44ad, #1a2f4e);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green-accent);
  margin-bottom: 10px;
}

.card-body h3 {
  margin-bottom: 10px;
  color: var(--dark-text);
}

.card-body p {
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 20px;
}

.card-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* === WHY SECTION === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-accent);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.why-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.why-card p {
  font-size: 0.9rem;
}

/* === ARTICLE PAGE === */
.article-header {
  background: linear-gradient(135deg, #1a2f4e, #2d4a7a);
  color: var(--white);
  padding: 60px 0 50px;
}

.article-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.article-header .breadcrumb a {
  color: var(--green-accent);
}

.article-header .breadcrumb span {
  opacity: 0.6;
}

.article-header h1 {
  color: var(--white);
  max-width: 780px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.8;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.article-image-placeholder {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}

.article-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.article-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 20px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--gray-text);
  line-height: 1.7;
}

.article-content ol li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.exercise-box {
  background: var(--green-light);
  border-left: 4px solid var(--green-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.exercise-box h4 {
  color: #1a5c3a;
  margin-bottom: 6px;
}

.exercise-box p {
  margin: 0;
  font-size: 0.95rem;
}

.info-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box h4 {
  color: var(--dark-text);
  margin-bottom: 8px;
}

.conclusion-box {
  background: var(--dark-text);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 40px;
}

.conclusion-box h3 {
  color: var(--green-accent);
  margin-bottom: 12px;
}

.conclusion-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Related articles */
.related-articles {
  padding: 60px 0;
  background: var(--light-bg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.related-card-body {
  padding: 16px;
}

.related-card-body h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.related-card-body p {
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.related-card-body a {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === FOOTER === */
footer {
  background: var(--dark-text);
  color: rgba(255, 255, 255, 0.75);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-col h4 {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--green-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom .disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .section {
    padding: 50px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .article-image-placeholder {
    height: 220px;
  }
  .article-img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* === REAL IMAGES === */
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
  display: block;
}
.related-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
