/* =========================================================
   GTECH ASIA SDN BHD — Site Stylesheet
   Theme: light / blue-cyan digital engineering
   ========================================================= */

:root {
  --blue-700: #1442b0;
  --blue-600: #1a56db;
  --blue-500: #2f6bef;
  --cyan-500: #06b6d4;
  --cyan-600: #047f94; /* accessible variant of cyan-500 for text/icons on light backgrounds — passes WCAG AA (4.7:1 on white) */
  --cyan-400: #22d3ee;
  --gradient-brand: linear-gradient(90deg, var(--blue-600) 0%, var(--cyan-500) 100%);
  --gradient-hero-text: linear-gradient(90deg, #1a56db 0%, #06b6d4 100%);
  --navy-950: #060b1a;
  --navy-900: #0a1230;
  --navy-800: #101a3d;
  --ink-900: #10182c;
  --grey-700: #4b5566;
  --grey-600: #697182; /* accessible variant of grey-500 for small text — passes WCAG AA (4.9:1 on white) */
  --grey-500: #7c869a;
  --grey-300: #d3d9e3;
  --grey-100: #f2f5f9;
  --grey-50: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 22, 60, 0.10);
  --shadow-lg: 0 20px 55px rgba(10, 22, 60, 0.16);
  --max-width: 1220px;
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* The sticky header (.nav-wrap height: 78px) sits above everything at
     all times, so jumping to any in-page anchor (#services, #industries,
     the Solutions dropdown's #tab-cadence/#tab-aurora, etc.) lands that
     element's top edge at the very top of the viewport, directly behind
     the header -- hiding the section heading the user just navigated to.
     scroll-padding-top offsets every anchor scroll by the header's height
     plus a little breathing room, confirmed via the navigation stress
     test as the fix for that finding. */
  scroll-padding-top: 92px;
}

html, body {
  /* Safety net: if any element ever computes wider than the viewport
     (e.g. a flex/grid child that can't shrink below its intrinsic
     content size), this stops it from creating a horizontally
     scrollable page instead of just clipping the overflow. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section { padding: 80px 0; }
section.tight { padding: 48px 0; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 800; color: var(--ink-900); }
h1 { font-size: 2.7rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--grey-700); }

.gradient-text {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline { background: transparent; border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue-600); }
.btn-white:hover { background: var(--grey-100); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Header / Mega nav */
header.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--grey-100);
  backdrop-filter: blur(6px);
}
.nav-wrap {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 78px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img.logo-img { height: 40px; width: auto; display: block; }
.footer-brand .logo img.logo-img { height: 46px; }
.logo-mark {
  width: 42px; height: 42px; flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text .l1 { font-weight: 800; font-size: 1.12rem; color: var(--ink-900); letter-spacing: 0.01em; }
.logo-text .l1 span { color: var(--blue-600); }
.logo-text .l2 { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--grey-600); }

nav.main-nav { display: flex; gap: 2px; align-items: center; }
nav.main-nav > .nav-item { position: relative; }
nav.main-nav > .nav-item > a, nav.main-nav > .nav-item > button.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  color: var(--grey-700); font-size: 0.92rem; font-weight: 600;
  padding: 10px 14px; border-radius: 6px;
  background: none; border: none; font-family: inherit; cursor: pointer;
  transition: all 0.15s ease;
}
nav.main-nav > .nav-item > a:hover, nav.main-nav > .nav-item > button.nav-link:hover { color: var(--blue-600); }
nav.main-nav > .nav-item > a.active, nav.main-nav > .nav-item > button.nav-link.active { color: var(--blue-600); box-shadow: inset 0 -2px 0 var(--blue-600); }

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink-900); }

