/* RKOps — One Page Website
   Colors from brand/colors.md
   Font: Inter (Google Fonts) with system fallback */

:root {
  --navy: #0A1628;
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --teal: #00A5B5;
  --text: #1A1A1A;
  --muted: #6B7280;
  --border: #E5E7EB;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo-link { display: flex; align-items: center; }
.logo-link:hover { text-decoration: none; }
.logo-img { height: 40px; width: auto; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: #142240;
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  background: url('HeroBackground.png') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn:hover {
  background: #008E9B;
  text-decoration: none;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* ── SERVICES ── */
.services {
  padding: 80px 0;
  background: var(--off-white);
}

.services h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px 28px 28px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── WHY RKOPS ── */
.why {
  position: relative;
  padding: 80px 0;
  background: url('BackgroundSection.png') center center / cover no-repeat;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
}

.why > .container {
  position: relative;
  z-index: 1;
}

.why h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.why-lead {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
}

.features {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  border-left: 3px solid var(--teal);
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
}

.feature-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── CREDENTIALS ── */
.credentials {
  position: relative;
  padding: 48px 0;
  background: var(--navy) url('CredentialsBar.png') center center / cover no-repeat;
  background-blend-mode: overlay;
}

.cred-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cred {
  text-align: center;
}

.cred-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.cred-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.cred-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ── CONTACT ── */
.contact {
  padding: 80px 0;
  text-align: center;
}

.contact h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.contact-role {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.contact-link {
  font-size: 16px;
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom {
  gap: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services, .why, .contact { padding: 60px 0; }

  .cred-items { gap: 24px; }
  .cred-divider { display: none; }

  .contact-details {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .why-lead br { display: none; }

  .footer-inner {
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

/* ── NAV LINKS (multi-page) ── */
.nav-links-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links-list a:hover,
.nav-links-list a.active {
  color: var(--navy);
  text-decoration: none;
}

/* ── PAGE HERO (service/insight pages) ── */
.page-hero {
  padding: 120px 0 60px;
  background: var(--off-white);
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 16px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── ARTICLE / INSIGHT PAGES ── */
.article {
  padding: 120px 0 80px;
}

.article-container {
  max-width: 720px;
}

.article-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 24px;
}

.article-back:hover {
  text-decoration: underline;
}

.article h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.article h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.article ul, .article ol {
  margin: 0 0 16px 24px;
  color: var(--text);
  line-height: 1.7;
}

.article li {
  margin-bottom: 8px;
}

.article strong {
  font-weight: 600;
  color: var(--navy);
}

/* ── INSIGHTS INDEX ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 60px 0 80px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
}

.insight-card:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.insight-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.insight-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.insight-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 12px;
}

/* ── SERVICE PAGE CONTENT ── */
.service-content {
  padding: 60px 0 80px;
}

.service-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}

.service-content h2:first-child {
  margin-top: 0;
}

.service-content p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 720px;
}

.service-content ul {
  margin: 0 0 16px 24px;
  line-height: 1.7;
}

.service-content li {
  margin-bottom: 8px;
  color: var(--text);
}

/* ── FOOTER LINKS ── */
.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--teal);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services, .why, .contact { padding: 60px 0; }

  .cred-items { gap: 24px; }
  .cred-divider { display: none; }

  .contact-details {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .why-lead br { display: none; }

  .footer-inner {
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 { font-size: 28px; }
  .article h1 { font-size: 26px; }

  .nav-links-list { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .nav-inner { height: 56px; }
  .hero { padding: 100px 0 48px; }
  .card { padding: 24px 20px; }
}
