/*
 * DevBridge Community Website
 * Licensed to: Malijuda Distributors (Pty) Ltd, trading as Rehoboth Boerdery
 * Licence: https://devbridge.co.za/docs/DevBridge_Community_Licence.pdf
 * © 2026 DevBridge — devbridge.co.za
 * Unauthorised redistribution prohibited.
 */

/* =============================================
   MALIJUDA DISTRIBUTORS — REHOBOTH BOERDERY
   Design System v1.0
   ============================================= */

/* Fonts loaded via <link> in HTML for performance — no @import */

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --forest:          #1C3A1E;
  --forest-light:    #2D5432;
  --forest-mid:      #243F27;
  --lime:            #6AAF2E;
  --lime-light:      #87C84A;
  --cream:           #F5F0E6;
  --cream-dark:      #EDE6D5;
  --warm-white:      #FDFAF4;
  --olive:           #8A9A6B;
  --copper:          #B87333;
  --copper-light:    #D4924A;
  --charcoal:        #1E1E1E;
  --charcoal-mid:    #3A3A3A;
  --text-muted:      #6B6655;
  --sage-light:      #C8D4B8;

  --forest-overlay:       rgba(28,58,30,0.80);
  --forest-overlay-light: rgba(28,58,30,0.55);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-height:   80px;
  --section-pad:  clamp(80px, 10vw, 140px);
  --container:    min(1320px, 92vw);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest); }

@media (max-width: 768px) {
  html { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; }
}

/* =============================================
   CUSTOM CURSOR (fine pointer / desktop only)
   ============================================= */
@media (pointer: fine) {
  * { cursor: none !important; }

  .site-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(28, 58, 30, 0.55);
    background: rgba(184, 115, 51, 0.2);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition:
      width  0.18s var(--ease-out),
      height 0.18s var(--ease-out),
      border-color 0.18s ease,
      background   0.18s ease;
    will-change: left, top;
  }

  /* Hover state — expands, shifts to lime tint */
  .site-cursor.cursor-hover {
    width: 34px; height: 34px;
    border-color: rgba(106, 175, 46, 0.75);
    background: rgba(28, 58, 30, 0.07);
  }

  /* Click state — squeezes, copper fill */
  .site-cursor.cursor-click {
    width: 14px; height: 14px;
    background: rgba(184, 115, 51, 0.55);
    border-color: rgba(184, 115, 51, 0.8);
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9998;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* =============================================
   PAGE LOADER
   ============================================= */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--forest);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  height: 80px; width: auto; margin-bottom: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(245,240,230,0.12);
  animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}
.loader-bar { width: 140px; height: 1px; background: rgba(255,255,255,0.12); overflow: hidden; }
.loader-bar span {
  display: block; height: 100%; width: 0;
  background: var(--lime);
  animation: loaderFill 1.4s var(--ease-out) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-text {
  margin-top: 20px;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-64px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(64px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.90);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger > * { transition-delay: calc(var(--i, 0) * 0.12s); }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 clamp(24px, 4vw, 60px);
  transition: background 0.4s var(--ease-smooth), backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-nav.scrolled {
  background: rgba(245, 240, 230, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(28,58,30,0.08);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container); margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; }

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--cream);
  transition: color 0.2s var(--ease-smooth);
  letter-spacing: 0.02em;
}
.site-nav.scrolled .nav-logo-name { color: var(--forest); }

.nav-logo-sub {
  font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,230,0.5);
  transition: color 0.2s var(--ease-smooth);
}
.site-nav.scrolled .nav-logo-sub { color: var(--olive); }

.nav-links {
  display: flex; align-items: center;
  gap: clamp(24px, 3vw, 40px); list-style: none;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,240,230,0.80);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--lime);
  transition: right 0.3s var(--ease-smooth);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.site-nav.scrolled .nav-links a { color: var(--charcoal-mid); }
