/* ================================================================
   LIGHTWORK THERAPY — Stories (Blog) Stylesheet
   ================================================================ */

/* ——————————————————————————————————————————
   1. HERO SECTION
   —————————————————————————————————————————— */
.stories-hero {
  padding: clamp(140px, 15vh, 180px) clamp(24px, 4vw, 80px) clamp(96px, 10vw, 140px);
  background: linear-gradient(135deg, #EDE6DE 0%, #E8DDD8 45%, #E8E0F0 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.stories-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stories-hero-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.stories-hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.stories-hero-subtitle {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

/* ——————————————————————————————————————————
   2. STORIES LISTING GRID
   —————————————————————————————————————————— */
.stories-listing {
  padding: var(--section-pad) clamp(24px, 4vw, 80px);
  background: var(--bg);
}

.stories-listing-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.story-card {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  height: 100%;
  transition: transform 0.4s var(--ease-silk), box-shadow 0.4s var(--ease-silk);
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.story-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #f0ebe4;
}

.story-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-silk);
}

.story-card:hover .story-card-img {
  transform: scale(1.04);
}

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

.story-category {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}

.story-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.story-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 300;
  flex: 1;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--text-light);
  border-top: 1px solid rgba(42, 42, 42, 0.06);
  padding-top: 16px;
  margin-top: auto;
}

.story-read-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.story-card:hover .story-read-link {
  color: var(--gold);
}

/* ——————————————————————————————————————————
   3. INDIVIDUAL ARTICLE LAYOUT
   —————————————————————————————————————————— */
.article-header-section {
  padding: clamp(140px, 15vh, 180px) clamp(24px, 4vw, 80px) clamp(48px, 6vw, 72px);
  background: linear-gradient(135deg, #EDE6DE 0%, #E8DDD8 45%, #E8E0F0 100%);
  text-align: center;
}

.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.article-title {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.article-title em {
  font-style: italic;
  color: var(--gold);
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 16px;
}

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

.article-meta-bullet {
  color: var(--gold);
  opacity: 0.5;
}

.article-body-section {
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 80px) var(--section-pad);
  background: var(--bg);
}

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

.article-hero-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  margin-top: -120px;
  margin-bottom: 56px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 3;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-content {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-dark);
  line-height: 1.85;
  font-weight: 300;
}

.article-content p {
  margin-bottom: 28px;
}

.article-content h2,
.article-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--text-dark);
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-content h2 {
  font-size: clamp(26px, 2.8vw, 36px);
}

.article-content h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.article-content blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  color: #6d5b82;
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
  line-height: 1.6;
}

.article-content ul,
.article-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-content li {
  font-size: inherit;
  line-height: inherit;
}

.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(42, 42, 42, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.article-back-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
}

.article-back-link:hover {
  opacity: 0.75;
}

/* ——————————————————————————————————————————
   4. RESPONSIVE MEDIA QUERIES
   —————————————————————————————————————————— */
@media (max-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .article-hero-img-wrap {
    margin-top: -80px;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-hero-img-wrap {
    margin-top: -60px;
    margin-bottom: 32px;
    aspect-ratio: 16 / 10;
  }
  .article-header-section {
    padding-top: 120px;
  }
}

/* Homepage Stories Section styling */
.home-stories {
  padding: var(--section-pad) clamp(24px, 4vw, 80px);
  background: var(--bg);
}

.home-stories-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.home-stories-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.08);
}

.home-stories-sub {
  grid-column: 1;
  margin-bottom: 0;
}

.home-stories-header .btn-link {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
}

@media (max-width: 768px) {
  .home-stories-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 40px;
  }
  .home-stories-header .btn-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
  }
}

/* ================================================================
   DESKTOP OPTIMIZATIONS (1440px, 1600px, 1920px, 2560px)
   ================================================================ */

@media (min-width: 1025px) {
  .stories-grid {
    gap: 40px;
  }
  .story-card-body {
    padding: 32px;
  }
  .story-title {
    font-size: clamp(24px, 2.2vw, 30px);
  }
  .story-excerpt {
    font-size: 15px;
  }

  .stories-hero-inner {
    max-width: 900px;
  }
  .stories-hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
  }

  .article-header-inner {
    max-width: 900px;
  }
  .article-body-inner {
    max-width: 800px;
  }
  .article-content {
    font-size: clamp(16.5px, 1.4vw, 18.5px);
  }
  .article-content h2 {
    font-size: clamp(30px, 2.8vw, 42px);
  }
  .article-content h3 {
    font-size: clamp(24px, 2.2vw, 32px);
  }

  .home-stories-header {
    gap: 6rem;
  }
}

@media (min-width: 1600px) {
  .stories-grid {
    gap: 48px;
  }
  .stories-hero-inner {
    max-width: 1000px;
  }
  .article-header-inner {
    max-width: 1000px;
  }
  .article-body-inner {
    max-width: 860px;
  }
}

@media (min-width: 1920px) {
  .stories-grid {
    gap: 56px;
  }
  .story-card-body {
    padding: 36px;
  }
  .story-title {
    font-size: clamp(28px, 2vw, 34px);
  }
  .story-excerpt {
    font-size: 16px;
  }
  .stories-hero-inner {
    max-width: 1100px;
  }
  .article-header-inner {
    max-width: 1100px;
  }
  .article-body-inner {
    max-width: 940px;
  }
  .article-content {
    font-size: clamp(18px, 1.3vw, 20.5px);
  }
}

@media (min-width: 2560px) {
  .stories-grid {
    gap: 72px;
  }
  .story-card-body {
    padding: 44px;
  }
  .story-title {
    font-size: clamp(34px, 1.8vw, 42px);
  }
  .story-excerpt {
    font-size: 18px;
  }
  .stories-hero-inner {
    max-width: 1300px;
  }
  .article-header-inner {
    max-width: 1300px;
  }
  .article-body-inner {
    max-width: 1100px;
  }
  .article-content {
    font-size: clamp(21px, 1.1vw, 24px);
  }
}
