/* ========================================
   Vila Flor - Blog CSS
   ======================================== */

/* ========== PAGE HERO (shared with reservas) ========== */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: 72px;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.page-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero-content p {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== BLOG LISTING ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

.blog-card-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}
.blog-card-body h2 a {
  color: var(--text);
}
.blog-card-body h2 a:hover {
  color: var(--green);
}

.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card-link:hover {
  gap: 10px;
}

/* ========== ARTICLE PAGE ========== */
.article-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: 72px;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}
.article-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px 60px;
  max-width: 800px;
}
.article-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  opacity: 0.85;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========== ARTICLE CONTENT ========== */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 24px;
}

.article-content .lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 48px 0 20px;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin: 36px 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 24px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
}
.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover {
  color: var(--green-dark);
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 32px 0;
  width: 100%;
}

.article-content blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content blockquote p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 0;
}

/* CTA Box */
.article-cta-box {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  border: 1px solid var(--border);
}
.article-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--text);
}
.article-cta-box p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.article-cta-box .btn {
  margin: 0 8px 8px;
}
.article-cta-box .btn-primary {
  color: #fff !important;
}
.article-cta-box .btn-outline-sm {
  color: var(--green) !important;
  border-color: var(--green);
}

/* Related articles */
.related-articles {
  background: var(--bg-alt);
  padding: 80px 0;
}
.related-articles .section-header {
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin: 0 8px; color: var(--text-lighter); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .related-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .article-hero { height: 45vh; min-height: 320px; }
  .article-content { padding: 40px 24px 60px; }
  .article-meta { flex-wrap: wrap; justify-content: center; gap: 12px; }
}
