/* =========================================================================
   Keystone Group Holding — stylesheet
   Brand: navy #0a4683 / #0b5096, light blue #a3beda / #b8cde2 (from the original site)
   ========================================================================= */


:root {
    --navy-900: #06284a;
    --navy-800: #083a6c;
    --navy-700: #0a4683;
    --navy-600: #0b5096;
    --navy-500: #1a63ad;
    --sky-300: #a3beda;
    --sky-200: #b8cde2;
    --sky-100: #dbe7f3;
    --sky-50:  #f1f6fb;
    --ink: #1c2733;
    --text: #4a5868;
    --muted: #7a8796;
    --line: #e3e8ee;
    --white: #fff;
    --wa: #25d366;
    --ok: #067647;
    --err: #b42318;
    --font-head: "AFKlampenborg", "Saira Semi Condensed", "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --container: 1200px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(6, 40, 74, .08);
    --shadow: 0 10px 30px rgba(6, 40, 74, .12);
    --shadow-lg: 0 24px 60px rgba(6, 40, 74, .22);
    --header-h: 86px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy-700); color: #fff; padding: 8px 14px; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { left: 8px; color: #fff; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.is-hidden { display: none !important; }

/* ---- Typography ---------------------------------------------------------- */
.eyebrow { font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--navy-500); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: .3px; color: var(--navy-800); margin-bottom: 18px; }
.h-small { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--navy-800); margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--text); }
.section-intro { max-width: 520px; color: var(--text); margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-600); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--navy-600); cursor: pointer;
    border-radius: var(--radius); background: var(--navy-600); color: #fff; padding: 11px 22px; font-weight: 600; font-size: 15px;
    line-height: 1.2; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; text-align: center;
}
.btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--navy-600); }
.btn-outline:hover { background: var(--navy-600); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy-800); }
.btn-white { background: #fff; border-color: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--sky-100); border-color: var(--sky-100); color: var(--navy-900); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }
.btn-wa { background: var(--wa); border-color: var(--wa); margin-top: 10px; }
.btn-wa:hover { background: #1da851; border-color: #1da851; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(6, 40, 74, .1); }
.topbar { background: var(--navy-800); color: var(--sky-200); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar-links { display: flex; gap: 22px; }
.navbar { border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; gap: 30px; height: var(--header-h); transition: height .25s; }
.site-header.is-scrolled .navbar-inner { height: 70px; }
.logo img { width: 72px; height: auto; transition: width .25s; }
.site-header.is-scrolled .logo img { width: 58px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
    display: block; padding: 10px 14px; font-family: var(--font-head); font-size: 17px; font-weight: 500; letter-spacing: .8px;
    text-transform: uppercase; color: var(--ink); position: relative;
}
.site-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--navy-600); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a.active::after { transform: scaleX(1); }
.site-nav > ul > li > a.active { color: var(--navy-600); }
.site-nav .sub {
    list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 220px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: .18s; z-index: 60;
}
.site-nav .sub a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--ink); font-size: 15px; }
.site-nav .sub a:hover { background: var(--sky-50); color: var(--navy-600); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; margin-left: auto; padding: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 26px; height: 2px; background: var(--navy-800); position: relative; transition: .2s; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -8px; }
.nav-toggle .bars::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 90px 0; }
.section-tight { padding: 50px 0 80px; }
.section-soft { background: var(--sky-50); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }

/* ---- Home hero ------------------------------------------------------------ */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(6,40,74,.92) 0%, rgba(8,58,108,.72) 38%, rgba(8,58,108,.15) 75%),
    linear-gradient(0deg, rgba(6,40,74,.75) 0%, rgba(6,40,74,0) 40%); }
