/* ============================================================
   ERP.LK — MAIN STYLESHEET
   AccSoft Solutions (Pvt) Ltd
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand */
  --green:        #0F8B6D;
  --green-dark:   #0a6e57;
  --green-mid:    #0d7a61;
  --green-light:  #12a07e;
  --green-pale:   #e6f4f0;
  --green-ultra:  #f0faf7;

  /* Neutrals */
  --beige:        #E8D8C3;
  --beige-light:  #f5ede1;
  --bg:           #F8F5F1;
  --white:        #ffffff;
  --dark:         #0d0d0d;
  --dark2:        #1a1a1a;
  --dark3:        #2d2d2d;
  --body-text:    #374151;
  --muted:        #6B7280;
  --subtle:       #9CA3AF;
  --border:       rgba(0,0,0,0.07);
  --border-green: rgba(15,139,109,0.15);
  --gray-100:     #f9fafb;
  --gray-200:     #f3f4f6;
  --gray-300:     #e5e7eb;

  /* Header */
  --nav-bg:       #111111;
  --nav-height:   70px;

  /* Typography */
  --font-head:    'Plus Jakarta Sans', sans-serif;
  --font-body:    'Manrope', sans-serif;

  /* Shadows */
  --sh-xs:  0 1px 4px rgba(0,0,0,0.06);
  --sh-sm:  0 2px 12px rgba(0,0,0,0.08);
  --sh-md:  0 6px 28px rgba(0,0,0,0.10);
  --sh-lg:  0 16px 56px rgba(0,0,0,0.13);
  --sh-xl:  0 28px 80px rgba(0,0,0,0.16);
  --sh-green-sm: 0 4px 16px rgba(15,139,109,0.25);
  --sh-green-md: 0 8px 32px rgba(15,139,109,0.30);
  --sh-green-lg: 0 16px 48px rgba(15,139,109,0.35);

  /* Radius */
  --r-sm:  8px;
  --r:     14px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  36px;

  /* Transitions */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.0, 0, 0.2, 1);
  --t-fast:     0.18s;
  --t-base:     0.28s;
  --t-slow:     0.55s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body-text);
  overflow-x: hidden;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  color: var(--dark);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 560px;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 0.85rem 1.85rem;
  box-shadow: var(--sh-green-sm);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-green-md);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  padding: 0.82rem 1.75rem;
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--dark);
  padding: 0.85rem 1.85rem;
  box-shadow: var(--sh-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.82rem 1.75rem;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 1rem 2.25rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

section { padding: 96px 2rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  height: var(--nav-height);
  transition: box-shadow var(--t-base);
}
#site-nav.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.35);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  /* Force white/light rendering on dark bg */
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity var(--t-fast);
}
.nav-logo:hover .nav-logo-img { opacity: 1; }

/* If logo fails to load — fallback wordmark */
.nav-logo-fallback {
  display: none;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-fallback-main {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.nav-logo-fallback-main span { color: var(--green-light); }
.nav-logo-fallback-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 0.1rem;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-links a.active {
  color: var(--green-light);
  background: rgba(15,139,109,0.15);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-tel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-tel:hover { color: #fff; }
.nav-tel svg { color: var(--green-light); }

.nav-cta-btn {
  background: var(--green);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 3px 10px rgba(15,139,109,0.35);
}
.nav-cta-btn:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(15,139,109,0.45);
}

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: #111;
  z-index: 999;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--t-fast);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--green-light); }
.mobile-menu-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #0c0c0c;
  color: rgba(255,255,255,0.6);
  padding: 72px 2rem 28px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.footer-logo-wrap img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo-fallback {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-logo-fallback span { color: var(--green-light); }
.footer-tagline {
  font-size: 0.855rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.38);
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.42);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; color: var(--green-light); }
.footer-contact-item a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color var(--t-fast); }
.footer-contact-item a:hover { color: var(--green-light); }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.1rem;
  letter-spacing: 0.3px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-links a:hover { color: var(--green-light); }
.footer-links a::before { content: '→'; font-size: 0.7rem; opacity: 0; transition: opacity var(--t-fast); }
.footer-links a:hover::before { opacity: 1; }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all var(--t-base);
}
.social-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  font-size: 0.82rem;
  color: #fff;
  outline: none;
  transition: border-color var(--t-fast);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.28); }
.newsletter-input:focus { border-color: var(--green); }
.newsletter-btn {
  padding: 0.6rem 1rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.newsletter-btn:hover { background: var(--green-light); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.font-head { font-family: var(--font-head); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* Page top spacing (for fixed nav) */
.page-body { padding-top: var(--nav-height); }

/* ============================================================
   RESPONSIVE — GLOBAL
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 80px 1.75rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  section { padding: 64px 1.25rem; }
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.85rem; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 480px) {
  section { padding: 56px 1rem; }
}
