/* ============================================
   ESSENCE BUSINESS PLATFORM LIMITED
   Corporate Website — Master Stylesheet
   ============================================ */

:root {
  --emerald: #0B3D2E;
  --emerald-dark: #072A1F;
  --emerald-mid: #145C44;
  --emerald-light: #E8F4EE;
  --gold: #C8972A;
  --gold-light: #F5E6C0;
  --gold-dark: #9A7020;
  --white: #FFFFFF;
  --charcoal: #222222;
  --charcoal-mid: #444444;
  --grey-dark: #888888;
  --grey: #CCCCCC;
  --grey-light: #F5F5F5;
  --border: #E8E8E8;

  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', 'Arial', sans-serif;

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

  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--charcoal); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
p { color: var(--charcoal-mid); line-height: 1.75; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-xl) 0; }
.section--lg { padding: var(--space-xxl) 0; }
.section--sm { padding: var(--space-lg) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* EYEBROW */
.eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-sm); }
.eyebrow--light { color: rgba(200,151,42,0.8); }

/* DIVIDER */
.divider { width: 48px; height: 3px; background: var(--gold); margin: var(--space-sm) 0 var(--space-md); }
.divider--center { margin: var(--space-sm) auto var(--space-md); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; border-radius: var(--radius); transition: var(--transition); }
.btn--primary { background: var(--emerald); color: var(--white); }
.btn--primary:hover { background: var(--emerald-mid); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,61,46,0.25); }
.btn--outline { background: transparent; color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn--outline:hover { background: var(--emerald); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn--sm { padding: 10px 20px; font-size: 0.8rem; }

/* ============================================ NAVIGATION */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark { width: 36px; height: 36px; }
.nav__logo-text { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--emerald); line-height: 1.2; }
.nav__logo-sub { font-family: var(--font-body); font-size: 0.6rem; font-weight: 600; color: var(--grey-dark); letter-spacing: 0.1em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 0.875rem; font-weight: 500; color: var(--charcoal-mid); transition: var(--transition); }
.nav__link:hover { color: var(--emerald); }
.nav__link--active { color: var(--emerald); font-weight: 600; }
.nav__cta { font-size: 0.8rem; font-weight: 600; padding: 10px 20px; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); transition: var(--transition); }
.nav__mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 24px; flex-direction: column; gap: 20px; z-index: 99; }
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1rem; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ============================================ HERO */
.hero { padding-top: 160px; padding-bottom: var(--space-xxl); background: var(--white); }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--emerald-light); border: 1px solid rgba(11,61,46,0.12); border-radius: 100px; padding: 6px 14px; font-size: 0.75rem; font-weight: 600; color: var(--emerald); margin-bottom: var(--space-md); letter-spacing: 0.05em; }
.hero__kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__headline { margin-bottom: var(--space-sm); color: var(--charcoal); }
.hero__headline em { font-style: normal; color: var(--emerald); }
.hero__sub { font-size: 1.125rem; color: var(--charcoal-mid); max-width: 560px; margin-bottom: var(--space-lg); line-height: 1.8; }
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.hero__stats { display: flex; gap: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.hero__stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--emerald); display: block; }
.hero__stat-label { font-size: 0.8rem; color: var(--grey-dark); letter-spacing: 0.05em; }

/* ============================================ SECTION HEADERS */
.section-header { margin-bottom: var(--space-lg); }
.section-header--center { text-align: center; }
.section-header--center .divider { margin: var(--space-sm) auto var(--space-md); }
.section-title { margin-bottom: var(--space-sm); }
.section-desc { font-size: 1.05rem; color: var(--charcoal-mid); max-width: 600px; line-height: 1.8; }
.section-header--center .section-desc { margin: 0 auto; }

/* ============================================ DARK SECTION */
.section--dark { background: var(--emerald); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.72); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .divider { background: var(--gold); }

.section--charcoal { background: var(--charcoal); }
.section--charcoal h2, .section--charcoal h3 { color: var(--white); }
.section--charcoal p { color: rgba(255,255,255,0.65); }

.section--grey { background: var(--grey-light); }

/* ============================================ CARDS */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-md); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__icon { width: 48px; height: 48px; background: var(--emerald-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); }
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 8px; }
.card__desc { font-size: 0.875rem; color: var(--charcoal-mid); line-height: 1.7; }

/* BRAND CARDS */
.brand-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.brand-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.brand-card__header { height: 8px; background: var(--emerald); }
.brand-card__body { padding: var(--space-md); }
.brand-card__logo { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--emerald); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm); }
.brand-card__name { font-size: 1.1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.brand-card__type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-sm); }
.brand-card__desc { font-size: 0.875rem; color: var(--charcoal-mid); line-height: 1.7; margin-bottom: var(--space-md); }
.brand-card__link { font-size: 0.8rem; font-weight: 600; color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.brand-card__link:hover { color: var(--gold); }

/* VALUE CARDS */
.value-card { padding: var(--space-md) 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.value-card:last-child { border-bottom: none; }
.value-card__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: rgba(200,151,42,0.25); line-height: 1; margin-bottom: 8px; }
.value-card__title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.value-card__desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ============================================ FOOTER */
.footer { background: var(--charcoal); padding: var(--space-xl) 0 var(--space-md); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); padding-bottom: var(--space-xl); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer__brand-tagline { font-size: 0.75rem; color: var(--grey-dark); margin-bottom: var(--space-md); }
.footer__brand-desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer__col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: var(--space-sm); }
.footer__link { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: var(--transition); }
.footer__link:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.footer__copy { font-size: 0.775rem; color: rgba(255,255,255,0.3); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 0.775rem; color: rgba(255,255,255,0.3); transition: var(--transition); }
.footer__legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================ ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================ RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__stats { flex-direction: column; gap: var(--space-md); }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--space-lg) 0; }
  .section--lg { padding: var(--space-xl) 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
