/* ============================================================
   Tangkasnetindo.uk — Premium Stylesheet
   Palette: Deep Navy + Gold + Ivory
   Ringan, tanpa framework, tanpa external font
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0f1626;
  --navy-soft: #1c2333;
  --gold: #c9a227;
  --gold-soft: #e0c060;
  --ivory: #f8f5ef;
  --ivory-dark: #efe9dd;
  --charcoal: #2a2f3a;
  --text: #2b2b2b;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --border: #e5dfd3;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 22, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 22, 38, 0.10);
  --shadow-lg: 0 16px 48px rgba(15, 22, 38, 0.16);
  --transition: 0.25s ease;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.3; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; padding: 0; }
li { margin-bottom: 0.5rem; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  gap: 1rem;
}
.logo-link { display: flex; align-items: center; gap: 0.65rem; }
.logo-link img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.logo-text span { color: var(--gold); }

/* ---------- Navigation ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 1.1rem;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: block;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-soft);
}

/* ---------- Carousel Banner ---------- */
.banner-carousel {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 5;
  max-height: 420px;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,22,38,0.65) 0%, rgba(15,22,38,0.15) 55%, rgba(15,22,38,0.05) 100%);
}
.carousel-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--white);
  max-width: 560px;
}
.carousel-caption h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.carousel-caption p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.carousel-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  padding: 0;
  transition: background var(--transition);
}
.carousel-dot.active { background: var(--gold); border-color: var(--gold); }

/* ---------- Hero (jika tanpa carousel) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.hero h1 { color: var(--white); max-width: 800px; margin: 0 auto 1rem; }
.hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.hero-gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem auto;
  border-radius: 2px;
}

/* ---------- Cards Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.card-step {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--gold); }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-link:hover { color: var(--navy); }

/* ---------- Feature Section (gambar + teks) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.feature-reverse .feature-img { order: 2; }
.feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature-text h2 { margin-top: 0; }
.feature-text p { color: var(--text-muted); }

/* ---------- CTA Box ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-box h2 { color: var(--white); margin: 0 0 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.85); margin: 0 auto 1.5rem; max-width: 520px; }
.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}
.btn-cta:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
  color: var(--navy);
}
.btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.btn-cta-outline:hover { background: var(--gold); color: var(--navy); }

/* ---------- Inline CTA (dalam artikel) ---------- */
.cta-inline {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(201, 162, 39, 0.03) 100%);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cta-inline p { margin-bottom: 0.85rem; font-size: 0.95rem; }

/* ---------- Article / Prose ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--gold); }
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-body h2 { margin-top: 2.25rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---------- Step Box ---------- */
.step-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-box .num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-serif);
}
.step-box h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.step-box p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-table th { background: var(--ivory-dark); font-weight: 600; width: 40%; color: var(--navy); }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* ---------- Issue Box (troubleshooting) ---------- */
.issue-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.issue-box h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.issue-box p { margin-bottom: 0.5rem; font-size: 0.92rem; }
.issue-box ul { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- Related Box ---------- */
.related {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.related h2 { font-size: 1.15rem; margin-top: 0; }
.related ul { margin-left: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--gold); font-family: var(--font-serif); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1140px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-brand { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-brand span { color: var(--gold); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding: 1rem;
  background: var(--ivory-dark);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gold { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    padding-top: 0.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
  .header-top { flex-wrap: wrap; }
  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-reverse .feature-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .carousel-slide { aspect-ratio: 16 / 9; }
  .carousel-caption { bottom: 1rem; left: 1rem; right: 1rem; }
  .section { padding: 2rem 0; }
  .cta-box { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 1rem; }
  .header-top { padding: 0.7rem 1rem; }
  .logo-text { font-size: 1.1rem; }
  .logo-link img { height: 34px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}