/* ==========================================
   HUMAN Hub — Public Site Styles
   Premium International Consulting Design
   ========================================== */

:root {
  --gold: #b2a676;
  --gold-dark: #9e9365;
  --gold-glow: rgba(178, 166, 118, 0.12);
  --dark: #1a1a1a;
  --bg: #faf9f6;
  --light-gold: #f4f1e6;
  --white: #ffffff;
  --gray: #666;
  --light-gray: #e8e6e0;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --gold-light: #cfc398;
  --gold-gradient: linear-gradient(135deg, #cfc398 0%, #b2a676 50%, #9e9365 100%);
  --gold-gradient-hover: linear-gradient(135deg, #b2a676 0%, #9e9365 50%, #8a8256 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(207,195,152,0.15) 0%, rgba(178,166,118,0.08) 100%);
  --gold-gradient-text: linear-gradient(135deg, #cfc398 0%, #b2a676 40%, #9e9365 100%);
  --gold-shimmer: linear-gradient(110deg, #cfc398 0%, #b2a676 30%, #d4c99e 50%, #b2a676 70%, #9e9365 100%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-gold: 0 8px 32px rgba(178,166,118,0.18);
  --shadow-elevated: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-gold-glow: 0 8px 32px rgba(178,166,118,0.25), 0 0 0 1px rgba(178,166,118,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   Flash Messages
   ========================================== */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 16px auto;
  max-width: 1200px;
  font-weight: 500;
  font-size: 0.9rem;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==========================================
   Navbar
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(232, 230, 224, 0.5);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--gold); }
.nav-logo-img { height: 64px; width: auto; display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  background: var(--gold-gradient);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open { z-index: 10000; position: relative; }
.nav-toggle.open span { background: var(--dark) !important; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: var(--white);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--dark);
  padding: 14px 0;
  font-weight: 600;
}
.btn-secondary:hover { color: var(--gold); }
.btn-secondary i { transition: transform 0.3s ease; }
.btn-secondary:hover i { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

/* ==========================================
   Hero — Split Layout
   ========================================== */
.hero {
  padding: 160px 0 120px;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  display: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-shimmer);
  z-index: 2;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  /* The WebGL gradient is loaded from a CDN module and paints a frame or two
     after the page renders. Until then the canvas is transparent and the hero's
     background image flashes through. This opaque, gradient-coloured fill (an
     approximation of the animated NEAT palette on its dark base) covers the
     image from the first paint, so the gradient appears to be there instantly
     and there is no photo flash. */
  background-color: #1a1a1a;
  background-image: radial-gradient(120% 120% at 25% 20%, rgba(233,216,166,0.55) 0%, rgba(178,166,118,0.35) 35%, rgba(26,26,26,0) 70%);
}
/* Darken the animated gradient on inner pages so white text stays legible */
.hero-gradient-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(10, 10, 10, 0.62);
  pointer-events: none;
}
/* Hide the "NEAT" attribution mark the library injects near the canvas */
.hero-gradient-canvas + a,
.hero-gradient-canvas ~ a[href*="neat"],
.hero-gradient-canvas ~ a[href*="firecms"],
.hero [data-neat-branding],
.hero .neat-branding {
  display: none !important;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
}
.hero-tagline::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold-gradient);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  background: var(--gold-shimmer);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 420px;
}
.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hero-stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.hero-stat-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(178,166,118,0.2);
  transform: translateY(-2px);
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Hero Centered Fallback */
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-content .hero-tagline { justify-content: center; }
.hero-content .hero-text { margin-left: auto; margin-right: auto; }
.hero-content .hero-actions { justify-content: center; }

/* Hero light variant */
.hero-light {
  background: var(--light-gold);
  color: var(--dark);
}
.hero-light::before {
  background: radial-gradient(circle, rgba(178,166,118,0.08) 0%, transparent 70%);
}
.hero-light .hero-text { color: var(--gray); }
.hero-light .btn-outline { color: var(--dark); border-color: var(--dark); }
.hero-light .btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* Hero discover button */
.btn-hero-discover {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 14px 40px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-hero-discover:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 140px 0 60px;
  background: var(--dark);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(178,166,118,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark), transparent);
}
/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  justify-content: center;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}
.breadcrumb-current {
  color: rgba(255, 255, 255, 0.85);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================
   Stats/Counts — Card Grid
   ========================================== */
.stats-strip {
  padding: var(--space-xl) 0;
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}
.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: var(--transition);
}
.stat-item:hover .stat-number {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.section-label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gray);
  margin-bottom: 32px;
  font-weight: 600;
}

