/* ═══════════════════════════════════════════════════════════════════════════
   PRISM Theme — blog.css
   Shared styles for the blog (archive.php, home.php, single.php).

   The landing page templates are self-contained monoliths with their own
   inline <style> block. This file mirrors their design tokens and chrome
   (nav + footer) so the blog matches visually without a third copy.

   If a token changes in page-prism-landing-v2.php, change it here too.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-main: #FCFCFC;
  --c-dark: #0D0D0D;
  --c-blue: #03588C;
  --c-orange: #D9642A;
  --c-cream: #F2CDAC;
  --c-prism-a: #a8edff;   /* cyan  — light split  */
  --c-prism-b: #d4aaff;   /* violet               */
  --c-prism-c: #ffcba4;   /* warm cream           */
  --c-prism-d: #7affdb;   /* mint                 */
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-dark);
  color: var(--c-main);
  overflow-x: hidden;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Hide any plugin-injected theme chrome, same as the landing pages */
.site-header, .site-footer, #masthead, #colophon,
.elementor-location-header, .elementor-location-footer { display: none !important; }

img { max-width: 100%; height: auto; }

/* ═══ NAV ═══════════════════════════════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: transparent;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s;
}
nav.scrolled {
  background: rgba(13,13,13,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img {
  height: 42px; width: 42px;
  object-fit: contain;
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.nav-logo img:hover {
  transform: scale(1.10);
  filter: drop-shadow(0 0 8px rgba(168,237,255,0.6));
}

/* Right-hand cluster: language toggle + booking CTA. The blog nav carries no
   section links — those are landing-page anchors and would be dead here. */
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-cta {
  font-size: 0.71rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--c-orange);
  color: var(--c-orange);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.3s;
}
.nav-cta:hover {
  background: var(--c-orange);
  color: var(--c-main);
  box-shadow: 0 0 20px rgba(217,100,42,0.35);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 1.5rem;
  border: 1px solid rgba(252,252,252,0.15);
  overflow: hidden;
}
.lang-toggle a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  color: rgba(252,252,252,0.4);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.lang-toggle a:hover { color: var(--c-main); background: rgba(252,252,252,0.06); }
.lang-toggle a.active { background: var(--c-orange); color: var(--c-main); }
.lang-toggle .lang-sep {
  width: 1px; height: 100%;
  background: rgba(252,252,252,0.15);
  align-self: stretch;
}


/* ═══ BLOG HEADER ═══════════════════════════════════════════════════════════ */

.blog-hero {
  padding: 11rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(252,252,252,0.06);
}
.blog-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--c-prism-a) 25%, var(--c-prism-b) 50%, var(--c-orange) 75%, transparent);
  opacity: 0.25;
}
.blog-inner { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }

.blog-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-orange); margin-bottom: 1.1rem;
}
.blog-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95; letter-spacing: 0.01em;
}
.blog-h1 em {
  font-family: var(--font-serif); font-style: italic;
  color: var(--c-cream); display: block; margin-top: -0.1em;
}
.blog-intro {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: 1rem; font-weight: 300; line-height: 1.7;
  color: rgba(252,252,252,0.55);
}

/* ═══ POST GRID ═════════════════════════════════════════════════════════════ */

.post-list { padding: 4.5rem 0 6rem; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 3rem 2.5rem;
}

.post-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
}
.post-card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #141414;
  margin-bottom: 1.25rem;
}
.post-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s;
}
.post-card:hover .post-card-media img {
  transform: scale(1.05);
  filter: saturate(1.1);
}
.post-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,13,13,0.55));
  pointer-events: none;
}
/* Placeholder when a post has no featured image */
.post-card-media.is-empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(168,237,255,0.16), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(212,170,255,0.14), transparent 60%),
    #141414;
}

.post-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(252,252,252,0.35);
  margin-bottom: 0.7rem;
}
.post-meta .meta-sep { width: 12px; height: 1px; background: rgba(252,252,252,0.25); }
.post-meta a { color: var(--c-orange); text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem; line-height: 1.1; letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
  transition: color 0.25s;
}
.post-card:hover .post-card-title { color: var(--c-cream); }

