/* ============================================================
   TERTEREU — Circassian Research Archive
   Shared Design System & Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Greens (from logo gradient) */
  --green-900: #005a2b;
  --green-800: #006d34;
  --green-700: #007a3d;
  --green-600: #008c46;
  --green-500: #009e50;
  --green-400: #00b35a;
  --green-300: #2ecc71;
  --green-200: #7ee2a8;
  --green-100: #c8f5dc;
  --green-50:  #eafaf1;

  /* Neutrals */
  --white:     #ffffff;
  --gray-50:   #f8faf9;
  --gray-100:  #f1f4f3;
  --gray-200:  #e2e8e5;
  --gray-300:  #c5cec9;
  --gray-400:  #94a39b;
  --gray-500:  #6b7d74;
  --gray-600:  #4a5d54;
  --gray-700:  #344740;
  --gray-800:  #1e2e28;
  --gray-900:  #0f1a15;

  /* Functional */
  --bg-primary:    var(--white);
  --bg-secondary:  var(--gray-50);
  --bg-accent:     var(--green-50);
  --text-primary:  var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:    var(--gray-400);
  --accent:        var(--green-700);
  --accent-dark:   var(--green-900);
  --accent-light:  var(--green-100);

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, var(--green-900) 0%, var(--green-600) 50%, var(--green-400) 100%);
  --gradient-brand-subtle: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0, 90, 43, 0.04);
  --shadow-sm:  0 2px 8px rgba(0, 90, 43, 0.06);
  --shadow-md:  0 4px 16px rgba(0, 90, 43, 0.08);
  --shadow-lg:  0 8px 32px rgba(0, 90, 43, 0.10);
  --shadow-xl:  0 16px 48px rgba(0, 90, 43, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 122, 61, 0.15);

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-4xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease-out) both;
}

.animate-scale-in {
  animation: scaleIn 0.6s var(--ease-out) both;
}

/* Staggered delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 90, 43, 0.06);
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link img {
  height: 34px;
  width: auto;
}

/* Desktop nav links (horizontal row) */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  padding-block: var(--space-xs);
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

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

/* Mobile hamburger button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1002;
  background: none;
  border: none;
  position: relative;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

/* Desktop lang toggle: visible by default, sits between nav and hamburger */
.desktop-lang-toggle {
  margin-left: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile lang toggle: hidden by default, visible inside mobile menu */
.mobile-lang-toggle {
  display: none;
}

.lang-btn {
  padding: 0.3rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.active {
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 61, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 179, 90, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  animation: float 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-title .accent-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-2xl);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: scaleIn 0.9s var(--ease-out) 0.2s both;
}

.hero-logo-container {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-container::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 61, 0.08) 0%, transparent 70%);
  animation: float 4s ease-in-out infinite;
}

.hero-logo-container img {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 90, 43, 0.15));
  transition: transform var(--transition-slow);
}

.hero-logo-container:hover img {
  transform: scale(1.03);
}

/* Decorative rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 122, 61, 0.08);
}

.hero-ring-1 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}

.hero-ring-2 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 8s ease-in-out infinite reverse;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 90, 43, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 90, 43, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border: 1.5px solid var(--green-200);
}

.btn-secondary:hover {
  background: var(--green-50);
  border-color: var(--green-300);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTENT CARDS / GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image .card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0;
  transition: all var(--transition-base);
}

.card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: var(--space-lg);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
  transition: color var(--transition-fast);
}

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

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================================
   FEATURED / HIGHLIGHT
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.featured-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.featured-content {
  padding: var(--space-xl);
}

/* ============================================================
   PAGE HERO (for inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  background: var(--gradient-brand-subtle);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at right top, rgba(0, 122, 61, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.page-hero .section-subtitle {
  font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
  font-size: 0.7rem;
}

/* ============================================================
   ABOUT CONTENT BLOCKS
   ============================================================ */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block-text h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.content-block-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.content-block-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.content-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.value-card {
  padding: var(--space-2xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
  transition: background var(--transition-fast);
}

.value-card:hover .value-icon {
  background: var(--green-100);
}

.value-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   PROJECTS / GALLERY
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--green-50);
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-serif);
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.team-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--gradient-brand);
  padding-block: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .section-title {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--green-800);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer-brand img {
  height: 30px;
  margin-bottom: var(--space-lg);
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  padding-block: var(--space-xs);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
  color: var(--green-300);
  padding-left: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--green-700);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE (MEDIA QUERIES)
   ============================================================ */

/* ── Tablet landscape & small desktop (≤ 1024px) ── */
@media (max-width: 1024px) {
  /* Hero stays side-by-side, just tighter */
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }

  .hero-logo-container {
    width: 260px;
    height: 260px;
  }

  .hero-logo-container img {
    width: 190px;
  }

  .hero-ring-1 { width: 300px; height: 300px; }
  .hero-ring-2 { width: 370px; height: 370px; }

  .hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }

  /* Two-column grids collapse to single */
  .content-block,
  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .content-block.reverse {
    direction: ltr;
  }

  /* Footer 2-col on tablet */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet portrait & large phones (≤ 768px) ── */
