/* articles.css — shared styles for resources.html and all category pages.
 *
 * NOTE: This file contains only page-specific styles.
 * All reset, variables, body, and nav styles come from style.css,
 * which must be loaded BEFORE this file on every page that uses it.
 */

/* ── PAGE HERO ── */
.page-hero {
  background: var(--ink);
  padding: 9rem 6vw 5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to right, transparent 0,
    transparent calc(100% / 12 - 1px),
    rgba(184,150,106,0.04) calc(100% / 12 - 1px),
    rgba(184,150,106,0.04) calc(100% / 12)
  );
}
.page-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
.page-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.6rem; opacity: 0; animation: fadeUp .7s .1s forwards;
}
.page-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 300;
  line-height: 1.08; color: var(--cream); margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp .8s .25s forwards;
}
.page-title em { font-style: italic; color: var(--gold-lt); }
.page-intro {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.8;
  color: rgba(245,241,235,0.78); max-width: 520px;
  opacity: 0; animation: fadeUp .8s .4s forwards;
}
.page-intro-plain {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.8;
  color: rgba(245,241,235,0.72); max-width: 600px; margin-top: 1rem;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}

/* ── SEARCH ── */
.search-wrap {
  opacity: 0; animation: fadeUp .8s .55s forwards;
  width: 100%; max-width: 520px; margin-top: 2rem;
  position: relative;
}
.search-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,150,106,0.35);
  color: var(--cream);
  padding: 0.95rem 3rem 0.95rem 1.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 300;
  border-radius: 2px; outline: none;
  transition: border-color .2s, background .2s;
  letter-spacing: 0.03em;
}
.search-input::placeholder { color: rgba(245,241,235,0.25); }
.search-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.09); }
.search-icon {
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: rgba(184,150,106,0.5); pointer-events: none;
}
.search-clear {
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(184,150,106,0.5); font-size: 1.1rem;
  cursor: pointer; padding: 0; display: none; line-height: 1;
  transition: color .15s;
}
.search-clear:hover { color: var(--gold-lt); }
.search-clear.visible { display: block; }
.search-clear.visible + .search-icon { display: none; }
.search-status {
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: rgba(245,241,235,0.3); margin-top: 0.6rem; min-height: 1.2em;
}

/* ── SHARED ── */
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }
.section-tag {
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }

/* ── FEATURED CAROUSEL ── */
.featured { padding: 5rem 0 0; background: var(--ink); }
.featured-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem;
}
.featured-arrows { display: flex; gap: 0.5rem; }
.carousel-arrow {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--rule);
  color: var(--gold); font-size: 1.2rem;
  cursor: pointer; border-radius: 2px;
  transition: background .2s, color .2s; flex-shrink: 0;
}
.carousel-arrow:hover { background: rgba(184,150,106,0.1); color: var(--gold-lt); }
.carousel-arrow:disabled { color: rgba(184,150,106,0.2); cursor: default; }
.carousel-track-wrap { overflow: hidden; }
.carousel-track { display: flex; gap: 2px; transition: transform .4s cubic-bezier(.4,0,.2,1); }

.featured-card {
  flex: 0 0 100%;
  background: rgba(255,255,255,0.03);
  border-top: 2px solid var(--gold);
  display: grid; grid-template-columns: 380px 1fr;
  min-height: 340px;
  transition: background .25s;
  text-decoration: none; color: inherit;
  overflow: hidden;
}
.featured-card:hover { background: rgba(184,150,106,0.07); }
.featured-card-img {
  position: relative; background: rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.6rem;
  border-right: 1px solid var(--rule); min-height: 280px;
}
.featured-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.featured-card:hover .featured-card-img img { transform: scale(1.03); }
.feat-img-icon { width: 36px; height: 36px; color: var(--gold); opacity: 0.2; z-index: 1; }
.feat-img-label {
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,241,235,0.2); z-index: 1; text-align: center; padding: 0 1rem;
}
.featured-card-content {
  padding: 2.8rem 2.4rem 3rem; display: flex; flex-direction: column;
}
.featured-card-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.card-category {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); padding: 0.25rem 0.7rem;
  border: 1px solid rgba(184,150,106,0.3); border-radius: 2px;
}
.card-read-time { font-size: 0.62rem; color: rgba(245,241,235,0.25); }
.featured-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400;
  line-height: 1.2; color: var(--cream); margin-bottom: 1.2rem; flex: 1;
}
.featured-card-excerpt {
  font-size: 0.88rem; line-height: 1.82;
  color: rgba(245,241,235,0.4); margin-bottom: 1.8rem;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-read-link {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 0.5rem;
  transition: gap .2s;
}
.featured-card:hover .card-read-link { gap: 0.8rem; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 2rem 0 3rem; }
.carousel-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(184,150,106,0.25); border: none; cursor: pointer;
  padding: 0; transition: background .2s, transform .2s;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }

