/* ======================================================
   Techfident Sdn Bhd — follows the original site layout,
   rebuilt with a consistent, modern UI.
   Palette from the company logo & artwork:
   teal, navy blue, amber/orange accents.
====================================================== */

:root {
  --teal:        #0a7d95;
  --teal-dark:   #076176;
  --navy:        #1f5182;
  --navy-dark:   #16385c;
  --amber:       #f0a020;
  --amber-dark:  #d98a10;

  --ink:         #16232b;
  --body:        #4b5b64;
  --muted:       #8a97a0;
  --line:        #e6ebee;
  --bg:          #ffffff;
  --bg-soft:     #f5f8fa;
  --bg-teal:     #eaf4f6;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(16, 45, 60, .08);
  --shadow-lg:   0 20px 50px rgba(16, 45, 60, .14);
  --maxw:        1160px;
  --sidebar-w:   220px;

  --grad: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: 'Poppins', sans-serif; color: var(--ink); line-height: 1.18; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.eyebrow {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.eyebrow.light { color: var(--amber); }
.muted { color: var(--muted); }

/* section heading with the short amber underline like the old site */
.section-head { margin-bottom: 46px; }
.section-head h2,
.about-copy h2,
.commit-copy h2,
.focus-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 700; position: relative;
  padding-bottom: 16px; margin-bottom: 4px;
}
.section-head h2::after,
.about-copy h2::after,
.commit-copy h2::after,
.focus-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px;
  background: var(--amber); border-radius: 4px;
}
.section-head { text-align: left; }
.section-sub { margin-top: 14px; font-size: 1.02rem; max-width: 620px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 13px 28px; border-radius: 50px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(10,125,149,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,125,149,.38); }
.btn-outline { border-color: var(--amber); color: var(--amber-dark); background: transparent; }
.btn-outline:hover { background: var(--amber); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

.brand-mark { height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; color: var(--teal); }
.brand-text strong { color: var(--navy); font-weight: 800; }

/* ---------- LEFT STICKY SIDEBAR (centered, like original) ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: var(--sidebar-w); height: 100vh;
  background: #fff; border-right: 1px solid var(--line);
  box-shadow: 2px 0 18px rgba(16, 45, 60, .06);
  display: flex; flex-direction: column; align-items: stretch;
  padding: 34px 0 28px;
}
.sidebar-brand { flex: none; display: flex; justify-content: center; padding: 10px 24px 0; }
.sidebar-brand .brand-mark { height: 56px; }

/* nav is vertically centered in the leftover space, links centered with dividers */
.sidebar-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.sidebar-nav a {
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  padding: 16px 24px; text-align: center; border-top: 1px solid var(--line);
  transition: color .2s ease, background .2s ease;
}
.sidebar-nav a:last-child { border-bottom: 1px solid var(--line); }
.sidebar-nav a:hover { color: var(--teal); background: var(--bg-teal); }
.sidebar-nav a.active { color: var(--amber-dark); font-weight: 600; }

/* bottom: language switch + email icon */
.sidebar-foot { flex: none; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.lang-switch {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 50px; padding: 3px;
}
.lang-btn {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: .04em;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  padding: 6px 13px; border-radius: 50px; transition: background .2s ease, color .2s ease;
}
.lang-btn:hover { color: var(--teal); }
.lang-btn.active { background: var(--grad); color: #fff; }
.sidebar-mail {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: var(--teal); background: var(--bg-teal);
  transition: background .2s ease, color .2s ease;
}
.sidebar-mail:hover { background: var(--teal); color: #fff; }
.sidebar-mail svg { width: 18px; height: 18px; }
.mail-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: #fff; font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: .75rem; white-space: nowrap; padding: 7px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.mail-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--ink);
}
.sidebar-mail:hover .mail-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.sidebar-mail.copied .mail-tip {
  opacity: 1; transform: translateX(-50%) translateY(0); background: var(--teal);
}
.sidebar-mail.copied .mail-tip::after { border-top-color: var(--teal); }
.sidebar-mail.copied .mail-tip::before { content: 'Copied! '; }

/* ---------- MOBILE TOP BAR (hidden on desktop) ---------- */
.mobile-bar {
  display: none; position: sticky; top: 0; z-index: 101;
  align-items: center; justify-content: space-between; height: 64px; padding: 0 20px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.mobile-bar .brand { display: flex; align-items: center; gap: 10px; }
.mobile-bar .brand-mark { height: 32px; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* backdrop when mobile drawer open */
.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 99; background: rgba(16, 45, 60, .45);
  opacity: 0; transition: opacity .3s ease;
}
.nav-backdrop.show { display: block; opacity: 1; }

/* ---------- desktop: offset all content to the right of sidebar ---------- */
.section, .site-footer { margin-left: var(--sidebar-w); }
.hero { padding-left: var(--sidebar-w); }

/* ---------- HERO (full viewport, glass corridor bg like original) ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: url('../img/hero-background.png') center/cover no-repeat; color: #fff;
  overflow: hidden;
}
/* image already carries a blue tint — keep an even light wash for legibility */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,80,110,.34) 0%, rgba(14,66,96,.40) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 80px 24px; width: 100%; }
.hero-copy { max-width: 700px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 26px; white-space: nowrap; }
.hero h1 span { color: #fff; }

.hero-tags { list-style: none; display: grid; gap: 12px; margin-bottom: 34px; }
.hero-tags li {
  font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 500; color: #eaf4f6;
  padding-left: 30px; position: relative;
}
.hero-tags li::before {
  content: "✔"; position: absolute; left: 0; top: 0; color: var(--amber); font-weight: 700;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- ABOUT (Our Journey Begins) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy p { margin-top: 20px; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px;
  background: radial-gradient(circle, var(--amber) 2px, transparent 2.5px) 0 0 / 16px 16px;
  opacity: .5; z-index: -1;
}

/* ---------- COMMIT (Vision & Mission) ---------- */
.commit { background: var(--bg-soft); }
.commit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.commit-copy h2 { margin-bottom: 30px; }
.vm { margin-bottom: 22px; }
.vm h3 {
  font-family: 'Poppins', sans-serif; font-size: .9rem; letter-spacing: .12em;
  color: var(--teal); margin-bottom: 6px;
}
.vm p { font-size: .98rem; }
.commit-copy .btn { margin-top: 12px; }
.commit-media { position: relative; }
.commit-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.commit-media::after {
  content: ""; position: absolute; inset: auto auto -18px -18px; width: 120px; height: 120px;
  background: radial-gradient(circle, var(--amber) 2px, transparent 2.5px) 0 0 / 16px 16px;
  opacity: .5; z-index: -1;
}

/* ---------- FOCUS (We focus on complex projects) ---------- */
.focus-head { max-width: 780px; margin-bottom: 40px; }
.focus-head p { margin-top: 18px; }
.focus-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px;
}
.focus-list li {
  font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--ink); font-size: 1.02rem;
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.focus-list li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.focus-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- CERTIFICATES ---------- */
.certs { background: var(--bg-soft); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cert img { width: 100%; height: auto; border-radius: 6px; }
.cert figcaption {
  margin-top: 16px; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .92rem; color: var(--navy);
}

/* ---------- CLIENTS ---------- */
.client-cat {
  font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--teal);
  font-size: 1.05rem; margin: 8px 0 20px; padding-left: 14px; border-left: 4px solid var(--amber);
}
.client-cat + .logo-grid { margin-bottom: 46px; }
.logo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 110px; display: grid; place-items: center; padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo img { max-height: 66px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- ORGANIZATION CHART (coded, not an image) ---------- */
.org { background: var(--bg-soft); }
.org-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 16px;
}
.org-chart {
  --org-fill: #158a9e;   /* teal department fill */
  --org-line: #1c5c8a;   /* navy border, dashes & dots */
  --org-text: #147d92;   /* teal text inside white boxes */
  min-width: 880px; display: flex; flex-direction: column; align-items: center;
}

/* node boxes */
.org-node {
  font-family: 'Poppins', sans-serif; text-align: center; border-radius: 12px;
  line-height: 1.3;
}
.org-box {           /* Board of Directors / General Manager */
  background: #fff; border: 2px solid var(--org-line); color: var(--org-text);
  font-weight: 700; padding: 18px 40px; font-size: 1.05rem; letter-spacing: .02em;
  text-transform: uppercase;
}
.org-box.org-lg { font-size: 1.4rem; padding: 22px 70px; }

.org-dept {          /* teal filled department headers */
  background: var(--org-fill); color: #fff; font-weight: 700; font-size: .82rem;
  letter-spacing: .03em; text-transform: uppercase; padding: 16px 18px;
  width: 100%; min-height: 70px; display: flex; align-items: center; justify-content: center;
}
.org-sub {           /* white sub-role boxes */
  background: #fff; border: 2px solid var(--org-line); color: var(--org-text);
  font-weight: 600; font-size: .92rem; padding: 14px 16px; width: 100%;
}
.org-sub span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }

/* vertical dashed connector with a dot at the bottom */
.org-conn {
  width: 2px; height: 34px; margin: 0 auto; position: relative;
  background: repeating-linear-gradient(to bottom, var(--org-line) 0 6px, transparent 6px 12px);
}
.org-conn::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--org-line);
}

