/* =============================================
   WARDA BLOG STYLES
   Extends the existing design system from styles.css
   ============================================= */

.blog-page {
  padding-top: 64px;
}

.blog-nav {
  position: fixed;
}

.nav-active {
  color: var(--rust) !important;
}

.blog-main {
  max-width: 1472px;
  margin: 0 auto;
}

/* --- Blog Hero (listing page) --- */
.blog-hero {
  text-align: center;
  padding: clamp(64px, 8vw, 80px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 40px);
}

.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Blog Card Grid --- */
.blog-grid-section {
  padding: 0 clamp(24px, 4vw, 48px) clamp(64px, 6vw, 80px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  max-width: 1472px;
  margin: 0 auto;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
}

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

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.blog-card-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}

.blog-card-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: var(--dark);
  margin: 8px 0 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.blog-card-dot {
  opacity: 0.5;
}

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  font-size: 18px;
}

/* --- Blog Post Page --- */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 60px) clamp(16px, 4vw, 24px) clamp(48px, 8vw, 80px);
}

.blog-post-header {
  margin-bottom: 48px;
}

.blog-post-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
  background: rgba(168, 68, 42, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
}

.blog-post-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.blog-post-dot {
  opacity: 0.4;
}

.blog-post-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

/* --- Blog Post Content (Markdown output) --- */
.blog-post-content {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark);
}

.blog-post-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--dark);
  margin: 48px 0 16px;
}

.blog-post-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 600;
  color: var(--dark);
  margin: 36px 0 12px;
}

.blog-post-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.blog-post-content a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-content a:hover {
  color: var(--rust-light);
}

.blog-post-content img {
  width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}

.blog-post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 24px;
  margin: 24px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--brown);
}

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

.blog-post-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.blog-post-content strong {
  color: var(--dark);
  font-weight: 700;
}

/* --- Email CTA in Blog --- */
.blog-cta {
  background: var(--green);
  border-radius: 8px;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  text-align: center;
  margin: 48px 0;
}

.blog-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.blog-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}

.blog-cta-note {
  font-size: 12px !important;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 12px;
  margin-bottom: 0 !important;
}

.blog-cta-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.blog-cta-form input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: rgba(255,255,255,0.92);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--dark);
  border-radius: 8px;
  outline: none;
}

.blog-cta-form input::placeholder {
  color: #aaa;
}

.blog-cta-form button {
  background: var(--rust);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}

.blog-cta-form button:hover {
  background: var(--rust-light);
}

/* --- Share Buttons --- */
.blog-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.blog-share-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.blog-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28,20,16,0.06);
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blog-share a:hover {
  background: var(--rust);
  color: #fff;
}

.blog-share svg {
  width: 16px;
  height: 16px;
}

/* --- Related Posts --- */
.blog-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.blog-related h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 32px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-related-card {
  text-decoration: none;
  color: inherit;
}

.blog-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.blog-related-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.blog-related-card time {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Responsive (900px) --- */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .blog-post-meta { flex-wrap: wrap; }
  .blog-cta-form { flex-direction: column; }
  .blog-cta-form input, .blog-cta-form button { width: 100%; }
  .blog-related-grid { grid-template-columns: 1fr; }

  /* Mobile nav for blog pages */
  .blog-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(28,20,16,0.97);
    padding: 8px 24px 24px;
    gap: 0;
    z-index: 99;
  }
  .blog-nav.nav-open .nav-links li { width: 100%; list-style: none; }
  .blog-nav.nav-open .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9) !important;
  }
  .blog-nav.nav-open .nav-links .nav-active {
    color: var(--rust-light) !important;
  }
}

/* --- Responsive (480px) --- */
@media (max-width: 480px) {
  .blog-hero h1 { font-size: 36px; }
  .blog-post-header h1 { font-size: 28px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .blog-card { transition: none !important; }
  .blog-card-img-wrap img { transition: none !important; }
}