.hero-content { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 40px; max-width: var(--container); }
.hero-content > * { max-width: 640px; }
.hero .eyebrow { color: var(--sky-200); }
.hero-title { font-family: var(--font-head); font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; color: #fff; line-height: 1.04; margin-bottom: 20px; letter-spacing: .3px; }
.hero-lead { font-size: 19px; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 34px; }
.hero-card {
    display: grid; gap: 2px; padding: 16px 22px 16px 20px; min-width: 280px; background: rgba(255,255,255,.1); color: #fff;
    border-left: 4px solid var(--sky-300); backdrop-filter: blur(8px); border-radius: 0 var(--radius) var(--radius) 0; transition: background .2s;
}
.hero-card:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-card-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sky-200); }
.hero-card-title { font-family: var(--font-head); font-size: 24px; font-weight: 600; text-transform: uppercase; }
.hero-card-meta { font-size: 14px; color: rgba(255,255,255,.8); }
.hero-controls { display: flex; align-items: center; gap: 14px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: .2s; }
.round-btn:hover { background: #fff; color: var(--navy-800); }
.hero-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.dot.is-active { width: 30px; background: #fff; }

/* ---- Stats --------------------------------------------------------------- */
.stats { background: var(--navy-700); background-image: linear-gradient(120deg, var(--navy-600), var(--navy-800)); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.2); }
.stat-value { font-family: var(--font-head); font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1; margin-bottom: 8px; color: #fff; }
.stat-label { margin: 0; color: var(--sky-200); font-size: 14px; }

/* ---- About --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--sky-200); border-radius: var(--radius-lg); z-index: -1; }
.about-badge { position: absolute; right: -20px; bottom: 36px; background: var(--navy-700); color: #fff; padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 38px; line-height: 1; }
.about-badge span { font-size: 13px; color: var(--sky-200); letter-spacing: 1px; text-transform: uppercase; }
.prime-inline { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.prime-inline li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; font-weight: 600; color: var(--navy-800); }
.prime-inline span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-600); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 15px; }

/* ---- Services ------------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--navy-600); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--sky-100); color: var(--navy-600); display: grid; place-items: center; margin-bottom: 20px; }
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--navy-800); margin-bottom: 10px; }
.service-card p { font-size: 15px; margin: 0; }

/* ---- Project cards ------------------------------------------------------- */
.project-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; color: inherit; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: inherit; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .card-img img { transform: scale(1.06); }
.card-tag { position: absolute; left: 14px; top: 14px; background: rgba(6,40,74,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 4px; letter-spacing: .3px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.card-title { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--navy-800); line-height: 1.2; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.card-meta .icon { color: var(--navy-500); width: 16px; height: 16px; }
.card-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy-600); }
.card-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.project-card:hover .card-more .icon { transform: translateX(4px); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--navy-800); background-image: radial-gradient(circle at 85% 20%, rgba(163,190,218,.22), transparent 45%), linear-gradient(120deg, var(--navy-700), var(--navy-900)); color: #fff; padding: 70px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-title { font-family: var(--font-head); font-size: clamp(28px, 3vw, 38px); font-weight: 600; color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--sky-200); font-size: 17px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Inner page hero ----------------------------------------------------- */
.page-hero { position: relative; background: var(--navy-800); background-image: linear-gradient(120deg, var(--navy-700) 0%, var(--navy-900) 100%); color: #fff; padding: 70px 0 64px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 60px solid rgba(255,255,255,.04); border-radius: 50%; }
.page-hero.has-image .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--sky-200); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--sky-200); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.page-title { font-family: var(--font-head); font-size: clamp(36px, 5vw, 56px); font-weight: 600; color: #fff; letter-spacing: .3px; }
.page-lead { font-size: 18px; color: rgba(255,255,255,.85); margin: 12px 0 0; max-width: 640px; }

/* ---- Section tabs (sticky sub-navigation) -------------------------------- */
.section-tabs { position: sticky; top: calc(var(--header-h) + 34px); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section-tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-tabs .container::-webkit-scrollbar { display: none; }
.section-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 18px 18px 16px; white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; }
.section-tabs a .icon { width: 18px; height: 18px; }
.section-tabs a:hover { color: var(--navy-600); }
.section-tabs a.is-active, .section-tabs a[aria-selected="true"] { color: var(--navy-700); border-bottom-color: var(--navy-600); }
.js .js-tabs .tab-panel { display: none; }
.js .js-tabs .tab-panel.is-active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Company ------------------------------------------------------------- */
.chairman-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 60px; align-items: start; }
.quote { margin: 0; padding: 0 0 0 30px; border-left: 4px solid var(--navy-600); font-family: var(--font-head); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; color: var(--navy-800); position: relative; }
.quote::before { content: "“"; position: absolute; left: 18px; top: -46px; font-size: 110px; color: var(--sky-100); line-height: 1; z-index: -1; }
.chairman-body { background: var(--sky-50); padding: 34px; border-radius: var(--radius-lg); }
.signature { font-family: var(--font-head); font-size: 26px; font-weight: 600; color: var(--navy-700); margin: 24px 0 0; }
.signature small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: start; }
.profile-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--sky-100); }
.vision { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--navy-700); color: #fff; }
.vision h3 { font-family: var(--font-head); color: var(--sky-200); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.vision p { margin: 0; font-size: 18px; }
.prime-head { margin: 80px 0 30px; text-align: center; }
.prime-head .section-intro { margin: 0 auto; }
.prime-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.prime-card { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .25s, transform .25s; }
.prime-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prime-letter { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-500), var(--navy-800)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 26px; font-weight: 600; margin-bottom: 16px; }
.prime-card h3 { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }
.prime-card p { font-size: 14px; margin: 0; }

