/* ============================================================
   WESTWAY SAFARIS BLOG — Dark Luxury Editorial Theme
   Independent from main site. Safe to edit without risk.
   ============================================================ */

/* --- Google Fonts loaded in HTML head --- */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text-primary: #f0ece4;
  --text-secondary: #a09888;
  --text-muted: #6b6155;
  --accent-gold: #c8a45e;
  --accent-gold-light: #dfc07f;
  --accent-gold-dark: #a8843e;
  --accent-warm: #d4956a;
  --border-subtle: rgba(200, 164, 94, 0.12);
  --border-medium: rgba(200, 164, 94, 0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);
  --max-width-content: 780px;
  --max-width-wide: 1200px;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
}

/* --- Background Texture --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.blog-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  transition: var(--transition-smooth);
}

.blog-nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.blog-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.blog-logo:hover { color: var(--accent-gold-light); }

.blog-logo span {
  color: var(--text-primary);
  font-weight: 300;
}

.blog-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.blog-nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
}

.blog-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

.blog-nav-links a:hover { color: var(--accent-gold); }
.blog-nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent-gold) !important;
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--accent-gold-light) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* Blog Index Hero */
.blog-hero {
  position: relative;
  padding: 10rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,164,94,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--accent-gold);
}

.blog-hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Post Hero */
.post-hero {
  position: relative;
  padding: 0;
  margin-top: 70px;
}

.post-hero-image {
  width: 100%;
  height: 65vh;
  min-height: 450px;
  max-height: 700px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.post-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.85) 50%, transparent 100%);
}

.post-hero-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.post-category {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-gold);
  padding: 0.3rem 0.8rem;
  display: inline-block;
}

.post-read-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.post-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.post-hero-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.post-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 1rem;
}

/* ============================================================
   CONTENT GRID (Blog Index)
   ============================================================ */

.blog-grid-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.blog-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(200,164,94,0.06);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* --- Post Card --- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
  filter: brightness(0.85);
}

.post-card:hover .post-card-image {
  filter: brightness(1);
  transform: scale(1.02);
}

.post-card-image-wrap {
  overflow: hidden;
  position: relative;
}

.post-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-gold);
  padding: 0.25rem 0.7rem;
  z-index: 2;
}

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  transition: var(--transition-smooth);
}

.post-card:hover .post-card-title { color: var(--accent-gold); }

.post-card-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.post-card-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.post-card-read {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */

.post-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 3rem 0 1.2rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1.2rem;
}

.post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  background: var(--accent-gold);
}

.post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-gold-light);
  margin: 2.2rem 0 0.8rem;
  line-height: 1.3;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.85;
}

.post-content p:first-of-type::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 0.12em;
  margin-top: 0.05em;
  color: var(--accent-gold);
  font-weight: 600;
}

.post-content strong {
  color: var(--accent-gold-light);
  font-weight: 600;
}

.post-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.post-content a {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,164,94,0.3);
  transition: var(--transition-smooth);
}

.post-content a:hover {
  border-bottom-color: var(--accent-gold);
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  color: var(--text-primary);
}

.post-content li {
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.post-content ul li::marker {
  color: var(--accent-gold);
}

/* Blockquote */
.post-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--accent-gold);
  background: rgba(200,164,94,0.04);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* In-content image */
.post-content figure {
  margin: 2.5rem -2rem;
  position: relative;
}

.post-content figure img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
}

.post-content figcaption {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.8rem 2rem 0;
  letter-spacing: 0.03em;
}

/* Info Box / Callout */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 2px;
}

.info-box-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.7rem;
}

/* Table */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
}

.post-content th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 2px solid var(--border-medium);
}

.post-content td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.post-content tr:hover td {
  background: rgba(200,164,94,0.04);
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.post-cta {
  max-width: var(--max-width-content);
  margin: 0 auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.post-cta-inner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200,164,94,0.08) 100%);
  border: 1px solid var(--border-medium);
  padding: 3rem;
  text-align: center;
}

.post-cta-inner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.post-cta-inner p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-gold);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-gold-light);
  transform: translateY(-1px);
}

.cta-whatsapp {
  background: #25D366;
  color: #fff;
}

.cta-whatsapp:hover {
  background: #20bd5a;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */

.related-posts {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.related-posts h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.blog-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.footer-links a:hover { color: var(--accent-gold); }

.footer-copy {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-copy a {
  color: var(--accent-gold-dark);
  text-decoration: none;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumbs {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  position: relative;
  z-index: 1;
}

.breadcrumbs a, .breadcrumbs span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumbs a:hover { color: var(--accent-gold); }

.breadcrumbs .sep {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.breadcrumbs .current {
  color: var(--text-secondary);
}

/* ============================================================
   SHARE BAR
   ============================================================ */

.share-bar {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.share-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(200,164,94,0.08);
}

.share-btn svg {
  width: 16px; height: 16px;
  fill: var(--text-secondary);
  transition: var(--transition-smooth);
}

.share-btn:hover svg { fill: var(--accent-gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  html { font-size: 16px; }
  
  .blog-nav-links { 
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .blog-nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  
  .blog-hero { padding: 8rem 1.5rem 3rem; }
  .blog-grid { grid-template-columns: 1fr; }
  
  .post-hero-image { height: 45vh; min-height: 300px; }
  .post-hero-overlay { padding: 3rem 1.5rem 2rem; }
  .post-content { padding: 2rem 1.5rem 3rem; }
  .post-content figure { margin: 2rem -1.5rem; }
  .post-content h2 { font-size: 1.5rem; }
  .post-cta-inner { padding: 2rem 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  
  .post-content p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 { font-size: 1.8rem; }
  .post-hero h1 { font-size: 1.6rem; }
  .post-card-image { height: 180px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
