/* FORASTERA V2 BLOG — EDITORIAL LIGHT MODE */

:root {
  --blog-black: #050505;
  --blog-dark: #111111;
  --blog-cream: #f5f1ea;
  --blog-paper: #ffffff;
  --blog-text: #151515;
  --blog-muted: rgba(0,0,0,0.68);
  --blog-border: rgba(0,0,0,0.1);
  --blog-red: var(--f-red, #930000);
}

.forastera-blog {
  background: var(--blog-cream);
  color: var(--blog-text);
}

/* HERO / DARK AREAS */

.blog-hero {
  position: relative;
}

.blog-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.62) 45%,
    rgba(0,0,0,0.88) 100%
  );
}

.blog-hero,
.blog-hero h1,
.blog-hero .sub-title,
.blog-hero .sub-details,
.blog-hero .f-sub-headline {
  color: #fff;
}

/* MAIN LIGHT BACKGROUNDS */

.blog-main-section,
.article-main-section,
.blog-cluster-section,
.related-posts-section {
  background: var(--blog-cream);
  color: var(--blog-text);
}

.blog-main-section,
.article-main-section {
  padding: 90px 0;
}

/* BLOG CLUSTERS */

.blog-cluster-section {
  padding: 80px 0 40px;
}

.blog-cluster-section h2 {
  max-width: 920px;
  margin: 0 0 34px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--blog-red);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.blog-cluster-card {
  display: block;
  padding: 26px;
  min-height: 170px;
  background: var(--blog-paper);
  border: 1px solid var(--blog-border);
  color: var(--blog-muted);
  text-decoration: none;
  line-height: 1.6;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-cluster-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--blog-text);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.blog-cluster-card:hover {
  border-color: var(--blog-red);
  transform: translateY(-3px);
}

/* FEATURED POSTS — DARK EDITORIAL FEATURE */

.featured-posts-section {
  padding: 80px 0;
  background: var(--blog-black);
  color: #fff;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* MAIN FEATURE */

.featured-main {
  position: relative;
  overflow: hidden;
  min-height: 680px;
}

.featured-main a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.featured-main-image {
  position: absolute;
  inset: 0;
}

.featured-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0.86) 100%
    );
}

.featured-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-main-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px;
  z-index: 2;
}

.featured-main-content span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blog-red);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.featured-main-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.featured-main-content p {
  max-width: 760px;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
}

/* SIDE FEATURES */

.featured-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.featured-side-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  background: var(--blog-dark);
  border: 1px solid rgba(255,255,255,0.1);
}

.featured-side-card a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.featured-side-image {
  position: absolute;
  inset: 0;
}

.featured-side-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.82) 100%
    );
}

.featured-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-side-card:hover img {
  transform: scale(1.04);
}

.featured-side-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  z-index: 2;
}

.featured-side-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

/* MOBILE */

@media (max-width: 980px) {

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 540px;
  }

  .featured-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .featured-side-card {
    min-height: 260px;
  }

}

@media (max-width: 640px) {

  .featured-main {
    min-height: 460px;
  }

  .featured-main-content {
    padding: 28px;
  }

  .featured-main-content h2 {
    line-height: 0.96;
  }

  .featured-side {
    grid-template-columns: 1fr;
  }

}

/* BLOG GRID */

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

.blog-card {
  background: var(--blog-paper);
  border: 1px solid var(--blog-border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--blog-red);
}

.blog-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #ddd;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.blog-card-content {
  padding: 26px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--blog-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card-title {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.blog-card-title a {
  color: var(--blog-text);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--blog-red);
}

