/* ==========================================================================
   Wawasan Utama Sdn Bhd — Shared Stylesheet
   ========================================================================== */

:root {
  --navy-900: #0b1c2c;
  --navy-800: #11293e;
  --navy-700: #17384f;
  --navy-600: #1f4a68;
  --steel-500: #4a6b85;
  --steel-300: #8ba3b8;
  --steel-100: #dde5ec;
  --grey-50:  #f5f7f9;
  --white:    #ffffff;
  --accent:      #70B630;   /* logo green — fills, rules, accents on dark */
  --accent-dark: #4F8122;   /* darkened for text on white (WCAG AA 4.67:1) */
  --brand-navy:  #004478;   /* logo navy */
  --text:     #22303c;
  --text-mute:#5c6b7a;
  --border:   #dfe6ed;

  --max: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(11, 28, 44, .08);
  --shadow-md: 0 4px 16px rgba(11, 28, 44, .10);
  --shadow-lg: 0 12px 40px rgba(11, 28, 44, .16);
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6em; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--text-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #10250f; }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 1px 6px rgba(11,28,44,.07);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 24px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { height: 46px; width: auto; flex: none; display: block; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 18px;
  color: var(--navy-800); font-size: .93rem; font-weight: 500;
  border-radius: var(--radius); transition: all .15s;
}
.nav-links a:hover { background: var(--grey-50); color: var(--brand-navy); }
.nav-links a.active { color: var(--accent-dark); font-weight: 700; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--navy-800);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--navy-900);
  min-height: 540px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,28,44,.94) 0%, rgba(11,28,44,.80) 45%, rgba(23,56,79,.62) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; max-width: 760px; }
.hero h1 { color: var(--white); }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero-lead { font-size: 1.13rem; color: var(--steel-100); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page banner (inner pages) */
.page-banner {
  position: relative; color: var(--white); background: var(--navy-900);
}
.page-banner .hero-bg::after {
  background: linear-gradient(100deg, rgba(11,28,44,.95) 0%, rgba(17,41,62,.82) 100%);
}
.page-banner-inner { position: relative; z-index: 2; padding: 68px 0 60px; max-width: 720px; }
.page-banner h1 { color: var(--white); margin-bottom: .35em; }
.page-banner p { color: var(--steel-100); margin: 0; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--grey-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--navy-900); color: var(--steel-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-mute); font-size: 1.04rem; margin: 0; }
.rule { width: 54px; height: 3px; background: var(--accent); margin: 0 0 20px; border: 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--text-mute); font-size: .95rem; }
.card-num {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent-dark); margin-bottom: 10px; display: block;
}

/* Expertise list */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.expertise-item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 20px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  background: var(--white); transition: background .15s;
}
.expertise-item:nth-child(3n) { border-right: 0; }
.expertise-item:hover { background: var(--grey-50); }
.expertise-item .n {
  font-size: .78rem; font-weight: 700; color: var(--accent-dark);
  min-width: 22px; font-variant-numeric: tabular-nums;
}
.expertise-item .t { font-weight: 500; font-size: .96rem; }

/* Power station grid */
.station-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 54px;
}
.station {
  background: var(--white); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
  transition: background .15s;
}
.station:hover { background: var(--grey-50); }
.station-name { font-weight: 600; font-size: .94rem; color: var(--navy-700); line-height: 1.3; }
.station-note { font-size: .78rem; color: var(--text-mute); letter-spacing: .02em; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.stat { background: var(--navy-900); padding: 34px 22px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: var(--steel-300); margin-top: 10px; letter-spacing: .06em; text-transform: uppercase; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; max-height: 420px; }

/* ---------- Featured projects ---------- */
.feature-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-media { height: 190px; background-size: cover; background-position: center; background-color: var(--navy-800); }
.feature-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--navy-600); background: var(--steel-100);
  padding: 4px 10px; border-radius: 2px; margin-bottom: 12px; align-self: flex-start;
}
.feature-body h3 { font-size: 1.05rem; margin-bottom: .5em; }
.feature-body p { font-size: .92rem; color: var(--text-mute); margin: 0 0 16px; flex: 1; }
.feature-meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 14px; font-size: .84rem;
}
.feature-meta .client { color: var(--navy-700); font-weight: 600; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filter-btn {
  padding: 9px 18px; border: 1px solid var(--border); background: var(--white);
  border-radius: 30px; font-size: .88rem; font-weight: 500; cursor: pointer;
  color: var(--text-mute); font-family: inherit; transition: all .15s;
}
.filter-btn:hover { border-color: var(--steel-500); color: var(--navy-700); }
.filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); font-weight: 600; }
.filter-btn .count { opacity: .6; font-size: .8em; margin-left: 5px; }

.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search-input {
  flex: 1; min-width: 240px; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .94rem; font-family: inherit; color: var(--text);
}
.search-input:focus { outline: none; border-color: var(--steel-500); box-shadow: 0 0 0 3px rgba(74,107,133,.12); }
.result-count { font-size: .88rem; color: var(--text-mute); white-space: nowrap; }

/* ---------- Project table ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; background: var(--white); }
table.projects { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 680px; }
table.projects th {
  background: var(--navy-800); color: var(--white); text-align: left;
  padding: 14px 18px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  position: sticky; top: 0;
}
table.projects td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.projects tbody tr:hover { background: var(--grey-50); }
table.projects tbody tr:last-child td { border-bottom: 0; }
.col-no { width: 52px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.col-client { width: 24%; font-weight: 600; color: var(--navy-700); }
.cat-chip {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 2px; margin-top: 7px;
}
.cat-pm    { background: #e8eef6; color: #24486e; }
.cat-tx    { background: #e6f1ec; color: #1f5c42; }
.cat-svc   { background: #f6ecdd; color: #8a5a10; }
.cat-sup   { background: #efeaf5; color: #4c3574; }
.no-results { padding: 44px; text-align: center; color: var(--text-mute); display: none; }

/* ---------- Contact ---------- */
.contact-card { border-top: 3px solid var(--accent); display: flex; flex-direction: column; }
.contact-card h3 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; margin-bottom: 1em;
}
.contact-card .addr { color: var(--text); font-size: .96rem; line-height: 1.75; margin: 0; }
.contact-line { margin: 0 0 16px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-label {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; margin-bottom: 2px;
}
.contact-line a {
  font-size: 1.02rem; font-weight: 600; color: var(--brand-navy); word-break: break-word;
}
.contact-line a:hover { color: var(--accent-dark); }


/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-800); color: var(--white); padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { color: var(--steel-300); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--steel-300); padding: 54px 0 0; font-size: .91rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 44px; padding-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2em; }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer p { margin: 0 0 .7em; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: var(--steel-300); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .expertise-item:nth-child(2n) { border-right: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 10px 16px 18px;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 8px 16px rgba(11,28,44,.10);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav { position: relative; }
  .hero { min-height: 440px; }
  .hero-inner { padding: 64px 0; }
  .section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-item { border-right: 0 !important; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  }
