/* ============================================================
   BILLITON SERVICES — Design System
   Brand: Navy #1B2A4A | Green #21A05A | Gold #F0B429 | Blue #5B8DD9
   Type:  Syne (display) / Inter (body) / Space Grotesk (data)
   Signature: the logo's colored dots, used as a living motif
   ============================================================ */

:root {
  --navy: #1B2A4A;
  --navy-deep: #111D36;
  --green: #21A05A;
  --gold: #F0B429;
  --blue: #5B8DD9;
  --ink: #1e2a40;
  --muted: #5d6b85;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef3fa;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(27, 42, 74, 0.10);
  --shadow-sm: 0 4px 16px rgba(27, 42, 74, 0.07);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-data: 'Poppins', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

/* ---------- DOT MOTIF (signature) ---------- */
.dots { display: inline-flex; gap: 7px; align-items: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dots i:nth-child(1) { background: var(--green); }
.dots i:nth-child(2) { background: var(--gold); }
.dots i:nth-child(3) { background: var(--blue); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-data); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo-link img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 500; font-size: 0.97rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
  transition: width .28s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 11px 24px !important;
  border-radius: 999px; font-weight: 600; transition: background .2s, transform .2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 3px; transition: .3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, var(--bg-tint) 60%, #e7eef9 100%);
  padding: 96px 0 110px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .accent-word { position: relative; white-space: nowrap; }
.hero h1 .accent-word::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: linear-gradient(90deg, rgba(33,160,90,.35), rgba(240,180,41,.35), rgba(91,141,217,.35));
  z-index: -1; border-radius: 4px;
}
.hero p.lead { font-size: 1.13rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s; border: 0; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(27,42,74,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27,42,74,.32); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

/* Hero visual: three discipline tiles connected by dots */
.hero-visual { position: relative; display: grid; gap: 18px; }
.discipline-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.discipline-tile:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.discipline-tile .tile-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.discipline-tile:nth-child(1) .tile-dot { background: var(--blue); }
.discipline-tile:nth-child(2) .tile-dot { background: var(--gold); }
.discipline-tile:nth-child(3) .tile-dot { background: var(--green); }
.discipline-tile strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--navy); display: block; }
.discipline-tile span { font-size: .88rem; color: var(--muted); }

