/* ============================================================
   PREMIUM EDITORIAL BLOG — Nature-Inspired Magazine Design
   Color palette: Forest Green (#2F5D50), Sage (#8BA888),
   Charcoal (#1D1D1D), Warm White (#FAFAF7), Beige (#F2EFE8)
   ============================================================ */

/* ---------- Variables & Reset Overrides ---------- */
.editorial {
  --green-dark: #2F5D50;
  --green-sage: #8BA888;
  --charcoal: #1D1D1D;
  --warm-white: #FAFAF7;
  --beige: #F2EFE8;
  --beige-dark: #E8E3D8;
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --radius-card: 20px;
  --radius-sm: 12px;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-hover: 0 20px 50px rgba(0,0,0,0.10);
}
.editorial *, .editorial *::before, .editorial *::after { box-sizing: border-box; }
.editorial { background-image: none !important; }
.editorial .container { overflow: visible !important; }
.editorial header { background: none; padding: 0; text-align: left; color: inherit; }
.editorial h1, .editorial h2, .editorial h3, .editorial h4 { margin: 0; padding: 0; color: inherit; }
.editorial h1 { font-size: inherit; }
.editorial h2 { font-size: inherit; font-weight: inherit; line-height: inherit; margin-bottom: inherit; padding-bottom: 0; }
.editorial form { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.editorial input[type="text"], .editorial input[type="email"], .editorial input[type="search"] { width: auto; padding: 0; margin: 0; border: none; border-radius: 0; }

/* ---------- Typography ---------- */
.editorial .section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-sage);
  margin-bottom: 0.75rem;
  display: block;
}
.editorial .section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.editorial .section-subtitle {
  font-size: 1.05rem;
  color: #6B7280;
  line-height: 1.6;
  max-width: 540px;
}
.editorial .accent-line {
  width: 50px;
  height: 3px;
  background: var(--green-dark);
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ---------- Hero ---------- */
.editorial-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--charcoal);
}


.editorial-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.editorial-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}
.editorial-hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  transform: translateY(-50%);
  padding: 2rem 0;
}
.editorial-hero-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.editorial-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.editorial-hero-breadcrumb a { color: var(--gold-light); transition: opacity 0.2s; }
.editorial-hero-breadcrumb a:hover { opacity: 0.8; }
.editorial-hero-breadcrumb .sep { color: rgba(255,255,255,0.35); }

.editorial-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.editorial-hero-title a { color: white; transition: opacity 0.3s; }
.editorial-hero-title a:hover { opacity: 0.85; }
.editorial-hero-blog-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  font-weight: 700;
  line-height: 1.1;
  color: white !important;
  margin: 0 auto 0.5rem;  
  letter-spacing: 0.05em;
}

.editorial-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}
.editorial-hero-meta .cat-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  transition: background 0.2s;
}
.editorial-hero-meta .cat-pill:hover { background: rgba(255,255,255,0.25); }

.editorial-hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.editorial-hero-search input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  padding-right: 3rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: white;
  outline: none;
  transition: background 0.3s;
}
.editorial-hero-search input::placeholder { color: rgba(255,255,255,0.55); }
.editorial-hero-search input:focus { background: rgba(255,255,255,0.2); }
.editorial-hero-search button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}
.editorial-hero-search button:hover { color: white; }

/* ---------- Section Spacing ---------- */
.editorial-section { padding: 5rem 0; }
.editorial-section-beige { background: var(--beige); }
.editorial-section-dark { background: var(--charcoal); color: white; }
.editorial-section-dark .section-title { color: white; }
.editorial-section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.editorial-section-dark .accent-line { background: var(--green-sage); }

/* ---------- Popular Articles (Asymmetrical Grid) ---------- */
.popular-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.popular-featured {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease-out-expo);
  cursor: pointer;
}
.popular-featured:hover { box-shadow: var(--shadow-hover); }
.popular-featured-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.popular-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.popular-featured:hover .popular-featured-img img { transform: scale(1.06); }
.popular-featured-img .cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  z-index: 2;
}
.popular-featured-body {
  padding: 1.75rem;
}
.popular-featured-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}
.popular-featured-body h3 a { color: inherit; transition: color 0.2s; }
.popular-featured-body h3 a:hover { color: var(--green-dark); }
.popular-featured-body p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.popular-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--green-sage);
}