.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active { color: var(--forest); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: var(--lime); color: var(--forest) !important;
  font-size: 0.75rem !important; font-weight: 600 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  transition: background 0.2s, transform 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--lime-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-burger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  padding: 6px; background: none; border: none;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
  transform-origin: center;
}
.site-nav.scrolled .nav-burger span { background: var(--forest); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--forest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin-bottom: 28px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 400;
  color: var(--cream); letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--lime); }
.mobile-menu-footer {
  position: absolute; bottom: 40px;
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,240,230,0.3);
}

/* =============================================
   HERO — SPLIT PANEL
   ============================================= */
.hero-split {
  min-height: 101vh;
  display: grid; grid-template-columns: 48% 52%;
  position: relative;
}

.hero-left {
  background: var(--forest);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(80px,10vw,120px) clamp(40px,5vw,80px);
  padding-top: calc(var(--nav-height) + 80px);
  position: relative; overflow: hidden;
}
.hero-left::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(106,175,46,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.hero-eyebrow-line { width: 30px; height: 1px; background: var(--copper); }
.hero-eyebrow-text {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 300; line-height: 1.01;
  letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--lime); }

.hero-subtitle {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 300; color: rgba(245,240,230,0.6);
  line-height: 1.75; max-width: 380px; margin-bottom: 52px;
}

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

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--lime); color: var(--forest);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--lime-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border: 1px solid rgba(245,240,230,0.28);
  color: var(--cream);
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: rgba(245,240,230,0.65);
  background: rgba(245,240,230,0.06);
}

.hero-scroll-hint {
  position: absolute; bottom: 44px;
  left: clamp(40px,5vw,80px);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245,240,230,0.3);
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(245,240,230,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:0.9} }

.hero-right { position: relative; overflow: hidden; }
.hero-right img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.hero-right:hover img { transform: scale(1.05); }
.hero-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,58,30,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  position: absolute; bottom: 40px; right: 40px; z-index: 2;
  background: var(--cream);
  padding: 20px 24px;
  border-left: 3px solid var(--lime);
  max-width: 210px;
}
.hero-badge-label {
  font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 4px;
}
.hero-badge-text {
  font-family: var(--font-display);
  font-size: 0.98rem; font-weight: 500; color: var(--forest); line-height: 1.25;
}

/* =============================================
   STATS STRIP
   ============================================= */
.features-strip {
  background: var(--forest);
  padding: 60px 0;
}
.features-strip-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 32px; position: relative;
}
.stat-item:not(:last-child)::after {
  content: ''; position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px; background: rgba(245,240,230,0.1);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem,5vw,4.5rem); font-weight: 300;
  color: var(--cream); line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.stat-suffix { color: var(--lime); }
.stat-label {
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245,240,230,0.45); margin-bottom: 4px;
}
.stat-desc {
  font-size: 0.78rem; color: rgba(245,240,230,0.3);
  font-style: italic; font-family: var(--font-display);
}

/* =============================================
   ABOUT PREVIEW
   ============================================= */
.about-preview {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.about-preview-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,100px); align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 560px; object-fit: cover; }
.about-img-wrap::after {
  content: ''; position: absolute;
  bottom: -24px; right: -24px;
  width: 55%; height: 55%;
  border: 2px solid var(--copper); z-index: -1;
}

.section-tag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 28px; height: 1px; background: var(--copper); }
.section-tag span {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem,3.8vw,3.2rem); font-weight: 400;
  line-height: 1.1; letter-spacing: -0.01em;
}
.section-heading em { font-style: italic; font-weight: 300; }
.heading-dark { color: var(--forest); }
.heading-light { color: var(--cream); }

.section-body {
  font-size: 0.94rem; color: var(--text-muted);
  line-height: 1.82; margin-bottom: 28px;
}

.trading-badge {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 36px; padding: 16px 20px;
  border-left: 2px solid var(--lime);
  background: rgba(106,175,46,0.04);
}
.trading-label {
  font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 3px;
}
.trading-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; color: var(--forest);
}

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--forest); color: var(--cream);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.btn-dark:hover { background: var(--forest-light); transform: translateY(-2px); }

