/*
  Jagatech Corporate Theme - Light
  Colors: Red (#E1192D), Black (#0B0B0D), White (#FFFFFF), Gray
  Font: Inter
*/

:root {
  --red: #E1192D;
  --black: #0B0B0D;
  --gray-900: #111827; /* text primary */
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6; /* surfaces alt */
  --white: #FFFFFF;
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: #FFFFFF; /* disamakan dengan background section (putih) */
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 92px;
  position: relative;
}
.logo { height: 72px; width: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { color: var(--gray-700); font-weight: 600; }
.menu a:not(.btn):hover { color: var(--red); }
/* Pastikan tombol CTA di header tetap teks putih */
.menu .btn-primary, .menu .btn-primary:hover { color: #FFFFFF; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--gray-200);
  border-radius: 10px; color: var(--gray-900);
}
.nav-toggle span { width: 20px; height: 2px; background: var(--gray-900); display: block; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease; font-weight: 700; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 14px; }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: #c51626; border-color: #c51626; }
.btn-outline { background: transparent; color: var(--gray-900); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-700); color: var(--gray-900); }
.btn-light { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-200); }
.btn-light:hover { background: #e9ecef; }
.btn-outline-light { background: transparent; color: var(--gray-900); border-color: var(--gray-300); }
.btn-outline-light:hover { border-color: var(--gray-700); }
/* White buttons for CTA on red background */
.btn-white { background: #FFFFFF; color: var(--red); border-color: #FFFFFF; }
.btn-white:hover { background: #f3f4f6; }
.btn-outline-white { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.9); }
.btn-outline-white:hover { border-color: #FFFFFF; }

/* Hero */
.hero {
  padding: 88px 0 40px;
  background-image:
    linear-gradient(to bottom right, rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
    url('../img/header-bg.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
.hero-inner { display: grid; grid-template-columns: 1fr; }
.hero-copy h1 { font-size: 44px; line-height: 1.2; margin: 0 0 14px; color: #FFFFFF; }
.hero-art {
  display: none;
}
.hero-copy p { color: var(--gray-100); margin: 0 0 20px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
/* Pastikan tombol CTA di Hero selalu sejajar (sebelahan) di layar lebar */
.hero .cta { display: inline-flex; flex-wrap: nowrap; justify-content: flex-start; }
.hero .cta a { margin: 0; }
@media (max-width: 560px) {
  .hero .cta { display: flex; flex-wrap: wrap; }
}
.badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.badges span { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.6); color: #fff; font-size: 14px; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.8); }
.hero .btn-outline:hover { border-color: #fff; }
.hero-art {
  height: 320px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(225,25,45,0.10), rgba(17,24,39,0.04));
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--gray-100); }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head.left { text-align: left; }
.section-head h2 { font-size: 30px; margin: 0 0 8px; color: var(--gray-900); }
.section-head p { color: var(--gray-600); margin: 0; }

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

.card, .card-minimal {
  background: #FFFFFF;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card h3, .card-minimal h3 { margin: 0 0 8px; font-size: 20px; color: var(--gray-900); }
.card p, .card-minimal p { margin: 0 0 12px; color: var(--gray-600); }
.list { margin: 0; padding-left: 16px; color: var(--gray-600); }

/* Icon placeholders */
.icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 10px; display: grid; place-items: center; border: 1px solid var(--gray-200); color: var(--red); background: #fff; }
.icon svg { width: 26px; height: 26px; }
.ic-app { background: linear-gradient(135deg, rgba(225,25,45,0.08), rgba(17,24,39,0.02)); }
.ic-integration { background: linear-gradient(135deg, rgba(17,24,39,0.02), rgba(225,25,45,0.08)); }
.ic-infra { background: linear-gradient(135deg, rgba(225,25,45,0.06), rgba(225,25,45,0.02)); }
.ic-iot { background: linear-gradient(135deg, rgba(225,25,45,0.08), rgba(17,24,39,0.02)); }
.ic-data { background: linear-gradient(135deg, rgba(17,24,39,0.02), rgba(225,25,45,0.08)); }
.ic-pm { background: linear-gradient(135deg, rgba(225,25,45,0.06), rgba(225,25,45,0.02)); }
.ic-cloud-sov { background: linear-gradient(135deg, rgba(17,24,39,0.02), rgba(225,25,45,0.06)); }
.ic-kms { background: linear-gradient(135deg, rgba(225,25,45,0.08), rgba(17,24,39,0.02)); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.about-art {
  height: 260px; border-radius: var(--radius);
  background: radial-gradient(400px 200px at 70% 10%, rgba(225,25,45,0.12), transparent 60%),
              linear-gradient(135deg, rgba(17,24,39,0.04), rgba(225,25,45,0.08));
  border: 1px solid var(--gray-200);
}
.stats { list-style: none; padding: 0; display: flex; gap: 26px; margin: 20px 0 0; }
.stats .num { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.stats .label { color: var(--gray-600); font-size: 14px; }

/* Logos */
.logos { grid-template-columns: repeat(6, 1fr); }
.logo-pill {
  padding: 14px; text-align: center; border-radius: 12px;
  border: 1px dashed var(--gray-300); color: var(--gray-700); background: #fff;
}

/* CTA */
.cta-section {
  background-color: var(--red);
  /* Subtle mesh gradient overlay */
  background-image:
    radial-gradient(800px 400px at 85% 25%, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.00) 60%),
    radial-gradient(700px 350px at 15% 75%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.00) 60%),
    radial-gradient(600px 300px at 45% 45%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.00) 55%);
  border-top: none;
  border-bottom: none;
}
.cta-section .cta { align-items: center; justify-content: space-between; }
.cta-copy h2 { margin: 0 0 8px; color: var(--gray-900); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--gray-100); border-top: 1px solid var(--gray-200); color: var(--gray-700); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; padding: 26px 0; }
.footer-brand img { height: 30px; margin-bottom: 10px; }
.footer-col h4 { margin: 0 0 8px; color: var(--gray-900); }
.footer-col ul { list-style: none; padding: 0; margin: 0; color: var(--gray-700); }
.footer-col a { color: var(--gray-700); }
.footer-col a:hover { color: var(--red); }
.copy { border-top: 1px solid var(--gray-200); padding: 12px 0; color: var(--gray-600); font-size: 14px; }

/* Back to top */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 999;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--red); color: var(--white); border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Utilities */
.hidden { display: none !important; }

/* Mega menu */
.has-dropdown { position: relative; }
.dd-toggle { background: transparent; border: none; font: inherit; color: var(--gray-700); font-weight: 700; cursor: pointer; }
.dd-toggle:hover { color: var(--red); }

.mega { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 16px; display: none; width: min(820px, 92vw);
  box-shadow: var(--shadow);
}
.has-dropdown.open > .mega { display: block; }
.mega-grid { display: grid; gap: 14px; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-col h5 { margin: 0 0 6px; color: var(--gray-900); font-size: 15px; }
.mega-col ul { margin: 0; padding-left: 16px; color: var(--gray-600); }
.mega-cta { border-top: 1px solid var(--gray-200); margin-top: 10px; padding-top: 12px; text-align: right; }

@media (max-width: 720px) {
  .has-dropdown { width: 100%; }
  .mega { position: static; transform: none; width: 100%; margin-top: 8px; }
}

/* Contact form */
.cta.with-form { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; color: var(--gray-800); }
.field input, .field textarea { border: 1px solid var(--gray-300); border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--gray-900); background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,25,45,0.1); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.form-status { margin-top: 8px; color: var(--gray-700); }

@media (max-width: 992px) {
  .cta.with-form { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .menu { display: none; position: absolute; right: 20px; top: calc(100% + 12px); background: rgba(255,255,255,0.98); border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px; flex-direction: column; gap: 8px; width: 220px; box-shadow: var(--shadow-sm); }
  .menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* CTA contact contrast overrides */
.cta-section .cta-copy h2,
.cta-section .cta-copy p { color: #FFFFFF; }
.cta-section .badges span { color: #FFFFFF; border-color: rgba(255,255,255,0.6); }
.cta-section .cta-actions .btn-light { background: #FFFFFF; color: var(--red); border-color: #FFFFFF; }
.cta-section .cta-actions .btn-light:hover { background: #f3f4f6; }
.cta-section .cta-actions .btn-outline-light { color: #FFFFFF; border-color: rgba(255,255,255,0.9); }
.cta-section .cta-actions .btn-outline-light:hover { border-color: #FFFFFF; }

/* Ikon kecil di dalam tombol CTA bawah */
.cta-section .cta-actions .btn .ic { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }

/* Social icons in footer */
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--gray-300); color: var(--gray-700); background: #fff; transition: all 0.2s ease; }
.social a:hover { color: var(--red); border-color: var(--red); transform: translateY(-1px); }
.social .ic { width: 18px; height: 18px; }
