/* ==========================================================================
   RealHRMS marketing site — shared design system
   Real Green Engineers Pvt Ltd (realgreentechnology.com)
   Palette matches the printed sales flyers (launch_materials/) for brand
   consistency across every RealHRMS-facing asset.
   ========================================================================== */

:root {
  --ink: #0E2A1B;
  --ink2: #123024;
  --paper: #F6FAF4;
  --card: #FFFFFF;
  --line: #DCE8DD;
  --line2: #C8DBC9;
  --mint: #12864A;
  --mint2: #0E7A3C;
  --mintbg: #E7F5EC;
  --blue: #1C8FC4;
  --bluebg: #E9F4FA;
  --gold: #B8860B;
  --goldbg: #FBF3DE;
  --muted: #4B6156;
  --muted2: #6E8478;
  --danger: #C0392B;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(14, 42, 27, .06);
  --shadow: 0 8px 30px rgba(14, 42, 27, .08);
  --shadow-lg: 0 20px 60px rgba(14, 42, 27, .14);
  --container: 1180px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Skip link — accessibility, cheap to add, never hurts SEO/UX */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
.lede { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint2); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--mint); display: inline-block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--mint); color: #fff; box-shadow: 0 6px 18px rgba(18, 134, 74, .28); }
.btn-primary:hover { background: var(--mint2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(18, 134, 74, .34); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink2); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--line2); color: var(--ink); }
.btn-outline:hover { border-color: var(--mint); color: var(--mint2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 250, 244, .92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); flex-shrink: 0; }
.brand-rg-logo { height: 41px; width: auto; }
/* RealHRMS "punch-card tally" mark (launch_materials/brand/RealHRMS_icon_mark.svg)
   - three ascending bars with a checkmark, the product's own icon, distinct
   from the RealGreen company logo it sits next to. */
.brand-icon-mark { height: 26px; width: auto; }
.brand-wordmark { font-family: Georgia, "Bitstream Charter", "Liberation Serif", serif; font-weight: 700; color: var(--ink); }
.brand-wordmark .accent { color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .93rem; color: var(--ink2); padding: 6px 0; border-bottom: 2px solid transparent; transition: .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--mint2); border-bottom-color: var(--mint); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--ink2); }
.nav-phone svg { width: 16px; height: 16px; color: var(--mint2); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line2);
  background: #fff; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---- Hero ---- */