/* =============================================
   DEPARTMENTS
   ============================================= */
.departments {
  padding: var(--section-pad) 0;
  background: var(--forest); position: relative; overflow: hidden;
}
.departments::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(106,175,46,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.departments-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
}
.section-header { margin-bottom: clamp(48px,6vw,80px); }
.section-subheading {
  margin-top: 16px; font-size: 0.94rem; line-height: 1.7; max-width: 560px;
}
.subheading-light { color: rgba(245,240,230,0.55); }
.subheading-dark { color: var(--text-muted); }

.dept-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.dept-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,240,230,0.06);
  padding: 48px 36px;
  position: relative; overflow: hidden;
  transition: background 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.dept-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.dept-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.dept-card:hover::before { transform: scaleX(1); }

.dept-icon {
  width: 52px; height: 52px;
  background: rgba(106,175,46,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  transition: background 0.2s;
}
.dept-card:hover .dept-icon { background: rgba(106,175,46,0.2); }
.dept-icon svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 1.5; }

.dept-name {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 400;
  color: var(--cream); margin-bottom: 14px;
  line-height: 1.12; letter-spacing: -0.01em;
}
.dept-desc {
  font-size: 0.87rem; color: rgba(245,240,230,0.48);
  line-height: 1.78; margin-bottom: 28px;
}
.dept-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lime);
  font-weight: 500; transition: gap 0.2s;
}
.dept-link:hover { gap: 12px; }
.dept-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; }

/* =============================================
   FOUNDER SECTION
   ============================================= */
.founder-section {
  padding: var(--section-pad) 0;
  background: var(--cream-dark); position: relative; overflow: hidden;
}
.founder-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,100px); align-items: center;
}

.founder-content { position: relative; }
.founder-quote-mark {
  font-family: var(--font-display);
  font-size: 9rem; line-height: 0.6;
  color: var(--sage-light); position: absolute;
  top: -15px; left: -16px;
  pointer-events: none; font-weight: 300;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 300;
  font-style: italic; line-height: 1.5; color: var(--forest);
  margin-bottom: 32px; position: relative; z-index: 1;
  padding-left: 20px;
}
.founder-attribution {
  display: flex; align-items: center; gap: 16px; padding-left: 20px;
}
.founder-attr-line { width: 24px; height: 1px; background: var(--copper); }
.founder-attr-name {
  font-size: 0.82rem; font-weight: 500;
  color: var(--forest); letter-spacing: 0.06em;
}
.founder-attr-role {
  font-size: 0.68rem; color: var(--olive);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px;
}

.founder-img-wrap { position: relative; }
.founder-img-wrap img { width: 100%; height: 500px; object-fit: cover; }
.founder-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(28,58,30,0.88) 0%, transparent 100%);
}
.founder-img-caption {
  font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,240,230,0.65);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  padding: clamp(80px,10vw,120px) 0;
  background: var(--charcoal); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/community.jpg');
  background-size: cover; background-position: center; opacity: 0.1;
}
.cta-banner-inner {
  position: relative; max-width: var(--container);
  margin: 0 auto; padding: 0 clamp(24px,4vw,60px);
  text-align: center;
}
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.cta-eyebrow span {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper);
}
.cta-eyebrow::before, .cta-eyebrow::after {
  content: ''; width: 20px; height: 1px; background: var(--copper);
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem,5vw,4.5rem); font-weight: 300;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: 24px;
}
.cta-body {
  font-size: 0.97rem; color: rgba(245,240,230,0.5);
  line-height: 1.7; max-width: 480px; margin: 0 auto 44px;
}
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  min-height: 101vh; position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: 80px; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,58,30,0.5) 0%, rgba(28,58,30,0.88) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px); width: 100%;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,240,230,0.45);
}
.breadcrumb a { color: inherit; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb-sep { opacity: 0.3; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem,6vw,5.2rem); font-weight: 300;
  line-height: 1.04; letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1rem; color: rgba(245,240,230,0.58);
  max-width: 500px; line-height: 1.65;
}

