/* ============================================
   DJOX Mini-CMS - Premium Design
   ============================================ */

:root {
  --color-gold: #c9a962;
  --color-gold-dark: #a88a4a;
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-beige: #f7f5f0;
  --color-gray-100: #f8f8f8;
  --color-gray-200: #e5e5e5;
  --color-gray-400: #a3a3a3;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: 800px; }

.section {
  padding: 5rem 0;
}

.section--beige { background: var(--color-beige); }
.section--dark { background: var(--color-black); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark .section-label { color: var(--color-gold); }

.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }

.section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.menu-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--color-black);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-black);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-nav.active {
  display: flex;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  z-index: 999;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-list { flex-direction: row; gap: 2rem; }
}

.nav-list a {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  transition: color 0.2s;
}

.nav-list a:hover { color: var(--color-gold); }

.nav-cta {
  padding: 0.5rem 1.5rem;
  background: var(--color-gold) !important;
  color: var(--color-white) !important;
  border-radius: 2px;
}

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

.language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .language-switcher { margin-top: 0; }
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-gray-200);
  border-radius: 2px;
  transition: all 0.2s;
}

.lang-btn:hover, .lang-btn.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Section Images */
.section-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* About Grid with Image */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  overflow: hidden;
  border-radius: 6px;
}

.about-image .section-image {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Service Card Image */
.service-image {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 4px;
}

.service-image .section-image {
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Projects Hero Image */
.projects-hero {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 6px;
}

.projects-hero .section-image {
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Partners Hero Image */
.partners-hero {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 6px;
}

.partners-hero .section-image {
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero-container {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-content { max-width: 900px; margin: 0 auto; }

.hero-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-gold);
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.hero-subtitle {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  margin-top: 0.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s;
}

.btn-lg { padding: 1rem 2.5rem; }
.btn-full { width: 100%; }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn-gold:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}

/* Trilingual Blocks */
.trilingual-block { margin-top: 2rem; }

.lang-text {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--color-white);
  border-left: 3px solid var(--color-gold);
}

.section--beige .lang-text { background: var(--color-white); }

.lang-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Philosophy Columns */
.philosophy-columns {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.philosophy-col {
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.section--beige .philosophy-col { background: var(--color-white); }

.philosophy-col p {
  font-size: 1rem;
  line-height: 1.8;
}

.section--dark .philosophy-col p { color: rgba(255,255,255,0.85); }

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-card {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 2px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  background: var(--color-beige);
  border-radius: 50%;
}

.service-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Notice Block */
.notice-block {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
}

.notice-block p {
  font-style: italic;
  color: var(--color-gray-600);
  margin-bottom: 0.5rem;
}

.notice-block p:last-child { margin-bottom: 0; }

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.project-card {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 2px;
}

.project-category {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.project-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-desc {
  margin-bottom: 1rem;
  color: var(--color-gray-600);
}

.project-region {
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

.project-region::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  background: var(--color-gold);
  border-radius: 50%;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem;
  background: var(--color-black);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* Confidential Notice */
.confidential-notice {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--color-black);
  border-radius: 2px;
  border-left: 4px solid var(--color-gold);
}

.confidential-notice p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin: 0;
  font-style: italic;
}

/* Trust Block */
.trust-block {
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  background: var(--color-beige);
  border-radius: 2px;
}

.trust-block p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

/* Partners */
.partner-category {
  margin-bottom: 3rem;
}

.partner-category h3 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.partner-category-subtitle {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-gray-600);
}

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

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

.partner-card {
  padding: 1.5rem;
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 2px;
  transition: all 0.3s;
}

.partner-card:hover { border-color: var(--color-gold); }

.partner-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold);
  background: var(--color-beige);
  border-radius: 50%;
}

.partner-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.partner-region {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

/* Partners with photos */
.partners-people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .partners-people-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-person-card {
  text-align: center;
}

.partner-person-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold);
}

.partner-person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-person-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.partner-person-title {
  font-size: 0.875rem;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.partner-person-region {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

/* Partner organizations */
.partners-orgs {
  border-top: 1px solid var(--color-gray-200);
  padding-top: 2rem;
}

.partners-orgs h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.partners-orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .partners-orgs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-orgs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-org-card {
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  text-align: center;
}

.partner-org-name {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.partner-org-region {
  font-size: 0.6875rem;
  color: var(--color-gray-400);
}

/* Form */
.form-intro {
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.form-intro p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
}

.vip-form { margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-gray-800);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-textarea { min-height: 100px; resize: vertical; }

.form-actions { margin-top: 2rem; }

.contact-alt {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}

.contact-alt p {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.6);
}

.contact-link {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--color-gray-800);
  color: var(--color-white);
  padding-top: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.footer-tagline {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.footer-nav h4, .footer-contact h4, .footer-cta h4 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-nav ul li, .footer-contact ul li {
  margin-bottom: 0.5rem;
}

.footer-nav a, .footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-nav a:hover, .footer-contact a:hover { color: var(--color-white); }

.footer-contact ul li { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

.footer-cta p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* Smooth scrolling offset for fixed header */
section[id] { scroll-margin-top: 80px; }

/* ============================================
   Founders Section
   ============================================ */
.founders-grid {
  display: grid;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .founders-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

@media (min-width: 768px) {
  .founder-card {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }
}

.founder-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .founder-image {
    margin-bottom: 0;
  }
}

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

.founder-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-700);
  font-size: 4rem;
}

.founder-info {
  flex: 1;
}

.founder-name {
  font-size: 1.75rem;
  font-family: var(--font-serif);
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.founder-title {
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

.founder-bio {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-content {
  padding: 1.5rem;
}

.news-date {
  display: block;
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--color-black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty state for news */
.news-grid:empty::after {
  content: 'No news available yet.';
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--color-gray-600);
  font-style: italic;
}