.popular-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.popular-side-card {
  display: flex;
  gap: 1rem;
  background: var(--warm-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
  cursor: pointer;
}
.popular-side-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.popular-side-img {
  width: 130px;
  min-height: 130px;
  flex-shrink: 0;
  overflow: hidden;
}
.popular-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.popular-side-card:hover .popular-side-img img { transform: scale(1.08); }
.popular-side-body {
  padding: 1rem 1rem 1rem 0;
  flex: 1;
  min-width: 0;
}
.popular-side-body .cat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
  display: block;
}
.popular-side-body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.popular-side-body h4 a { color: inherit; transition: color 0.2s; }
.popular-side-body h4 a:hover { color: var(--green-dark); }
.popular-side-body .date {
  font-size: 0.75rem;
  color: var(--green-sage);
}

/* ---------- Latest Articles (3-column grid) ---------- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.latest-card {
  background: var(--warm-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
  cursor: pointer;
}
.latest-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.latest-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.latest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.latest-card:hover .latest-card-img img { transform: scale(1.08); }
.latest-card-img .cat-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  z-index: 2;
}
.latest-card-body {
  padding: 1.5rem;
}
.latest-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
  transition: color 0.2s;
}
.latest-card-body h3 a { color: inherit; }
.latest-card:hover .latest-card-body h3 { color: var(--green-dark); }
.latest-card-body p {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.latest-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--green-sage);
}
.latest-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--green-sage); }

/* Load More */
.editorial-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.editorial-load-more button {
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 2px solid var(--charcoal);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}
.editorial-load-more button:hover {
  background: var(--charcoal);
  color: white;
}

/* ---------- Featured Projects (Masonry-style) ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1rem;
}
.projects-grid .project-card:first-child {
  grid-row: span 2;
}
.project-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--charcoal);
  min-height: 200px;
  cursor: pointer;
}
.project-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.project-card:hover .project-card-img { transform: scale(1.06); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
  transition: opacity 0.4s;
}
.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.5rem;
}
.project-card-content .cat-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 0.5rem;
}
.project-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.project-card-content p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.project-card-content .project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: gap 0.3s;
}
.project-card-content .project-cta:hover { gap: 0.7rem; }

/* First card dominant */
.projects-grid .project-card:first-child .project-card-content h3 {
  font-size: 1.5rem;
}
.projects-grid .project-card:first-child {
  min-height: 420px;
}

/* ---------- CTA Section ---------- */
.editorial-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.editorial-cta-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}
.editorial-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.editorial-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: 1rem;
}
.editorial-cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.editorial-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-primary {
  padding: 0.9rem 2.25rem;
  background: white;
  color: var(--charcoal);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-primary:hover { background: var(--beige); transform: translateY(-2px); }
.cta-secondary {
  padding: 0.9rem 2.25rem;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-secondary:hover { border-color: white; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.editorial-footer {
  background: var(--charcoal);
  color: white;
  position: relative;
  overflow: hidden;
}
.editorial-footer-bg {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 120%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}
.editorial-footer-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.editorial-footer-brand {
  margin-bottom: 3rem;
}
.editorial-footer-brand h2 {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  color: rgba(255,255,255,0.06);
  margin-bottom: -0.5rem;
  pointer-events: none;
  user-select: none;
}
.editorial-footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.editorial-footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 400px;
  line-height: 1.6;
}
.editorial-footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.editorial-footer-links h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-sage);
  margin-bottom: 0.75rem;
}
.editorial-footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.editorial-footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.editorial-footer-links a:hover { color: white; }
.editorial-footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.editorial-footer-social {
  display: flex;
  gap: 0.75rem;
}
.editorial-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  font-size: 0.8rem;
}
.editorial-footer-social a:hover { border-color: white; color: white; }

/* ---------- Animations (GSAP fallback / CSS) ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .popular-grid { grid-template-columns: 1fr; }
  .popular-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .popular-side-img { width: 100px; min-height: 100px; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid .project-card:first-child { grid-row: auto; min-height: 280px; }
  .editorial-footer-brand h2 { font-size: clamp(3rem, 10vw, 6rem); }
}

@media (max-width: 768px) {
  .editorial-hero { height: 70vh; min-height: 500px; }
  .editorial-hero-content { padding: 2rem 0; }
  .editorial-section { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }
  .popular-side { grid-template-columns: 1fr; }
  .popular-side-img { width: 100px; min-height: 100px; }
  .latest-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card:first-child { min-height: 240px; }
  .editorial-cta { padding: 3rem 0; }
  .editorial-footer-inner { padding: 3rem 1.5rem 2rem; }
  .editorial-footer-links { gap: 2rem; }
  .editorial-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .editorial-hero { height: 65vh; min-height: 420px; }
  .editorial-hero-title { font-size: 1.8rem; }
  .editorial-hero-search { max-width: 100%; }
  .popular-featured-body { padding: 1.25rem; }
  .popular-featured-body h3 { font-size: 1.2rem; }
  .latest-card-body { padding: 1rem; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
}
