/* ============================================================
   RINGGITDESK — Shared Stylesheet
   Brand: Dark Navy (#000080) + Soft Gold (#C9A227)
   Type:  Inter (via system stack fallback)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand colors */
  --navy: #000080;
  --navy-deep: #00005c;
  --navy-tint-05: rgba(0, 0, 128, 0.05);
  --navy-tint-08: rgba(0, 0, 128, 0.08);
  --gold: #C9A227;
  --gold-soft: rgba(201, 162, 39, 0.35);
  --white: #ffffff;
  --off-white: #F8F9FA;
  --ink: #14142B;
  --muted: #5B5F6B;
  --line: #E7E7EE;

  /* Type scale */
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.06), 0 1px 1px rgba(20,20,43,0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 128, 0.09);
  --shadow-lg: 0 24px 60px rgba(0, 0, 128, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Ledger-line signature texture ----------
   A recurring motif of fine horizontal gold hairlines,
   evoking a ledger / register — RinggitDesk's core artifact. */
.ledger-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(201, 162, 39, 0.14) 0px,
    rgba(201, 162, 39, 0.14) 1px,
    transparent 1px,
    transparent 44px
  );
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Section titles with gold underline accent ---------- */
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 14px 0 0;
  line-height: 1.15;
}
.title-accent {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin-top: 18px;
  border-radius: 2px;
}
.title-accent.center { margin-left: auto; margin-right: auto; }

.section-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin-top: 16px;
}

.section {
  padding: 96px 0;
}
.section.tight { padding: 72px 0; }
.section.off {
  background: var(--off-white);
}
.section.navy {
  background: var(--navy);
  color: rgba(255,255,255,0.92);
}
.section.navy .section-title { color: var(--white); }
.section.navy .eyebrow { color: var(--gold); }
.section.navy .eyebrow::before { background: var(--gold); }

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.logo-mark {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.logo-underline {
  width: 46px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(201,162,39,0.35);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: 28px;
  overflow-y: auto;
}
.mobile-panel.is-open { display: block; }
.mobile-panel .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.mobile-panel .nav-links a {
  width: 100%;
  padding: 14px 4px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}
.mobile-panel .btn { margin-top: 24px; width: 100%; padding: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(201,162,39,0.16) 0%, rgba(201,162,39,0) 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 108px 0 96px;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 830px;
  margin: 22px 0 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lede {
  font-size: 18.5px;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-top: 22px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
}
.hero-stat .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* Page header (non-home hero, shorter) */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 84px 0 76px;
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  max-width: 760px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-top: 18px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--navy-tint-08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.service-card:hover .card-link { color: var(--gold); }
.card-link .arrow { transition: transform 0.2s ease; }
.service-card:hover .card-link .arrow { transform: translateX(3px); }

/* ============================================================
   PROCESS STEPS — Understand → Diagnose → Decide → Implement
   ============================================================ */
.process {
  margin-top: 56px;
  position: relative;
}
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.process-step .step-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.process-step h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.process-connector {
  display: none;
}
@media (min-width: 900px) {
  .process-row { position: relative; }
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 22px;
    height: 1.5px;
    background: linear-gradient(to right, var(--gold), var(--line));
    opacity: 0.7;
  }
}

/* ============================================================
   MISC BLOCKS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.problem-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.problem-item .mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-tint-08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.problem-item p { margin: 0; color: var(--ink); font-size: 15px; }
.problem-item strong { color: var(--navy); }

.quote-block {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 40px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  gap: 20px;
}
.audience-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  flex: none;
  padding-top: 3px;
}
.audience-card h3 {
  color: var(--navy);
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 8px;
}
.audience-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-item { padding: 4px; }
.value-item h3 {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.value-item h3::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  flex: none;
}
.value-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

.timeline {
  margin-top: 20px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-year {
  font-weight: 800;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.timeline-item h3 { color: var(--navy); margin: 0 0 6px; font-size: 16.5px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

.founder-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
.founder-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 44px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}
.founder-avatar::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(201,162,39,0.18) 0, rgba(201,162,39,0.18) 1px, transparent 1px, transparent 18px);
}

/* ---------- Final CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 64px 56px;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(201,162,39,0.12) 0, rgba(201,162,39,0.12) 1px, transparent 1px, transparent 40px);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 30px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-accent {
  height: 3px;
  background: linear-gradient(to right, var(--gold), rgba(201,162,39,0));
}
.footer-inner {
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-mark { font-size: 20px; }
.footer-tagline {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col span {
  font-size: 14.5px;
  color: var(--muted);
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Floating WhatsApp button (mobile) ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,128,0.35);
  z-index: 95;
  border: 2px solid var(--gold);
}
.wa-float svg { width: 26px; height: 26px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child)::after { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav .nav-links, .main-nav .btn-primary { display: none; }
  .hamburger { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .hero-inner { padding: 76px 0 64px; }
  .section { padding: 64px 0; }
  .founder-block { grid-template-columns: 1fr; }
  .founder-avatar { width: 120px; height: 120px; font-size: 28px; }
  .cta-banner { padding: 44px 26px; border-radius: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 28px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .wa-float { display: flex; }
  .head-row { align-items: flex-start; }
}