@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
    --header-height: 64px;
  }

  .container {
    padding-inline: var(--space-lg);
  }

  /* Backdrop overlay on body */
  body::after {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 997; /* Below sidebar, which is 998 */
    pointer-events: none;
  }

  body.menu-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ─ Mobile sidebar menu ─ */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 280px;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: var(--white);
    box-shadow: -4px 10px 20px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    opacity: 1;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
    z-index: 998; /* Below header, above page content */
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-sm);
    border-bottom: 1px solid var(--gray-100);
    transition: color var(--transition-fast), background var(--transition-fast);
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
    background: var(--green-50);
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hide desktop lang toggle, show mobile one inside sidebar */
  .desktop-lang-toggle {
    display: none;
  }

  .mobile-lang-toggle {
    display: flex;
    margin-top: auto;
    margin-bottom: var(--space-md);
    padding: 4px;
    align-self: center;
  }

  .mobile-lang-toggle .lang-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
  }

  /* ─ Hero: side-by-side preserved, scaled down ─ */
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-lg);
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: var(--space-md);
  }

  .hero-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: var(--space-sm);
  }

  .hero-description,
  .hero .section-subtitle {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    max-width: 100%;
  }

  .hero-actions {
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
  }

  .hero-logo-container {
    width: 180px;
    height: 180px;
  }

  .hero-logo-container img {
    width: 130px;
  }

  .hero-logo-container::before {
    inset: -15px;
  }

  .hero-ring-1 { width: 210px; height: 210px; }
  .hero-ring-2 { width: 260px; height: 260px; }

  .scroll-indicator {
    display: none;
  }

  /* ─ Page hero (inner pages) spacing from nav ─ */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-2xl);
  }

  .page-hero .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-hero .section-subtitle {
    font-size: 0.9rem;
  }

  /* ─ Section spacing ─ */
  .section {
    padding-block: var(--space-3xl);
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  /* ─ Cards ─ */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* ─ Featured / Tertereu 360 ─ */
  .featured-content {
    padding: var(--space-md) 0;
  }

  /* ─ Stats ─ */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* ─ Footer ─ */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col a:hover {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  /* ─ Values grid ─ */
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .value-card {
    padding: var(--space-xl);
  }

  /* ─ Filters (horizontal scroll) ─ */
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ─ Timeline ─ */
  .timeline {
    padding-left: var(--space-xl);
  }

  .timeline::before {
    left: 2px;
  }

  .timeline-item::before {
    left: calc(-1 * var(--space-xl) - 3px);
    width: 10px;
    height: 10px;
  }

  /* ─ Quote block ─ */
  .quote-block {
    padding: var(--space-xl) var(--space-lg);
  }

  .quote-block p {
    font-size: 1.1rem;
  }

  /* ─ CTA section ─ */
  .cta-section {
    padding-block: var(--space-3xl);
  }

  /* ─ Contact form ─ */
  .contact-container {
    padding: var(--space-xl) var(--space-lg);
    margin-inline: 0;
  }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-md);
  }

  /* Hero: still side-by-side, compact */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-sm);
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: var(--space-sm);
  }

  .hero-badge .dot {
    width: 5px;
    height: 5px;
  }

  .hero-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: var(--space-xs);
  }

  .hero-description,
  .hero .section-subtitle {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-logo-container {
    width: 120px;
    height: 120px;
  }

  .hero-logo-container::before {
    inset: -10px;
  }

  .hero-logo-container img {
    width: 85px;
  }

  .hero-ring-1 { width: 140px; height: 140px; }
  .hero-ring-2 { width: 170px; height: 170px; }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-xl);
  }

  .page-hero .section-title {
    font-size: 1.35rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: var(--space-md);
  }

  /* Sections */
  .section {
    padding-block: var(--space-2xl);
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .section-label {
    font-size: 0.65rem;
  }

  /* Cards */
  .card-body {
    padding: var(--space-md);
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.8rem;
  }

  .card-meta {
    font-size: 0.7rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Featured */
  .featured-image {
    border-radius: var(--radius-md);
  }

  /* Values */
  .value-card {
    padding: var(--space-lg);
  }

  .value-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
  }

  .value-card h4 {
    font-size: 1rem;
  }

  .value-card p {
    font-size: 0.8rem;
  }

  /* Quote */
  .quote-block {
    padding: var(--space-lg) var(--space-md);
  }

  .quote-block p {
    font-size: 0.95rem;
  }

  /* CTA */
  .cta-section {
    padding-block: var(--space-2xl);
  }

  .cta-section .section-title {
    font-size: 1.3rem;
  }

  .cta-section .section-subtitle {
    font-size: 0.8rem;
  }

  .cta-section .btn {
    width: auto;
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
  }

  /* Footer compact */
  .site-footer {
    padding-top: var(--space-2xl);
  }

  .footer-grid {
    gap: var(--space-lg);
  }

  .footer-brand img {
    height: 24px;
  }

  .footer-brand p {
    font-size: 0.8rem;
  }

  .footer-col h5 {
    font-size: 0.7rem;
    margin-bottom: var(--space-md);
  }

  .footer-col a {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }

  .footer-socials a {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* Contact form */
  .contact-container {
    padding: var(--space-lg) var(--space-md);
  }

  .form-control {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Buttons general */
  .btn {
    font-size: 0.8rem;
  }

  /* Content blocks on about page */
  .content-block-text h3 {
    font-size: 1.25rem;
  }

  .content-block-text p {
    font-size: 0.85rem;
  }
}

/* ── Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-container {
    margin-inline: auto;
    width: 150px;
    height: 150px;
  }

  .hero-logo-container img {
    width: 110px;
  }

  .hero-ring-1 { width: 170px; height: 170px; }
  .hero-ring-2 { width: 200px; height: 200px; }

  .hero-actions {
    justify-content: center;
  }

  .hero-description,
  .hero .section-subtitle {
    margin-inline: auto;
  }

  .hero-title {
    font-size: 1.3rem;
  }
}

/* ---------- Image Placeholder with gradient ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
