/* =============================================
   LEXX CORPORATE LIMITED — DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:       #0D1B2A;
  --navy2:      #162236;
  --navy3:      #1e3048;
  --green:      #7CB518;
  --green2:     #5a8a0f;
  --green-light:#e8f3ce;
  --cream:      #F5F3ED;
  --cream2:     #ECEADE;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --muted:      #6b7280;
  --border:     #e2ddd4;
  --border2:    #d4cec5;
  --shadow:     0 4px 24px rgba(13,27,42,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

/* ---- UTILITY ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.text-green { color: var(--green); }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  height: 72px;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.4); }

.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 80px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  color: #fff; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo span { color: var(--green); }
.logo small {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-left: 10px; vertical-align: middle;
}

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--green);
  transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--green); color: #fff;
  padding: 10px 24px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green2); transform: translateY(-1px); }

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   PAGE HERO (shared)
   ============================================= */
.page-hero {
  padding: 160px 0 100px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-bar {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--green);
}
.page-hero-accent {
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(124,181,24,0.07) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--green); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px; font-weight: 300;
  line-height: 1.05; color: #fff;
}
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-hero .lead {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.75; max-width: 560px;
  margin-top: 24px;
}

/* =============================================
   SECTION BASE
   ============================================= */
section { padding: 100px 0; }
.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--green); }
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; line-height: 1.1;
  color: var(--navy);
}
h2.on-dark { color: #fff; }
.section-intro {
  font-size: 17px; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin-top: 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  padding: 16px 36px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green2); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8);
  padding: 16px 36px;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-outline.dark {
  border-color: var(--border2); color: var(--navy);
}
.btn-outline.dark:hover { border-color: var(--green); color: var(--green); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #07111C;
  padding: 80px 0 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 80px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
}
.footer-brand .logo { font-size: 28px; }
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.4);
  line-height: 1.7; margin-top: 20px; max-width: 260px;
}
.footer-social {
  display: flex; gap: 12px; margin-top: 28px;
}
.social-link {
  width: 36px; height: 36px;
  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: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--green); color: var(--green); }
.footer-col h4 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px; color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding: 24px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* =============================================
   ANIMATIONS (shared)
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-up { animation: fadeUp 0.7s ease both; }
.anim-up-1 { animation: fadeUp 0.7s 0.1s ease both; }
.anim-up-2 { animation: fadeUp 0.7s 0.2s ease both; }
.anim-up-3 { animation: fadeUp 0.7s 0.3s ease both; }
.anim-up-4 { animation: fadeUp 0.7s 0.4s ease both; }

/* Scroll-reveal */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.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; }

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  height: 1px; background: var(--border);
  margin: 0 80px;
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