.post-card-excerpt {
  font-size: 0.85rem; font-weight: 300; line-height: 1.7;
  color: rgba(252,252,252,0.5);
  margin-bottom: 1rem;
}
.post-card-more {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-orange);
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto;
}
.post-card-more::after {
  content: ''; width: 18px; height: 1px; background: var(--c-orange);
  transition: width 0.3s var(--ease);
}
.post-card:hover .post-card-more::after { width: 34px; }

.post-empty {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.4rem; color: rgba(252,252,252,0.4);
  padding: 3rem 0;
}

/* ═══ PAGINATION ════════════════════════════════════════════════════════════ */

.prism-pagination { margin-top: 4.5rem; }
.prism-pagination .nav-links {
  display: flex; gap: 0.5rem; align-items: center;
  justify-content: center; list-style: none;
}
.prism-pagination .page-numbers {
  font-size: 0.72rem; letter-spacing: 0.14em;
  padding: 0.55rem 0.9rem;
  color: rgba(252,252,252,0.45);
  text-decoration: none;
  border: 1px solid rgba(252,252,252,0.1);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.prism-pagination .page-numbers:hover {
  color: var(--c-main); border-color: rgba(252,252,252,0.3);
}
.prism-pagination .page-numbers.current {
  color: var(--c-main);
  background: var(--c-orange);
  border-color: var(--c-orange);
}
.prism-pagination .page-numbers.dots { border-color: transparent; }
.prism-pagination .screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ═══ SINGLE POST ═══════════════════════════════════════════════════════════ */

.single-wrap { padding: 9.5rem 0 6rem; }
.single-inner { max-width: 760px; margin: 0 auto; padding: 0 3rem; }

.single-back {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(252,252,252,0.4); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.single-back:hover { color: var(--c-orange); }
.single-back::before {
  content: ''; width: 18px; height: 1px; background: currentColor;
}

.single-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02; letter-spacing: 0.01em;
  margin: 1rem 0 1.5rem;
}

.single-featured {
  margin: 2.5rem 0 3rem;
  position: relative; overflow: hidden;
}
.single-featured img { width: 100%; display: block; }

/* Post body typography — applies to the_content() output */
.post-content {
  font-size: 1.02rem; font-weight: 300; line-height: 1.85;
  color: rgba(252,252,252,0.78);
}
.post-content > * + * { margin-top: 1.5rem; }
.post-content h2 {
  font-family: var(--font-display);
  font-size: 2.1rem; line-height: 1.15; letter-spacing: 0.01em;
  color: var(--c-main);
  margin-top: 3.2rem;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.45rem; line-height: 1.2; letter-spacing: 0.02em;
  color: var(--c-main);
  margin-top: 2.4rem;
}
.post-content h4 {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-orange);
  margin-top: 2.2rem;
}
.post-content p { font-size: inherit; }
.post-content strong { font-weight: 500; color: var(--c-main); }
.post-content em { font-family: var(--font-serif); font-style: italic; }
.post-content a {
  color: var(--c-cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(242,205,172,0.4);
  transition: text-decoration-color 0.2s;
}
.post-content a:hover { text-decoration-color: var(--c-cream); }
.post-content ul, .post-content ol { padding-left: 1.3rem; }
.post-content li + li { margin-top: 0.6rem; }
.post-content li::marker { color: var(--c-orange); }
.post-content blockquote {
  border-left: 2px solid var(--c-orange);
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.3rem; line-height: 1.6;
  color: var(--c-cream);
}
.post-content blockquote p { font-size: inherit; }
.post-content img, .post-content figure { margin-top: 2.2rem; }
.post-content figcaption {
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: rgba(252,252,252,0.35); margin-top: 0.6rem;
}
.post-content hr {
  border: none; height: 1px;
  background: rgba(252,252,252,0.1);
  margin: 3rem 0;
}
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: rgba(252,252,252,0.07);
  padding: 0.15em 0.4em;
}
.post-content pre {
  background: #141414;
  border: 1px solid rgba(252,252,252,0.08);
  padding: 1.2rem; overflow-x: auto;
  font-size: 0.85rem; line-height: 1.6;
}
.post-content pre code { background: none; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.post-content th, .post-content td {
  border: 1px solid rgba(252,252,252,0.1);
  padding: 0.7rem 0.9rem; text-align: left;
}
.post-content th { color: var(--c-main); font-weight: 500; }

.single-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(252,252,252,0.08);
}
.single-tags a {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(252,252,252,0.4); text-decoration: none;
  border: 1px solid rgba(252,252,252,0.12);
  padding: 0.4rem 0.8rem;
  transition: color 0.2s, border-color 0.2s;
}
.single-tags a:hover { color: var(--c-orange); border-color: var(--c-orange); }

