/* ========================================
   Ramah.id — Modern, Centered, Responsive
   ======================================== */

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

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1100px;
  --transition: .25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Section defaults ---------- */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
}

section > .container > p.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo a {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -.3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-size: .925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.btn-desktop {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.btn-desktop:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-dark);
  user-select: none;
}

.btn-mobile {
  display: none;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  text-align: center;
  padding: 100px 0 90px;
  background: linear-gradient(175deg, var(--primary-light) 0%, var(--bg-body) 60%);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -.5px;
  color: var(--text-dark);
}

.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 28px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

/* =========================================
   CLIENTS / PENGALAMAN KERJA
   ========================================= */
.clients {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients h2 {
  margin-bottom: 36px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  max-width: 110px;
  opacity: .65;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
}

.logo-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* =========================================
   SERVICES / LAYANAN
   ========================================= */
.services {
  background: var(--bg-body);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 30px 26px;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card p {
  font-size: .925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================
   PROCESS / PROSES KERJA
   ========================================= */
.process {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.process h2 {
  margin-bottom: 36px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  counter-reset: step;
}

.process-grid div {
  counter-increment: step;
  background: var(--bg-body);
  padding: 32px 20px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dark);
  position: relative;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-grid div::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
  margin: 0 auto 14px;
}

.process-grid div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--text-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: 0;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-grid h3,
.footer-grid h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-grid p {
  font-size: .9rem;
  line-height: 1.7;
  color: #94a3b8;
}

.copyright {
  text-align: center;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: var(--text-light);
}

/* =========================================
   RESPONSIVE — Tablet (≤ 900px)
   ========================================= */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* =========================================
   RESPONSIVE — Mobile (≤ 768px)
   ========================================= */
@media (max-width: 768px) {

  section {
    padding: 56px 0;
  }

  section h2 {
    font-size: 1.5rem;
  }

  /* — Navbar — */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 24px;
    text-align: center;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .btn-desktop {
    display: none;
  }

  .btn-mobile {
    display: block;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 6px;
  }

  /* — Hero — */
  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* — Services — */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* — Process — */
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* — Footer — */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer {
    padding: 40px 0 24px;
  }
}

/* =========================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .hero p {
    font-size: .92rem;
  }

  .btn-primary {
    padding: 13px 24px;
    font-size: .92rem;
  }

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

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .logo-grid img {
    max-width: 80px;
  }
}