/* Hero */
.hero { background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%); padding: 64px 0 56px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.85rem; }
.hero p.lead { font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { position: relative; }

/* Trusted partners */
.partners-strip { padding: 36px 0; border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
.partners-strip .label { text-align:center; font-size:0.78rem; font-weight:800; letter-spacing:0.1em; color: var(--grey-600); text-transform: uppercase; margin-bottom: 22px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.partner-badge {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 26px; background: var(--white); border: 1px solid var(--grey-100);
  border-radius: var(--radius-sm); min-width: 190px; text-align: center;
}
.partner-badge b { font-size: 1.05rem; font-weight: 800; color: var(--ink-900); letter-spacing: 0.02em; }
.partner-badge span { font-size: 0.72rem; color: var(--grey-600); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, #0a1230 0%, #1442b0 100%); color: var(--white); padding: 60px 0 52px; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #c6d3f5; font-size: 1.03rem; max-width: 640px; margin: 0; }
.hero-trust-line { margin-top: 18px; font-size: 0.82rem; color: #9fb1e8; font-weight: 600; letter-spacing: 0.01em; }
.hero-trust-line strong { color: #e4ebff; font-weight: 800; }
.breadcrumb { color: #9fb1e8; font-size: 0.85rem; margin-bottom: 14px; }
.breadcrumb a { color: #d7e0fa; }

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

.card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-600);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; margin-bottom: 18px; letter-spacing: 0.02em;
}

.solution-card { padding: 0; overflow: hidden; }
.solution-card .thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 2rem; font-weight: 800;
}
.solution-card .body { padding: 22px; }
.solution-card .body a { color: var(--blue-600); font-weight: 700; font-size: 0.88rem; }

.bg-light { background: var(--grey-50); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: #b7c2dd; }

/* Services icon list */
.services-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 28px; }
.service-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
.service-item .ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--grey-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.service-item h4 { margin: 0 0 2px; font-size: 0.94rem; font-weight: 700; color: var(--ink-900); }
.service-item p { margin: 0; font-size: 0.82rem; }

/* Industries carousel (simple grid + dots) */
.industry-tile {
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  height: 130px; display: flex; align-items: flex-end; padding: 14px;
  color: var(--white); font-weight: 800; font-size: 0.95rem;
}
.industry-tile::before { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,18,48,0.1), rgba(10,18,48,0.75)); }
.industry-tile span { position: relative; z-index: 1; }
.industry-tile { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.industry-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-300); }
.dots .dot.active { background: var(--blue-600); width: 22px; border-radius: 4px; }

/* Training academy callout */
.academy-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.academy-card .badge {
  background: rgba(6,182,212,0.12); color: var(--cyan-600);
  margin-bottom: 10px;
}
.check-list { list-style: none; margin: 16px 0; padding: 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; font-size: 0.92rem; color: var(--grey-700); }
.check-list li::before { content: '\2713'; position: absolute; left: 0; top: 6px; color: var(--cyan-600); font-weight: 800; }

/* Stats bar */
.stats-bar { background: var(--gradient-brand); color: var(--white); padding: 42px 0; }
.stats-bar .grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.stats-bar .stat b { display: block; font-size: 1.35rem; font-weight: 800; }
.stats-bar .stat span { font-size: 0.82rem; opacity: 0.92; font-weight: 600; }

/* Journey / process steps — connected vertical timeline.
   Wrapped in .journey-card so it carries the same visual weight
   (white card, border, shadow) as .testimonial-card opposite it. */
.journey-card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm); margin-top: 28px;
}
.journey-steps { position: relative; }
.journey-steps::before {
  /* single continuous line threading behind every circle, from the
     center of the first icon to the center of the last */
  content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px;
  width: 2px; background: var(--grey-300);
}
.journey-step { position: relative; display: flex; align-items: flex-start; gap: 18px; }
.journey-step + .journey-step { margin-top: 22px; }
.journey-step .step-visual { position: relative; flex-shrink: 0; }
.journey-step .circle {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  background: var(--grey-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.journey-step .circle svg { width: 24px; height: 24px; }
.journey-step .step-num {
  position: absolute; top: -4px; right: -4px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue-600); color: var(--white);
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--white);
}
.journey-step .step-text { padding-top: 9px; }
.journey-step h4 { font-size: 1rem; font-weight: 800; color: var(--ink-900); margin-bottom: 3px; }
.journey-step p { font-size: 0.86rem; color: var(--grey-600); margin-bottom: 0; line-height: 1.5; }
@media (max-width: 600px) {
  .journey-card { padding: 26px 20px; }
  .journey-steps::before { left: 23px; top: 24px; bottom: 24px; }
  .journey-step .circle { width: 48px; height: 48px; }
  .journey-step .circle svg { width: 20px; height: 20px; }
  .journey-step .step-text { padding-top: 6px; }
}