/* ── CATEGORY NAV ── */
.cat-nav {
  background: var(--stone); border-bottom: 1px solid var(--rule);
  position: sticky; top: 72px; z-index: 90;
}
.cat-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0; display: flex; align-items: stretch; }
.cat-nav-arrow { display: none; }
.cat-nav-label { display: none; }
.cat-nav-dots  { display: none; }
.cat-nav-track {
  display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 0 6vw;
}
.cat-nav-track::-webkit-scrollbar { display: none; }
.cat-btn {
  padding: 1rem 1.4rem; font-family: 'Jost', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,241,235,0.4); background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.cat-btn:hover { color: var(--gold-lt); }
.cat-btn.active { color: var(--gold-lt); border-bottom-color: var(--gold); }
.cat-nav-top {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0 1.2rem; margin-left: auto; flex-shrink: 0;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,241,235,0.3); text-decoration: none;
  border-left: 1px solid var(--rule); transition: color .2s; white-space: nowrap;
}
.cat-nav-top:hover { color: var(--gold); }

/* ── ARTICLE GRID ── */
.articles-section { padding: 6rem 0; background: var(--cream); }
.practice-group { margin-bottom: 5rem; }
.practice-group:last-child { margin-bottom: 0; }
.practice-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}
.practice-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: var(--ink);
}
.practice-group-title em { font-style: italic; }
.view-all-link {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem; transition: gap .2s;
}
.view-all-link:hover { gap: 0.7rem; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.article-card {
  background: var(--warm); border-top: 1px solid var(--rule);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: background .25s; position: relative; overflow: hidden;
}
.article-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.article-card:hover { background: #e8e2d8; }
.article-card:hover::after { transform: scaleX(1); }
.article-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: #e4ddd4; border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.4rem; flex-shrink: 0;
}
.article-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.art-img-icon { width: 28px; height: 28px; color: var(--gold); opacity: 0.25; z-index: 1; }
.art-img-label {
  font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); z-index: 1; opacity: 0.6; text-align: center;
}
.article-card-body { padding: 1.8rem 1.8rem 2.2rem; display: flex; flex-direction: column; flex: 1; }
.article-card-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.article-category { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.article-read-time { font-size: 0.6rem; color: var(--muted); }
.article-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400;
  line-height: 1.3; color: var(--ink); margin-bottom: 0.8rem; flex: 1;
}
.article-card-excerpt {
  font-size: 0.8rem; line-height: 1.78; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.2rem;
}
.article-read-link {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 0.4rem; transition: gap .2s;
}
.article-card:hover .article-read-link { gap: 0.7rem; }
.article-card.hidden { display: none; }
.practice-group.hidden { display: none; }

/* ── NO RESULTS ── */
.no-results { display: none; padding: 4rem 0; text-align: center; }
.no-results.visible { display: block; }
.no-results-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 300; color: var(--ink); margin-bottom: 0.8rem;
}
.no-results p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.inline-btn {
  background: none; border: none; color: var(--gold);
  cursor: pointer; font-family: inherit; font-size: inherit;
  padding: 0; text-decoration: underline;
}

/* ── CATEGORY PAGE HERO BACK LINK ── */
.hero-back {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,241,235,0.35); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.6rem; opacity: 0; animation: fadeUp .7s .05s forwards;
  transition: color .2s;
}
.hero-back:hover { color: var(--gold); }

/* ── CTA BAND ── */
.cta-band { padding: 6rem 0; background: var(--stone); border-top: 1px solid var(--rule); }
.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}
.cta-band-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300;
  line-height: 1.15; color: var(--cream); margin-bottom: 0.6rem;
}
.cta-band-text h2 em { font-style: italic; color: var(--gold-lt); }
.cta-band-text p { font-size: 0.88rem; line-height: 1.75; color: rgba(245,241,235,0.45); max-width: 460px; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: #111009; border-top: 1px solid var(--rule); padding: 3rem 6vw; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 0.9rem;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,241,235,0.3); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.65rem; color: rgba(245,241,235,0.2); letter-spacing: 0.06em; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-img { aspect-ratio: 16/9; min-height: unset; border-right: none; border-bottom: 1px solid var(--rule); }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .cat-nav-inner { padding: 0; }
  .cat-nav-track { display: none; }
  .cat-nav-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 44px; flex-shrink: 0; background: none; border: none;
    color: var(--gold); font-size: 1.5rem; line-height: 1;
    cursor: pointer; transition: color .15s;
  }
  .cat-nav-arrow:disabled { color: rgba(184,150,106,0.2); cursor: default; }
  .cat-nav-label {
    display: flex; flex: 1; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; padding: 0.8rem 0.25rem; cursor: pointer; min-height: 52px;
  }
  .cat-nav-label-text {
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-lt); text-align: center; white-space: nowrap;
    font-family: 'Jost', sans-serif;
  }
  .cat-nav-dots { display: flex; gap: 5px; align-items: center; }
  .cat-nav-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(184,150,106,0.3); transition: background .2s; }
  .cat-nav-dot.active { background: var(--gold); }
  .articles-grid { grid-template-columns: 1fr; }
  .cta-band-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { text-align: center; }
}