/* branch row + horizontal bus */
.org-branches {
  display: flex; justify-content: center; gap: 26px; width: 100%;
  position: relative; padding-top: 40px;
}
.org-branches::before {   /* horizontal bus linking the 4 departments */
  content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(to right, var(--org-line) 0 6px, transparent 6px 12px);
}
.org-branch {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
  position: relative; padding-top: 40px;
}
.org-branch::before {     /* vertical drop from bus to the department header */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 40px;
  background: repeating-linear-gradient(to bottom, var(--org-line) 0 6px, transparent 6px 12px);
}
.org-branch::after {      /* dot where the drop meets the department header */
  content: ""; position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--org-line);
}

/* On small screens the chart keeps its normal width and scrolls horizontally
   (the .org-scroll wrapper handles the left/right scroll). */

/* ---------- PROJECT GALLERY ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-item {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.g-media { position: relative; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.g-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.g-dots:empty { display: none; }
.g-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.g-dot.active { background: #fff; }
.g-card-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(10, 30, 40, .32); color: #fff; font-size: .65rem;
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.g-media:hover .g-card-nav { opacity: 1; }
.g-card-nav:hover { background: rgba(10, 30, 40, .55); }
.g-card-prev { left: 8px; }
.g-card-next { right: 8px; }
.g-foot {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 16px 16px 18px; text-align: center;
}
.g-item figcaption {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: .9rem; color: var(--navy); text-align: center;
}
.g-enlarge {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-teal); color: var(--teal); display: grid; place-items: center;
  cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.g-enlarge svg { width: 16px; height: 16px; }
.g-enlarge:hover { background: var(--teal); color: #fff; transform: scale(1.08); }
.gallery-cta { text-align: center; margin-top: 44px; }

/* ---------- GALLERY LIGHTBOX ---------- */
.g-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 28, .94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.g-lightbox.open { display: flex; opacity: 1; }
.g-lb-stage {
  max-width: 88vw; max-height: 86vh; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.g-lb-img {
  max-width: 88vw; max-height: 74vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.g-lb-caption {
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.05rem;
  text-align: center;
}
.g-lb-counter { color: rgba(255,255,255,.6); font-size: .85rem; }
.g-lb-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .8;
}
.g-lb-close:hover { opacity: 1; }
.g-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.g-lb-nav:hover { background: rgba(255,255,255,.22); }
.g-lb-prev { left: 16px; }
.g-lb-next { right: 16px; }
@media (max-width: 640px) {
  .g-lb-nav { width: 38px; height: 38px; font-size: .95rem; }
  .g-lb-prev { left: 6px; }
  .g-lb-next { right: 6px; }
  .g-lb-close { top: 12px; right: 14px; font-size: 1.8rem; }
}

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
.contact-item {
  display: flex; gap: 24px; align-items: flex-start;
}
.c-icon {
  width: 40px; height: 40px; flex-shrink: 0; padding: 10px; box-sizing: border-box;
  border-radius: 50%; background: var(--bg-teal); color: var(--teal);
}
.c-content { flex: 1; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.contact-item p { font-size: .95rem; color: var(--body); }
.contact-item a { color: var(--teal); font-weight: 500; }
.contact-item a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-dark); color: #cdd8e0; padding-top: 48px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { height: 30px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text strong { color: var(--amber); }
.footer-tag { font-size: .92rem; color: #9fb0bd; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-nav a { font-family: 'Poppins', sans-serif; font-size: .9rem; color: #cdd8e0; }
.footer-nav a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  text-align: center; font-size: .85rem; color: #8ea0ae;
}

/* ---------- PRODUCTS PAGE ---------- */
.products { padding: 60px 0; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; margin-bottom: 48px; box-shadow: var(--shadow);
}
.product-header { margin-bottom: 32px; border-bottom: 2px solid var(--line); padding-bottom: 16px; }
.product-header h2 { color: var(--teal); font-size: 1.6rem; margin-bottom: 4px; }
.product-category {
  font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  color: var(--amber); text-transform: uppercase;
}

.product-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-images { }
.product-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; auto-rows: 240px;
}
.product-gallery img {
  width: 100%; height: 100%; border-radius: var(--radius-sm);
  object-fit: contain; background: #f9fafb; padding: 12px;
  box-shadow: 0 4px 12px rgba(16, 45, 60, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-gallery img:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(16, 45, 60, .12); }

.product-details { }
.product-details h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 12px; margin-top: 0; }
.product-details h4 {
  font-size: 1rem; color: var(--teal); margin-top: 24px; margin-bottom: 12px;
  font-weight: 600;
}
.product-details p { color: var(--body); line-height: 1.7; margin-bottom: 16px; }

