/* =========================================================
   CV. BARID INDO TEKNIK — Stylesheet Utama
   ========================================================= */

:root {
  --navy: #0b2e4f;
  --navy-dark: #071e35;
  --blue: #0e63b3;
  --cyan: #14b8d4;
  --cyan-light: #e6f9fc;
  --ink: #1d2a35;
  --slate: #5a6b78;
  --bg: #ffffff;
  --bg-alt: #f4f9fb;
  --border: #e2eaee;
  --white: #ffffff;
  --success: #1fae6b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 46, 79, 0.10);
  --shadow-sm: 0 4px 14px rgba(11, 46, 79, 0.08);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }
ul { padding-left: 1.2rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--slate); }

.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-light);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.9em;
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }
.section-navy .eyebrow { background: rgba(255,255,255,0.12); color: var(--cyan); }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--success); color: #fff; box-shadow: 0 8px 20px rgba(31,174,107,0.35); }
.btn-primary:hover { background: #189a5d; color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.topbar {
  position: sticky; top: 0; z-index: 110;
  background: var(--navy-dark);
  color: #cfe4f3;
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.45rem; padding-bottom: 0.45rem; flex-wrap: wrap; gap: 0.4rem; }
.topbar a { color: #cfe4f3; }
.topbar a:hover { color: var(--cyan); }
.topbar .topbar-links { display: flex; gap: 1.2rem; }

.navwrap { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: "Poppins", sans-serif; }
.brand-mark {
  width: 46px; height: 46px; object-fit: contain; flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text .name { font-weight: 700; color: var(--navy); font-size: 1.05rem; display: block; }
.brand-text .tag { font-size: 0.72rem; color: var(--slate); }

.mainnav { display: flex; align-items: center; gap: 1.9rem; }
.mainnav a {
  font-family: "Poppins", sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--ink); position: relative;
}
.mainnav a.active, .mainnav a:hover { color: var(--blue); }
.mainnav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  background: var(--cyan); border-radius: 3px;
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 130%; left: 0; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 230px; padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.6em 0.8em; border-radius: 8px; font-weight: 500; }
.dropdown a:hover { background: var(--cyan-light); }

.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

@media (max-width: 900px) {
  .mainnav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85vw);
    background: #fff; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 5.5rem 1.5rem 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.15); transition: right .25s ease; overflow-y: auto; }
  .mainnav.open { right: 0; }
  .mainnav a { padding: 0.85em 0; width: 100%; border-bottom: 1px solid var(--border); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; display: none; padding-left: 0.8rem; }
  .has-dropdown.open .dropdown { display: block; }
  .hamburger { display: block; }
  .nav-cta .btn span.long { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(7,30,53,0.45); opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 90; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 70%); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(20,184,212,0.35), transparent 55%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; padding: 4.5rem 0; }
.hero h1 { color: #fff; }
.hero p.lead { color: #cfe4f3; font-size: 1.12rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.7rem; color: var(--cyan); }
.hero-stats div span { font-size: 0.85rem; color: #cfe4f3; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 25px 50px rgba(0,0,0,0.35); border: 4px solid rgba(255,255,255,0.15); }

.hero-slideshow {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: 0 25px 50px rgba(0,0,0,0.35); border: 4px solid rgba(255,255,255,0.15);
}
.hero-slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #f4f9fb;
  border-radius: 0; border: none; box-shadow: none;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slideshow img.active { opacity: 1; }

.hero-media .floatcard {
  position: absolute; bottom: -18px; left: -18px; max-width: 260px;
}
.hero-media .floatcard img { border: none; box-shadow: none; border-radius: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 2.8rem 0; }
  .hero-media { order: -1; }
  .hero-media .floatcard { position: static; margin-top: -2.5rem; margin-left: 1rem; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff; padding: 3.2rem 0 2.6rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.85rem; color: #a9c6dd; }
.breadcrumb a { color: #a9c6dd; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.7rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 12px; background: var(--cyan-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; font-size: 0.9rem; }

.icon-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.icon-pill {
  display: flex; align-items: center; gap: 0.6rem; background: var(--bg-alt); border: 1px solid var(--border);
  padding: 0.6em 1.1em; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--navy);
}

/* ---------- Brand logo grid ---------- */
.brand-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem;
}
.brand-logo {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm); height: 84px;
  display: flex; align-items: center; justify-content: center; padding: 0.9rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } .brand-logo { height: 68px; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px dashed var(--border); }
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700;
}
.step .num::before { content: counter(step); }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(7,30,53,0.92), transparent);
  color: #fff;
}
.gallery-cap strong { display: block; font-size: 0.92rem; }
.gallery-cap span { font-size: 0.76rem; color: #cfe4f3; }
.filter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.2rem; }
.filter-btn {
  border: 1px solid var(--border); background: #fff; padding: 0.5em 1.1em; border-radius: 999px;
  font-family: "Poppins", sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.lightbox { position: fixed; inset: 0; background: rgba(4,16,28,0.92); display: none; align-items: center; justify-content: center; z-index: 300; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 900px); max-height: 82vh; border-radius: 10px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox .lb-close { position: absolute; top: 1.2rem; right: 1.7rem; color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; }

/* ---------- Client logos / references ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 700px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
.client-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem;
  text-align: center; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--navy); font-size: 0.88rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; min-height: 110px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.client-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-item img { max-width: 100%; max-height: 48px; object-fit: contain; }
.client-item .client-name { font-size: 0.78rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.client-item.text-only { font-size: 0.82rem; line-height: 1.3; padding: 0.8rem; }

/* ---------- Testimonial ---------- */
.testi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.testi .stars { color: #f5a623; margin-bottom: 0.7rem; letter-spacing: 2px; }
.testi footer { margin-top: 1rem; font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.testi footer span { display: block; font-weight: 400; color: var(--slate); font-size: 0.8rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75em 0.9em; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem;
}
.form-row textarea { resize: vertical; min-height: 110px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; border-radius: 20px;
  padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { opacity: 0.92; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9d1e3; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.site-footer a { color: #b9d1e3; font-size: 0.9rem; }
.site-footer a:hover { color: var(--cyan); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; }
.social-row { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--cyan); color: #04202b; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200; background: #25D366; color: #fff;
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37,211,102,0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Blog ---------- */
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card .body { padding: 1.4rem; }
.post-meta { font-size: 0.78rem; color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.post-card p { font-size: 0.9rem; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body h2 { margin-top: 1.8rem; }
.article-body ul, .article-body ol { color: var(--slate); }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }

/* ---------- Table ---------- */
table.spec { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
table.spec th, table.spec td { border: 1px solid var(--border); padding: 0.7em 0.9em; text-align: left; font-size: 0.92rem; }
table.spec th { background: var(--bg-alt); color: var(--navy); font-family: "Poppins", sans-serif; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--cyan-light); color: var(--blue); font-size: 0.75rem; font-weight: 700;
  padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 0.8rem; }
