/* 2025 mobile-first landing page styles for Royal Clearing Company */
:root {
  --bg: #f9fafa;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #009E9E;
  --brand-dark: #111111;
  --card: #111111; /* updated card background to dark */
  --shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff80;
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; font-weight: 800; color: var(--ink); }
.logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  margin-right: 8px;
}
.nav-links { display: flex; gap: 14px; }
.nav-links .cta {
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav-links a:hover { opacity: .9; text-decoration: none; }

/* HERO */
.hero {
  background: #111111;
  color: #fff;
  padding: 64px 0 28px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.hero-copy p { opacity: .95; margin: 10px 0 16px; }
.daily { color: #22fae7; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.btn.primary { background: #fff; color: var(--brand-dark); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #ffffff80; }
.btn.wide { min-width: 220px; }

.mini-kpis {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  opacity: .95;
}
.mini-kpis div { display: flex; flex-direction: column; align-items: flex-start; }
.mini-kpis strong { font-size: 1.1rem; }

/* HERO IMAGE */
.hero-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}



/* HERO BACKGROUND WITH IMAGE & PARALLAX */
.hero.hero-bg {
  position: relative;
  background: url('assets/slider-5.jpg') center/cover no-repeat;
  background-attachment: fixed; /* parallax effect */
  color: #fff;
  padding: 64px 0 28px;
  display: flex;
  align-items: center;
}

.hero.hero-bg .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* dark overlay for readability */
  z-index: 0;
}

.hero.hero-bg .hero-grid {
  position: relative;
  z-index: 1; /* keeps text above overlay */
}

/* Optional: disable fixed background on mobile for performance */
@media (max-width: 767px) {
  .hero.hero-bg {
    background-attachment: scroll;
  }
}



/* SECTION */
.section { padding: 56px 0; }
.section.alt { background: #eefdfd; }
h2 { font-size: 1.6rem; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 760px; margin: 0 auto 20px; }

/* CARDS */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}
.cards.three { grid-template-columns: 1fr; }

.card {
  background: var(--card); /* dark background */
  color: #ffffff; /* text white */
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3,
.card h2 {
  color: #27f6e7; /* bright header color */
  margin-top: 0;
}
.card p,
.card li,
.card span {
  color: #ffffff; /* ensure all text stays white */
}
.card.hover { transition: .2s; }
.card.hover:hover { transform: translateY(-3px); }

/* FORM */
.form-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font: inherit;
}
input:focus, textarea:focus {
  outline: 2px solid #99f6e4;
  border-color: #99f6e4;
}

.contact { max-width: 760px; margin: 0 auto; }

/* FOOTER */
.footer {
  background: var(--brand-dark);
  color: #cbd5e1;
  padding: 28px 0;
}
.footer .container {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer a { color: #86efac; }

/* RESPONSIVE */
@media (min-width: 768px) {
  .hero-copy h1 { font-size: 3rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}
