/* ═══════════════════════════════════════════════════════════════
   AVORINO — BLOG LISTING PAGE
   ═══════════════════════════════════════════════════════════════ */

:root {
  --av-dark:  #111111;
  --av-cream: #f0ede8;
  --av-warm:  #e8e4df;
  --av-red:   #c8222a;
  --av-gold:  #c9a96e;
}

/* ═══ HERO ═══ */
#blog-hero {
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: var(--av-dark);
  color: var(--av-cream);
  padding: 180px 80px 96px;
  overflow: hidden;
}

/* Blueprint grid overlay */
#blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; opacity: 0.025;
  background-image:
    linear-gradient(rgba(201,169,110,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}

#blog-hero .sv-canvas-wrap {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}

#blog-hero .sv-content-overlay {
  position: relative; z-index: 2;
  max-width: 900px;
}

/* Label — targets preview class AND Webflow builder's shared 'label' style */
.blog-hero-label,
#blog-hero .label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.4);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

#blog-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--av-cream);
}

.blog-hero-subtitle,
#blog-hero .blog-hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(240,237,232,0.55);
  margin: 0;
  max-width: 520px;
}

/* ═══ BLOG GRID SECTION ═══ */
.blog-grid-wrap {
  padding: 96px 80px 120px;
  background: var(--av-dark);
  position: relative;
}

/* Hairline separator from hero */
.blog-grid-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 80px; right: 80px;
  height: 1px;
  background: rgba(240,237,232,0.06);
}

/* Section meta label */
.blog-grid-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.3);
}
.blog-grid-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(240,237,232,0.06);
}

/* Grid — hairline gaps create an editorial magazine feel */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(240,237,232,0.05);
  border: 1px solid rgba(240,237,232,0.05);
}

/* ═══ CARDS ═══ */
.blog-card {
  background: #141414;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--av-cream);
  position: relative;
  transition: background 0.4s ease;
}

/* Red accent line — slides in from left on hover */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--av-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
  z-index: 2;
}

.blog-card:hover { background: #1a1a1a; }
.blog-card:hover::before { transform: scaleX(1); }

/* Image */
.blog-card-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Gradient scrim over image bottom */
.blog-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(20,20,20,0.75), transparent);
  pointer-events: none;
}

.blog-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23,1,0.32,1), filter 0.6s ease;
  filter: brightness(0.8) saturate(0.85);
}
.blog-card:hover .blog-card-img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1);
}

/* Card body */
.blog-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.3);
  margin: 0;
}