/* ==========================================
   Partners / Clients
   ========================================== */
.clients-section {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--light-gray);
}
.clients-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.client-logo {
  opacity: 0.7;
  transition: var(--transition);
}
.client-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}
.client-logo img {
  height: 140px;
  width: auto;
  transition: var(--transition);
}
.client-text-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--dark);
  letter-spacing: 1px;
}

/* ==========================================
   Info Cards / Content List
   ========================================== */
.info-cards-section { padding: var(--space-xl) 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  text-align: left;
  position: relative;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.info-card:hover::before { opacity: 1; }
.info-card-icon {
  width: 56px;
  height: 56px;
  background: var(--light-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--gold);
}
.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.info-card p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.card-link:hover { color: var(--gold-dark); }
.card-link i { font-size: 0.75rem; transition: transform 0.3s ease; }
.card-link:hover i { transform: translateX(4px); }

.info-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.info-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.info-card:hover .info-card-image img { transform: scale(1.05); }

/* Info grid (used by content_list block) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.info-grid-1 { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
.info-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.info-grid-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid-4 { grid-template-columns: repeat(4, 1fr); }
.info-grid-2 .info-card,
.info-grid-1 .info-card { padding: 36px 32px; }
.info-grid-2 .info-icon,
.info-grid-1 .info-icon { width: 64px; height: 64px; font-size: 1.4rem; }
.info-grid-2 .info-card h3,
.info-grid-1 .info-card h3 { font-size: 1.3rem; }
.info-icon {
  width: 56px;
  height: 56px;
  background: var(--light-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--gold);
  transition: var(--transition);
}
.info-card:hover .info-icon {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(178,166,118,0.3);
}
.info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}
.info-link:hover { color: var(--gold-dark); }
.info-link i { font-size: 0.75rem; transition: transform 0.3s ease; }
.info-link:hover i { transform: translateX(4px); }

/* ==========================================
   Articles / Values Cards
   ========================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.article-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition);
}
.article-card:hover .article-number {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.article-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Gold background variant */
.articles-gold {
  background: var(--light-gold);
}
.articles-gold .article-card {
  background: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   Story / Mission Section
   ========================================== */
.mission-section {
  background: var(--dark);
  padding: var(--space-2xl) 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.mission-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(178,166,118,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.mission-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.mission-section p,
.mission-section .mission-body,
.mission-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}
.mission-text p { margin-bottom: 16px; }

.story-section { padding: var(--space-xl) 0; }
.story-content {
  max-width: 800px;
  margin: 0 auto;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: -32px auto 40px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ==========================================
   Section Titles
   ========================================== */
.section { padding: var(--space-xl) 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--dark);
  letter-spacing: -0.02em;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ==========================================
   Featured / Services Grid
   ========================================== */
.services-section { padding: var(--space-xl) 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: service-counter;
}
.services-page-grid { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
  counter-increment: service-counter;
}
.service-card::before {
  content: counter(service-counter, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--light-gray);
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.service-card:hover::before {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.service-card-large { padding: 44px 32px; }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--light-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--gold);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(178,166,118,0.3);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  padding: var(--space-xl) 0;
}
.cta-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 72px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(178,166,118,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-shimmer);
  background-size: 200% 100%;
  animation: shimmerBar 3s ease infinite;
}
@keyframes shimmerBar {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cta-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
.cta-card p {
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.02rem;
  position: relative;
}
.cta-card .btn-primary {
  background: var(--gold-gradient);
  background-size: 200% 200%;
  position: relative;
}
.cta-card .btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
}

/* ==========================================
   Portfolio
   ========================================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 24px;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  display: block;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.portfolio-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--light-gold);
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(178,166,118,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.portfolio-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay {
  background: rgba(26,26,26,0.55);
}
.portfolio-card:hover .portfolio-overlay span {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
}
.portfolio-category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  color: var(--dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.portfolio-info { padding: 24px; }
.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.portfolio-client {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.portfolio-info p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================
   Project Detail
   ========================================== */
.project-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.project-meta span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-meta .badge-pill {
  background: rgba(178,166,118,0.2);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.project-meta i { color: var(--gold); }

.project-detail {
  max-width: 800px;
  margin: 0 auto;
}
.project-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.project-featured-img img { width: 100%; }

.rich-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
}
.rich-content p { margin-bottom: 16px; }
/* Embedded videos pasted into rich text carry fixed width/height attributes
   (e.g. 560x315). Override them so the embed fills the content width and stays
   16:9 responsive on every screen. */
.rich-content iframe,
.rich-content video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  margin: 24px 0;
}
.rich-content img { max-width: 100%; height: auto; }
.rich-content h2, .rich-content h3 {
  font-family: var(--font-heading);
  margin: 32px 0 16px;
}
.rich-content ul, .rich-content ol { margin: 16px 0; padding-left: 24px; }
.rich-content li { margin-bottom: 8px; list-style: disc; }
.rich-content strong { color: var(--dark); }
.rich-content a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.rich-content a:not(.btn):hover {
  color: var(--gold-dark);
}
.rich-content .btn {
  margin: 8px 4px;
}

/* Links in dark sections (mission/story dark) */
.mission-text a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mission-text a:not(.btn):hover {
  color: var(--gold-light, #cfc398);
}
.mission-text .btn {
  margin: 8px 4px;
}

.project-gallery { margin-top: 48px; }
.project-gallery h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.carousel-track {
  position: relative;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  background: rgba(0,0,0,0.3);
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: var(--gold);
  border-color: var(--gold);
}
.carousel-dot:hover {
  border-color: var(--white);
}

/* Embed / Video Block */
.embed-section {
  padding: var(--section-padding);
  background: var(--light);
}
.embed-section .section-heading {
  text-align: center;
  margin-bottom: 32px;
}
.embed-responsive {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
}
.project-nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
}
.project-nav-link:hover { color: var(--gold-dark); }
.project-nav-link.back {
  color: var(--gray);
  font-weight: 500;
}

/* ==========================================
   Team
   ========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--light-gray);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--light-gold);
  transition: var(--transition);
}
.team-card:hover .team-photo { border-color: var(--gold); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
}
.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
.team-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}
.team-card:hover h3::after { width: 100%; }
.team-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-bio {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ==========================================
   Values
   ========================================== */
.values-section {
  padding: var(--space-xl) 0;
  background: var(--light-gold);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  border-top: 3px solid transparent;
  border-image: var(--gold-gradient) 1;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.value-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

.article-icon {
  width: 48px;
  height: 48px;
  background: var(--light-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--gold);
  transition: var(--transition);
}
.article-card:hover .article-icon {
  background: var(--gold-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(178,166,118,0.3);
}

/* ==========================================
   Contact
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form-wrap h2,
.contact-sidebar h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.88rem;
}
.required { color: #e53e3e; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(178, 166, 118, 0.15), 0 0 0 1px var(--gold);
}

.contact-info-list { margin-bottom: 32px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-info-item i {
  width: 44px;
  height: 44px;
  background: var(--light-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.contact-info-item h4 { font-size: 0.85rem; margin-bottom: 2px; }
.contact-info-item p { color: var(--gray); font-size: 0.9rem; }

.contact-social h4 { font-size: 0.9rem; margin-bottom: 12px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px;
  height: 40px;
  background: var(--light-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: var(--transition);
  font-size: 0.85rem;
}
.social-links a:hover {
  background: var(--gold-gradient);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178,166,118,0.3);
}

/* ==========================================
   Quote Block
   ========================================== */
.quote-section {
  padding: var(--space-xl) 0;
  background: var(--light-gold);
  position: relative;
}
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}
.quote-icon {
  font-size: 4rem;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  opacity: 0.35;
  line-height: 1;
}
.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 28px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.quote-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.quote-author-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.quote-author strong {
  display: block;
  font-size: 0.95rem;
}
.quote-author span {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ==========================================
   Testimonials Block
   ========================================== */
.testimonials-section {
  padding: var(--space-xl) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.testimonial-quote {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  margin-bottom: 16px;
  opacity: 0.4;
}
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--light-gray);
  padding-top: 16px;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 0.9rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
}
.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
}
.testimonial-company {
  color: var(--gold) !important;
  font-weight: 600;
}

/* ==========================================
   Websites Block
   ========================================== */
.websites-section { /* uses .section for padding */ }
.websites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.website-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  display: block;
}
.website-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(178,166,118,0.3);
}
.website-thumb {
  height: 180px;
  overflow: hidden;
  background: var(--light-gold);
}
.website-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.website-card:hover .website-thumb img { transform: scale(1.04); }
.website-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  color: var(--gold);
}
.website-info { padding: 20px; }
.website-info h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.website-info p {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.website-url {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  display: inline-block;
  margin-bottom: 14px;
}
.footer-logo span { color: var(--gold); }
.footer-logo-img { height: 36px; width: auto; display: block; margin-bottom: 6px; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact i { color: var(--gold); width: 14px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  color: var(--white);
  border-color: transparent;
  background: var(--gold-gradient);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178,166,118,0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(178, 166, 118, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================
   Error Pages
   ========================================== */
.error-page {
  padding: 200px 0 120px;
  text-align: center;
}
.error-page h1 {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.error-page h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.error-page p {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.empty-state {
  text-align: center;
  color: var(--gray);
  padding: 48px 0;
  font-size: 1.02rem;
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 968px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: center; }
  .hero-card { max-width: 100%; }
  .page-hero h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .info-grid, .info-grid-3, .info-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .info-grid-1 { grid-template-columns: 1fr; }
  .info-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .websites-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    gap: 24px;
    z-index: 9999;
  }
  .nav-menu.active a { color: var(--dark) !important; font-size: 1.25rem; }
  .nav-menu.active a:hover { color: var(--gold) !important; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-text { font-size: 1rem; }
  .page-hero { padding: 120px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }

  .info-grid,
  .articles-grid,
  .services-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .services-page-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 2rem; }

  .section { padding: var(--space-lg) 0; }
  .services-section { padding: var(--space-lg) 0; }
  .section-title { font-size: 1.8rem; margin-bottom: 32px; }

  .cta-card { padding: 48px 28px; }
  .project-nav { flex-direction: column; gap: 16px; }

  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { gap: 24px; }
  .hero-card-stats { grid-template-columns: 1fr; }
}

/* ==========================================
   Hero Background Image Variant
   ========================================== */
.hero-image {
  position: relative;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-image .hero-content,
.hero-image .hero-split { position: relative; z-index: 1; }
.hero-image h1,
.hero-image .hero-text,
.hero-image .hero-tagline { color: var(--white); }
.hero-image .hero-tagline { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.hero-content.text-left {
  text-align: left;
  max-width: 640px;
}

/* ==========================================
   CTA Background Image Variant
   ========================================== */
.cta-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-image .container { position: relative; z-index: 1; }
.cta-card-transparent {
  background: transparent !important;
  box-shadow: none !important;
}
.cta-card-transparent::before { display: none; }
.cta-image .cta-card h2,
.cta-image .cta-card p { color: var(--white); }

/* ==========================================
   Mission/Story Background Image
   ========================================== */
.mission-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================
   Section Spacing Controls
   ========================================== */
.spacing-compact { padding-top: 40px !important; padding-bottom: 40px !important; }
.spacing-normal { /* default — uses section padding */ }
.spacing-spacious { padding-top: 120px !important; padding-bottom: 120px !important; }

/* ==========================================
   Button Style Variants
   ========================================== */
.btn-gold, .btn.btn-gold {
  background: var(--gold-gradient);
  background-size: 200% 200%;
  color: var(--white);
  border-color: transparent;
}
.btn-gold:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-dark, .btn.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: #333;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline, .btn.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-white, .btn.btn-white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Button text link variants */
.btn-gold-text { color: var(--gold); }
.btn-dark-text { color: var(--dark); }
.btn-outline-text { color: var(--gold); }

/* ==========================================
   Service Card Image
   ========================================== */
.service-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* ==========================================
   Navbar Transparent Mode
   ========================================== */
.navbar-transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar-transparent .nav-logo,
.navbar-transparent .nav-menu a,
.navbar-transparent .nav-cta { color: var(--white); }
.navbar-transparent .nav-menu a:hover { color: rgba(255,255,255,0.7); }
.navbar-transparent .nav-menu a::after { background: var(--white); }
.navbar-transparent .nav-cta {
  border-color: rgba(255,255,255,0.3);
  background: transparent;
}
.navbar-transparent .nav-cta:hover {
  background: var(--white);
  color: var(--dark);
}
.navbar-transparent .nav-toggle span { background: var(--white); }
.navbar-transparent .nav-logo-img { filter: brightness(0) invert(1); }
.navbar-transparent.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(232, 230, 224, 0.5);
}
.navbar-transparent.scrolled .nav-logo,
.navbar-transparent.scrolled .nav-menu a { color: var(--dark); }
.navbar-transparent.scrolled .nav-cta {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
}
.navbar-transparent.scrolled .nav-toggle span { background: var(--dark); }
.navbar-transparent.scrolled .nav-logo-img { filter: none; }

/* ==========================================
   Attachments: PDFs, downloads and external documents
   Three interchangeable layouts for linking files from a project
   description. See DEPLOYMENT.md or the snippets in ATTACHMENTS.md.
   ========================================== */

.doc-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark);
  margin: 32px 0 14px;
}

/* ---- Layout A: document list ---- */
.doc-list {
  margin: 20px 0 28px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
}
.rich-content .doc-list a.doc-item,
.doc-list a.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-gold);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}
.doc-list a.doc-item:last-child { border-bottom: none; }
.rich-content .doc-list a.doc-item:hover,
.doc-list a.doc-item:hover { background: var(--light-gold); color: inherit; }
.doc-item .doc-icon {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}
.doc-item .doc-body { flex: 1; min-width: 0; }
.doc-item .doc-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
.doc-item .doc-meta {
  display: block;
  font-size: 0.8rem;
  color: #8a8578;
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.doc-item .doc-go {
  font-size: 0.95rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.doc-list a.doc-item:hover .doc-go { transform: translateX(3px); }

/* ---- Layout B: cards with cover images ---- */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0 28px;
}
.rich-content .doc-cards a.doc-card,
.doc-cards a.doc-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.rich-content .doc-cards a.doc-card:hover,
.doc-cards a.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  color: inherit;
}
.doc-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--light-gold);
}
.doc-card .doc-card-body { padding: 16px 18px; }
.doc-card .doc-card-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
}
.doc-card .doc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 10px;
  font-weight: 500;
}