.product-specs {
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 20px;
  margin: 20px 0;
}
.spec-item {
  display: flex; gap: 12px; margin-bottom: 12px; font-size: .95rem;
}
.spec-item:last-child { margin-bottom: 0; }
.spec-item strong { color: var(--ink); min-width: 140px; flex-shrink: 0; }
.spec-item span { color: var(--body); }

.bullet-list {
  list-style: none; padding-left: 0;
}
.bullet-list li {
  padding-left: 24px; margin-bottom: 8px; position: relative; color: var(--body);
}
.bullet-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: bold;
}

.company-info {
  background: var(--bg-teal); border-radius: var(--radius-sm); padding: 20px; margin-top: 24px;
}
.company-info p { margin-bottom: 8px; font-size: .95rem; color: var(--body); }
.company-info p:last-child { margin-bottom: 0; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); color: #fff; padding: 60px 0; }
.cta-content { text-align: center; }
.cta-content h2 { font-size: 2rem; color: #fff; margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  align-items: center; margin: 0;
}
.cta-buttons .btn {
  padding: 12px 32px; font-size: 1rem; font-weight: 600;
  border: none; border-radius: 50px;
  white-space: nowrap; flex-shrink: 0;
}
.cta-buttons .btn-primary {
  background: var(--amber); color: #fff;
}
.cta-buttons .btn-primary:hover {
  background: var(--amber-dark);
}
.cta-buttons .btn-outline {
  background: transparent; color: #fff; border: 2px solid #fff;
}
.cta-buttons .btn-outline:hover {
  background: rgba(255,255,255,.1); border-color: #fff;
}