.blog-card-text {
  margin-bottom: 24px;
  color: var(--blog-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ARTICLE */

.article-hero h1 {
  max-width: 980px;
}

.article-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: start;
}

.article-content {
  max-width: 850px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 42px;
  color: var(--blog-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 70px;
  margin-bottom: 22px;
  color: var(--blog-text);
  line-height: 1;
  text-transform: uppercase;
}

.article-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.article-content h3 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.article-content p {
  margin-bottom: 28px;
  color: rgba(0,0,0,0.82);
  font-size: 1.12rem;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  margin-bottom: 34px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
  color: rgba(0,0,0,0.82);
  line-height: 1.75;
}

.article-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 50px 0;
}

.article-content a {
  color: var(--blog-text);
  text-decoration: none;
  border-bottom: 2px solid var(--blog-red);
}

.article-content blockquote {
  margin: 60px 0;
  padding-left: 30px;
  border-left: 4px solid var(--blog-red);
  color: rgba(0,0,0,0.82);
  font-size: 1.4rem;
  line-height: 1.5;
}

/* LANGUAGE SWITCH */

.article-language-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.article-language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--blog-border);
  color: var(--blog-muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.article-language-switch a:hover,
.article-language-switch a.active {
  border-color: var(--blog-red);
  color: var(--blog-text);
  background: rgba(147,0,0,0.08);
}

/* ARTICLE FAQ */

.article-faq-block {
  margin-top: 80px;
  padding: 46px;
  background: var(--blog-paper);
  border: 1px solid var(--blog-border);
}

.article-faq-block h2 {
  margin: 0 0 34px;
  color: var(--blog-text);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.faq-item {
  padding: 26px 0;
  border-top: 1px solid var(--blog-border);
}

.faq-item h3 {
  margin: 0 0 14px;
  color: var(--blog-text);
  font-size: 1.35rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.faq-item p {
  margin: 0;
  color: rgba(0,0,0,0.78);
  line-height: 1.75;
}

/* INTERNAL LINKS */

.article-internal-links {
  margin-top: 80px;
  padding-top: 50px;
  border-top: 1px solid var(--blog-border);
}

.article-internal-links h2 {
  margin: 0 0 28px;
  color: var(--blog-text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}

.internal-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.internal-link-card {
  display: block;
  padding: 24px;
  background: var(--blog-paper);
  border: 1px solid var(--blog-border);
  color: var(--blog-muted);
  text-decoration: none;
  line-height: 1.6;
}

.internal-link-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--blog-text);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.internal-link-card:hover {
  border-color: var(--blog-red);
}

/* RELATED POSTS */

.related-posts-section {
  margin-top: 100px;
}

.related-posts-section h2 {
  margin-bottom: 36px;
  color: var(--blog-text);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

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

.related-post-card {
  background: var(--blog-paper);
  border: 1px solid var(--blog-border);
  overflow: hidden;
}

.related-post-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.related-post-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-post-card:hover img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 24px;
}

.related-post-content h3 {
  margin: 0 0 16px;
  color: var(--blog-text);
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.related-post-content p {
  color: var(--blog-muted);
  line-height: 1.7;
}

/* ARTICLE SIDEBAR CTA */

.article-side-cta {
  position: sticky;
  top: 120px;
  padding: 30px;
  background: var(--blog-black);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.article-side-cta h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.article-side-cta p {
  margin-bottom: 22px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.article-side-cta .btn-dark {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  text-align: center;
}

/* CATEGORY HERO */

.category-hero {
  position: relative;
  padding: 140px 0 90px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.9) 100%),
    url('/assets/img/blog/forastera-blog-craft-beer-mallorca.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.category-hero h1 {
  max-width: 920px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.category-hero p {
  max-width: 760px;
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* CTA + FOOTER DARK */

.cta-section {
  padding: 90px 0 70px;
  background: var(--blog-cream);
  color: var(--blog-text);
  border-top: 1px solid var(--blog-border);
  text-align: center;
}

.cta-section h2 {
  color: var(--blog-text);
}

.cta-section p {
  color: var(--blog-muted);
}

.cta-section .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 220px;
  padding: 15px 26px;
  margin-top: 22px;
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-section .btn-dark:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
    
}

/* MOBILE NAVIGATION */

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .blog-grid,
  .blog-cluster-grid,
  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-grid,
  .article-container {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 520px;
  }

  .article-side-cta {
    position: relative;
    top: auto;
  }

  .nav-flex {
    position: relative;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--blog-black);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 640px) {
  .blog-main-section,
  .article-main-section,
  .featured-posts-section,
  .blog-cluster-section {
    padding: 60px 0;
  }

  .blog-grid,
  .blog-cluster-grid,
  .related-posts-grid,
  .internal-link-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-content,
  .related-post-content,
  .featured-side-content {
    padding: 22px;
  }

  .featured-main-content {
    padding: 28px;
  }

  .article-content p {
    font-size: 1.04rem;
    line-height: 1.85;
  }

  .article-faq-block {
    padding: 28px 22px;
  }

  .article-side-cta {
    padding: 24px;
  }
}

/* ARTICLE PAGE FIXES */

.article-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.article-hero .hero-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  z-index: 0;
}

.article-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-hero .hero-inner {
  position: relative;
  z-index: 2;
}

.article-hero h1 {
  max-width: 1000px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.article-hero .sub-details {
  display: block;
  max-width: 760px;
  margin-top: 24px;
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Article body typography */

.article-content {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: "Oswald", sans-serif;
}

.article-content p,
.article-content li {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Prevent giant images inside article text */

.article-content > img,
.article-content p > img,
.article-content figure img {
  width: 100%;
  max-width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-content figure {
  margin: 50px 0;
}

.article-content figure img {
  display: block;
}

.article-content figcaption {
  margin-top: 12px;
  color: var(--blog-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer safety */

.main-footer {
  clear: both;
  position: relative;
  z-index: 5;
}

@media (max-width: 640px) {
  .article-hero {
    min-height: 460px;
  }

  .article-hero h1 {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }
}

.article-hero-inner {
  max-width: 960px;
}

.article-hero .sub-details {
  display: none;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

/* ARTICLE NAVIGATION */

.article-navigation-box {
  margin-top: 70px;
  padding: 34px;
  background: var(--blog-paper);
  border: 1px solid var(--blog-border);
}

.article-back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blog-text);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--blog-red);
}

.article-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.article-next-actions .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .article-navigation-box {
    padding: 24px;
  }

  .article-next-actions {
    flex-direction: column;
  }
}

/* ARTICLE TOP NAVIGATION */

.article-top-navigation {
  margin: -16px 0 46px;
}

.article-top-navigation a {
  color: var(--blog-text);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--blog-red);
}