/* ---- Investors ----------------------------------------------------------- */
.invest-box { margin-top: 30px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--sky-50); }

/* ---- Lists with check icons --------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.checks .icon { color: var(--navy-500); margin-top: 3px; width: 18px; height: 18px; }
.checks-2col { columns: 2 300px; column-gap: 40px; }
.checks-2col li { break-inside: avoid; }

/* ---- Projects page ------------------------------------------------------- */
.timeline-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 30px 54px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.timeline-head .h-small, .timeline-head p { margin: 0; }
.timeline { position: relative; height: 40px; margin: 0 20px; }
.timeline-axis { position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: linear-gradient(90deg, var(--sky-200), var(--navy-600)); border-radius: 3px; }
.tl-point { position: absolute; left: var(--x); top: 50%; transform: translate(-50%, -50%); }
.tl-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--navy-600); cursor: pointer; transition: transform .2s; position: relative; }
.tl-dot[data-count="2"] { width: 22px; height: 22px; border-width: 5px; }
.tl-dot[data-count="2"]::after { content: "2"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--navy-600); }
.tl-point:hover .tl-dot, .tl-point:focus-within .tl-dot { transform: scale(1.3); background: var(--navy-600); }
.tl-year { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tl-pop { position: absolute; bottom: 30px; left: 50%; transform: translate(-50%, 6px); background: var(--navy-800); border-radius: var(--radius); padding: 8px; min-width: 200px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .2s; z-index: 5; }
.tl-pop::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--navy-800); }
.tl-pop a { display: block; color: #fff; padding: 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tl-pop a small { display: block; font-weight: 400; color: var(--sky-200); }
.tl-pop a:hover { background: rgba(255,255,255,.1); }
.tl-point:hover .tl-pop, .tl-point:focus-within .tl-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: 40px; font: inherit; background: #fff; }
.search input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--sky-100); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink); }
.toolbar .js-project-count { margin: 0 0 0 auto; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); }