/* Tablet Landscape (1024px) */
@media screen and (max-width: 1024px) {
  .container { padding: 0 40px; }
  
  /* Navigation */
  .nav-inner { padding: 0 40px; }
  .nav-links { gap: 20px; }
  
  /* Page Hero */
  .page-hero h1 { font-size: 56px; }
  .page-hero .lead { font-size: 16px; max-width: 100%; }
  
  /* Section Base */
  section { padding: 80px 0; }
  h2 { font-size: 42px; }
  .section-intro { max-width: 100%; }
  
  /* Footer */
  .footer-inner {
    padding: 0 40px 60px;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-bottom {
    padding: 24px 40px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  /* Divider */
  .divider { margin: 0 40px; }
}

/* Tablet Portrait (768px) */
@media screen and (max-width: 768px) {
  .container { padding: 0 20px; }
  
  /* Navigation */
  nav { height: 60px; }
  .nav-inner { padding: 0 20px; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  
  .nav-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    width: 100%;
    padding: 8px 0;
  }
  .nav-links a::after { display: none; }
  
  .nav-cta { display: none; }
  .nav-cta-mobile {
    display: block;
    background: var(--green);
    color: #fff;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
  }
  .nav-cta-mobile:hover { background: var(--green2); }
  
  .nav-toggle { display: block; }
  
  /* Overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .nav-overlay.active { display: block; }
  
  .logo { font-size: 22px; }
  .logo small { display: none; }
  
  /* Page Hero */
  .page-hero {
    padding: 120px 0 60px;
  }
  .page-hero h1 { font-size: 40px; }
  .page-hero .lead { font-size: 15px; margin-top: 16px; }
  .page-hero-bar { width: 3px; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .eyebrow::before { width: 24px; }
  
  /* Section Base */
  section { padding: 60px 0; }
  h2 { font-size: 34px; }
  .section-intro { font-size: 15px; margin-top: 12px; }
  .section-label { font-size: 10px; }
  
  /* Buttons */
  .btn-primary,
  .btn-outline,
  .btn-outline.dark {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 12px;
  }
  
  /* Footer */
  footer { padding: 60px 0 0; }
  .footer-inner {
    padding: 0 20px 40px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { padding: 20px; }
  .footer-bottom p { font-size: 11px; }
  
  /* Divider */
  .divider { margin: 0 20px; }
}

/* Mobile (480px) */
@media screen and (max-width: 480px) {
  .container { padding: 0 16px; }
  
  /* Navigation */
  .nav-inner { padding: 0 16px; }
  .logo { font-size: 20px; }
  
  /* Page Hero */
  .page-hero {
    padding: 100px 0 50px;
  }
  .page-hero h1 { font-size: 34px; }
  .page-hero .lead { font-size: 14px; }
  .eyebrow { font-size: 9px; gap: 8px; }
  .eyebrow::before { width: 20px; }
  
  /* Section Base */
  section { padding: 50px 0; }
  h2 { font-size: 30px; }
  .section-intro { font-size: 14px; }
  
  /* Buttons */
  .btn-primary,
  .btn-outline,
  .btn-outline.dark {
    padding: 12px 24px;
    font-size: 11px;
    gap: 8px;
  }
  
  /* Footer */
  .footer-inner {
    padding: 0 16px 40px;
    gap: 32px;
  }
  .footer-bottom { padding: 16px; }
}

/* Small Mobile (360px) */
@media screen and (max-width: 360px) {
  .page-hero h1 { font-size: 28px; }
  h2 { font-size: 26px; }
  .page-hero .lead { font-size: 13px; }
  .section-intro { font-size: 13px; }
}


/* =============================================
   MOBILE NAVIGATION 
   ============================================= */

/* Tablet Portrait (768px) */
@media screen and (max-width: 768px) {
  .container { padding: 0 20px; }
  
  /* Navigation */
  nav { height: 60px; }
  .nav-inner { padding: 0 20px; }
  
  /* Hide desktop CTA on mobile */
  .nav-inner > .nav-cta {
    display: none !important;
  }
  
  /* Show hamburger button */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* Modern mobile viewport height */
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 14px;
    color: rgba(255,255,255,0.8) !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
  }
  
  .nav-links a::after {
    display: none !important;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--green) !important;
  }
  
  /* Mobile CTA button inside menu */
  .nav-cta-mobile {
    display: block !important;
    background: var(--green);
    color: #fff !important;
    padding: 14px 24px !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none !important;
    border-bottom: none !important;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
    border-radius: 0;
  }
  
  .nav-cta-mobile:hover {
    background: var(--green2) !important;
    color: #fff !important;
  }
  
  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
  }
  
  .nav-overlay.active {
    display: block;
    opacity: 1;
  }
  
  /* Logo adjustments for mobile */
  .logo { font-size: 22px; }
  .logo small { display: none; }
  
  /* Page Hero */
  .page-hero {
    padding: 120px 0 60px;
  }
  .page-hero h1 { font-size: 40px; }
  .page-hero .lead { font-size: 15px; margin-top: 16px; }
  .page-hero-bar { width: 3px; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .eyebrow::before { width: 24px; }
  
  /* Section Base */
  section { padding: 60px 0; }
  h2 { font-size: 34px; }
  .section-intro { font-size: 15px; margin-top: 12px; }
  .section-label { font-size: 10px; }
  
  /* Buttons */
  .btn-primary,
  .btn-outline,
  .btn-outline.dark {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 12px;
  }
  
  /* Footer */
  footer { padding: 60px 0 0; }
  .footer-inner {
    padding: 0 20px 40px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { 
    padding: 20px; 
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-bottom p { font-size: 11px; }
  
  /* Divider */
  .divider { margin: 0 20px; }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .nav-links {
    width: 100%;
  }
  
  .logo {
    font-size: 20px;
  }
}