/* ============================
   ARTICLE PAGES — La Mer d'Arlau
   v1
============================ */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--sage);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ── Article Header ─────────────────────── */
.article-header {
  background: var(--cream-dark);
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}
.article-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--sage); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.article-tag {
  background: var(--sage);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
}
.article-date, .article-readtime {
  font-size: 0.75rem;
  color: var(--text-light);
}
.article-date::before { content: '·'; margin-right: 0.9rem; }
.article-readtime::before { content: '·'; margin-right: 0.9rem; }

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.article-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Hero image ─────────────────────────── */
.article-hero {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ── Article layout ─────────────────────── */
.article-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Article content ────────────────────── */
.article-content {
  min-width: 0;
}
.article-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  margin: 2.5rem 0 0.9rem;
  color: var(--charcoal);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 1.8rem 0 0.6rem;
  color: var(--sage-dark);
}
.article-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content ul, .article-content ol {
  margin: 0.6rem 0 1.4rem 1.4rem;
}
.article-content li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}
.article-content strong { color: var(--charcoal); font-weight: 600; }
.article-content a { color: var(--sage); text-decoration: underline; }
.article-content a:hover { color: var(--sage-dark); }

/* Highlight box */
.article-highlight {
  background: var(--cream-dark);
  border-left: 3px solid var(--sage);
  padding: 1.1rem 1.4rem;
  border-radius: 0 6px 6px 0;
  margin: 1.8rem 0;
}
.article-highlight p { margin: 0; font-style: italic; }

/* ── Inline CTA ─────────────────────────── */
.article-cta {
  background: var(--charcoal);
  color: var(--white);
  padding: 2rem 2.2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}
.article-cta p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.article-cta .btn-primary {
  border-color: var(--sage);
  color: white;
  text-decoration: none;
}

/* ── FAQ section ────────────────────────── */
.article-faq {
  margin-top: 3rem;
  border-top: 1.5px solid var(--cream-dark);
  padding-top: 2.5rem;
}
.article-faq > h2 {
  margin-top: 0;
}
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 1.1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.55rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.faq-item h3::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open h3::after { content: '−'; }
.faq-answer {
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin-bottom: 0; color: var(--text-light); font-size: 0.95rem; }

/* ── Sidebar ────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 6rem;
}
.sidebar-booking-card {
  background: var(--charcoal);
  color: var(--white);
  padding: 1.8rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}
.sidebar-booking-card h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 0.5rem;
}
.sidebar-booking-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-bottom: 1.3rem;
  line-height: 1.55;
}
.sidebar-rating {
  font-size: 0.78rem;
  color: var(--sage-light);
  margin-bottom: 1rem;
}

.sidebar-related {
  background: var(--cream-dark);
  padding: 1.5rem 1.8rem;
  border-radius: 8px;
}
.sidebar-related h3 {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.sidebar-related ul {
  list-style: none;
  margin: 0; padding: 0;
}
.sidebar-related li {
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.sidebar-related li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-related a {
  font-size: 0.85rem;
  color: var(--sage-dark);
  line-height: 1.4;
}
.sidebar-related a:hover { color: var(--sage); }

/* ── Articles index page ────────────────── */
.articles-hero {
  background: var(--charcoal);
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  color: var(--white);
}
.articles-hero h1 { color: var(--white); margin-bottom: 0.8rem; }
.articles-hero p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto; }

.articles-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}
.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.article-card-img {
  height: 180px;
  overflow: hidden;
}
.article-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.article-card-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.article-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.article-card-footer {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .article-header { padding: 6rem 1.2rem 2.5rem; }
  .article-hero img { height: 240px; }
  .article-wrap { padding: 2.5rem 1.2rem; }
  .article-sidebar { position: static; }
  .articles-grid { grid-template-columns: 1fr; padding: 2.5rem 1.2rem; }
}