.blog-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
  color: var(--av-cream);
  transition: color 0.3s ease;
}
.blog-card:hover .blog-card-title { color: #ffffff; }

.blog-card-summary {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(240,237,232,0.45);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--av-red);
  opacity: 0.6;
  margin-top: auto;
  padding-top: 16px;
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-card:hover .blog-card-link {
  opacity: 1;
  letter-spacing: 0.18em;
}

/* ─── Featured first card — full-width horizontal layout ─── */
.blog-grid .blog-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-grid .blog-card:first-child .blog-card-img-wrap {
  width: 55%;
  height: auto;
  min-height: 380px;
  flex-shrink: 0;
}
.blog-grid .blog-card:first-child .blog-card-body {
  flex: 1;
  padding: 48px 56px;
  justify-content: center;
}
.blog-grid .blog-card:first-child .blog-card-title {
  font-size: 30px;
  line-height: 1.2;
}
.blog-grid .blog-card:first-child .blog-card-summary {
  -webkit-line-clamp: 5;
  font-size: 15px;
  color: rgba(240,237,232,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG POST TEMPLATE (bt-* classes)
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.bt-hero {
  position: relative;
  overflow: hidden;
}
.bt-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; opacity: 0.025;
  background-image:
    linear-gradient(rgba(201,169,110,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bt-hero .sv-canvas-wrap,
.bt-hero #hero-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.bt-hero-inner {
  position: relative;
  z-index: 2;
}

/* Title clamp */
.bt-title {
  font-size: clamp(32px, 5vw, 56px);
}

/* Featured image */
.bt-img-wrap {
  position: relative;
  overflow: hidden;
}
.bt-featured-img {
  transition: filter 0.6s ease;
}

/* Article body — rich text typography */
.bt-rich-text h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.bt-rich-text h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 16px;
}
.bt-rich-text p {
  margin-bottom: 24px;
}
.bt-rich-text blockquote {
  border-left: 3px solid var(--av-gold);
  padding-left: 24px;
  margin: 40px 0;
  font-style: italic;
  opacity: 0.8;
}
.bt-rich-text img {
  width: 100%;
  border-radius: var(--av-radius, 8px);
  margin: 32px 0;
}
.bt-rich-text ul, .bt-rich-text ol {
  margin: 16px 0 24px 24px;
}
.bt-rich-text li {
  margin-bottom: 8px;
  line-height: 1.8;
}
.bt-rich-text a {
  color: var(--av-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bt-rich-text a:hover {
  opacity: 0.8;
}

/* Back link hover */
.bt-back-link {
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}
.bt-back-link:hover {
  opacity: 0.8 !important;
  letter-spacing: 0.06em;
}

/* Divider */
.bt-divider {
  transition: width 0.6s ease;
}

/* Meta dot separator */
.bt-meta-label {
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  /* Blog post template */
  .bt-hero {
    min-height: 40vh !important;
    padding: 140px 48px 72px !important;
  }
  .bt-hero-inner { max-width: 100% !important; }
  .bt-title { font-size: clamp(28px, 5vw, 44px) !important; margin-bottom: 32px !important; }
  .bt-img-wrap { padding-left: 48px !important; padding-right: 48px !important; }
  .bt-article { padding-left: 48px !important; padding-right: 48px !important; }
  .bt-article-inner { max-width: 100% !important; }

  /* Blog listing */
  #blog-hero {
    padding: 140px 48px 72px;
    min-height: 60vh;
  }
  .blog-grid-wrap {
    padding: 72px 48px 96px;
  }
  .blog-grid-wrap::before { left: 48px; right: 48px; }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid .blog-card:first-child {
    grid-column: 1 / -1;
  }
  .blog-grid .blog-card:first-child .blog-card-img-wrap {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  /* Blog post template */
  .bt-hero {
    min-height: auto !important;
    padding: 120px 24px 56px !important;
  }
  .bt-title { font-size: clamp(24px, 7vw, 36px) !important; margin-bottom: 28px !important; }
  .bt-meta { flex-direction: column !important; grid-column-gap: 0 !important; grid-row-gap: 8px !important; }
  .bt-img-wrap { padding-left: 24px !important; padding-right: 24px !important; }
  .bt-featured-img { border-radius: 6px !important; }
  .bt-article { padding-left: 24px !important; padding-right: 24px !important; }
  .bt-rich-text { font-size: 16px !important; line-height: 1.9 !important; }
  .bt-rich-text h2 { font-size: 26px; margin-top: 40px; }
  .bt-rich-text h3 { font-size: 20px; margin-top: 32px; }

  /* Blog listing */
  #blog-hero {
    padding: 120px 24px 56px;
    min-height: 50vh;
  }
  #blog-hero h1 {
    font-size: clamp(40px, 10vw, 64px);
  }
  .blog-grid-wrap {
    padding: 48px 24px 72px;
  }
  .blog-grid-wrap::before { left: 24px; right: 24px; }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid .blog-card:first-child {
    grid-column: 1 / -1;
    flex-direction: column;
  }
  .blog-grid .blog-card:first-child .blog-card-img-wrap {
    width: 100%;
    height: 240px;
    min-height: 0;
  }
  .blog-grid .blog-card:first-child .blog-card-body { padding: 28px 32px 32px; }
  .blog-grid .blog-card:first-child .blog-card-title { font-size: 22px; }
  .blog-card-img-wrap { height: 200px; }
}

@media (max-width: 478px) {
  /* Blog post template */
  .bt-hero { padding: 100px 16px 40px !important; }
  .bt-title { font-size: clamp(22px, 8vw, 32px) !important; }
  .bt-label { margin-bottom: 24px !important; }
  .bt-img-wrap { padding-left: 16px !important; padding-right: 16px !important; padding-top: 32px !important; }
  .bt-article { padding-left: 16px !important; padding-right: 16px !important; }
  .bt-rich-text { font-size: 15px !important; line-height: 1.85 !important; }
  .bt-divider { margin-top: 48px !important; margin-bottom: 32px !important; }

  /* Blog listing */
  #blog-hero {
    padding: 100px 16px 40px;
  }
  .blog-grid-wrap {
    padding: 40px 16px 56px;
  }
  .blog-card-body { padding: 24px; }
  .blog-card-title { font-size: 19px; }
}