/* ═══ POST CTA ══════════════════════════════════════════════════════════════ */

.post-cta {
  margin-top: 4rem;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(252,252,252,0.1);
  text-align: center;
  position: relative; overflow: hidden;
}
.post-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--c-prism-a) 25%, var(--c-prism-b) 50%, var(--c-orange) 75%, transparent);
  opacity: 0.4;
}
.post-cta-h {
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1.1;
  margin-bottom: 0.9rem;
}
.post-cta-h em { font-family: var(--font-serif); font-style: italic; color: var(--c-cream); }
.post-cta p {
  font-size: 0.88rem; font-weight: 300; line-height: 1.7;
  color: rgba(252,252,252,0.5);
  max-width: 44ch; margin: 0 auto 1.8rem;
}
.post-cta .nav-cta { display: inline-block; }

/* ═══ RELATED POSTS ═════════════════════════════════════════════════════════ */

.related { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid rgba(252,252,252,0.08); }
.related-h {
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(252,252,252,0.4);
  margin-bottom: 2rem;
}
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }
.related .post-card-title { font-size: 1.2rem; }

/* ═══ FOOTER ════════════════════════════════════════════════════════════════ */

footer {
  background: #050505;
  padding: 3rem 3rem 2rem;
  border-top: 1px solid rgba(252,252,252,0.05);
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--c-prism-a) 25%, var(--c-prism-b) 50%, var(--c-orange) 75%, transparent);
  opacity: 0.3;
}
.footer-row1 {
  display: grid; grid-template-columns: 2fr 1fr 2fr;
  gap: 2rem; align-items: start;
  margin-bottom: 2.5rem;
}
.footer-mission {
  font-size: 0.73rem; font-weight: 300;
  color: rgba(252,252,252,0.28); line-height: 1.7;
}
.footer-legal {
  display: flex; flex-direction: column; gap: 0.55rem; align-items: center;
}
.footer-legal a {
  font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(252,252,252,0.22); text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(252,252,252,0.6); }
.footer-social {
  display: flex; gap: 1.25rem;
  justify-content: flex-end; align-items: center;
}
.footer-social a {
  color: rgba(252,252,252,0.28);
  transition: color 0.3s, transform 0.3s;
  display: flex;
}
.footer-social a:hover { color: var(--c-prism-a); transform: scale(1.15); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-row2 {
  text-align: center;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(252,252,252,0.13);
  border-top: 1px solid rgba(252,252,252,0.04);
  padding-top: 1.5rem;
}

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  nav { padding: 1rem 1.25rem; gap: 0.75rem; }
  .nav-cta { white-space: nowrap; padding: 0.5rem 0.85rem; font-size: 0.62rem; letter-spacing: 0.12em; }
  .nav-actions { gap: 0.7rem; }
  .lang-toggle { margin-left: 0; }
  .lang-toggle a { padding: 0.4rem 0.55rem; font-size: 0.6rem; letter-spacing: 0.14em; }

  .blog-inner, .single-inner { padding: 0 1.5rem; }
  .blog-hero { padding: 8.5rem 0 3rem; }
  .post-list { padding: 3rem 0 4rem; }
  .post-grid { grid-template-columns: 1fr; gap: 3rem; }
  .single-wrap { padding: 7.5rem 0 4rem; }
  .post-cta { padding: 2.2rem 1.5rem; }

  footer { padding: 2.5rem 1.5rem 1.5rem; }
  .footer-row1 { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-legal { align-items: center; }
  .footer-social { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