/* Brand medallion — about page hero */
.about-hero-brand {
  position: absolute;
  right: clamp(80px, 10vw, 180px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  animation: brandFloat 7s ease-in-out infinite;
}
.about-hero-brand::before,
.about-hero-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,240,230,0.28);
  pointer-events: none;
}
.about-hero-brand::before { inset: -14px; }
.about-hero-brand::after  { inset: -30px; border-color: rgba(245,240,230,0.12); }
.about-hero-brand img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(245,240,230,0.4),
    0 28px 70px rgba(0,0,0,0.55);
}
@keyframes brandFloat {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 12px)); }
}
@media (max-width: 900px) {
  .about-hero-brand { width: 130px; height: 130px; right: 36px; }
}
@media (max-width: 640px) {
  .about-hero-brand { display: none; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.story-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.story-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  display: grid; grid-template-columns: 2fr 1fr;
  gap: clamp(48px,6vw,100px); align-items: start;
}
.story-body p {
  font-size: 0.97rem; color: var(--text-muted);
  line-height: 1.88; margin-bottom: 22px;
}
.story-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 300;
  float: left; line-height: 0.75;
  margin-right: 10px; color: var(--copper);
}
.story-sidebar {
  position: sticky; top: calc(var(--nav-height) + 32px);
}
.sidebar-facts { background: var(--forest); padding: 36px 32px; }
.sidebar-fact {
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,240,230,0.08);
}
.sidebar-fact:first-child { padding-top: 0; }
.sidebar-fact:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-fact-label {
  font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245,240,230,0.38); margin-bottom: 4px;
}
.sidebar-fact-value {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 400; color: var(--cream); line-height: 1.3;
}

.sustainability {
  padding: var(--section-pad) 0;
  background: var(--cream-dark);
}
.sustainability-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
}
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: clamp(40px,5vw,64px);
}
.pillar-card {
  background: var(--cream);
  padding: 48px 36px; position: relative;
}
.pillar-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.pillar-card:nth-child(1)::before { background: var(--lime); }
.pillar-card:nth-child(2)::before { background: var(--copper); }
.pillar-card:nth-child(3)::before { background: var(--olive); }
.pillar-number {
  font-family: var(--font-display);
  font-size: 5rem; font-weight: 300;
  color: var(--sage-light); line-height: 1;
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.pillar-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500; color: var(--forest); margin-bottom: 12px;
}
.pillar-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.78; }

.vision-section {
  padding: var(--section-pad) 0;
  background: var(--forest);
}
.vision-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
}
.vision-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,80px); align-items: center;
  margin-top: clamp(48px,6vw,80px);
}
.vision-img img { width: 100%; height: 480px; object-fit: cover; }

.objectives-list { list-style: none; }
.objective-item {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245,240,230,0.08);
}
.objective-item:first-child { padding-top: 0; }
.objective-num {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 300;
  color: var(--lime); flex-shrink: 0; width: 28px;
}
.objective-text {
  font-size: 0.9rem; color: rgba(245,240,230,0.62); line-height: 1.68;
}

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-intro {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.services-intro-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  text-align: center; max-width: 720px;
}

.service-block-section {
  padding: var(--section-pad) 0;
}
.service-block-section:nth-child(even) { background: var(--cream); }
.service-block-section:nth-child(odd) { background: var(--cream-dark); }