/* floating ambient dots */
.float-dot { position: absolute; border-radius: 50%; opacity: .5; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ---------- STATS STRIP ---------- */
.stats-strip { background: var(--navy); color: #fff; padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; text-align: center; }
.stat-value {
  font-family: var(--font-data); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #7ee2a8, #ffd56a, #9cc1f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .92rem; opacity: .82; margin-top: 4px; }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- PILLAR CARDS (home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; position: relative; overflow: hidden;
  transition: transform .28s, box-shadow .28s; display: flex; flex-direction: column;
}
.pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.pillar.p-tech::before { background: var(--blue); }
.pillar.p-hr::before { background: var(--gold); }
.pillar.p-con::before { background: var(--green); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar .p-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 22px; font-size: 26px;
}
.pillar.p-tech .p-icon { background: rgba(91,141,217,.12); color: var(--blue); }
.pillar.p-hr .p-icon { background: rgba(240,180,41,.14); color: #c98e0d; }
.pillar.p-con .p-icon { background: rgba(33,160,90,.12); color: var(--green); }
.pillar h3 { margin-bottom: 12px; font-size: 1.32rem; }
.pillar p { color: var(--muted); font-size: .97rem; flex: 1; }
.pillar .p-link { margin-top: 24px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.pillar .p-link svg { transition: transform .2s; }
.pillar:hover .p-link svg { transform: translateX(5px); }
.pillar .badge-major {
  position: absolute; top: 20px; right: -34px; transform: rotate(38deg);
  background: var(--green); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; padding: 5px 40px; text-transform: uppercase;
}

/* ---------- SERVICE LIST (vertical pages) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s, box-shadow .25s; position: relative;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card .s-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--bg-tint); color: var(--navy); font-size: 22px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, var(--navy) 0%, #243a66 100%); border: 0; }
.service-card.featured h3 { color: #fff; font-size: 1.5rem; }
.service-card.featured p { color: rgba(255,255,255,.85); max-width: 800px; }
.service-card.featured .s-icon { background: rgba(255,255,255,.12); color: var(--gold); }
.service-card.featured .feat-tag {
  display: inline-block; font-family: var(--font-data); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(240,180,41,.4);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #22365e 100%);
  color: #fff; padding: 84px 0 72px; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; margin-top: 14px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin-top: 18px; font-size: 1.08rem; }
.page-hero .eyebrow { color: rgba(255,255,255,.65); }
.page-hero .hero-rings {
  position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(255,255,255,.045);
}

/* ---------- TIMELINE (about) ---------- */
.timeline { position: relative; margin-top: 50px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 42px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .tl-dot {
  position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 0 0 2px var(--line);
}
.tl-item:nth-child(3n+1) .tl-dot { background: var(--green); }
.tl-item:nth-child(3n+2) .tl-dot { background: var(--gold); }
.tl-item:nth-child(3n) .tl-dot { background: var(--blue); }
.tl-item .tl-year { font-family: var(--font-data); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.tl-item p { color: var(--muted); margin-top: 6px; }

/* ---------- VISION / MISSION ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card {
  border-radius: var(--radius); padding: 40px 36px; color: #fff; position: relative; overflow: hidden;
}
.vm-card.vision { background: linear-gradient(135deg, var(--navy), #2a4070); }
.vm-card.mission { background: linear-gradient(135deg, #18753f, var(--green)); }
.vm-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 14px; }
.vm-card p { color: rgba(255,255,255,.88); }

/* ---------- GALLERY ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3;
  background: var(--bg-tint);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
  background: linear-gradient(transparent, rgba(17,29,54,.85));
  color: #fff; font-size: .9rem; font-weight: 500;
}

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.team-card { text-align: center; }
.team-card .t-photo {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shadow-sm); background: var(--bg-tint);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--navy);
}
.team-card .t-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; }
.team-card span { color: var(--muted); font-size: .9rem; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .pc-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg-tint), #dfe9f7); overflow: hidden; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.pc-cat {
  font-family: var(--font-data); font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.post-card h3 { font-size: 1.13rem; margin-bottom: 10px; line-height: 1.35; }
.post-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.pc-meta { margin-top: 18px; font-size: .82rem; color: var(--muted); display: flex; gap: 14px; }

/* ---------- ARTICLE ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-content { font-size: 1.08rem; }
.article-content h2 { margin: 40px 0 16px; font-size: 1.55rem; }
.article-content p { margin-bottom: 20px; color: #2c3a55; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: #2c3a55; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius); margin: 24px 0; }
.article-meta { display: flex; gap: 18px; color: var(--muted); font-size: .9rem; margin: 18px 0 36px; flex-wrap: wrap; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 36px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.ci-row { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.ci-row .ci-ic {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.1);
  display: grid; place-items: center; flex-shrink: 0; font-size: 18px;
}
.ci-row a { color: #fff; }
.ci-row span { color: rgba(255,255,255,.85); font-size: .95rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .96rem; transition: border-color .2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-success { background: #e8f8ef; border: 1px solid #b3e6c8; color: #18753f; padding: 16px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #22365e 55%, #1d4a35 100%);
  color: #fff; border-radius: 20px; padding: 64px 56px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 70px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 20px; }
.footer-grid a { display: block; padding: 5px 0; font-size: .94rem; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-logo { background: #fff; border-radius: 12px; padding: 12px 18px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 40px; }
.footer-grid p { font-size: .92rem; line-height: 1.75; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .86rem;
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-dot { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .contact-grid, .vm-grid, .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 24px 22px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--bg-tint); }
  .nav-cta { margin-top: 14px; text-align: center; justify-content: center; display: flex; }
  .hamburger { display: block; }
  .section { padding: 64px 0; }
  .cta-band { padding: 48px 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-link img { height: 42px; }
}
