@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Premium Color Palette */
  --primary-color: #0d1b2a;
  /* Deep Navy / Slate */
  --secondary-color: #1b263b;
  /* Lighter Navy */
  --accent-gold: #c5a880;
  /* Refined Metallic Gold */
  --accent-gold-hover: #b4966d;
  --text-primary: #333333;
  --text-secondary: #555555;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3 {
  color: var(--bg-white);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: var(--bg-white);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav-link {
  color: var(--primary-color);
}

.header.scrolled .logo {
  color: var(--primary-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo img,
.logo-svg {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--bg-white);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.header.scrolled .mobile-menu-toggle {
  color: var(--primary-color);
}

.header.scrolled .logo img,
.header.scrolled .logo-svg {
  height: 48px;
}

.logo-path-main {
  fill: var(--bg-white);
  transition: fill 0.3s ease;
}

.logo-path-accent {
  /* fill: var(--accent-gold); */
  fill: #d4ac4b;
  transition: fill 0.3s ease;
}

.header.scrolled .logo-svg .logo-path-main {
  fill: #000000;
}

.logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mega-Menu (Fat Navbar) Styles */
.nav-item-dropdown {
  position: relative;
}

.fat-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 700px;
  background: var(--bg-white);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 100;
  padding: 32px;
  pointer-events: none;
  margin-top: 24px;
  /* Space for the hover gap */
}

/* Invisible bridge so hover doesn't break when moving from link to menu */
.fat-submenu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  width: 100%;
  height: 24px;
}

.nav-item-dropdown:hover .fat-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.submenu-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  width: 100%;
}

.submenu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #eaeaea;
  padding-right: 24px;
}

.submenu-links li {
  width: 100%;
}

.submenu-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s;
  display: inline-block;
  position: relative;
  text-transform: none;
  letter-spacing: normal;
}

.submenu-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s;
}

.submenu-links a:hover,
.submenu-links li.active a {
  color: var(--accent-gold);
}

.submenu-links a:hover::after,
.submenu-links li.active a::after {
  width: 100%;
}

.submenu-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-light);
  min-height: 280px;
  position: relative;
}

.submenu-preview img,
.submenu-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: 1;
}

.submenu-preview img.active,
.submenu-preview canvas.active {
  opacity: 1;
}

.submenu-preview-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px 24px;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.9), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  transform: translateY(10px);
}

.submenu-preview-content.active {
  opacity: 1;
  transform: translateY(0);
}

.submenu-preview-content h4 {
  color: white;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.submenu-preview-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 168, 128, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 1px solid var(--bg-white);
}

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline-dark:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary-color);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  /* Dark gradient effect instead of heavy yellow filter */
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, rgba(13, 27, 42, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  color: var(--bg-white);
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 24px;
  color: var(--bg-white);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--accent-gold);
}

.section-title.left-align {
  text-align: left;
}

.section-title.left-align::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Cards */
.value-card {
  background: var(--bg-white);
  padding: 48px 32px;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
  height: 100%;
}

.value-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.value-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Image With Text Block */
.image-block {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats / Highlights */
.stat-box {
  text-align: center;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  background-color: #08101a;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--bg-white);
  margin-bottom: 24px;
}

.footer-logo span {
  color: var(--accent-gold);
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    padding: 24px;
    gap: 24px;
    align-items: center;
    text-align: center;
    transform: translateY(-150%);
    visibility: hidden;
    /* Delay slide up until text fades out */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s, visibility 0.4s 0.2s;
    z-index: -1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .header.scrolled .nav-links {
    background-color: var(--bg-white);
  }

  .nav-link {
    color: var(--primary-color);
  }

  .nav-links.active {
    transform: translateY(0);
    visibility: visible;
    /* Slide down immediately */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0s, visibility 0.4s 0s;
  }

  .nav-links li {
    opacity: 0;
    /* Fade out immediately when closing */
    transition: opacity 0.2s ease 0s;
  }

  .nav-links.active li {
    opacity: 1;
    /* Fade in after container finishes sliding down */
    transition: opacity 0.3s ease 0.4s;
  }

  /* Flatten mobile menu: hide parent dropdown links and show submenus as main options */
  .nav-item-dropdown>.nav-link {
    display: none !important;
  }

  .fat-submenu {
    position: static;
    transform: none !important;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: block;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  .nav-item-dropdown:hover .fat-submenu {
    transform: none !important;
  }

  .nav-links {
    gap: 24px;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .fat-submenu::before {
    display: none;
  }

  .submenu-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .submenu-preview {
    display: none;
    /* Hide complex preview on mobile to save space */
  }

  .submenu-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .submenu-links {
    gap: 24px;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* Insights Page Styles */
.insights-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filters {
  display: flex;
  gap: 16px;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background-color: var(--bg-white);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-gold);
}

.view-toggles {
  display: flex;
  gap: 8px;
}

.view-btn {
  background: transparent;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.view-btn.active,
.view-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.insight-theme {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.insight-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.insight-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.insight-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.insight-actions {
  margin-top: auto;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
}

/* List View Styles */
.insights-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.insights-grid.list-view .insight-card {
  flex-direction: row;
  align-items: center;
  padding: 24px 32px;
}

.insights-grid.list-view .insight-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 32px;
}

.insights-grid.list-view .insight-title {
  margin-bottom: 0;
  flex: 2;
}

.insights-grid.list-view .insight-summary {
  display: none;
}

.insights-grid.list-view .insight-actions {
  margin-top: 0;
  flex: 1;
  text-align: right;
}

.insights-grid.list-view .insight-theme,
.insights-grid.list-view .insight-date {
  margin-bottom: 0;
  flex: 1;
}

@media (max-width: 992px) {
  .insights-grid.list-view .insight-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .insights-grid.list-view .insight-summary {
    display: block;
  }

  .insights-grid.list-view .insight-actions {
    width: 100%;
  }
}

/* Form Styles */
.form-section {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group.full-width {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-light);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--accent-gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.form-notice {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 1000px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-section {
    padding: 32px 24px;
  }
}

/* Language Switcher Dropdown (Compact) */
.lang-submenu {
  width: max-content;
  min-width: 100px;
  padding: 12px 24px;
  min-height: auto;
}

@media (max-width: 1000px) {
  .lang-submenu {
    width: 100% !important;
    padding: 0 !important;
  }
}

.lang-submenu .submenu-container {
  grid-template-columns: 1fr;
}

.lang-submenu .submenu-links {
  border-right: none;
  padding-right: 0;
  gap: 16px;
}

@media (max-width: 1000px) {
  .lang-submenu .submenu-links {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .lang-submenu .submenu-links li {
    width: auto;
    display: flex;
    align-items: center;
  }

  .lang-submenu .submenu-links li:not(:last-child)::after {
    content: '|';
    margin-left: 12px;
    color: var(--primary-color);
    font-size: 0.9rem;
  }
}

.lang-submenu .submenu-links a {
  font-size: 0.9rem;
}

/* Hardcoded Language Toggle Visibility */
html[lang="fr"] [data-lang="en"] {
  display: none !important;
}

html[lang="en"] [data-lang="fr"] {
  display: none !important;
}