.service-block {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,100px); align-items: center;
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-img { position: relative; overflow: hidden; }
.service-img img {
  width: 100%; height: 520px; object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.service-img:hover img { transform: scale(1.04); }
.service-img-badge {
  position: absolute; top: 24px; left: 24px;
  background: var(--forest); color: var(--cream);
  padding: 8px 16px;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
}

.service-number {
  font-size: 0.62rem; letter-spacing: 0.22em;
  color: var(--copper); text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.service-number::before { content: ''; width: 28px; height: 1px; background: var(--copper); }
.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 400;
  line-height: 1.1; color: var(--forest); margin-bottom: 18px;
}
.service-desc {
  font-size: 0.93rem; color: var(--text-muted);
  line-height: 1.82; margin-bottom: 28px;
}
.service-features { list-style: none; margin-bottom: 36px; }
.service-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; font-size: 0.88rem; color: var(--charcoal-mid);
}
.service-feature::before {
  content: ''; width: 6px; height: 6px;
  background: var(--lime); flex-shrink: 0;
  margin-top: 6px; border-radius: 50%;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.contact-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px,6vw,100px);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.67rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 13px 15px;
  background: var(--cream-dark); border: 1px solid transparent;
  border-bottom: 1px solid rgba(28,58,30,0.15);
  font-family: var(--font-body); font-size: 0.93rem; color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s;
  outline: none; appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--forest); background: white; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--forest); color: var(--cream);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--forest-light); }

.contact-info-block { margin-bottom: 36px; }
.contact-info-label {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--copper);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.contact-info-label::before { content: ''; width: 20px; height: 1px; background: var(--copper); }
.contact-info-text {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400; color: var(--forest); line-height: 1.55;
}
.contact-divider {
  width: 100%; height: 1px;
  background: rgba(28,58,30,0.08); margin: 28px 0;
}

.markets-section {
  padding: var(--section-pad) 0;
  background: var(--forest);
}
.markets-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
}
.markets-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-top: clamp(40px,5vw,64px);
}
.market-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,240,230,0.06);
  padding: 36px 32px;
}
.market-type {
  font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 8px;
}
.market-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 6px;
}
.market-detail { font-size: 0.82rem; color: rgba(245,240,230,0.38); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #181818;
  padding: 80px 0 40px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(24px,4vw,60px);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(40px,5vw,60px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,240,230,0.07);
  margin-bottom: 40px;
}
.footer-logo img {
  height: 56px; width: auto;
  border-radius: 50%;
  opacity: 0.88;
  margin-bottom: 18px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400; color: var(--cream); margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,240,230,0.35); margin-bottom: 18px;
}
.footer-brand-desc {
  font-size: 0.84rem; color: rgba(245,240,230,0.38);
  line-height: 1.72; max-width: 270px;
}
.footer-col-heading {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245,240,230,0.3); margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.86rem; color: rgba(245,240,230,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-contact-item {
  display: flex; gap: 10px; margin-bottom: 12px;
  font-size: 0.84rem; color: rgba(245,240,230,0.5); line-height: 1.5;
}
.footer-contact-icon {
  width: 16px; height: 16px; stroke: var(--olive);
  fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 3px;
}

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-copyright { font-size: 0.76rem; color: rgba(245,240,230,0.28); }
.built-by {
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0.35; transition: opacity 0.4s; text-decoration: none;
}
.built-by:hover { opacity: 0.7; }
.built-by-text { font-size: 0.7rem; color: rgba(245,240,230,0.5); }
.devbridge-logo { height: 14px; width: auto; filter: brightness(0) invert(1); }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20,36,21,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: rgba(245,240,230,0.55);
  font-size: 2rem; cursor: pointer; line-height: 1; transition: color 0.2s;
}
.lightbox-close:hover { color: var(--cream); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 55% 45%; }
  .dept-grid { grid-template-columns: 1fr; }
  .about-preview-inner,
  .founder-inner,
  .story-inner,
  .vision-grid,
  .service-block,
  .contact-inner { grid-template-columns: 1fr; gap: clamp(40px,5vw,60px); }
  .service-block.reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .hero-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-left {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px; min-height: unset;
  }
  .hero-right { height: 55vh; }
  .hero-scroll-hint { display: none; }
  .features-strip-inner { grid-template-columns: 1fr; gap: 32px; }
  .stat-item::after { display: none; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .about-img-wrap::after { display: none; }
  .page-hero { min-height: 60vh; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-dark, .btn-outline { text-align: center; justify-content: center; }
}
