/* Shared Blog Styles - v3 Theme */
:root {
  --gold: #C5A25B;
  --gold-light: #D4B76A;
  --gold-dark: #9A7B4A;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --charcoal-lighter: #3A3A3A;
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --gray: #8A8A8A;
  --gray-light: #E5E5E5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 162, 91, 0.2);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 82px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--gold);
  background: rgba(197, 162, 91, 0.08);
}

nav a.active {
  color: var(--gold);
}

.cta-nav {
  background: var(--gold);
  color: var(--white) !important;
  margin-left: 8px;
}

.cta-nav:hover {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "›";
  font-size: 14px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(-90deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid rgba(197, 162, 91, 0.2);
  border-radius: 12px;
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > a::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.3s ease;
}

.dropdown-submenu:hover > a::after {
  transform: translateY(-50%) rotate(-90deg);
}

.dropdown-submenu .submenu-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(197, 162, 91, 0.05);
  border-radius: 8px;
  margin-top: 4px;
}

.dropdown-submenu:hover .submenu-items {
  max-height: 200px;
}

.dropdown-submenu .submenu-items a {
  padding: 10px 18px 10px 28px;
  font-size: 13px;
  display: block;
  border-radius: 6px;
}

.dropdown-submenu .submenu-items a:hover {
  background: rgba(197, 162, 91, 0.1);
}

.dropdown-content .menu-divider {
  height: 1px;
  background: rgba(197, 162, 91, 0.15);
  margin: 8px 12px;
}

/* Blog Article Styles */
main {
  padding-top: 114px; /* Header height offset */
}

.article-hero {
  position: relative;
  width: 100vw;
  height: 450px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 32px;
  overflow: hidden;
}

.article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.7) 100%);
  z-index: 1;
}

.article-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 8%;
  z-index: 2;
  color: var(--white);
}

.article-hero-overlay h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--white);
  border: none;
}

.article-hero-overlay .article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 80px;
}

.article-content {
  margin-top: 40px;
}

.article-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gold);
}

.article-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.article-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.article-content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal);
}

.article-content ul,
.article-content ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

/* 3 items: side by side */
.feature-grid:has(> :nth-child(3)):not(:has(> :nth-child(4))) {
  grid-template-columns: repeat(3, 1fr);
}

/* 4 items: 2x2 grid */
.feature-grid:has(> :nth-child(4)) {
  grid-template-columns: repeat(2, 1fr);
}

/* Fallback for 1-2 items */
.feature-grid:not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
  background: var(--off-white);
  padding: 32px;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(197, 162, 91, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-left-width: 6px;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: var(--charcoal);
  position: relative;
  z-index: 1;
}

/* Key Points Box */
.key-points {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
}

.key-points h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-points h4::before {
  content: '✓';
  background: var(--gold);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.key-points ul {
  margin-left: 20px;
  margin-bottom: 0;
}

.key-points li {
  margin-bottom: 12px;
  padding-left: 8px;
}

/* Citation Block */
.citation {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  position: relative;
}

.citation::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 60px;
  color: var(--gold);
  opacity: 0.3;
  font-family: 'Cormorant Garamond', serif;
}

.citation p {
  margin: 0;
  font-style: italic;
  color: var(--charcoal-light);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.citation strong {
  color: var(--charcoal);
  display: block;
  margin-bottom: 8px;
  font-style: normal;
}

/* Divider */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 48px 0;
  border: none;
}

/* Info Box */
.info-box {
  background: var(--charcoal);
  color: var(--white);
  padding: 28px;
  border-radius: 12px;
  margin: 32px 0;
}

.info-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

.info-box p,
.info-box li {
  color: rgba(255, 255, 255, 0.9);
}

.info-box ul {
  margin-left: 20px;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 40px;
  transition: gap 0.3s ease;
}

.back-link:hover {
  gap: 12px;
}

/* CTA Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197, 162, 91, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--charcoal);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--charcoal);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ===============================
   DYNAMIC CONTENT LAYOUTS
   =============================== */

/* Statistics Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.stats-row::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197, 162, 91, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Pull Quote */
.pull-quote {
  position: relative;
  padding: 40px 48px;
  margin: 48px 0;
  background: transparent;
  text-align: center;
}

.pull-quote::before,
.pull-quote::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.pull-quote::before {
  top: 0;
}

.pull-quote::after {
  bottom: 0;
}

.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
}

.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  font-style: normal;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

/* Alternating Content Blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 48px 0;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.content-block-image:hover {
  transform: scale(1.02);
}

.content-block-text h3 {
  margin-top: 0;
  padding-left: 0;
  border-left: none;
  font-size: 26px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--off-white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.timeline-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.timeline-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Highlighted Number */
.highlight-number {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(197, 162, 91, 0.1) 0%, rgba(197, 162, 91, 0.05) 100%);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  margin: 24px 0;
}

.highlight-number .number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.highlight-number .label {
  font-size: 16px;
  color: var(--charcoal);
  font-weight: 500;
}

/* Animated Fade In */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-content > * {
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Responsive for dynamic layouts */
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .stat-number {
    font-size: 36px;
  }

  .pull-quote {
    padding: 32px 24px;
  }

  .pull-quote p {
    font-size: 22px;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .content-block-image {
    height: 250px;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-item {
    padding: 20px;
  }

  .timeline-item::before {
    left: -26px;
    width: 10px;
    height: 10px;
  }
}

/* Footer */
footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 5% 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 120px;
  width: auto;
  margin-bottom: 20px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
}

.footer-brand p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-whakatauki {
  padding: 20px;
  background: rgba(197, 162, 91, 0.1);
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  text-align: center;
}

.footer-whakatauki p {
  color: var(--gold);
  font-style: italic;
  margin: 0;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--charcoal-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 4%;
  }

  nav a:not(.cta-nav) {
    display: none;
  }

  

  .article-hero {
    height: 350px;
    margin-bottom: 24px;
  }

  .article-hero-overlay {
    padding: 40px 5%;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  /* Feature cards responsive */
  .feature-grid:has(> :nth-child(3)):not(:has(> :nth-child(4))),
  .feature-grid:has(> :nth-child(4)) {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }
}