/* ---- Project detail ------------------------------------------------------ */
.project-hero { position: relative; background: var(--navy-900); color: #fff; padding: 50px 0 60px; overflow: hidden; }
.project-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: blur(4px); transform: scale(1.1); }
.project-hero-inner { position: relative; z-index: 1; }
.project-hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 50px; align-items: end; }
.project-hero-img { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: -110px; }
.project-hero-img img { width: 100%; aspect-ratio: 520 / 540; object-fit: cover; transition: transform .5s; }
.project-hero-img:hover img { transform: scale(1.04); }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; background: rgba(6,40,74,.8); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 4px; }
.facts-bar { background: #fff; border-bottom: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-top: 24px; padding-bottom: 24px; padding-right: 500px; }
.fact { display: flex; align-items: center; gap: 12px; }
.fact .icon { width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: var(--sky-100); color: var(--navy-600); }
.fact span { display: flex; flex-direction: column; font-weight: 600; color: var(--ink); line-height: 1.3; }
.fact small { font-weight: 400; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; padding-top: 50px; padding-bottom: 80px; align-items: start; }
.block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.block .section-title { font-size: 30px; }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.layout-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--sky-50); }
.layout-card h3 { font-family: var(--font-head); font-size: 20px; color: var(--navy-700); margin-bottom: 8px; text-transform: uppercase; }
.layout-card .checks li { padding: 4px 0; font-size: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.team-card { border-left: 4px solid var(--navy-600); background: var(--sky-50); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.team-card dt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.team-card dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: var(--sky-100); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.06); }
.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sky-100); aspect-ratio: 16 / 9; }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; background: #fff; padding: 8px 14px; border-radius: 40px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.prev-next { display: flex; justify-content: space-between; gap: 16px; }
.prev-next a { display: flex; flex-direction: column; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--navy-700); }
.prev-next a small { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 400; }
.prev-next .next { text-align: right; }
.project-aside { position: sticky; top: calc(var(--header-h) + 110px); display: grid; gap: 20px; }
.enquiry-card { background: var(--navy-800); background-image: linear-gradient(140deg, var(--navy-600), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.enquiry-card .h-small { color: #fff; }
.enquiry-card p { color: var(--sky-200); font-size: 15px; }
.enquiry-card .btn:not(.btn-wa) { background: #fff; border-color: #fff; color: var(--navy-800); }
.enquiry-card .btn:not(.btn-wa):hover { background: var(--sky-100); }
.enquiry-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 600; }
.enquiry-phone:hover { color: var(--sky-200); }
.list-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.list-card ul { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.list-card a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 4px; color: var(--ink); font-size: 15px; }
.list-card a small { color: var(--muted); }
.list-card a:hover { background: var(--sky-50); color: var(--navy-600); }
.list-card a.active { background: var(--navy-600); color: #fff; }
.list-card a.active small { color: var(--sky-200); }

/* ---- Contact ------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -100px; position: relative; z-index: 3; margin-bottom: 60px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 26px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); transition: transform .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cc-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-100); color: var(--navy-600); margin-bottom: 12px; }
.cc-icon .icon { width: 24px; height: 24px; }
.cc-wa { background: #e6f9ee; color: #128c4a; }
.cc-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.cc-value { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.page-hero + .section .contact-cards { margin-top: -110px; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.contact-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 60px); }
.info-card { background: var(--sky-50); border-radius: var(--radius-lg); padding: 28px; }
.info-card address { font-style: normal; margin-bottom: 14px; }
.info-list { margin: 0; }
.info-list > div { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }
.contact-side .map-card { aspect-ratio: 4 / 3; }

.topic-picker { border: 0; padding: 0; margin: 0 0 20px; }
.topic-picker legend { font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; cursor: pointer; transition: .15s; color: var(--text); background: #fff; }
.chip span:hover { border-color: var(--navy-500); color: var(--navy-600); }
.chip input:checked + span { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sky-300); outline-offset: 2px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #ccd5df; border-radius: var(--radius); background: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--sky-100); }
.field textarea { resize: vertical; min-height: 140px; }
.field-error { display: block; color: var(--err); font-size: 13px; margin-top: 5px; font-weight: 400; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--err); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-600); }
.consent .field-error { flex-basis: 100%; margin: 0; }
.form-status { min-height: 1.2em; font-size: 14px; margin-bottom: 12px; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; }
.alert-ok { background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.alert-err { background: #fef3f2; color: var(--err); border: 1px solid #fecdca; }
form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--sky-200); padding-top: 70px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { width: 72px; margin-bottom: 18px; }
.footer-title { font-family: var(--font-head); font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--sky-200); }
.site-footer a:hover { color: #fff; }
.footer-contact { font-style: normal; line-height: 1.9; }
.social { display: flex; gap: 14px; margin-top: 14px !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 26px; font-size: 13px; }

/* ---- WhatsApp floating button ------------------------------------------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px;
    background: var(--wa); color: #fff; border-radius: 40px; padding: 12px; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .2s, box-shadow .2s, padding .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }
.wa-label { font-weight: 600; font-size: 15px; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s, margin .3s; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 140px; margin-right: 6px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 40px; border: 2px solid var(--wa); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---- Modals -------------------------------------------------------------- */
.modal, .lightbox { border: 0; padding: 0; max-width: calc(100vw - 32px); }
.modal { width: 480px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal::backdrop, .lightbox::backdrop { background: rgba(6, 26, 45, .78); backdrop-filter: blur(3px); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-actions .btn-wa { margin-top: 0; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--navy-800); cursor: pointer; z-index: 3; }
.lightbox { background: transparent; overflow: visible; }
.lightbox img { max-width: min(1200px, calc(100vw - 120px)); max-height: calc(100vh - 100px); width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox .modal-close { color: #fff; top: -40px; right: 0; }
.lightbox-caption { color: #ddd; text-align: center; padding: 10px; margin: 0; font-size: 14px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy-800); font-size: 28px; cursor: pointer; z-index: 2; }
.lb-prev { left: -56px; }
.lb-next { right: -56px; }
.lightbox.single .lb-nav { display: none; }

/* ---- 404 ----------------------------------------------------------------- */
.not-found { text-align: center; }
.nf-code { font-family: var(--font-head); font-size: 120px; font-weight: 600; line-height: 1; color: var(--sky-200); margin: 0; }

/* ---- Reveal on scroll ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .prime-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .facts { padding-right: 0; }
    .project-hero-img { margin-bottom: 0; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    :root { --header-h: 70px; }
    .topbar { display: none; }
    .nav-toggle { display: block; }
    .logo img, .site-header.is-scrolled .logo img { width: 52px; }
    .navbar-inner, .site-header.is-scrolled .navbar-inner { height: var(--header-h); }
    .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px 28px 24px; box-shadow: var(--shadow); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .site-nav.is-open { display: flex; }
    .site-nav > ul { flex-direction: column; gap: 0; }
    .site-nav > ul > li { border-bottom: 1px solid var(--line); }
    .site-nav > ul > li > a { padding: 14px 0; font-size: 20px; }
    .site-nav > ul > li > a::after { display: none; }
    .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 10px; display: block; }
    .nav-cta { margin-top: 16px; }
    .section-tabs { top: var(--header-h); }
    .section { padding: 64px 0; }
    .about-grid, .chairman-grid, .profile-grid, .project-hero-grid, .project-layout, .contact-layout{ grid-template-columns: 1fr; gap: 40px; }
    .about-media { max-width: 520px; }
    .about-badge { right: 16px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .project-aside, .contact-side { position: static; }
    .project-hero-img { max-width: 520px; }
    .profile-img { max-width: 320px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { padding: 0 18px; }
    .hero { min-height: 640px; }
    .hero-content { padding-top: 60px; }
    .hero-footer { flex-direction: column; align-items: stretch; }
    .hero-card { min-width: 0; }
    .hero-controls { justify-content: space-between; }
    .project-grid, .service-grid, .prime-grid, .contact-cards, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .contact-cards, .page-hero + .section .contact-cards { margin-top: -60px; }
    .form-card { padding: 24px 20px; }
    .timeline-card { padding: 20px 16px 50px; }
    .timeline { margin: 0 10px; }
    .tl-year { font-size: 10px; }
    .tl-point:nth-child(odd) .tl-year { top: -22px; }
    .toolbar .js-project-count { margin-left: 0; }
    .lb-prev { left: 4px; } .lb-next { right: 4px; }
    .lightbox img { max-width: calc(100vw - 32px); }
    .wa-float { right: 14px; bottom: 14px; }
    .about-media::before { display: none; }
    .stat { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .wa-float, .section-tabs, .hero-controls, .cta-band, .project-aside, .calc-card { display: none !important; }
    .page-hero, .project-hero { background: none; color: #000; }
    .page-title { color: #000; }
}

/* ---- Preview fixes ------------------------------------------------------- */
.stat-value { white-space: nowrap; font-size: clamp(30px, 3.4vw, 46px); }
.page-hero:has(+ .section .contact-cards) { padding-bottom: 150px; }
@media (max-width: 640px) { .page-hero:has(+ .section .contact-cards) { padding-bottom: 100px; } }
@media (max-width: 640px) {
    .contact-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .contact-card { padding: 16px; }
    .cc-icon { width: 40px; height: 40px; margin-bottom: 6px; }
    .cc-value { font-size: 14px; }
}

/* =========================================================================
   Responsive polish (phones, tablets, laptops, large screens)
   ========================================================================= */
img { background-color: var(--sky-100); }
.logo img, .footer-logo, .site-footer img { background: none; }

/* Timeline pop-ups never leave the screen */
.tl-start .tl-pop { left: 0; transform: translate(-12px, 6px); }
.tl-start .tl-pop::after { left: 18px; }
.tl-end .tl-pop { left: auto; right: 0; transform: translate(12px, 6px); }
.tl-end .tl-pop::after { left: auto; right: 12px; }
.tl-start:hover .tl-pop, .tl-start:focus-within .tl-pop { transform: translate(-12px, 0); }
.tl-end:hover .tl-pop, .tl-end:focus-within .tl-pop { transform: translate(12px, 0); }

/* Large screens */
@media (min-width: 1600px) {
    :root { --container: 1320px; }
    .hero { min-height: min(82vh, 860px); }
}

/* Laptops / small desktops */
@media (max-width: 1280px) {
    .site-nav { gap: 18px; }
    .site-nav > ul > li > a { padding: 10px 10px; font-size: 16px; }
}
@media (max-width: 1280px) and (min-width: 1101px) {
    .project-hero-grid { grid-template-columns: 1fr 380px; }
    .facts { padding-right: 420px; }
}

/* Tablets */
@media (max-width: 1100px) and (min-width: 961px) {
    .project-grid { gap: 20px; }
    .about-grid { gap: 50px; }
}
@media (max-width: 960px) {
    .hero { min-height: 620px; }
    .about-media img { aspect-ratio: 4 / 3; }
    .about-media::before { inset: 16px -16px -16px 16px; }
    .project-hero-img { margin-bottom: 0; }
    .project-hero-img img { aspect-ratio: 4 / 3; }
    .facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .section-head { margin-bottom: 28px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Phones */
@media (max-width: 640px) {
    .section { padding: 52px 0; }
    .section-title { font-size: 28px; }
    .eyebrow { font-size: 13px; letter-spacing: 1.5px; }

    /* Hero: cleaner, swipeable, arrows hidden (dots + swipe instead) */
    .hero { min-height: 0; }
    .hero-content { padding-top: 48px; padding-bottom: 24px; }
    .hero-title { font-size: 36px; }
    .hero-lead { font-size: 16px; margin-bottom: 22px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-footer { padding-bottom: 22px; gap: 14px; }
    .hero-card { padding: 12px 16px; }
    .hero-card-title { font-size: 20px; }
    .hero-controls .round-btn { display: none; }
    .hero-controls { justify-content: flex-start; }
    .dot { width: 9px; height: 9px; }
    .dot.is-active { width: 24px; }

    /* Stats tighter */
    .stats { padding: 34px 0; }
    .stat-value { font-size: 30px; }
    .stat-label { font-size: 13px; }

    /* About */
    .about-badge { right: 10px; bottom: 10px; padding: 10px 14px; }
    .about-badge strong { font-size: 26px; }
    .prime-inline li { font-size: 13px; }

    /* Services: icon beside text = half the scrolling */
    .service-grid { gap: 12px; }
    .service-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding: 18px; }
    .service-icon { width: 46px; height: 46px; margin: 0; grid-row: span 2; }
    .service-card h3 { font-size: 19px; margin-bottom: 4px; }
    .service-card p { font-size: 14px; }

    /* Project lists on home/project page: swipe sideways */
    .project-grid.snap-mobile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
        margin: 0 -18px; padding: 4px 18px 16px; scrollbar-width: none; }
    .project-grid.snap-mobile::-webkit-scrollbar { display: none; }
    .project-grid.snap-mobile > li { flex: 0 0 82%; scroll-snap-align: start; }
    .card-body { padding: 16px 18px 18px; }
    .card-title { font-size: 20px; }

    /* Projects page */
    .toolbar { gap: 10px; }
    .search { flex-basis: 100%; max-width: none; }
    .timeline-card { overflow: hidden; }
    .tl-pop { display: none; }

    /* Project page */
    .project-hero { padding: 30px 0 36px; }
    .project-hero-grid { gap: 22px; }
    .facts { grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
    .fact .icon { width: 32px; height: 32px; padding: 7px; }
    .section-tabs a { padding: 14px 12px 12px; font-size: 14px; }
    .project-layout { padding-top: 32px; gap: 30px; }
    .block { padding-bottom: 30px; margin-bottom: 30px; }
    .block .section-title { font-size: 24px; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
    .prev-next a { font-size: 16px; }
    .map-card { aspect-ratio: 4 / 3; }
    .list-card ul { max-height: 260px; }

    /* Company */
    .quote { font-size: 20px; padding-left: 18px; }
    .chairman-body { padding: 22px; }
    .profile-img { max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

    /* Contact */
    .chip span { padding: 7px 12px; font-size: 13px; }

    /* Footer two columns where it fits */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .footer-grid > :first-child, .footer-grid > :nth-child(3), .footer-grid > :last-child { grid-column: 1 / -1; }
    .footer-bottom { padding-bottom: 90px; margin-top: 10px; }
    .footer-grid { padding-bottom: 30px; }

    /* WhatsApp button: smaller, never covers buttons */
    .wa-float { padding: 10px; }
    .wa-float .icon { width: 26px; height: 26px; }
}

/* Very small phones */
@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .hero-title { font-size: 31px; }
    .contact-cards { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
}

/* Touch devices: no hover-only effects that hide info */
@media (hover: none) {
    .wa-float .wa-label { max-width: 0; }
    .project-card:hover, .service-card:hover { transform: none; }
}

/* ---- Vector logo ---------------------------------------------------------- */
.logo img, .site-header.is-scrolled .logo img { width: auto; height: 50px; transition: height .25s; }
.site-header.is-scrolled .logo img { height: 42px; }
.footer-logo { width: 130px; height: auto; }
@media (max-width: 1100px) and (min-width: 961px) { .logo img { height: 40px; } }
@media (max-width: 960px) { .logo img, .site-header.is-scrolled .logo img { width: auto; height: 38px; } }
@media (max-width: 360px) { .logo img, .site-header.is-scrolled .logo img { height: 32px; } }

/* ---- Hero v2: sharp framed photo over a soft blurred backdrop --------------
   The original project photos are ~466×486 px, so they are shown at (close to)
   their true size instead of being stretched across the screen.           */
.hero-slide .hero-bg { filter: blur(22px) saturate(1.15); transform: scale(1.15); }
.hero-slide.is-active .hero-bg { transform: scale(1.1); }
.hero-slide .hero-photo {
    position: absolute; z-index: 2; right: max(28px, calc((100vw - var(--container)) / 2 + 28px)); top: 50%;
    width: min(400px, 30vw); height: auto; aspect-ratio: 466 / 486; object-fit: cover; border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.18);
    transform: translateY(-58%) translateX(30px) scale(.98); opacity: 0;
    transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .9s ease;
    filter: contrast(1.06) saturate(1.08);
}
.hero-slide.is-active .hero-photo { opacity: 1; transform: translateY(-58%); }
.hero-shade { background:
    linear-gradient(90deg, rgba(6,40,74,.94) 0%, rgba(8,58,108,.78) 45%, rgba(8,58,108,.35) 100%),
    linear-gradient(0deg, rgba(6,40,74,.7) 0%, rgba(6,40,74,0) 40%); }
.hero-shade, .hero-content, .hero-footer { z-index: 3; }
.hero-shade { z-index: 1; }
@media (max-width: 1100px) { .hero-slide .hero-photo { width: min(330px, 32vw); } .hero-content > * { max-width: 520px; } }
@media (max-width: 960px) {
    .hero-slide .hero-photo { display: none; }
    .hero-slide .hero-bg { filter: saturate(1.1) contrast(1.05); transform: none; }
}

/* Subtle clean-up of all project photos (contrast + colour), crisp scaling */
.card-img img, .project-hero-img img, .gallery img, .about-media img, .profile-img, .lightbox img {
    filter: contrast(1.05) saturate(1.08);
    image-rendering: auto;
}
/* stacking: backdrop < shade < framed photo < text */
.hero-slides { z-index: 0; }
.hero > .hero-shade { display: none; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background:
    linear-gradient(90deg, rgba(6,40,74,.94) 0%, rgba(8,58,108,.78) 45%, rgba(8,58,108,.35) 100%),
    linear-gradient(0deg, rgba(6,40,74,.7) 0%, rgba(6,40,74,0) 40%); }
.hero-content, .hero-footer { position: relative; z-index: 3; }
.site-footer .btn-wa, .site-footer .btn-wa:hover { color: #fff; }
/* Keep the header height constant so sticky sub-menus line up exactly */
.site-header.is-scrolled .navbar-inner { height: var(--header-h); }
.site-header.is-scrolled .logo img { height: 50px; }
@media (max-width: 1100px) and (min-width: 961px) { .site-header.is-scrolled .logo img { height: 40px; } }
@media (max-width: 960px) { .site-header.is-scrolled .logo img { height: 38px; } }

/* Placeholder for a photo that is not available yet */
img.img-missing { object-fit: cover !important; filter: none !important; }
.hero-slide img.img-missing.hero-bg { object-fit: cover !important; opacity: .15; }