.hero { padding: 64px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--muted2); font-weight: 600; }
.trust-row { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.trust-chip { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.trust-chip svg { width: 16px; height: 16px; color: var(--gold); }

.hero-card {
  background: var(--ink); border-radius: var(--radius-lg); padding: 26px 26px 22px; color: #fff; box-shadow: var(--shadow-lg);
}
.hero-card-k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8FD9AE; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.hero-stat { background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; }
.hero-stat b { display: block; font-size: 1.7rem; }
.hero-stat span { display: block; font-size: .74rem; color: #AFC9B7; margin-top: 4px; }
.hero-card-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: .72rem; color: #8FAE9B; }

/* ---- Section shells ---- */
section { padding: 76px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: #B9D3C2; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--mintbg); color: var(--mint2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .92rem; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge-pill { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mint2); background: var(--mintbg); padding: 4px 10px; border-radius: 999px; }

.module-card { position: relative; padding-top: 30px; }
.module-num { position: absolute; top: 18px; right: 22px; font-family: Georgia, serif; font-size: 1.6rem; color: var(--line2); font-weight: 700; }

/* ---- Video embed (responsive 16:9) ---- */
.video-frame {
  position: relative; width: 100%; margin: 0 auto 40px;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Journey strip ---- */
.journey-strip { display: flex; overflow-x: auto; gap: 0; padding-bottom: 8px; }
.journey-step { flex: 0 0 auto; width: 200px; text-align: center; padding: 0 14px; position: relative; }
.journey-step:not(:last-child)::after { content: "→"; position: absolute; right: -4px; top: 20px; color: var(--line2); font-size: 1.2rem; }
.journey-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.journey-step h4 { font-size: .88rem; margin-bottom: 4px; }
.journey-step p { font-size: .78rem; }

/* ---- Pricing ---- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--mint); position: relative; box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--mint); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { margin-bottom: 6px; }
.price-list { margin: 18px 0 22px; flex: 1; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); padding: 6px 0; }
.price-list li svg { width: 16px; height: 16px; color: var(--mint2); flex-shrink: 0; margin-top: 2px; }
.parent-connect-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; }
@media (max-width: 760px) { .parent-connect-list { grid-template-columns: 1fr; } }
.price-foot { text-align: center; margin-top: 40px; }
.price-num { font-size: 2.4rem; font-weight: 800; color: var(--mint2); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-weight: 700; font-size: 1rem; width: 100%; text-align: left;
  background: none; border: none; color: var(--ink);
}
.faq-q svg { width: 20px; height: 20px; color: var(--mint2); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; font-size: .93rem; max-width: 720px; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink2); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.field-hint { font-size: .74rem; color: var(--danger); min-height: 1em; visibility: hidden; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .field-hint { visibility: visible; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-status { margin-top: 14px; font-size: .88rem; font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: var(--mint2); }
.form-status.err { color: var(--danger); }

/* ---- OTP boxes (demo page) ---- */
.otp-row { display: flex; gap: 10px; margin: 8px 0 4px; }
.otp-box {
  width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800;
  border: 1.5px solid var(--line2); border-radius: 10px;
}
.otp-box:focus { border-color: var(--mint); outline: 2px solid var(--mint); outline-offset: 1px; }

/* ---- Tour / demo walkthrough cards ---- */
.tour-stat-card { background: var(--mintbg); border-radius: 10px; padding: 12px; text-align: center; }
.tour-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tour-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--mint2); }
.tour-stat-label { font-size: .7rem; color: var(--muted2); margin-top: 2px; }
.tour-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-height: 260px; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tour-tab {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff;
  font-size: .8rem; font-weight: 700; color: var(--muted);
}
.tour-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour-title { font-size: 1.05rem; margin-bottom: 4px; }
.tour-step-count { font-size: .74rem; color: var(--muted2); font-weight: 700; }
.tour-topbar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 6px; }
.tour-note { font-size: .82rem; color: var(--muted2); margin-top: 14px; }
.tour-table-wrap { overflow-x: auto; }
.tour-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tour-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tour-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
.tour-pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tour-pill.success { background: var(--mintbg); color: var(--mint2); }
.tour-pill.warning { background: var(--goldbg); color: #8A6712; }
.tour-pill.pending { background: #F1F0F4; color: #6B6478; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.tour-dots { display: flex; gap: 6px; align-items: center; justify-content: center; }
.tour-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.tour-dot.active { background: var(--mint); width: 22px; border-radius: 5px; }
.btn-link { background: none; border: none; color: var(--mint2); font-weight: 700; font-size: .88rem; }
.btn-link:disabled { color: var(--line2); cursor: default; }
@media (max-width: 620px) { .tour-stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #DCEEE1; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 12px; }
.footer-brand .brand-rg-logo { height: 36px; }
.footer-brand .brand-icon-mark { height: 24px; }
/* Dark footer background - the wordmark's default ink-on-transparent
   styling would be invisible here, same reasoning as .bg-ink h2/h3. */
.footer-brand .brand-wordmark { color: #fff; }
.footer-brand .brand-wordmark .accent { color: #4CD07E; }
.site-footer p { color: #8FAE9B; font-size: .88rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #B9D3C2; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: #6E9482; }

/* ---- Quick connect floating widget ---- */
.qc-fabs { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.qc-fab {
  width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(18,134,74,.4);
}
.qc-fab svg { width: 22px; height: 22px; }
.qc-fab.secondary { background: var(--ink); }
/* WhatsApp's own brand green, not the site's mint - a WhatsApp button is
   only instantly recognizable in its own color; matching it to the site
   palette would make it look like just another generic chat icon. */
.qc-fab.whatsapp { background: #25D366; }
.qc-panel {
  position: fixed; right: 20px; bottom: 88px; width: 340px; max-height: 80vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 150; display: none;
  border: 1px solid var(--line);
}
.qc-panel.open { display: block; }
.qc-panel-hdr { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.qc-panel-hdr h4 { font-size: .95rem; }
.qc-panel-body { padding: 18px; }
.qc-close { width: 28px; height: 28px; border-radius: 8px; border: none; background: var(--mintbg); color: var(--mint2); }

/* ---- Utility ---- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.two-col-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--ink); border-radius: var(--radius-lg); padding: 40px 44px; color: #fff;
}
.two-col-cta h3 { color: #fff; font-size: 1.5rem; }
.two-col-cta p { color: #B9D3C2; margin-top: 6px; }

.breadcrumb { font-size: .8rem; color: var(--muted2); margin-bottom: 18px; }
.breadcrumb a { color: var(--mint2); font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav collapse has its own breakpoint, wider than the general content one
   below: the full logo + 6 links + phone + CTA genuinely doesn't fit until
   ~1040px (measured overflow at 768px otherwise), well above where the
   grid/section rules below need to change. */
@media (max-width: 1040px) {
  .nav-links, .nav-phone { display: none; }
  /* Already duplicated inside .mobile-nav (opened by the toggle below) -
     showing it here too is what was causing .nav-cta to overflow the
     viewport on narrow phones (measured ~420px content in a 390px view). */
  .nav-cta > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .nav-row { height: 66px; }
  .mobile-nav { top: 66px; }
  section { padding: 52px 0; }
  .hero { padding: 40px 0 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col-cta { flex-direction: column; text-align: center; }
  .qc-panel { width: calc(100vw - 32px); right: 16px; }
  .price-card.featured { order: -1; }
  .form-card { padding: 22px; }
  .container { padding: 0 18px; }
  /* .btn defaults to white-space:nowrap + inline-flex, which sizes to
     content and can't shrink below its text width - long CTA labels
     ("Ask about the Education Suite →") overflow a narrow phone screen
     without this. */
  .btn-lg { white-space: normal; text-align: center; padding: 13px 20px; font-size: .92rem; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; inset: 76px 0 0 0; background: var(--paper); z-index: 90;
  padding: 24px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-nav .nav-phone { display: flex; margin-top: 20px; }
