/* ==========================================================
   Sartori Cleaning — Blog & Resources Style Sheet
   Matches brand guidelines and design tokens.
   ========================================================== */

.blog-hero {
  position: relative;
  padding: 100px 0 60px;
  background: var(--cream);
  text-align: center;
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--blush-deep);
  opacity: 0.4;
  filter: blur(50px);
  top: -120px;
  left: -80px;
  pointer-events: none;
}

.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 62px);
  color: var(--plum);
  margin-bottom: 16px;
  line-height: 1.1;
}

.blog-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--gray);
  line-height: 1.6;
}

/* Blog Grid */
.blog-grid-sec {
  padding: 60px 0 100px;
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(44, 26, 56, 0.05);
  box-shadow: 0 10px 30px rgba(44, 26, 56, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44, 26, 56, 0.06);
}

.blog-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--blush-deep);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.blog-card-meta {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--magenta);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.25;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.blog-card:hover h3 {
  color: var(--magenta);
}

.blog-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--plum-soft);
  border-top: 1px solid rgba(44, 26, 56, 0.05);
  padding-top: 16px;
}

/* Article Template */
.article-wrap {
  padding: 80px 0 100px;
  background: #fff;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--magenta);
  margin-bottom: 32px;
  transition: transform 0.2s;
}

.article-back:hover {
  transform: translateX(-4px);
}

.article-back svg {
  width: 16px;
  height: 16px;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 16px;
}

.article-cat {
  background: var(--blush);
  color: var(--magenta);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 52px);
  color: var(--plum);
  line-height: 1.15;
  margin-bottom: 24px;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(44, 26, 56, 0.08);
  border-bottom: 1px solid rgba(44, 26, 56, 0.08);
  padding: 16px 0;
}

.article-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.article-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
}

.article-author-title {
  font-size: 12px;
  color: var(--gray);
}

.article-content {
  font-family: 'Outfit', sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  color: #3b3543;
  font-weight: 300;
}

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

.article-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--plum);
  margin: 48px 0 20px;
  line-height: 1.25;
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--plum-soft);
  margin: 32px 0 16px;
}

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

.article-content li {
  margin-bottom: 10px;
}

.article-content li strong {
  font-weight: 600;
  color: var(--plum);
}

.article-content blockquote {
  border-left: 4px solid var(--magenta);
  padding: 12px 24px;
  background: var(--cream);
  font-style: italic;
  font-size: 17.5px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
  margin-bottom: 0;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 32px 0;
}

/* Article CTA Card */
.article-cta {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--plum) 100%);
  color: #fff;
  padding: 40px;
  border-radius: 24px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(44, 26, 56, 0.15);
}

.article-cta::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.article-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.article-cta p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 24px;
}

.article-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-cta {
    padding: 30px 24px;
  }
}