@media (max-width: 920px) {
  .product-content { grid-template-columns: 1fr; gap: 32px; }
  .product-card { padding: 24px; }
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-content h2 { font-size: 1.5rem; }
  .cta-buttons {
    flex-direction: column; width: 100%;
  }
  .cta-buttons .btn {
    width: 100%; max-width: 300px;
  }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s ease; z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

/* Tablet & below: sidebar becomes a slide-in drawer, content full width */
@media (max-width: 920px) {
  .mobile-bar { display: flex; }
  .sidebar {
    top: 64px; height: calc(100vh - 64px); z-index: 100;
    transform: translateX(-100%); transition: transform .3s ease;
    width: 260px; padding-top: 20px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand { display: none; }
  .sidebar-nav { flex: 0 0 auto; justify-content: flex-start; padding: 8px 0; }
  .nav-backdrop { top: 64px; }
  .section, .site-footer { margin-left: 0; }
  .hero { padding-left: 0; min-height: calc(100vh - 64px); }
  html { scroll-padding-top: 80px; }
}

@media (max-width: 940px) {
  .about-grid, .commit-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media, .commit-media { max-width: 500px; }
  .commit-media { order: -1; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 62px 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); white-space: normal; word-break: break-word; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 20px; font-size: .9rem; }
}

/* ======================================================
   LIST OF PROJECTS PAGE
====================================================== */
.proj-hero {
  background: var(--grad); color: #fff; padding: 66px 0 60px;
  margin-left: var(--sidebar-w);
}
.proj-hero .eyebrow { color: var(--amber); }
.proj-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; }
.proj-hero p { color: #d7eef2; margin-top: 12px; font-size: 1.06rem; }

.proj-section { margin-left: var(--sidebar-w); background: var(--bg-soft); padding: 56px 0 88px; }

/* toolbar: search + filter chips */
.proj-tools {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.proj-search { position: relative; flex: 1 1 280px; max-width: 380px; }
.proj-search input {
  width: 100%; padding: 13px 18px 13px 44px; border: 1px solid var(--line); border-radius: 50px;
  font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.proj-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,125,149,.12); }
.proj-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

.proj-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 500;
  padding: 9px 16px; border-radius: 50px; border: 1px solid var(--line);
  background: #fff; color: var(--body); cursor: pointer; transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip.active { background: var(--grad); color: #fff; border-color: transparent; }

.proj-count { font-size: .9rem; color: var(--muted); margin: 0 0 30px; }
.proj-count strong { color: var(--ink); }

/* year groups */
.year-group { margin-bottom: 40px; }
.year-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.year-head h2 { font-size: 1.5rem; color: var(--navy); font-weight: 700; }
.year-head .yline { flex: 1; height: 2px; background: linear-gradient(to right, var(--line), transparent); }
.year-head .ycount {
  background: var(--bg-teal); color: var(--teal); font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .78rem; padding: 5px 13px; border-radius: 50px;
}

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }

