/* ============================================
   Pro Computer Solution - Main Stylesheet
   Clean & Modern | Melayu | 2026
   ============================================ */

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

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

:root {
  --primary:     #0f172a;
  --accent:      #2563eb;
  --accent-hover:#1d4ed8;
  --light:       #f8fafc;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --white:       #ffffff;
  --wa-green:    #25d366;
  --wa-hover:    #1ebe5d;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(15,23,42,.08);
  --shadow-lg:   0 8px 40px rgba(15,23,42,.14);
  --font:        'Inter', system-ui, sans-serif;
  --transition:  .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--primary);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: #334155; }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub   { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ---- Layout ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section   { padding: 72px 0; }
.section-alt { background: var(--light); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  font-size: 1rem;
  padding: .85rem 1.75rem;
}
.btn-wa:hover { background: var(--wa-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}
.navbar-logo img {
  height: 40px;
  width: auto;
}
.navbar-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--primary);
  font-weight: 500;
  font-size: .95rem;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-cta { margin-left: 1rem; }

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

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--primary);
  font-weight: 500;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ---- Nav Dropdown (desktop) ---- */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown > a::after { content: ' ▾'; font-size: .7em; }
.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .75rem .5rem .5rem;
  list-style: none;
  z-index: 1001;
}
.nav-links li.has-dropdown:hover .dropdown-menu,
.nav-links li.has-dropdown:focus-within .dropdown-menu { display: block; }
.nav-links .dropdown-menu li { width: 100%; }
.nav-links .dropdown-menu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links .dropdown-menu a::after { content: none; }
.nav-links .dropdown-menu a:hover { background: var(--light); color: var(--accent); }

/* ---- WhatsApp Floating Button ---- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: var(--wa-green);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover { background: var(--wa-hover); color: var(--white); transform: scale(1.1); }
.wa-float svg  { width: 28px; height: 28px; fill: var(--white); }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37,99,235,.25);
  border: 1px solid rgba(37,99,235,.4);
  color: #93c5fd;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  width: fit-content;
}
.hero h1 { color: var(--white); }
.hero h1 span { color: #60a5fa; }
.hero p { color: #cbd5e1; font-size: 1.1rem; max-width: 540px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.stat-item { }
.stat-num  { font-size: 1.75rem; font-weight: 800; color: var(--white); }
.stat-label{ font-size: .82rem; color: #94a3b8; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #bfdbfe; }

.card-icon {
  width: 52px;
  height: 52px;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p  { font-size: .95rem; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---- Price Card ---- */
.price-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  padding: .3rem .8rem;
  border-radius: 6px;
  margin-top: .75rem;
}

/* ---- Servis List ---- */
.servis-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.servis-item:hover { border-color: #bfdbfe; background: #f8faff; }
.servis-icon {
  font-size: 1.75rem;
  min-width: 44px;
  text-align: center;
}
.servis-content h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.servis-content p  { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }

/* ---- Blog Cards ---- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.blog-tag {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.blog-read-time {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
}
.blog-card h3 { font-size: 1.05rem; }
.blog-card p  { font-size: .88rem; color: var(--muted); flex: 1; }
.blog-card .read-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .5rem;
}

/* ---- Article ---- */
.article-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 64px 0 48px;
}
.article-header .breadcrumb {
  font-size: .82rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.article-header .breadcrumb a { color: #93c5fd; }
.article-tag {
  display: inline-block;
  background: rgba(37,99,235,.3);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.article-header h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.5rem); }
.article-meta { color: #94a3b8; font-size: .88rem; margin-top: .75rem; }

.article-body { max-width: 760px; margin: 0 auto; padding: 48px 1.25rem 64px; }
.article-body h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; color: var(--primary); }
.article-body h3 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.article-body p  { margin-bottom: 1rem; line-height: 1.75; }
.article-body ul, .article-body ol { margin: .75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: .4rem; line-height: 1.7; }
.article-body strong { color: var(--primary); }

.article-cta {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.article-cta h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.article-cta p  { color: var(--muted); margin-bottom: 1.25rem; }

/* ---- Map ---- */
.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---- Contact Info ---- */
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 1.4rem; min-width: 36px; }
.contact-label { font-size: .82rem; color: var(--muted); margin-bottom: .15rem; }
.contact-value { font-weight: 600; font-size: 1rem; }

/* ---- Footer ---- */
.footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e293b;
}
.footer-brand p { font-size: .9rem; margin: .75rem 0 1.25rem; max-width: 280px; }
.footer-logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.footer-logo span { color: #60a5fa; }

.footer h4 { color: var(--white); font-size: .9rem; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #94a3b8; font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: #60a5fa; }

.social-links { display: flex; gap: .75rem; margin-top: .75rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--accent); color: var(--white); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb-bar a { color: var(--accent); }
.breadcrumb-bar span { margin: 0 .4rem; }

/* ---- Highlight Box ---- */
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}
.highlight-box p { color: var(--primary); margin: 0; }

/* ---- Checklist ---- */
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem !important; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* collapse inline 2-col grids on medium screens */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-pc-grid { grid-template-columns: 1fr !important; }
  .hero-pc-grid img { height: 260px !important; }
  .section { padding: 48px 0; }
  .hero { padding: 64px 0 56px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-btns { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* cap image heights on mobile */
  [style*="height:460px"] { height: 260px !important; }
  [style*="height:420px"] { height: 240px !important; }
  [style*="height:400px"] { height: 220px !important; }
}
