/*
Theme Name: Gavtech
Theme URI: https://gavtech.my
Author: Gavtech
Description: Custom WordPress theme for Gavtech — Mining Through Intelligence. A joint venture between Great Asia Mining Group Sdn Bhd and Viucom Sdn Bhd. Blue-to-violet brand, lavender-tinted whites, deep navy ink.
Version: 2.3.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gavtech
Tags: custom-menu, custom-logo, one-column
*/

/* ============================================================
   Gavtech — WordPress-style theme stylesheet
   Brand: blue→violet gradient, lavender-tinted whites, deep navy ink
   ============================================================ */
:root {
  --gv-blue: #2D6BFF;
  --gv-indigo: #4338CA;
  --gv-violet: #7C3AED;
  --gv-purple-deep: #5B21B6;
  --gv-ink: #131A3A;
  --gv-ink-soft: #475073;
  --gv-bg: #F7F7FC;
  --gv-bg-tint: #EFEEFA;
  --gv-card: #FFFFFF;
  --gv-line: #E3E2F0;
  --gv-grad: linear-gradient(100deg, var(--gv-blue), var(--gv-violet));
  --gv-radius: 16px;
  --gv-shadow: 0 10px 30px -12px rgba(49, 36, 130, 0.18);
  --gv-font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
  --gv-maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gv-font);
  color: var(--gv-ink);
  background: var(--gv-bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gv-indigo); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--gv-maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--gv-ink);
  color: #C9CCE3;
  font-size: 13.5px;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #C9CCE3; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.topbar .tb-right { color: #9aa0c4; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gv-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand .brand-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--gv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--gv-ink-soft); font-weight: 600; font-size: 15.5px;
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--gv-ink); background: var(--gv-bg-tint); }
.main-nav a.current { color: var(--gv-indigo); background: var(--gv-bg-tint); }
.nav-cta {
  display: inline-block; background: var(--gv-grad); color: #fff !important;
  font-weight: 700; padding: 11px 22px !important; border-radius: 999px !important;
  box-shadow: 0 6px 18px -6px rgba(94, 58, 222, 0.55);
}
.nav-cta:hover { filter: brightness(1.07); background: var(--gv-grad) !important; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 16px;
  padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  transition: filter .15s, transform .15s;
  font-family: var(--gv-font);
}
.btn-primary { background: var(--gv-grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(94, 58, 222, 0.55); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gv-ink); box-shadow: inset 0 0 0 2px var(--gv-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--gv-violet); color: var(--gv-violet); }
.btn-light { background: #fff; color: var(--gv-indigo); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 110%, rgba(124, 58, 237, 0.16), transparent 65%),
    radial-gradient(700px 420px at -5% -20%, rgba(45, 107, 255, 0.12), transparent 60%),
    linear-gradient(160deg, #FBFBFE 0%, #F1F0FB 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 60px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; background: var(--gv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; color: var(--gv-ink-soft); max-width: 52ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gv-purple-deep); background: rgba(124,58,237,0.09);
  border: 1px solid rgba(124,58,237,0.22);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(38, 24, 100, 0.45); }
.hero-art .float-card {
  position: absolute; left: -26px; bottom: -22px;
  background: #fff; border-radius: 14px; box-shadow: var(--gv-shadow);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--gv-line);
}
.float-card .num { font-size: 24px; font-weight: 800; background: var(--gv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-card .lbl { font-size: 13px; color: var(--gv-ink-soft); line-height: 1.3; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tint { background: var(--gv-bg-tint); }
.section.dark { background: linear-gradient(135deg, #161B45 0%, #2B1B66 100%); color: #E6E6F7; }
.section.dark h2 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 42px); }
.section-head .sub { color: var(--gv-ink-soft); font-size: 18px; }
.section.dark .section-head .sub { color: #BCBEE0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gv-violet); margin-bottom: 12px;
}
.section.dark .eyebrow { color: #A78BFA; }

/* ---------- Cards & grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--gv-card); border: 1px solid var(--gv-line); border-radius: var(--gv-radius);
  padding: 30px; box-shadow: 0 2px 8px -4px rgba(49,36,130,0.08);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--gv-shadow); }
.card h3 { font-size: 20px; }
.card p { color: var(--gv-ink-soft); font-size: 15.5px; margin-bottom: 0; }
.icon-dot {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gv-bg-tint); margin-bottom: 18px;
}
.icon-dot svg { width: 26px; height: 26px; stroke: var(--gv-violet); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* product cards */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card .pc-img { aspect-ratio: 16/9; overflow: hidden; background: #14163a; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .pc-tag { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gv-violet); }
.product-card .pc-link { font-weight: 700; font-size: 15px; margin-top: auto; }
.product-card .pc-link::after { content: " →"; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% 130%, rgba(124,58,237,0.18), transparent 60%),
    linear-gradient(135deg, #161B45 0%, #2B1B66 100%);
  color: #fff; padding: 72px 0 64px;
}
.page-hero h1 { font-size: clamp(34px, 3.8vw, 50px); margin-bottom: 10px; }
.page-hero .sub { color: #BCBEE0; font-size: 18px; max-width: 64ch; margin: 0; }
.breadcrumb { font-size: 13.5px; color: #9aa0c4; margin-bottom: 18px; display: flex; gap: 8px; }
.breadcrumb a { color: #C4C7E6; }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: #5A5F8E; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media img { border-radius: 18px; box-shadow: var(--gv-shadow); }
.split h2 { font-size: clamp(26px, 2.8vw, 36px); }
.split p { color: var(--gv-ink-soft); }

/* check list */
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--gv-ink-soft); font-size: 16px; }
.checks li::before {
  content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gv-grad); color: #fff; font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center; margin-top: 3px;
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800;
  background: linear-gradient(100deg, #7DA7FF, #C4A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: #BCBEE0; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gv-grad); border-radius: 24px; color: #fff;
  padding: 64px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  box-shadow: 0 24px 50px -20px rgba(94, 58, 222, 0.55);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer { background: #0F1330; color: #A9ADCF; font-size: 15px; margin-top: 96px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: #A9ADCF; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { font-size: 24px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 20px 0; font-size: 13.5px; color: #7A7FA8; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Timeline (roadmap) ---------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--gv-grad); }
.timeline li { position: relative; padding: 0 0 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; border: 4px solid var(--gv-violet);
}
.timeline .yr { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--gv-violet); }
.timeline h3 { font-size: 21px; margin: 4px 0 8px; }
.timeline p { color: var(--gv-ink-soft); margin: 0; max-width: 70ch; }
.timeline .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--gv-indigo);
  background: var(--gv-bg-tint); border: 1px solid var(--gv-line);
  padding: 5px 13px; border-radius: 999px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select, .field textarea {
  font-family: var(--gv-font); font-size: 16px; color: var(--gv-ink);
  border: 1.5px solid var(--gv-line); border-radius: 12px; padding: 13px 16px;
  background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gv-violet); box-shadow: 0 0 0 4px rgba(124,58,237,0.13);
}
.field .err { color: #C2410C; font-size: 13px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #EA580C; }
.field.invalid .err { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .split, .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--gv-line); border-radius: 10px; background: #fff; cursor: pointer; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gv-line); padding: 14px 20px 20px; gap: 4px;
  }
  .topbar .tb-right { display: none; }
  .cta-band { flex-direction: column; text-align: center; }
  .hero-art .float-card { left: 10px; bottom: -18px; }
}


/* ---------- WordPress menu output ---------- */
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav ul li { margin: 0; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gv-indigo); background: var(--gv-bg-tint); }
@media (max-width: 980px) {
  .main-nav.open ul { flex-direction: column; align-items: stretch; }
}
.brand .custom-logo { height: 44px; width: auto; }
.site-footer .brand .custom-logo { height: 48px; width: auto; }

/* ---------- Technology page ---------- */
.step-card { position: relative; padding-top: 38px; }
.step-num {
  position: absolute; top: -22px; left: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gv-grad); color: #fff; font-weight: 800; font-size: 19px;
  display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(94,58,222,0.5);
}
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
@media (max-width: 980px) { .flow-grid { grid-template-columns: 1fr; row-gap: 44px; } }

/* ---------- Contact page ---------- */
.map-ph {
  border-radius: 16px; border: 1.5px dashed var(--gv-line);
  background: repeating-linear-gradient(45deg, #F4F3FB, #F4F3FB 14px, #ECEAF7 14px, #ECEAF7 28px);
  min-height: 220px; display: grid; place-items: center;
  color: var(--gv-ink-soft); font-family: monospace; font-size: 13.5px;
}
.success-note {
  display: none; margin-top: 18px; padding: 16px 20px; border-radius: 12px;
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; font-weight: 600;
}

/* WordPress core alignment classes */
.alignwide { max-width: 1180px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }



/* ---------- Hero: space scene with animated Earth ---------- */
.hero-space {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 80% 20%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(800px 500px at 15% 90%, rgba(45, 107, 255, 0.14), transparent 60%),
    linear-gradient(160deg, #0B0E2B 0%, #131845 55%, #1D1556 100%);
}
.hero-earth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-space::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 14, 43, 0.78) 0%, rgba(11, 14, 43, 0.35) 48%, transparent 70%);
}
.hero-space .wrap {
  position: relative; z-index: 1; display: block;
  padding-top: 120px; padding-bottom: 130px;
}
.hero-space .hero-copy { max-width: 600px; }
.hero-space h1 { color: #FFFFFF; }
.hero-space h1 em { background: linear-gradient(100deg, #7DA7FF, #C4A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-space .lede { color: #BFC3E8; }
.hero-space .kicker { color: #C4A6FF; background: rgba(124, 58, 237, 0.18); border-color: rgba(167, 139, 250, 0.35); }
.hero-space .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.hero-space .btn-ghost:hover { box-shadow: inset 0 0 0 2px #A78BFA; color: #C4A6FF; }
.hero-stat-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px); border-radius: 999px; padding: 10px 22px 10px 16px;
}
.hero-stat-chip .num { font-size: 22px; font-weight: 800; background: linear-gradient(100deg, #7DA7FF, #C4A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat-chip .lbl { font-size: 13.5px; color: #BFC3E8; }
@media (max-width: 980px) {
  .hero-space .wrap { padding-top: 80px; padding-bottom: 320px; }
  .hero-space::after { background: linear-gradient(180deg, rgba(11, 14, 43, 0.75) 0%, rgba(11, 14, 43, 0.3) 55%, transparent 80%); }
}



/* ---------- News / blog cards ---------- */
.post-meta { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--gv-ink-soft); margin-bottom: 14px; flex-wrap: wrap; }
.post-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--gv-grad); padding: 5px 12px; border-radius: 999px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card .media { aspect-ratio: 16/9; overflow: hidden; background: #14163a; display: block; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card h3 a { color: var(--gv-ink); }
.post-card p { color: var(--gv-ink-soft); font-size: 15px; }
.post-card .read { font-weight: 700; font-size: 14.5px; margin-top: auto; }
.post-card .read::after { content: " →"; }
.post-content { font-size: 17px; color: var(--gv-ink); }
.post-content h2, .post-content h3 { margin-top: 1.6em; }
.post-content img { border-radius: 14px; margin: 1.4em 0; }
.post-content blockquote { border-left: 4px solid var(--gv-violet); margin: 1.4em 0; padding: 6px 0 6px 22px; color: var(--gv-ink-soft); font-style: italic; }
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--gv-line); color: var(--gv-ink-soft); font-weight: 600; background: #fff; }
.pagination .page-numbers.current { background: var(--gv-grad); color: #fff; border-color: transparent; }
.pagination a.page-numbers:hover { border-color: var(--gv-violet); color: var(--gv-violet); }