.proj-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.proj-card.cat-civil { border-left-color: var(--teal); }
.proj-card.cat-me    { border-left-color: var(--navy); }
.proj-card.cat-rad   { border-left-color: var(--amber); }

.proj-card .pc-meta { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-bottom: 12px; }
.cat-badge {
  font-family: 'Poppins', sans-serif; font-size: .66rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 50px; white-space: nowrap;
}
.cat-badge.cat-civil { background: #e4f2f5; color: var(--teal-dark); }
.cat-badge.cat-me    { background: #e8eef7; color: var(--navy); }
.cat-badge.cat-rad   { background: #fdf1dd; color: var(--amber-dark); }
.proj-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }

.pc-fields { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.pc-field { display: flex; flex-direction: column; gap: 2px; }
.pc-field dt {
  font-family: 'Poppins', sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted);
}
.pc-field dd {
  font-size: .88rem; color: var(--ink); font-weight: 500; margin: 0;
  display: flex; align-items: flex-start; gap: 6px;
}
.pc-field dd.inprogress { color: var(--amber-dark); font-weight: 600; }
.pc-field dd svg { flex: none; width: 14px; height: 14px; color: var(--teal); margin-top: 2px; }

.no-results { text-align: center; padding: 70px 20px; color: var(--muted); font-size: 1.05rem; }

@media (max-width: 920px) {
  .proj-hero, .proj-section { margin-left: 0; }
}
@media (max-width: 560px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-tools { gap: 14px; }
}
