/* =====================================================================
 *  blog.css — Styles for the public blog pages
 *  Layered on top of the site's styles.css (uses the same variables).
 * ===================================================================== */

/* ---------- Blog listing grid ---------- */
.blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 110px;
}

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

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Post card ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--black-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  border-color: var(--gold);
}

.post-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black-mid);
}
.post-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.06); }

.post-card-media.no-img {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--black-mid), var(--black-panel));
  color: var(--gold);
}
.post-card-media.no-img svg { width: 54px; height: 54px; opacity: .65; }

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

.post-card-meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 12px;
  display: flex; gap: 10px; align-items: center;
}
.post-card-meta span.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.post-card-body h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--white);
}

.post-card-body p {
  font-family: var(--font-body);
  font-size: .94rem;
  line-height: 1.65;
  color: var(--white-dim);
  margin: 0 0 20px;
}

.post-card-more {
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card-more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.post-card:hover .post-card-more svg { transform: translateX(5px); }

/* ---------- Empty state ---------- */
.blog-empty {
  text-align: center;
  padding: 90px 20px;
  color: var(--white-dim);
}
.blog-empty h2 {
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 10px;
}

/* ---------- Single post ---------- */
.post-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 24px 110px;
}
.post-article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.post-article h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.18;
  color: var(--white);
  margin: 0 0 18px;
}
.post-article-meta {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 40px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.post-article-meta span.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.post-content {
  font-family: var(--font-body);
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--silver-light);
}
.post-content p { margin: 0 0 1.3em; }
.post-content h2,
.post-content h3 {
  font-family: var(--font-head);
  color: var(--white);
  margin: 1.7em 0 .6em;
  line-height: 1.35;
}
.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content ul,
.post-content ol { margin: 0 0 1.3em 1.4em; }
.post-content li { margin-bottom: .55em; }
.post-content a { color: var(--gold); }
.post-content img { max-width: 100%; border-radius: 12px; margin: 1em 0; }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: .5em 0 .5em 1.3em;
  font-style: italic;
  color: var(--white);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
}
.post-back:hover { color: var(--gold); }
.post-back svg { width: 16px; height: 16px; }

/* ---------- Post footer CTA ---------- */
.post-cta {
  margin-top: 56px;
  padding: 38px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--black-panel), var(--black-mid));
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.post-cta h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.55rem;
  margin: 0 0 10px;
  color: var(--white);
}
.post-cta p {
  font-family: var(--font-body);
  margin: 0 0 22px;
  color: var(--white-dim);
}
.post-cta .btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .9rem;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.post-cta .btn-cta:hover { transform: translateY(-2px); filter: brightness(1.12); }

/* ---------- Blog page hero (reuses site .page-hero look) ---------- */
.blog-hero {
  position: relative;
  padding: 150px 24px 70px;
  text-align: center;
  background: linear-gradient(180deg, var(--black-soft), var(--black));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.blog-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
  margin: 0 0 16px;
}
.blog-hero p {
  font-family: var(--font-body);
  max-width: 620px;
  margin: 0 auto;
  color: var(--white-dim);
  line-height: 1.7;
}

/* =====================================================================
 *  Navigation dropdown — copied from the main site's inline <style> so
 *  the Locations menu renders correctly on the blog pages too.
 * ===================================================================== */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-arrow {
  font-size: 9px;
  transition: transform 0.3s ease;
  color: var(--gold);
  line-height: 1;
}
.nav-dropdown:hover .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black-soft);
  border: 1px solid rgba(201,169,75,0.15);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 9999;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu li { list-style: none; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  border-left: 2px solid transparent;
}
.nav-dropdown-menu a:hover {
  color: var(--gold-light);
  background: rgba(201,169,75,0.04);
  border-left-color: var(--gold);
}
.nav-dropdown-menu a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}

@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    background: rgba(201,169,75,0.03);
    border: none;
    border-left: 1px solid rgba(201,169,75,0.15);
    margin: 6px 0 6px 16px;
    padding: 4px 0;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown > a { cursor: pointer; }
}