/* Testimonials */
.testimonial-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.stars { color: #f5a623; margin-bottom: 10px; letter-spacing: 2px; }

/* Carousel */
.carousel-col { min-width: 0; }
.carousel-wrap { position: relative; min-width: 0; }
.carousel-viewport { overflow: hidden; min-width: 0; }
.carousel-track { display: flex; transition: transform 0.35s ease; min-width: 0; }
.carousel-track > * { flex: 0 0 100%; min-width: 0; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--grey-300); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5;
  font-size: 1.1rem; color: var(--blue-600); font-weight: 800;
}
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }
@media (max-width: 700px) { .carousel-arrow { display: none; } }

/* Table (Training courses) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
table.course-table { width: 100%; min-width: 480px; border-collapse: collapse; }
table.course-table th, table.course-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-100); font-size: 0.92rem; }
table.course-table th { background: var(--navy-900); color: var(--white); font-weight: 700; }
table.course-table tbody tr:nth-child(even) td { background: var(--grey-50); }
table.course-table tr:hover td { background: var(--grey-100); }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(26,86,219,0.1); color: var(--blue-600); font-size: 0.74rem; font-weight: 800; margin-right: 6px; }
.tag.cyan { background: rgba(6,182,212,0.12); color: #0891a8; }
.tag.amber { background: rgba(226,87,15,0.12); color: #e2570f; }
table.course-table .tag { margin-right: 0; }

/* Tabs */
.tab-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--grey-300); background: var(--white); font-weight: 700; font-size: 0.88rem; cursor: pointer; color: var(--grey-700); }
.tab-btn.active { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Product detail (dropdown-driven gallery, e.g. Cadence / Aurora tabs) */
.product-select-wrap { max-width: 360px; margin-bottom: 24px; }
.product-select-wrap label { font-weight: 700; display: block; margin-bottom: 8px; color: var(--ink-900); font-size: 0.9rem; }
.product-detail { display: none; }
.product-detail.active { display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.gallery-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--grey-100); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gallery-grid img:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox / image reader */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(6,11,26,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 60px 80px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content { position: relative; max-width: 900px; width: 100%; text-align: center; }
.lightbox-content img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: -48px; right: 0; background: none; border: none;
  color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-counter { color: var(--grey-300); margin-top: 16px; font-size: 0.85rem; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .lightbox-overlay { padding: 70px 16px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: -40px; right: 4px; }
}
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Product profile template (Products & Solutions page) */
.product-profile { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.product-banner { background: linear-gradient(120deg, #0a1230 0%, #1442b0 100%); padding: 34px 40px; color: var(--white); }
.product-banner .tag-pill { display: inline-block; background: rgba(255,255,255,0.14); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.product-banner h3 { color: var(--white); font-size: 1.55rem; margin-bottom: 6px; }
.product-banner p { color: #c6d3f5; margin-bottom: 0; max-width: 660px; font-size: 0.95rem; }

.product-body { padding: 32px 40px 36px; }
.product-section { margin-bottom: 30px; }
.product-section:last-of-type { margin-bottom: 0; }
.product-section h4 { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-600); margin-bottom: 14px; }
.product-section > p { font-size: 0.95rem; }

.two-col-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.two-col-list li { padding: 7px 0 7px 26px; position: relative; font-size: 0.92rem; color: var(--grey-700); }
.two-col-list li::before { content: '\2713'; position: absolute; left: 0; top: 7px; color: var(--cyan-600); font-weight: 800; }
@media (max-width: 760px) { .two-col-list { grid-template-columns: 1fr; } }

.industry-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.video-placeholder { aspect-ratio: 16/9; max-width: 640px; border: 2px dashed var(--grey-300); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--grey-600); background: var(--grey-50); }
.video-placeholder svg { width: 38px; height: 38px; opacity: 0.55; }
.video-placeholder span { font-size: 0.85rem; font-weight: 700; }
.video-embed { position: relative; max-width: 640px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.product-cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 26px; margin-top: 4px; border-top: 1px solid var(--grey-100); }

/* Timeline */
.timeline { border-left: 3px solid var(--blue-600); padding-left: 26px; margin-left: 6px; }
.timeline .item { margin-bottom: 24px; position: relative; }
.timeline .item::before { content: ''; position: absolute; left: -32px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-500); }
.timeline .year { font-weight: 800; color: var(--ink-900); }

/* Team */
.team-card { text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--gradient-brand); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 1.6rem; }

/* Forms */
form.contact-form { display: grid; gap: 16px; }
form.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: 0.86rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--grey-300); border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
textarea { resize: vertical; min-height: 130px; }

.contact-info-card { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 32px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: var(--white); margin-bottom: 16px; }
.contact-info-card p strong { display: block; color: var(--cyan-400); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-info-card .row { margin-bottom: 18px; }
.contact-info-card .row b { display: block; color: var(--cyan-400); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }

/* News */
.news-card .date { font-size: 0.78rem; color: var(--blue-600); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

/* Job listing */
.job-item { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--grey-100); gap: 16px; flex-wrap: wrap; }
.job-item h3 { margin-bottom: 4px; }
.job-meta span { margin-right: 14px; color: var(--grey-600); font-size: 0.86rem; }

/* CTA banner */
.cta-banner { background: var(--gradient-brand); color: var(--white); border-radius: var(--radius); padding: 50px; text-align: center; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.92); }

.cta-split {
  background: var(--gradient-brand); border-radius: var(--radius); padding: 42px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--white);
}
.cta-split h2 { color: var(--white); margin-bottom: 6px; }
.cta-split p { color: rgba(255,255,255,0.92); margin-bottom: 0; }

/* Footer */
footer.site-footer { background: var(--navy-950); color: #9aa6c4; padding: 60px 0 22px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 28px; margin-bottom: 36px; }
.footer-brand .logo-text .l1 { color: var(--white); }
.footer-brand p { color: #7c88a8; font-size: 0.88rem; margin: 14px 0 18px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--white); }
.social-icons a:hover { background: var(--blue-600); }
.footer-top h4 { color: var(--white); font-size: 0.88rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-top a, .footer-top p { display: block; color: #8b96b5; font-size: 0.88rem; padding: 5px 0; margin: 0; }
.footer-top a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: #6b7794; }
.footer-bottom a { color: #6b7794; }
.footer-bottom a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1180px) {
  nav.main-nav > .nav-item > a, nav.main-nav > .nav-item > button.nav-link { padding: 10px 8px; font-size: 0.85rem; }
  .nav-wrap { padding: 0 16px; }
  nav.main-nav { gap: 0; }
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4, .services-list { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  form.contact-form .row-2 { grid-template-columns: 1fr; }
  .stats-bar .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .cta-split { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .services-list, .grid-6 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  /* .hero h1's own font-size rule (2.85rem) is more specific than the
     plain "h1" rule above, so it wins regardless of source order and
     never actually shrinks on phones — long words then overflow the
     viewport horizontally. Override it directly here. */
  .hero h1 { font-size: 1.7rem; overflow-wrap: break-word; }
  .footer-top { grid-template-columns: 1fr; }
  .stats-bar .grid-5 { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-sm { padding: 8px 14px; font-size: 0.78rem; gap: 5px; }
  .logo-text .l2 { display: none; }
}
@media (max-width: 400px) {
  .nav-cta .btn-sm { padding: 7px 11px; font-size: 0.72rem; }
}

/* =========================================================
   Consultation Wizard (Contact page)
   Premium enterprise styling pass — visual design only.
   ========================================================= */
:root {
  --consult-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --consult-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --consult-shadow-card: 0 1px 2px rgba(16,24,44,0.04), 0 12px 24px -8px rgba(16,24,44,0.08), 0 32px 64px -24px rgba(16,24,44,0.18);
  --consult-shadow-hover: 0 2px 6px rgba(16,24,44,0.06), 0 6px 16px -4px rgba(26,86,219,0.14);
}

.consult-wrap { max-width: 800px; margin: 0 auto; }

.consult-page-section {
  background: radial-gradient(circle at 50% 0%, rgba(26,86,219,0.05), rgba(255,255,255,0) 55%),
              linear-gradient(180deg, var(--grey-50) 0%, var(--white) 240px);
}

.quick-contact-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 6px; margin-bottom: 32px; padding: 10px 12px;
  background: var(--white); border: 1px solid var(--grey-100); border-radius: 999px;
  box-shadow: var(--shadow-sm); font-size: 0.88rem; color: var(--grey-700); text-align: center;
}
.quick-contact-bar > span:first-child { padding-left: 10px; color: var(--grey-600); font-weight: 600; }
.quick-contact-bar a {
  display: inline-flex; align-items: center; gap: 6px; color: var(--blue-600); font-weight: 700;
  padding: 7px 14px; border-radius: 999px; transition: background 0.2s var(--consult-ease-soft), color 0.2s var(--consult-ease-soft);
}
.quick-contact-bar a svg { width: 15px; height: 15px; flex-shrink: 0; }
.quick-contact-bar a:hover { background: rgba(26,86,219,0.08); }
.quick-contact-bar .sep { display: none; }

.consult-card {
  position: relative; background: var(--white); border: 1px solid rgba(16,24,44,0.06); border-radius: 24px;
  box-shadow: var(--consult-shadow-card); padding: 52px; overflow: hidden;
}
.consult-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--gradient-brand);
}
@media (max-width: 640px) { .consult-card { padding: 30px 20px; border-radius: 18px; } }

.time-estimate {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0;
  text-align: center; font-size: 0.84rem; color: var(--grey-600); font-weight: 600;
  margin-bottom: 28px;
}
.time-estimate svg { width: 14px; height: 14px; margin-right: 6px; color: var(--blue-500); flex-shrink: 0; }
.time-estimate .dot { margin: 0 10px; color: var(--grey-300); }
@media (max-width: 640px) { .time-estimate { font-size: 0.76rem; } .time-estimate .dot { margin: 0 6px; } }

/* Progress bar */
.progress-track { height: 6px; background: var(--grey-100); border-radius: 999px; overflow: hidden; margin: 0 0 32px; }
.progress-fill {
  height: 100%; background: var(--gradient-brand); border-radius: 999px; width: 33.33%;
  transition: width 0.5s var(--consult-ease);
}

/* Stepper */
.stepper { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 6px; }
.step-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 130px; text-align: center;
  cursor: default; background: none; border: none; font-family: inherit; padding: 4px;
}
.step-indicator.completed { cursor: pointer; }
.step-circle {
  position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--grey-500);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
  border: 2px solid var(--grey-300); transition: all 0.3s var(--consult-ease-soft); flex-shrink: 0;
}
.step-circle .step-num, .step-circle .step-check { transition: opacity 0.2s var(--consult-ease-soft), transform 0.3s var(--consult-ease); }
.step-circle .step-check { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.5); }
.step-circle .step-check svg { width: 18px; height: 18px; }
.step-label { font-size: 0.78rem; font-weight: 700; color: var(--grey-500); transition: color 0.3s var(--consult-ease-soft); }

.step-indicator.active .step-circle { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); box-shadow: 0 0 0 5px rgba(26,86,219,0.13); }
.step-indicator.active .step-label { color: var(--ink-900); }

.step-indicator.completed .step-circle { background: var(--cyan-600); border-color: var(--cyan-600); color: var(--white); }
.step-indicator.completed .step-label { color: var(--grey-700); }
.step-indicator.completed .step-circle .step-num { opacity: 0; transform: scale(0.5); }
.step-indicator.completed .step-circle .step-check { opacity: 1; transform: scale(1); }
.step-indicator.completed:hover .step-circle { box-shadow: 0 0 0 5px rgba(6,182,212,0.15); }

.step-line { flex: 1; height: 3px; border-radius: 999px; background: var(--grey-100); margin-top: 20px; max-width: 90px; overflow: hidden; }
.step-line::after { content: ''; display: block; height: 100%; width: 0%; background: var(--cyan-600); transition: width 0.5s var(--consult-ease); }
.step-line.completed::after { width: 100%; }
@media (max-width: 560px) {
  .step-indicator { width: auto; flex: 1; }
  .step-label { font-size: 0.66rem; }
  .step-circle { width: 36px; height: 36px; }
}

.step-progress-text {
  text-align: center; font-size: 0.78rem; font-weight: 800; color: var(--grey-500);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 34px;
}

/* Steps + transition */
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.5s var(--consult-ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.form-step h2 { margin-bottom: 8px; font-size: 1.5rem; letter-spacing: -0.01em; }
.step-desc { color: var(--grey-700); margin-bottom: 32px; font-size: 1rem; line-height: 1.6; }

.consult-card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .consult-card .row-2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 28px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label { display: block; font-weight: 700; font-size: 0.94rem; color: var(--ink-900); margin-bottom: 8px; }
.field .req { color: #e2570f; }
.field .opt { color: var(--grey-500); font-weight: 600; font-size: 0.82rem; }
.field-hint { display: block; font-size: 0.82rem; color: var(--grey-600); margin-top: 7px; line-height: 1.5; }
.field-error { display: none; font-size: 0.82rem; color: #dc2626; margin-top: 7px; font-weight: 700; }

.consult-card input, .consult-card select, .consult-card textarea {
  border-radius: 10px; border: 1.5px solid var(--grey-300); padding: 13px 15px;
  transition: border-color 0.2s var(--consult-ease-soft), box-shadow 0.2s var(--consult-ease-soft);
}
.consult-card input:focus, .consult-card select:focus, .consult-card textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(26,86,219,0.10);
}

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(220,38,38,0.10); }
.field.invalid .field-error { display: block; }
.field.invalid .field-hint { display: none; }
.field.invalid .option-grid, .field.invalid .radio-grid { outline: 1.5px solid #dc2626; outline-offset: 8px; border-radius: var(--radius-sm); }

/* Real-time positive validation feedback (on blur/change) — reassures the
   visitor a field was accepted without waiting for the Next-button click. */
.field.valid input, .field.valid select, .field.valid textarea { border-color: var(--cyan-600); }
.field.valid .option-grid, .field.valid .radio-grid { outline: 1.5px solid var(--cyan-600); outline-offset: 8px; border-radius: var(--radius-sm); }

.option-subgroup { margin-bottom: 16px; }
.option-subgroup:last-child { margin-bottom: 0; }
.option-subgroup-label {
  display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--grey-500); margin-bottom: 10px;
}

/* Grouped fieldsets get a soft panel treatment — reads as a distinct
   sub-section within the large white card without stacking heavy shadows. */
.field-group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.field-group legend { display: block; width: 100%; padding: 0; font-weight: 700; font-size: 0.94rem; color: var(--ink-900); margin-bottom: 8px; }

/* Selectable cards (multi-select + single-select radio share the same base).
   Each wraps a real, visually-hidden checkbox/radio input. */
.option-grid, .radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .option-grid, .radio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .option-grid, .radio-grid { grid-template-columns: 1fr; } }

.option-card {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  min-height: 50px; padding: 14px 16px; border: 1.5px solid var(--grey-300); border-radius: 12px;
  background: var(--white); cursor: pointer; font-size: 0.89rem; font-weight: 600; color: var(--ink-900);
  transition: border-color 0.2s var(--consult-ease-soft), background 0.2s var(--consult-ease-soft),
              box-shadow 0.2s var(--consult-ease-soft), transform 0.2s var(--consult-ease-soft);
}
.option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.option-card:hover { border-color: var(--blue-500); transform: translateY(-1px); box-shadow: var(--consult-shadow-hover); }
.option-card .check {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--grey-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: transparent; background: var(--white);
  transition: all 0.2s var(--consult-ease-soft);
}
.option-card .check svg { width: 12px; height: 12px; transform: scale(0); transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
.option-card input:focus-visible ~ .check { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.option-card.selected {
  border-color: var(--blue-600); background: linear-gradient(0deg, rgba(26,86,219,0.04), rgba(26,86,219,0.04)), var(--white);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.10);
}
.option-card.selected .check { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.option-card.selected .check svg { transform: scale(1); }

.radio-card .check { border-radius: 50%; }
.radio-card.selected { border-color: var(--cyan-600); background: linear-gradient(0deg, rgba(6,182,212,0.05), rgba(6,182,212,0.05)), var(--white); box-shadow: 0 0 0 3px rgba(6,182,212,0.12); }
.radio-card.selected .check { background: var(--cyan-600); border-color: var(--cyan-600); }

/* File upload */
.file-drop {
  border: 2px dashed var(--grey-300); border-radius: 14px; padding: 32px 20px; text-align: center;
  cursor: pointer; color: var(--grey-600); font-size: 0.9rem;
  transition: border-color 0.2s var(--consult-ease-soft), background 0.2s var(--consult-ease-soft), transform 0.2s var(--consult-ease-soft);
}
.file-drop svg { width: 30px; height: 30px; color: var(--blue-500); margin: 0 auto 10px; display: block; }
.file-drop:hover { border-color: var(--blue-500); background: var(--grey-50); }
.file-drop.dragover { border-color: var(--blue-500); background: rgba(26,86,219,0.05); transform: scale(1.01); }
.file-drop strong { color: var(--blue-600); }
.file-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px;
  background: var(--grey-50); border-radius: 10px; font-size: 0.85rem; color: var(--ink-900);
  animation: stepIn 0.3s var(--consult-ease);
}
.file-list .remove-file { background: none; border: none; color: var(--grey-500); cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 2px 4px; transition: color 0.15s ease; }
.file-list .remove-file:hover { color: #dc2626; }

/* Collapsible "optional extras" on the final step */
.optional-extras { border: 1.5px dashed var(--grey-300); border-radius: 14px; padding: 4px 18px; margin-top: 8px; transition: border-color 0.2s ease; }
.optional-extras[open] { padding-bottom: 20px; border-style: solid; border-color: var(--grey-100); background: var(--grey-50); }
.optional-extras summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--blue-600); font-size: 0.92rem;
  list-style: none; display: flex; align-items: center; gap: 10px; user-select: none;
}
.optional-extras summary::-webkit-details-marker { display: none; }
.optional-extras summary .toggle-icon {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(26,86,219,0.10); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--consult-ease);
}
.optional-extras summary .toggle-icon svg { width: 12px; height: 12px; transition: transform 0.3s var(--consult-ease); }
.optional-extras[open] summary .toggle-icon svg { transform: rotate(45deg); }
.optional-extras-body { overflow: hidden; }
.optional-extras .field-group, .optional-extras .field { margin-top: 20px; }