/* ---- Layout C: tightened row of chips ---- */
.doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
}
.rich-content .doc-row a.doc-chip,
.doc-row a.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  background: var(--white);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}
.rich-content .doc-row a.doc-chip:hover,
.doc-row a.doc-chip:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .doc-list a.doc-item { padding: 14px 16px; gap: 12px; }
  .doc-item .doc-title { font-size: 0.92rem; }
  .doc-item .doc-meta { font-size: 0.75rem; }
  .doc-cards { grid-template-columns: 1fr; gap: 16px; }
  .doc-card img { height: 200px; }
  .doc-row a.doc-chip { padding: 10px 18px; font-size: 0.8rem; }
}

/* =========================================================================
   Featured Carousel (featured_carousel block)
   Lightweight CSS scroll-snap track + small JS controls (see main.js).
   ========================================================================= */
.featured-carousel-section {
  background: var(--bg);
}
.fc-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.fc-subtitle {
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: 12px;
}
.featured-carousel {
  position: relative;
}
/* Wraps just the track + arrows, so the arrows center on the cards and not on
   the whole block (which also contains the dots below). */
.fc-viewport {
  position: relative;
}
.fc-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
  /* Generous vertical padding so the hover lift + soft shadow have room:
     a horizontal scroller also clips vertically, which otherwise slices the
     shadow into a hard dark band. */
  padding: 16px 6px 34px;
  list-style: none;
  margin: 0;
}
.fc-track::-webkit-scrollbar { display: none; } /* WebKit */
.fc-track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.fc-slide {
  flex: 0 0 calc((100% - 48px) / 3);  /* 3 cards on desktop */
  scroll-snap-align: start;
  min-width: 0;
}
.fc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  /* Subtle resting depth so the hover state eases up from something, not from
     flat. Animate only the properties that change, with a soft ease-out. */
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}
.fc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(26, 26, 26, 0.10);
  border-color: rgba(178, 166, 118, 0.35);
}
.fc-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gold);
}
.fc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-card:hover .fc-thumb img { transform: scale(1.06); }
.fc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
}
.fc-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26,26,26,0.78);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.fc-info {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 10px;
}
.fc-desc {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-link {
  margin-top: auto;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.fc-link i { transition: transform 0.25s ease; }
.fc-card:hover .fc-link i { transform: translateX(4px); }
.fc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.12);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  z-index: 3;
}
.fc-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.fc-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fc-btn:disabled { opacity: 0; pointer-events: none; }
.fc-prev { left: -20px; }
.fc-next { right: -20px; }
.fc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--light-gray);
  cursor: pointer;
  transition: var(--transition-fast);
}
.fc-dot:hover { background: var(--gold-light); }
.fc-dot.active { background: var(--gold); transform: scale(1.25); }
.fc-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fc-cta { text-align: center; margin-top: 36px; }
/* When every card already fits, the controls are redundant. */
.fc-static .fc-btn,
.fc-static .fc-dots { display: none; }

@media (max-width: 992px) {
  .fc-slide { flex-basis: calc((100% - 24px) / 2); } /* 2 cards on tablet */
  .fc-prev { left: 0; }
  .fc-next { right: 0; }
}
@media (max-width: 640px) {
  .fc-slide { flex-basis: 100%; }                    /* 1 card on mobile */
  .fc-btn { display: none; }                          /* swipe on touch */
}
@media (prefers-reduced-motion: reduce) {
  /* Only disable the large auto-scroll motion. The hover lift is a small,
     non-looping micro-interaction and is kept intentionally smooth. */
  .fc-track { scroll-behavior: auto; }
}
