@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Color Palette - Chez Eric PRL Original Warm Luxury Upgrade */
  --color-brand-gold: #8a7641;
  --color-brand-gold-hover: #a38c4e;
  --color-brand-gold-light: rgba(138, 118, 65, 0.08);
  --color-brand-gold-glow: rgba(138, 118, 65, 0.2);

  --color-dark-obsidian: #111111;
  --color-dark-slate: #1e293b;
  --color-text-main: #27272a;
  --color-text-muted: #52525b;
  --color-text-subtle: #818cf8;
  
  --color-bg-page: #fdfbf7;
  --color-bg-surface: #ffffff;
  --color-bg-alt: #f4efe6;
  
  --color-border: #e4e4e7;
  --color-border-subtle: #f4f4f5;

  /* Fonts - Matching Original Cardo + Inter design language */
  --font-heading: 'Cardo', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans-title: 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 8px 25px rgba(138, 118, 65, 0.2);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 76px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

/* Typography - Upgraded original Cardo serif headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-obsidian);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-brand-gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-brand-gold-hover);
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.reading-container {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.main-content {
  flex: 1 0 auto;
}

/* Photo Gallery Collage Grid */
.photo-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.photo-grid-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px solid #ffffff;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-alt);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-grid-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.photo-grid-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .photo-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Hero Graphic Illustration */
.hero-graphic-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(138, 118, 65, 0.15));
}

/* Simple YouTube Video Card */
.simple-video-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 32px auto 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  background-color: #0f172a;
}

.simple-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.simple-video-card:hover .simple-video-thumb {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.simple-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}



.simple-video-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.simple-video-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease;
}

.simple-video-card:hover .simple-video-btn {
  background: rgba(255, 255, 255, 0.35);
}

/* Header & Glassmorphism Nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
  color: var(--color-dark-obsidian) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand-logo-img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-text-main) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand-gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand-gold) !important;
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-yt-btn {
  background-color: var(--color-brand-gold);
  color: #ffffff !important;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(138, 118, 65, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-yt-btn:hover {
  background-color: var(--color-brand-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-dark-obsidian);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Buttons & Badges */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-brand-gold);
  color: #ffffff !important;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(138, 118, 65, 0.25);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-primary:hover {
  background-color: var(--color-brand-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.badge-pill {
  display: inline-block;
  padding: 4px 14px;
  background-color: var(--color-brand-gold-light);
  color: var(--color-brand-gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* Card Component Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand-gold);
}

.card-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: var(--color-bg-alt);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.card-category {
  color: var(--color-brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-date {
  color: var(--color-text-muted);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-title a {
  color: var(--color-dark-obsidian);
}

.card-title a:hover {
  color: var(--color-brand-gold);
}

.card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin: 0;
}

/* Article Reading Template */
.article-header-section {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0 48px 0;
  text-align: center;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

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

.article-title {
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.article-meta-bar .author-name {
  color: var(--color-dark-obsidian);
  font-weight: 600;
}

.article-cover-wrap {
  margin: -32px auto 48px auto;
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-body-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-main);
  padding-bottom: 64px;
}

.article-body-content p {
  margin-bottom: 1.5rem;
}

.article-body-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body-content blockquote {
  border-left: 4px solid var(--color-brand-gold);
  background: var(--color-brand-gold-light);
  padding: 22px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-dark-obsidian);
}

.article-body-content ul, .article-body-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body-content li {
  margin-bottom: 0.5rem;
}

/* Author Bio Card */
.author-bio-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 48px 0;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-brand-gold);
  flex-shrink: 0;
}

.author-info h4 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.author-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Adjacent Post Nav */
.adjacent-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .adjacent-nav {
    grid-template-columns: 1fr;
  }
}

.adjacent-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.adjacent-card:hover {
  border-color: var(--color-brand-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.adjacent-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-brand-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.adjacent-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark-obsidian);
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
}

/* Accordion Component */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item:hover {
  border-color: var(--color-brand-gold);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark-obsidian);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--color-brand-gold);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 0 24px 24px 24px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* Modal Backdrop - Absolute priority popup styling */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999 !important;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.modal-content {
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Filter Bar & Pills */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background-color: var(--color-brand-gold);
  color: #ffffff;
  border-color: var(--color-brand-gold);
  box-shadow: 0 4px 12px rgba(138, 118, 65, 0.25);
}

/* Timeline Layout */
.timeline-track {
  position: relative;
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--color-brand-gold) 0%, rgba(138, 118, 65, 0.15) 100%);
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  width: 46%;
  margin-bottom: 40px;
}

.timeline-node.left {
  left: 0;
}

.timeline-node.right {
  left: 54%;
}

.timeline-marker {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  background-color: var(--color-brand-gold);
  border: 4px solid var(--color-bg-page);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px rgba(138, 118, 65, 0.5);
}

.timeline-node.left .timeline-marker {
  right: -31px;
}

.timeline-node.right .timeline-marker {
  left: -31px;
}

@media (max-width: 768px) {
  .timeline-track::before {
    left: 20px;
  }
  .timeline-node {
    width: calc(100% - 50px);
    left: 50px !important;
  }
  .timeline-node.left .timeline-marker, .timeline-node.right .timeline-marker {
    left: -39px;
    right: auto;
  }
}

/* Footer Component */
.site-footer {
  background: var(--color-dark-obsidian);
  color: #a1a1aa;
  padding: 64px 0 32px 0;
  border-top: 1px solid #27272a;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #a1a1aa;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #a1a1aa;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-brand-gold);
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
}