.privacy-note {
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--grey-600);
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--grey-100);
}
.privacy-note svg { width: 16px; height: 16px; color: var(--grey-500); flex-shrink: 0; }

/* Wizard nav — professional button treatment, scoped so the rest of the
   site's buttons are completely unaffected. */
.submit-error {
  margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(220,38,38,0.06); border: 1.5px solid rgba(220,38,38,0.25);
  color: #b91c1c; font-size: 0.88rem; font-weight: 600; line-height: 1.5;
}
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--grey-100); }
.consult-card .btn { padding: 14px 28px; font-size: 0.95rem; transition: all 0.2s var(--consult-ease-soft); }
.consult-card .btn-primary { background: var(--gradient-brand); box-shadow: 0 4px 14px rgba(26,86,219,0.28); }
.consult-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,86,219,0.34); }
.consult-card .btn-primary:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(26,86,219,0.28); }
.consult-card .btn-outline:hover { transform: translateY(-2px); box-shadow: var(--consult-shadow-hover); }
.consult-card .btn-outline:active { transform: translateY(0); }
@media (max-width: 480px) {
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; justify-content: center; }
}

/* Confirmation screen */
.confirm-screen { text-align: center; padding: 10px 0 20px; animation: stepIn 0.5s var(--consult-ease); }
.confirm-icon {
  width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, rgba(6,182,212,0.14), rgba(26,86,219,0.10));
  color: var(--cyan-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
  animation: confirmPop 0.5s var(--consult-ease);
}
.confirm-icon svg { width: 38px; height: 38px; }
@keyframes confirmPop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}
.confirm-screen h2 { margin-bottom: 12px; font-size: 1.6rem; }
.confirm-screen > p { max-width: 460px; margin-left: auto; margin-right: auto; font-size: 1rem; }
.confirm-next-steps { text-align: left; max-width: 460px; margin: 28px auto; background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 16px; padding: 26px 28px; }
.confirm-next-steps li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; font-size: 0.92rem; color: var(--grey-700); line-height: 1.55; }
.confirm-next-steps li:last-child { margin-bottom: 0; }
.confirm-next-steps .num-badge {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--blue-600);
  color: var(--blue-600); font-weight: 800; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.confirm-next-steps strong { color: var(--ink-900); }
.confirm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Mobile: prevent iOS auto-zoom on focus (inputs need >=16px), give the
   nav buttons a sticky footer so they're always reachable. */
@media (max-width: 640px) {
  .consult-card input, .consult-card select, .consult-card textarea { font-size: 16px; }
  .wizard-nav {
    position: sticky; bottom: 0; background: var(--white);
    margin: 32px -20px -30px; padding: 18px 20px; border-top: 1px solid var(--grey-100);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-step.active, .confirm-screen, .confirm-icon, .file-list li { animation: none; }
  .option-card, .step-circle, .step-line::after, .progress-fill, .consult-card .btn { transition: none; }
}
