/* ============ Design tokens (from Build Line Group logo) ============ */
:root {
  --navy-900: #0f2540;
  --navy-800: #16345a;
  --navy-700: #1b3f6e;   /* primary brand navy */
  --navy-600: #24528c;
  --steel-500: #2e6da4;  /* steel blue accent */
  --steel-400: #4a86c0;
  --blue-300: #7db0dd;
  --ink: #1c2733;
  --muted: #5b6b7c;
  --line: #e4e9ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-dark: #0f2540;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(15, 37, 64, .28);
  --shadow-sm: 0 8px 24px -12px rgba(15, 37, 64, .25);
  --maxw: 1180px;
  --header-h: 80px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
}

/* ============ Reset / base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e6eef7; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--steel-500);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--blue-300); }

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  color: var(--navy-800);
  letter-spacing: -.01em;
}
.section-dark .section-title { color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section-dark .section-lead { color: #b7c6d8; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: .96rem;
  padding: 13px 26px;
  border-radius: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--steel-500), var(--navy-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, height .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(15,37,64,.4); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  font-weight: 500; font-size: .95rem;
  color: var(--navy-800);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--steel-500); }
.nav-cta {
  background: linear-gradient(135deg, var(--steel-500), var(--navy-700));
  color: #fff !important; margin-left: 8px;
  border-radius: 40px; padding: 10px 22px;
}
.nav-cta:hover { transform: translateY(-2px); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 40px; overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .78rem; letter-spacing: .03em;
  color: var(--muted); padding: 7px 12px; transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--navy-800); }
.lang-switch button.active {
  background: linear-gradient(135deg, var(--steel-500), var(--navy-700));
  color: #fff;
}

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

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,37,64,.92) 0%, rgba(27,63,110,.78) 45%, rgba(46,109,164,.42) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding-top: var(--header-h); }
.hero-kicker { letter-spacing: .28em; font-weight: 700; font-size: .85rem; color: var(--blue-300); margin-bottom: 18px; }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: 20px;
}
.hero-title span { color: var(--blue-300); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #dbe6f2; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #cbd8e6;
}
.chevron { width: 12px; height: 12px; border-right: 2px solid #cbd8e6; border-bottom: 2px solid #cbd8e6; transform: rotate(45deg); animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0);} 50%{transform:rotate(45deg) translateY(6px);} }

/* ============ Stats ============ */
.stats { background: var(--navy-800); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; }
.stat-label { color: var(--blue-300); font-size: .95rem; margin-top: 6px; letter-spacing: .02em; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -22px; right: -14px;
  background: linear-gradient(135deg, var(--steel-500), var(--navy-700));
  color: #fff; padding: 18px 26px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.2;
}
.about-badge strong { font-family: var(--display); font-size: 1.4rem; }
.about-badge span { font-size: .82rem; color: #cfe0f1; }
.about-text p { color: var(--muted); margin-top: 16px; }
.about-list { margin: 22px 0 28px; }
.about-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--steel-500);
  box-shadow: 0 0 0 4px rgba(46,109,164,.18);
}

/* ============ Cards / Services ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(46,109,164,.14), rgba(27,63,110,.1));
  margin-bottom: 18px;
}
.card h3 { font-family: var(--display); font-size: 1.25rem; color: var(--navy-800); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* ============ Projects ============ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  position: relative; height: 300px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.project::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--img) center/cover no-repeat;
  transition: transform .5s;
}
.project::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15,37,64,.9) 0%, rgba(15,37,64,.15) 60%, transparent 100%);
}
.project:hover::before { transform: scale(1.09); }
.project-body { padding: 26px; position: relative; }
.project-body h3 { font-family: var(--display); font-size: 1.4rem; }
.project-body span { color: #cfe0f1; font-size: .92rem; }

/* ============ QHSE ============ */
.qhse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.qhse-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 32px 26px; transition: background .3s, transform .3s;
}
.qhse-item:hover { background: rgba(255,255,255,.09); transform: translateY(-5px); }
.qhse-letter {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--steel-500), var(--navy-600)); margin-bottom: 18px;
}
.qhse-item h3 { font-family: var(--display); color: #fff; margin-bottom: 10px; }
.qhse-item p { color: #b7c6d8; font-size: .95rem; }

/* ============ Partners ============ */
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.partner-logo {
  flex: 1 1 150px; max-width: 180px; text-align: center;
  padding: 26px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-family: var(--display); font-weight: 700; letter-spacing: .08em;
  color: var(--navy-700); opacity: .7; transition: opacity .3s, transform .3s;
}
.partner-logo:hover { opacity: 1; transform: translateY(-4px); }

/* ============ News ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-img { height: 190px; background-size: cover; background-position: center; }
.news-content { padding: 24px; }
.news-date { font-size: .8rem; font-weight: 600; color: var(--steel-500); text-transform: uppercase; letter-spacing: .08em; }
.news-content h3 { font-family: var(--display); font-size: 1.14rem; color: var(--navy-800); margin: 10px 0; line-height: 1.3; }
.news-content p { color: var(--muted); font-size: .95rem; }

/* ============ CTA / Careers ============ */
.cta { background: var(--navy-800); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: linear-gradient(135deg, var(--steel-500), var(--navy-700));
  border-radius: 24px; padding: 54px; color: #fff; flex-wrap: wrap;
}
.cta .section-title { color: #fff; }
.cta .section-lead { color: #dbe6f2; margin-top: 12px; max-width: 560px; }
.cta .btn-primary { background: #fff; color: var(--navy-700); }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { margin-top: 26px; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 1.02rem; }
.contact-list .ci { font-size: 1.2rem; }
.contact-list a:hover { color: var(--steel-500); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel-500); box-shadow: 0 0 0 3px rgba(46,109,164,.15); }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; color: #178a4c; font-weight: 600; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: #c4d2e2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 24px 40px; }
.footer-logo { height: 48px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 300px; color: #97a9bd; }
.footer-col h4 { color: #fff; font-family: var(--display); font-size: 1.02rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: #a8b8c9; font-size: .95rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; font-size: .88rem; color: #8fa1b5; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); font-size: .8rem; font-weight: 700; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--steel-500); transform: translateY(-3px); }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid, .projects-grid, .news-grid, .qhse-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { max-width: 520px; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; height: calc(100vh - var(--header-h));
    width: min(300px, 82vw); background: #fff; flex-direction: column; align-items: stretch;
    padding: 24px; gap: 4px; transform: translateX(105%); transition: transform .35s;
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.3); z-index: 99;
  }
  .nav.open { transform: none; }
  .nav-link { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin: 12px 0 0; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .cta-inner { padding: 36px 28px; }
}
@media (max-width: 520px) {
  .cards-grid, .projects-grid, .news-grid, .qhse-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
