/* ============================================================
   MYeBills — Shared Stylesheet
   www.myebills.com.my
   ============================================================ */

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

:root {
  --primary:            #00602a;
  --primary-container:  #1a7a3c;
  --primary-dark:       #004d22;
  --secondary:          #426900;
  --surface:            #f8faf8;
  --surface-low:        #f2f4f2;
  --surface-lowest:     #ffffff;
  --on-surface:         #191c1b;
  --on-surface-variant: #3f4945;
  --on-primary:         #ffffff;
  --outline-variant:    rgba(63,73,69,0.15);
  --shadow:             rgba(25,28,27,0.06);
  --font-body:          'Plus Jakarta Sans', sans-serif;
  --font-identity:      'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--on-surface); background: var(--surface-lowest); -webkit-font-smoothing: antialiased; }

/* ── NAVIGATION ── */
.nav-identity { background: var(--surface-lowest); border-bottom: 1px solid var(--outline-variant); padding: 0 2.5rem; height: 72px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.nav-identity-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-logo img { width: 82px; height: 60px; object-fit: contain; mix-blend-mode: multiply; }
.nav-logo-text { display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; }
.nav-logo-name { font-family: var(--font-identity); font-size: 1.85rem; font-weight: 600; color: var(--primary); letter-spacing: -0.02em; line-height: 1; }
.nav-logo-ssm { font-family: var(--font-identity); font-size: 0.68rem; font-weight: 400; color: var(--on-surface-variant); letter-spacing: 0.01em; }
.nav-bar { background: var(--primary); padding: 0 2.5rem; position: sticky; top: 72px; z-index: 99; }
.nav-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em; padding: 0.4rem 0.85rem; border-radius: 0.4rem; transition: background 0.18s, color 0.18s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-cta { background: rgba(255,255,255,0.15); color: #fff !important; border: 1px solid rgba(255,255,255,0.3); border-radius: 0.4rem; font-size: 0.82rem; font-weight: 600 !important; padding: 0.4rem 1rem !important; text-decoration: none; transition: background 0.18s; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: rgba(255,255,255,0.25) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; background: var(--primary-dark); padding: 0.75rem 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.65rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color 0.15s; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: #fff; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.85rem; border-radius: 0.4rem; transition: background 0.18s, color 0.18s; white-space: nowrap; display: flex; align-items: center; gap: 0.3rem; cursor: pointer; background: none; border: none; font-family: var(--font-body); letter-spacing: 0.01em; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform 0.18s; flex-shrink: 0; }
.nav-dropdown-toggle.open svg { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--surface-lowest); border-radius: 0.75rem; box-shadow: 0 8px 32px rgba(0,0,0,0.15); min-width: 240px; overflow: hidden; z-index: 200; border: 1px solid var(--outline-variant); }
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem; font-size: 0.82rem; font-weight: 500; color: var(--on-surface); text-decoration: none; transition: background 0.15s; border-bottom: 1px solid var(--outline-variant); }
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--surface-low); }
.nav-dropdown-menu a.active { color: var(--primary); font-weight: 600; }
.nav-dropdown-icon { width: 28px; height: 28px; border-radius: 0.4rem; background: var(--surface-low); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-dropdown-icon svg { width: 14px; height: 14px; color: var(--primary); }
.nav-dropdown-text-title { font-size: 0.82rem; font-weight: 600; color: var(--on-surface); }
.nav-dropdown-text-sub { font-size: 0.7rem; color: var(--on-surface-variant); margin-top: 0.05rem; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--surface-low); padding: 0.75rem 2.5rem; border-bottom: 1px solid var(--outline-variant); }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--on-surface-variant); }
.breadcrumb a { color: var(--on-surface-variant); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--on-surface); font-weight: 600; }

/* ── SECTIONS ── */
section { padding: 5.5rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section-headline { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; color: var(--on-surface); margin-bottom: 1rem; line-height: 1.15; }
.section-sub { font-size: 1rem; line-height: 1.7; color: var(--on-surface-variant); max-width: 100%; margin-bottom: 3rem; text-align: justify; }

/* ── BUTTONS ── */
.btn-primary { background: linear-gradient(180deg, #ffffff 0%, #e8f0e8 100%); color: var(--primary); font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; padding: 0.75rem 1.75rem; border-radius: 0.6rem; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: transform 0.18s, box-shadow 0.18s; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-primary-green { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-container) 100%); color: #fff; font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; padding: 0.75rem 1.75rem; border-radius: 0.6rem; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: transform 0.18s, box-shadow 0.18s; box-shadow: 0 4px 16px rgba(0,96,42,0.25); }
.btn-primary-green:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,96,42,0.35); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.85); font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; padding: 0.75rem 1.5rem; border-radius: 0.6rem; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: background 0.18s; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ── PAGE HEADER ── */
.page-header { background: var(--primary-dark); padding: 4rem 2.5rem; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(0,96,42,0.4) 0%, transparent 70%); pointer-events: none; }
.page-header-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-header-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.page-header-title { font-size: 2.75rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.page-header-sub { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.7; text-align: justify; }

/* ── CTA SECTION ── */
.cta-section { background: var(--primary); padding: 5.5rem 2.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(26,122,60,0.6) 0%, transparent 70%); pointer-events: none; }
.cta-section-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.cta-section h2 { font-size: 2.25rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.15; }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 2rem; text-align: center; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--primary-dark); padding: 3.5rem 2.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.75rem; }
.footer-brand-name { font-family: var(--font-identity); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.65rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand-name img { width: 28px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 1rem; }
.footer-email { font-size: 0.82rem; color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-email:hover { color: #fff; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* Navigation */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* Typography */
  .page-header-title { font-size: 2rem; }
  .section-headline { font-size: 1.75rem; }
  .section-sub { font-size: 0.95rem; }

  /* Layout */
  section { padding: 3.5rem 1.25rem; }
  .page-header { padding: 2.5rem 1.25rem; }
  .cta-section { padding: 3.5rem 1.25rem; }
  .breadcrumb { padding: 0.75rem 1.25rem; }
  .nav-identity { padding: 0 1.25rem; }
  .nav-bar { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  /* Tighter mobile */
  .page-header-title { font-size: 1.75rem; }
  .section-headline { font-size: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  section { padding: 2.5rem 1rem; }
  .page-header { padding: 2rem 1rem; }
}
